diff --git a/dist/index.js b/dist/index.js index 8f4fdfc..4ae40aa 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import{createRequire as __WEBPACK_EXTERNAL_createRequire}from"module";var __webpack_modules__={44914:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.issue=q.issueCommand=void 0;const Pt=lt(re(70857));const Wt=re(30302);function issueCommand(C,q,re){const ae=new Command(C,q,re);process.stdout.write(ae.toString()+Pt.EOL)}q.issueCommand=issueCommand;function issue(C,q=""){issueCommand(C,{},q)}q.issue=issue;const Ar="::";class Command{constructor(C,q,re){if(!C){C="missing.command"}this.command=C;this.properties=q;this.message=re}toString(){let C=Ar+this.command;if(this.properties&&Object.keys(this.properties).length>0){C+=" ";let q=true;for(const re in this.properties){if(this.properties.hasOwnProperty(re)){const ae=this.properties[re];if(ae){if(q){q=false}else{C+=","}C+=`${re}=${escapeProperty(ae)}`}}}}C+=`${Ar}${escapeData(this.message)}`;return C}}function escapeData(C){return Wt.toCommandValue(C).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(C){return Wt.toCommandValue(C).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},37484:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getIDToken=q.getState=q.saveState=q.group=q.endGroup=q.startGroup=q.info=q.notice=q.warning=q.error=q.debug=q.isDebug=q.setFailed=q.setCommandEcho=q.setOutput=q.getBooleanInput=q.getMultilineInput=q.getInput=q.addPath=q.setSecret=q.exportVariable=q.ExitCode=void 0;const Wt=re(44914);const Ar=re(24753);const Er=re(30302);const Ir=lt(re(70857));const Br=lt(re(16928));const kr=re(35306);var Pr;(function(C){C[C["Success"]=0]="Success";C[C["Failure"]=1]="Failure"})(Pr=q.ExitCode||(q.ExitCode={}));function exportVariable(C,q){const re=Er.toCommandValue(q);process.env[C]=re;const ae=process.env["GITHUB_ENV"]||"";if(ae){return Ar.issueFileCommand("ENV",Ar.prepareKeyValueMessage(C,q))}Wt.issueCommand("set-env",{name:C},re)}q.exportVariable=exportVariable;function setSecret(C){Wt.issueCommand("add-mask",{},C)}q.setSecret=setSecret;function addPath(C){const q=process.env["GITHUB_PATH"]||"";if(q){Ar.issueFileCommand("PATH",C)}else{Wt.issueCommand("add-path",{},C)}process.env["PATH"]=`${C}${Br.delimiter}${process.env["PATH"]}`}q.addPath=addPath;function getInput(C,q){const re=process.env[`INPUT_${C.replace(/ /g,"_").toUpperCase()}`]||"";if(q&&q.required&&!re){throw new Error(`Input required and not supplied: ${C}`)}if(q&&q.trimWhitespace===false){return re}return re.trim()}q.getInput=getInput;function getMultilineInput(C,q){const re=getInput(C,q).split("\n").filter((C=>C!==""));if(q&&q.trimWhitespace===false){return re}return re.map((C=>C.trim()))}q.getMultilineInput=getMultilineInput;function getBooleanInput(C,q){const re=["true","True","TRUE"];const ae=["false","False","FALSE"];const Ue=getInput(C,q);if(re.includes(Ue))return true;if(ae.includes(Ue))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${C}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}q.getBooleanInput=getBooleanInput;function setOutput(C,q){const re=process.env["GITHUB_OUTPUT"]||"";if(re){return Ar.issueFileCommand("OUTPUT",Ar.prepareKeyValueMessage(C,q))}process.stdout.write(Ir.EOL);Wt.issueCommand("set-output",{name:C},Er.toCommandValue(q))}q.setOutput=setOutput;function setCommandEcho(C){Wt.issue("echo",C?"on":"off")}q.setCommandEcho=setCommandEcho;function setFailed(C){process.exitCode=Pr.Failure;error(C)}q.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}q.isDebug=isDebug;function debug(C){Wt.issueCommand("debug",{},C)}q.debug=debug;function error(C,q={}){Wt.issueCommand("error",Er.toCommandProperties(q),C instanceof Error?C.toString():C)}q.error=error;function warning(C,q={}){Wt.issueCommand("warning",Er.toCommandProperties(q),C instanceof Error?C.toString():C)}q.warning=warning;function notice(C,q={}){Wt.issueCommand("notice",Er.toCommandProperties(q),C instanceof Error?C.toString():C)}q.notice=notice;function info(C){process.stdout.write(C+Ir.EOL)}q.info=info;function startGroup(C){Wt.issue("group",C)}q.startGroup=startGroup;function endGroup(){Wt.issue("endgroup")}q.endGroup=endGroup;function group(C,q){return Pt(this,void 0,void 0,(function*(){startGroup(C);let re;try{re=yield q()}finally{endGroup()}return re}))}q.group=group;function saveState(C,q){const re=process.env["GITHUB_STATE"]||"";if(re){return Ar.issueFileCommand("STATE",Ar.prepareKeyValueMessage(C,q))}Wt.issueCommand("save-state",{name:C},Er.toCommandValue(q))}q.saveState=saveState;function getState(C){return process.env[`STATE_${C}`]||""}q.getState=getState;function getIDToken(C){return Pt(this,void 0,void 0,(function*(){return yield kr.OidcClient.getIDToken(C)}))}q.getIDToken=getIDToken;var Qr=re(71847);Object.defineProperty(q,"summary",{enumerable:true,get:function(){return Qr.summary}});var Fr=re(71847);Object.defineProperty(q,"markdownSummary",{enumerable:true,get:function(){return Fr.markdownSummary}});var Dr=re(31976);Object.defineProperty(q,"toPosixPath",{enumerable:true,get:function(){return Dr.toPosixPath}});Object.defineProperty(q,"toWin32Path",{enumerable:true,get:function(){return Dr.toWin32Path}});Object.defineProperty(q,"toPlatformPath",{enumerable:true,get:function(){return Dr.toPlatformPath}})},24753:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.prepareKeyValueMessage=q.issueFileCommand=void 0;const Pt=lt(re(79896));const Wt=lt(re(70857));const Ar=re(12048);const Er=re(30302);function issueFileCommand(C,q){const re=process.env[`GITHUB_${C}`];if(!re){throw new Error(`Unable to find environment variable for file command ${C}`)}if(!Pt.existsSync(re)){throw new Error(`Missing file at path: ${re}`)}Pt.appendFileSync(re,`${Er.toCommandValue(q)}${Wt.EOL}`,{encoding:"utf8"})}q.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(C,q){const re=`ghadelimiter_${Ar.v4()}`;const ae=Er.toCommandValue(q);if(C.includes(re)){throw new Error(`Unexpected input: name should not contain the delimiter "${re}"`)}if(ae.includes(re)){throw new Error(`Unexpected input: value should not contain the delimiter "${re}"`)}return`${C}<<${re}${Wt.EOL}${ae}${Wt.EOL}${re}`}q.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.OidcClient=void 0;const Ue=re(54844);const lt=re(44552);const Pt=re(37484);class OidcClient{static createHttpClient(C=true,q=10){const re={allowRetries:C,maxRetries:q};return new Ue.HttpClient("actions/oidc-client",[new lt.BearerCredentialHandler(OidcClient.getRequestToken())],re)}static getRequestToken(){const C=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!C){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return C}static getIDTokenUrl(){const C=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!C){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return C}static getCall(C){var q;return ae(this,void 0,void 0,(function*(){const re=OidcClient.createHttpClient();const ae=yield re.getJson(C).catch((C=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${C.statusCode}\n \n Error Message: ${C.message}`)}));const Ue=(q=ae.result)===null||q===void 0?void 0:q.value;if(!Ue){throw new Error("Response json body do not have ID Token field")}return Ue}))}static getIDToken(C){return ae(this,void 0,void 0,(function*(){try{let q=OidcClient.getIDTokenUrl();if(C){const re=encodeURIComponent(C);q=`${q}&audience=${re}`}Pt.debug(`ID token url is ${q}`);const re=yield OidcClient.getCall(q);Pt.setSecret(re);return re}catch(C){throw new Error(`Error message: ${C.message}`)}}))}}q.OidcClient=OidcClient},31976:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.toPlatformPath=q.toWin32Path=q.toPosixPath=void 0;const Pt=lt(re(16928));function toPosixPath(C){return C.replace(/[\\]/g,"/")}q.toPosixPath=toPosixPath;function toWin32Path(C){return C.replace(/[/]/g,"\\")}q.toWin32Path=toWin32Path;function toPlatformPath(C){return C.replace(/[/\\]/g,Pt.sep)}q.toPlatformPath=toPlatformPath},71847:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.summary=q.markdownSummary=q.SUMMARY_DOCS_URL=q.SUMMARY_ENV_VAR=void 0;const Ue=re(70857);const lt=re(79896);const{access:Pt,appendFile:Wt,writeFile:Ar}=lt.promises;q.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";q.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 ae(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const C=process.env[q.SUMMARY_ENV_VAR];if(!C){throw new Error(`Unable to find environment variable for $${q.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield Pt(C,lt.constants.R_OK|lt.constants.W_OK)}catch(q){throw new Error(`Unable to access summary file: '${C}'. Check if the file has correct read/write permissions.`)}this._filePath=C;return this._filePath}))}wrap(C,q,re={}){const ae=Object.entries(re).map((([C,q])=>` ${C}="${q}"`)).join("");if(!q){return`<${C}${ae}>`}return`<${C}${ae}>${q}`}write(C){return ae(this,void 0,void 0,(function*(){const q=!!(C===null||C===void 0?void 0:C.overwrite);const re=yield this.filePath();const ae=q?Ar:Wt;yield ae(re,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return ae(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(C,q=false){this._buffer+=C;return q?this.addEOL():this}addEOL(){return this.addRaw(Ue.EOL)}addCodeBlock(C,q){const re=Object.assign({},q&&{lang:q});const ae=this.wrap("pre",this.wrap("code",C),re);return this.addRaw(ae).addEOL()}addList(C,q=false){const re=q?"ol":"ul";const ae=C.map((C=>this.wrap("li",C))).join("");const Ue=this.wrap(re,ae);return this.addRaw(Ue).addEOL()}addTable(C){const q=C.map((C=>{const q=C.map((C=>{if(typeof C==="string"){return this.wrap("td",C)}const{header:q,data:re,colspan:ae,rowspan:Ue}=C;const lt=q?"th":"td";const Pt=Object.assign(Object.assign({},ae&&{colspan:ae}),Ue&&{rowspan:Ue});return this.wrap(lt,re,Pt)})).join("");return this.wrap("tr",q)})).join("");const re=this.wrap("table",q);return this.addRaw(re).addEOL()}addDetails(C,q){const re=this.wrap("details",this.wrap("summary",C)+q);return this.addRaw(re).addEOL()}addImage(C,q,re){const{width:ae,height:Ue}=re||{};const lt=Object.assign(Object.assign({},ae&&{width:ae}),Ue&&{height:Ue});const Pt=this.wrap("img",null,Object.assign({src:C,alt:q},lt));return this.addRaw(Pt).addEOL()}addHeading(C,q){const re=`h${q}`;const ae=["h1","h2","h3","h4","h5","h6"].includes(re)?re:"h1";const Ue=this.wrap(ae,C);return this.addRaw(Ue).addEOL()}addSeparator(){const C=this.wrap("hr",null);return this.addRaw(C).addEOL()}addBreak(){const C=this.wrap("br",null);return this.addRaw(C).addEOL()}addQuote(C,q){const re=Object.assign({},q&&{cite:q});const ae=this.wrap("blockquote",C,re);return this.addRaw(ae).addEOL()}addLink(C,q){const re=this.wrap("a",C,{href:q});return this.addRaw(re).addEOL()}}const Er=new Summary;q.markdownSummary=Er;q.summary=Er},30302:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.toCommandProperties=q.toCommandValue=void 0;function toCommandValue(C){if(C===null||C===undefined){return""}else if(typeof C==="string"||C instanceof String){return C}return JSON.stringify(C)}q.toCommandValue=toCommandValue;function toCommandProperties(C){if(!Object.keys(C).length){return{}}return{title:C.title,file:C.file,line:C.startLine,endLine:C.endLine,col:C.startColumn,endColumn:C.endColumn}}q.toCommandProperties=toCommandProperties},51648:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Context=void 0;const ae=re(79896);const Ue=re(70857);class Context{constructor(){var C,q,re;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,ae.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,ae.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const C=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${C} does not exist${Ue.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=(C=process.env.GITHUB_API_URL)!==null&&C!==void 0?C:`https://api.github.com`;this.serverUrl=(q=process.env.GITHUB_SERVER_URL)!==null&&q!==void 0?q:`https://github.com`;this.graphqlUrl=(re=process.env.GITHUB_GRAPHQL_URL)!==null&&re!==void 0?re:`https://api.github.com/graphql`}get issue(){const C=this.payload;return Object.assign(Object.assign({},this.repo),{number:(C.issue||C.pull_request||C).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[C,q]=process.env.GITHUB_REPOSITORY.split("/");return{owner:C,repo:q}}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'")}}q.Context=Context},93228:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.getOctokit=q.context=void 0;const Pt=lt(re(51648));const Wt=re(38006);q.context=new Pt.Context;function getOctokit(C,q,...re){const ae=Wt.GitHub.plugin(...re);return new ae((0,Wt.getOctokitOptions)(C,q))}q.getOctokit=getOctokit},65156:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getApiBaseUrl=q.getProxyFetch=q.getProxyAgentDispatcher=q.getProxyAgent=q.getAuthString=void 0;const Wt=lt(re(54844));const Ar=re(46752);function getAuthString(C,q){if(!C&&!q.auth){throw new Error("Parameter token or opts.auth is required")}else if(C&&q.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof q.auth==="string"?q.auth:`token ${C}`}q.getAuthString=getAuthString;function getProxyAgent(C){const q=new Wt.HttpClient;return q.getAgent(C)}q.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(C){const q=new Wt.HttpClient;return q.getAgentDispatcher(C)}q.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(C){const q=getProxyAgentDispatcher(C);const proxyFetch=(C,re)=>Pt(this,void 0,void 0,(function*(){return(0,Ar.fetch)(C,Object.assign(Object.assign({},re),{dispatcher:q}))}));return proxyFetch}q.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}q.getApiBaseUrl=getApiBaseUrl},38006:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.getOctokitOptions=q.GitHub=q.defaults=q.context=void 0;const Pt=lt(re(51648));const Wt=lt(re(65156));const Ar=re(61897);const Er=re(84935);const Ir=re(38082);q.context=new Pt.Context;const Br=Wt.getApiBaseUrl();q.defaults={baseUrl:Br,request:{agent:Wt.getProxyAgent(Br),fetch:Wt.getProxyFetch(Br)}};q.GitHub=Ar.Octokit.plugin(Er.restEndpointMethods,Ir.paginateRest).defaults(q.defaults);function getOctokitOptions(C,q){const re=Object.assign({},q||{});const ae=Wt.getAuthString(C,re);if(ae){re.auth=ae}return re}q.getOctokitOptions=getOctokitOptions},44552:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.PersonalAccessTokenCredentialHandler=q.BearerCredentialHandler=q.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(C,q){this.username=C;this.password=q}prepareRequest(C){if(!C.headers){throw Error("The request has no headers")}C.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return re(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}q.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(C){this.token=C}prepareRequest(C){if(!C.headers){throw Error("The request has no headers")}C.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return re(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}q.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(C){this.token=C}prepareRequest(C){if(!C.headers){throw Error("The request has no headers")}C.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return re(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}q.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.HttpClient=q.isHttps=q.HttpClientResponse=q.HttpClientError=q.getProxyUrl=q.MediaTypes=q.Headers=q.HttpCodes=void 0;const Wt=lt(re(58611));const Ar=lt(re(65692));const Er=lt(re(54988));const Ir=lt(re(20770));const Br=re(46752);var kr;(function(C){C[C["OK"]=200]="OK";C[C["MultipleChoices"]=300]="MultipleChoices";C[C["MovedPermanently"]=301]="MovedPermanently";C[C["ResourceMoved"]=302]="ResourceMoved";C[C["SeeOther"]=303]="SeeOther";C[C["NotModified"]=304]="NotModified";C[C["UseProxy"]=305]="UseProxy";C[C["SwitchProxy"]=306]="SwitchProxy";C[C["TemporaryRedirect"]=307]="TemporaryRedirect";C[C["PermanentRedirect"]=308]="PermanentRedirect";C[C["BadRequest"]=400]="BadRequest";C[C["Unauthorized"]=401]="Unauthorized";C[C["PaymentRequired"]=402]="PaymentRequired";C[C["Forbidden"]=403]="Forbidden";C[C["NotFound"]=404]="NotFound";C[C["MethodNotAllowed"]=405]="MethodNotAllowed";C[C["NotAcceptable"]=406]="NotAcceptable";C[C["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";C[C["RequestTimeout"]=408]="RequestTimeout";C[C["Conflict"]=409]="Conflict";C[C["Gone"]=410]="Gone";C[C["TooManyRequests"]=429]="TooManyRequests";C[C["InternalServerError"]=500]="InternalServerError";C[C["NotImplemented"]=501]="NotImplemented";C[C["BadGateway"]=502]="BadGateway";C[C["ServiceUnavailable"]=503]="ServiceUnavailable";C[C["GatewayTimeout"]=504]="GatewayTimeout"})(kr||(q.HttpCodes=kr={}));var Pr;(function(C){C["Accept"]="accept";C["ContentType"]="content-type"})(Pr||(q.Headers=Pr={}));var Qr;(function(C){C["ApplicationJson"]="application/json"})(Qr||(q.MediaTypes=Qr={}));function getProxyUrl(C){const q=Er.getProxyUrl(new URL(C));return q?q.href:""}q.getProxyUrl=getProxyUrl;const Fr=[kr.MovedPermanently,kr.ResourceMoved,kr.SeeOther,kr.TemporaryRedirect,kr.PermanentRedirect];const Dr=[kr.BadGateway,kr.ServiceUnavailable,kr.GatewayTimeout];const xr=["OPTIONS","GET","DELETE","HEAD"];const Mr=10;const Ur=5;class HttpClientError extends Error{constructor(C,q){super(C);this.name="HttpClientError";this.statusCode=q;Object.setPrototypeOf(this,HttpClientError.prototype)}}q.HttpClientError=HttpClientError;class HttpClientResponse{constructor(C){this.message=C}readBody(){return Pt(this,void 0,void 0,(function*(){return new Promise((C=>Pt(this,void 0,void 0,(function*(){let q=Buffer.alloc(0);this.message.on("data",(C=>{q=Buffer.concat([q,C])}));this.message.on("end",(()=>{C(q.toString())}))}))))}))}readBodyBuffer(){return Pt(this,void 0,void 0,(function*(){return new Promise((C=>Pt(this,void 0,void 0,(function*(){const q=[];this.message.on("data",(C=>{q.push(C)}));this.message.on("end",(()=>{C(Buffer.concat(q))}))}))))}))}}q.HttpClientResponse=HttpClientResponse;function isHttps(C){const q=new URL(C);return q.protocol==="https:"}q.isHttps=isHttps;class HttpClient{constructor(C,q,re){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=C;this.handlers=q||[];this.requestOptions=re;if(re){if(re.ignoreSslError!=null){this._ignoreSslError=re.ignoreSslError}this._socketTimeout=re.socketTimeout;if(re.allowRedirects!=null){this._allowRedirects=re.allowRedirects}if(re.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=re.allowRedirectDowngrade}if(re.maxRedirects!=null){this._maxRedirects=Math.max(re.maxRedirects,0)}if(re.keepAlive!=null){this._keepAlive=re.keepAlive}if(re.allowRetries!=null){this._allowRetries=re.allowRetries}if(re.maxRetries!=null){this._maxRetries=re.maxRetries}}}options(C,q){return Pt(this,void 0,void 0,(function*(){return this.request("OPTIONS",C,null,q||{})}))}get(C,q){return Pt(this,void 0,void 0,(function*(){return this.request("GET",C,null,q||{})}))}del(C,q){return Pt(this,void 0,void 0,(function*(){return this.request("DELETE",C,null,q||{})}))}post(C,q,re){return Pt(this,void 0,void 0,(function*(){return this.request("POST",C,q,re||{})}))}patch(C,q,re){return Pt(this,void 0,void 0,(function*(){return this.request("PATCH",C,q,re||{})}))}put(C,q,re){return Pt(this,void 0,void 0,(function*(){return this.request("PUT",C,q,re||{})}))}head(C,q){return Pt(this,void 0,void 0,(function*(){return this.request("HEAD",C,null,q||{})}))}sendStream(C,q,re,ae){return Pt(this,void 0,void 0,(function*(){return this.request(C,q,re,ae)}))}getJson(C,q={}){return Pt(this,void 0,void 0,(function*(){q[Pr.Accept]=this._getExistingOrDefaultHeader(q,Pr.Accept,Qr.ApplicationJson);const re=yield this.get(C,q);return this._processResponse(re,this.requestOptions)}))}postJson(C,q,re={}){return Pt(this,void 0,void 0,(function*(){const ae=JSON.stringify(q,null,2);re[Pr.Accept]=this._getExistingOrDefaultHeader(re,Pr.Accept,Qr.ApplicationJson);re[Pr.ContentType]=this._getExistingOrDefaultHeader(re,Pr.ContentType,Qr.ApplicationJson);const Ue=yield this.post(C,ae,re);return this._processResponse(Ue,this.requestOptions)}))}putJson(C,q,re={}){return Pt(this,void 0,void 0,(function*(){const ae=JSON.stringify(q,null,2);re[Pr.Accept]=this._getExistingOrDefaultHeader(re,Pr.Accept,Qr.ApplicationJson);re[Pr.ContentType]=this._getExistingOrDefaultHeader(re,Pr.ContentType,Qr.ApplicationJson);const Ue=yield this.put(C,ae,re);return this._processResponse(Ue,this.requestOptions)}))}patchJson(C,q,re={}){return Pt(this,void 0,void 0,(function*(){const ae=JSON.stringify(q,null,2);re[Pr.Accept]=this._getExistingOrDefaultHeader(re,Pr.Accept,Qr.ApplicationJson);re[Pr.ContentType]=this._getExistingOrDefaultHeader(re,Pr.ContentType,Qr.ApplicationJson);const Ue=yield this.patch(C,ae,re);return this._processResponse(Ue,this.requestOptions)}))}request(C,q,re,ae){return Pt(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const Ue=new URL(q);let lt=this._prepareRequest(C,Ue,ae);const Pt=this._allowRetries&&xr.includes(C)?this._maxRetries+1:1;let Wt=0;let Ar;do{Ar=yield this.requestRaw(lt,re);if(Ar&&Ar.message&&Ar.message.statusCode===kr.Unauthorized){let C;for(const q of this.handlers){if(q.canHandleAuthentication(Ar)){C=q;break}}if(C){return C.handleAuthentication(this,lt,re)}else{return Ar}}let q=this._maxRedirects;while(Ar.message.statusCode&&Fr.includes(Ar.message.statusCode)&&this._allowRedirects&&q>0){const Pt=Ar.message.headers["location"];if(!Pt){break}const Wt=new URL(Pt);if(Ue.protocol==="https:"&&Ue.protocol!==Wt.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 Ar.readBody();if(Wt.hostname!==Ue.hostname){for(const C in ae){if(C.toLowerCase()==="authorization"){delete ae[C]}}}lt=this._prepareRequest(C,Wt,ae);Ar=yield this.requestRaw(lt,re);q--}if(!Ar.message.statusCode||!Dr.includes(Ar.message.statusCode)){return Ar}Wt+=1;if(Wt{function callbackForResult(C,q){if(C){ae(C)}else if(!q){ae(new Error("Unknown error"))}else{re(q)}}this.requestRawWithCallback(C,q,callbackForResult)}))}))}requestRawWithCallback(C,q,re){if(typeof q==="string"){if(!C.options.headers){C.options.headers={}}C.options.headers["Content-Length"]=Buffer.byteLength(q,"utf8")}let ae=false;function handleResult(C,q){if(!ae){ae=true;re(C,q)}}const Ue=C.httpModule.request(C.options,(C=>{const q=new HttpClientResponse(C);handleResult(undefined,q)}));let lt;Ue.on("socket",(C=>{lt=C}));Ue.setTimeout(this._socketTimeout||3*6e4,(()=>{if(lt){lt.end()}handleResult(new Error(`Request timeout: ${C.options.path}`))}));Ue.on("error",(function(C){handleResult(C)}));if(q&&typeof q==="string"){Ue.write(q,"utf8")}if(q&&typeof q!=="string"){q.on("close",(function(){Ue.end()}));q.pipe(Ue)}else{Ue.end()}}getAgent(C){const q=new URL(C);return this._getAgent(q)}getAgentDispatcher(C){const q=new URL(C);const re=Er.getProxyUrl(q);const ae=re&&re.hostname;if(!ae){return}return this._getProxyAgentDispatcher(q,re)}_prepareRequest(C,q,re){const ae={};ae.parsedUrl=q;const Ue=ae.parsedUrl.protocol==="https:";ae.httpModule=Ue?Ar:Wt;const lt=Ue?443:80;ae.options={};ae.options.host=ae.parsedUrl.hostname;ae.options.port=ae.parsedUrl.port?parseInt(ae.parsedUrl.port):lt;ae.options.path=(ae.parsedUrl.pathname||"")+(ae.parsedUrl.search||"");ae.options.method=C;ae.options.headers=this._mergeHeaders(re);if(this.userAgent!=null){ae.options.headers["user-agent"]=this.userAgent}ae.options.agent=this._getAgent(ae.parsedUrl);if(this.handlers){for(const C of this.handlers){C.prepareRequest(ae.options)}}return ae}_mergeHeaders(C){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(C||{}))}return lowercaseKeys(C||{})}_getExistingOrDefaultHeader(C,q,re){let ae;if(this.requestOptions&&this.requestOptions.headers){ae=lowercaseKeys(this.requestOptions.headers)[q]}return C[q]||ae||re}_getAgent(C){let q;const re=Er.getProxyUrl(C);const ae=re&&re.hostname;if(this._keepAlive&&ae){q=this._proxyAgent}if(!ae){q=this._agent}if(q){return q}const Ue=C.protocol==="https:";let lt=100;if(this.requestOptions){lt=this.requestOptions.maxSockets||Wt.globalAgent.maxSockets}if(re&&re.hostname){const C={maxSockets:lt,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(re.username||re.password)&&{proxyAuth:`${re.username}:${re.password}`}),{host:re.hostname,port:re.port})};let ae;const Pt=re.protocol==="https:";if(Ue){ae=Pt?Ir.httpsOverHttps:Ir.httpsOverHttp}else{ae=Pt?Ir.httpOverHttps:Ir.httpOverHttp}q=ae(C);this._proxyAgent=q}if(!q){const C={keepAlive:this._keepAlive,maxSockets:lt};q=Ue?new Ar.Agent(C):new Wt.Agent(C);this._agent=q}if(Ue&&this._ignoreSslError){q.options=Object.assign(q.options||{},{rejectUnauthorized:false})}return q}_getProxyAgentDispatcher(C,q){let re;if(this._keepAlive){re=this._proxyAgentDispatcher}if(re){return re}const ae=C.protocol==="https:";re=new Br.ProxyAgent(Object.assign({uri:q.href,pipelining:!this._keepAlive?0:1},(q.username||q.password)&&{token:`Basic ${Buffer.from(`${q.username}:${q.password}`).toString("base64")}`}));this._proxyAgentDispatcher=re;if(ae&&this._ignoreSslError){re.options=Object.assign(re.options.requestTls||{},{rejectUnauthorized:false})}return re}_performExponentialBackoff(C){return Pt(this,void 0,void 0,(function*(){C=Math.min(Mr,C);const q=Ur*Math.pow(2,C);return new Promise((C=>setTimeout((()=>C()),q)))}))}_processResponse(C,q){return Pt(this,void 0,void 0,(function*(){return new Promise(((re,ae)=>Pt(this,void 0,void 0,(function*(){const Ue=C.message.statusCode||0;const lt={statusCode:Ue,result:null,headers:{}};if(Ue===kr.NotFound){re(lt)}function dateTimeDeserializer(C,q){if(typeof q==="string"){const C=new Date(q);if(!isNaN(C.valueOf())){return C}}return q}let Pt;let Wt;try{Wt=yield C.readBody();if(Wt&&Wt.length>0){if(q&&q.deserializeDates){Pt=JSON.parse(Wt,dateTimeDeserializer)}else{Pt=JSON.parse(Wt)}lt.result=Pt}lt.headers=C.message.headers}catch(C){}if(Ue>299){let C;if(Pt&&Pt.message){C=Pt.message}else if(Wt&&Wt.length>0){C=Wt}else{C=`Failed request: (${Ue})`}const q=new HttpClientError(C,Ue);q.result=lt.result;ae(q)}else{re(lt)}}))))}))}}q.HttpClient=HttpClient;const lowercaseKeys=C=>Object.keys(C).reduce(((q,re)=>(q[re.toLowerCase()]=C[re],q)),{})},54988:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.checkBypass=q.getProxyUrl=void 0;function getProxyUrl(C){const q=C.protocol==="https:";if(checkBypass(C)){return undefined}const re=(()=>{if(q){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(re){try{return new DecodedURL(re)}catch(C){if(!re.startsWith("http://")&&!re.startsWith("https://"))return new DecodedURL(`http://${re}`)}}else{return undefined}}q.getProxyUrl=getProxyUrl;function checkBypass(C){if(!C.hostname){return false}const q=C.hostname;if(isLoopbackAddress(q)){return true}const re=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!re){return false}let ae;if(C.port){ae=Number(C.port)}else if(C.protocol==="http:"){ae=80}else if(C.protocol==="https:"){ae=443}const Ue=[C.hostname.toUpperCase()];if(typeof ae==="number"){Ue.push(`${Ue[0]}:${ae}`)}for(const C of re.split(",").map((C=>C.trim().toUpperCase())).filter((C=>C))){if(C==="*"||Ue.some((q=>q===C||q.endsWith(`.${C}`)||C.startsWith(".")&&q.endsWith(`${C}`)))){return true}}return false}q.checkBypass=checkBypass;function isLoopbackAddress(C){const q=C.toLowerCase();return q==="localhost"||q.startsWith("127.")||q.startsWith("[::1]")||q.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(C,q){super(C,q);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},51835:(C,q)=>{Object.defineProperty(q,"__esModule",{value:!0});var re=new Uint8Array(256),ae=new Uint8Array(256),Ue=new Uint32Array(256),lt=new Uint32Array(256),Pt=new Uint32Array(256),Wt=new Uint32Array(256),Ar=new Uint32Array(256),Er=new Uint32Array(256),Ir=new Uint32Array(256),Br=new Uint32Array(256);function a(C){if(C instanceof Uint32Array)return C;if("string"==typeof C){if(C.length%4!=0)for(var q=C.length%4;q<=4;q++)C+="\0x00";var re=new Uint32Array(C.length/4);for(q=0;q>7),Dr[Fr[Ur]^Ur]=Ur;for(;!re[xr];xr^=C||1)kr=(kr=Mr^Mr<<1^Mr<<2^Mr<<3^Mr<<4)>>8^255&kr^99,re[xr]=kr,ae[kr]=xr,Qr=16843009*Fr[q=Fr[C=Fr[xr]]]^65537*q^257*C^16843008*xr,Pr=257*Fr[kr]^16843008*kr,Ue[xr]=Pr=Pr<<24^Pr>>>8,lt[xr]=Pr=Pr<<24^Pr>>>8,Pt[xr]=Pr=Pr<<24^Pr>>>8,Wt[xr]=Pr=Pr<<24^Pr>>>8,Ar[kr]=Qr=Qr<<24^Qr>>>8,Er[kr]=Qr=Qr<<24^Qr>>>8,Ir[kr]=Qr=Qr<<24^Qr>>>8,Br[kr]=Qr=Qr<<24^Qr>>>8,Mr=Dr[Mr]||1}();var kr=function(){function l(C){var q=a(C);if(4!==q.length&&6!==q.length&&8!==q.length)throw new Error("Invalid key size");this.encKey=new Uint32Array(4*q.length+28),this.decKey=new Uint32Array(4*q.length+28),this.encKey.set(q);for(var ae,Ue=1,lt=q.length;lt<4*q.length+28;lt++)ae=this.encKey[lt-1],(lt%q.length==0||8===q.length&<%q.length==4)&&(ae=re[ae>>>24]<<24^re[ae>>16&255]<<16^re[ae>>8&255]<<8^re[255&ae],lt%q.length==0&&(ae=ae<<8^ae>>>24^Ue<<24,Ue=Ue<<1^283*(Ue>>7))),this.encKey[lt]=this.encKey[lt-q.length]^ae;for(var Pt=0;lt;Pt++,lt--)ae=this.encKey[3&Pt?lt:lt-4],this.decKey[Pt]=lt<=4||Pt<4?ae:Ar[re[ae>>>24]]^Er[re[ae>>16&255]]^Ir[re[ae>>8&255]]^Br[re[255&ae]]}return l.prototype.encrypt=function(C){for(var q,ae,Ar,Er=a(C),Ir=new Uint32Array(4),Br=Er[0]^this.encKey[0],kr=Er[1]^this.encKey[1],Pr=Er[2]^this.encKey[2],Qr=Er[3]^this.encKey[3],Fr=this.encKey.length/4-2,Dr=4,xr=0;xr>>24]^lt[kr>>16&255]^Pt[Pr>>8&255]^Wt[255&Qr]^this.encKey[Dr],ae=Ue[kr>>>24]^lt[Pr>>16&255]^Pt[Qr>>8&255]^Wt[255&Br]^this.encKey[Dr+1],Ar=Ue[Pr>>>24]^lt[Qr>>16&255]^Pt[Br>>8&255]^Wt[255&kr]^this.encKey[Dr+2],Qr=Ue[Qr>>>24]^lt[Br>>16&255]^Pt[kr>>8&255]^Wt[255&Pr]^this.encKey[Dr+3],Br=q,kr=ae,Pr=Ar,Dr+=4;for(xr=0;xr<4;xr++)Ir[xr]=re[Br>>>24]<<24^re[kr>>16&255]<<16^re[Pr>>8&255]<<8^re[255&Qr]^this.encKey[Dr++],q=Br,Br=kr,kr=Pr,Pr=Qr,Qr=q;return Ir},l.prototype.decrypt=function(C){for(var q,re,Ue,lt=a(C),Pt=new Uint32Array(4),Wt=lt[0]^this.decKey[0],kr=lt[3]^this.decKey[1],Pr=lt[2]^this.decKey[2],Qr=lt[1]^this.decKey[3],Fr=this.decKey.length/4-2,Dr=4,xr=0;xr>>24]^Er[kr>>16&255]^Ir[Pr>>8&255]^Br[255&Qr]^this.decKey[Dr],re=Ar[kr>>>24]^Er[Pr>>16&255]^Ir[Qr>>8&255]^Br[255&Wt]^this.decKey[Dr+1],Ue=Ar[Pr>>>24]^Er[Qr>>16&255]^Ir[Wt>>8&255]^Br[255&kr]^this.decKey[Dr+2],Qr=Ar[Qr>>>24]^Er[Wt>>16&255]^Ir[kr>>8&255]^Br[255&Pr]^this.decKey[Dr+3],Wt=q,kr=re,Pr=Ue,Dr+=4;for(xr=0;xr<4;xr++)Pt[3&-xr]=ae[Wt>>>24]<<24^ae[kr>>16&255]<<16^ae[Pr>>8&255]<<8^ae[255&Qr]^this.decKey[Dr++],q=Wt,Wt=kr,kr=Pr,Pr=Qr,Qr=q;return Pt},l}(),Pr=function(){function t(C,q,re){void 0===re&&(re=16),this.key=a(C),this.iv=a(q),this.cipher=new kr(C),this.blockSize=re/4}return t.prototype.encrypt=function(C,q){for(var re=a(C),ae=q||new Uint32Array(re.length),Ue=this.iv.subarray(this.blockSize,this.iv.length),lt=this.iv.subarray(0,this.blockSize),Pt=new Uint32Array(this.blockSize),Wt=0;Wt=this.blockSize&&this.incrementCounter(),Ue&&(lt-=Ue,Ue=0)}return this.offset=(this.offset+re.length%4)%4,ae},t.prototype.decrypt=function(C,q){return this.encrypt(C,q)},t.prototype.incrementCounter=function(){for(var C=this.counter.length-1;C>=0&&!(++this.counter[C]<4294967295);C--);},t}();q.CTR=Qr,q.IGE=Pr,q["default"]=kr},37936:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.underline=q.strikethrough=q.spoiler=q.pre=q.mentionUser=q.linkMessage=q.link=q.italic=q.FormattedString=q.fmt=q.customEmoji=q.code=q.bold=q.blockquote=void 0;class FormattedString{constructor(C,q){this.text=C;this.entities=q}toString(){return this.text}}q.FormattedString=FormattedString;const unwrap=C=>{if(C instanceof FormattedString){return C}return new FormattedString(C.toString(),[])};const buildFormatter=(C,...q)=>(re,...ae)=>{const Ue=unwrap(re);const lt=Object.fromEntries(q.map(((C,q)=>[C,ae[q]])));return new FormattedString(Ue.text,[{type:C,offset:0,length:Ue.text.length,...lt},...Ue.entities])};const re=buildFormatter("bold");q.bold=re;const ae=buildFormatter("code");q.code=ae;const Ue=buildFormatter("italic");q.italic=Ue;const lt=buildFormatter("text_link","url");q.link=lt;const Pt=buildFormatter("pre","language");q.pre=Pt;const Wt=buildFormatter("spoiler");q.spoiler=Wt;const Ar=buildFormatter("blockquote");q.blockquote=Ar;const Er=buildFormatter("strikethrough");q.strikethrough=Er;const Ir=buildFormatter("underline");q.underline=Ir;const mentionUser=(C,q)=>lt(C,`tg://user?id=${q}`);q.mentionUser=mentionUser;const customEmoji=(C,q)=>lt(C,`tg://emoji?id=${q}`);q.customEmoji=customEmoji;const linkMessage=(C,q,re)=>{if(q>0){console.warn("linkMessage can only be used for supergroups and channel messages. Refusing to transform into link.");return C}else if(q<-0xe954a50fff||q>-1e12){console.warn("linkMessage is not able to link messages whose chatIds are greater than -1000000000000 or less than -1002147483647 at this moment. Refusing to transform into link.");return C}else{return lt(C,`https://t.me/c/${(q+1e12)*-1}/${re}`)}};q.linkMessage=linkMessage;const fmt=(C,...q)=>{let re="";const ae=[];const Ue=Math.max(C.length,q.length);for(let lt=0;lt({...C,offset:C.offset+re.length}))))}if(Ue!=null)re+=Ue.toString()}}return new FormattedString(re,ae)};q.fmt=fmt},39292:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.hydrateReply=void 0;const ae=re(37936);const buildReplyWithParseMode=(C,q)=>(...re)=>{const[ae,Ue,...lt]=re;return q.reply(ae,{...Ue,parse_mode:C},...lt)};const hydrateReply=async(C,q)=>{C.replyFmt=(q,...re)=>{const[Ue,...lt]=re;const Pt=q instanceof ae.FormattedString?{entities:q.entities}:undefined;return C.reply(q.toString(),{...Ue,...Pt},...lt)};C.replyWithHTML=buildReplyWithParseMode("HTML",C);C.replyWithMarkdown=buildReplyWithParseMode("MarkdownV2",C);C.replyWithMarkdownV1=buildReplyWithParseMode("Markdown",C);C.replyWithMarkdownV2=buildReplyWithParseMode("MarkdownV2",C);C.replyFmtWithPhoto=(q,re,...Ue)=>{const lt=re?.caption?.toString();const Pt=re?.caption instanceof ae.FormattedString?re.caption.entities:re?.caption_entities;return C.replyWithPhoto(q,{...re,caption:lt,caption_entities:Pt},...Ue)};C.replyFmtWithMediaGroup=(q,re,...Ue)=>{const lt=q.map((C=>{const q=C.caption?.toString();const re=C.caption instanceof ae.FormattedString?C.caption.entities:C.caption_entities;return{...C,caption:q,caption_entities:re}}));return C.replyWithMediaGroup(lt,re,...Ue)};C.editFmtMessageMedia=(q,re,...Ue)=>{const lt=q.caption?.toString();const Pt=q.caption instanceof ae.FormattedString?q.caption.entities:q?.caption_entities;return C.editMessageMedia({...q,caption:lt,caption_entities:Pt},re,...Ue)};C.editFmtMessageText=(q,re,...Ue)=>{const lt=q instanceof ae.FormattedString?q.entities:re?.entities;return C.editMessageText(q.toString(),{...re,entities:lt},...Ue)};await q()};q.hydrateReply=hydrateReply},36400:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(37936),q);Ue(re(39292),q);Ue(re(1504),q)},1504:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.parseMode=void 0;const re=new Map([["html","HTML"],["markdown","Markdown"],["markdownv2","MarkdownV2"]]);const buildTransformer=C=>{const q=re.get(C.toLowerCase())??C;if(!re.has(C.toLowerCase())){console.warn(`Could not find parse_mode: ${C}. If this is a valid parse_mode, you should ignore this message.`)}const transformer=(C,re,ae,Ue)=>{if(!ae||"parse_mode"in ae){return C(re,ae,Ue)}switch(re){case"editMessageMedia":if("media"in ae&&!("parse_mode"in ae.media)){ae.media.parse_mode=q}break;case"answerInlineQuery":if("results"in ae){for(const C of ae.results){if("input_message_content"in C&&!("parse_mode"in C.input_message_content)){C.input_message_content.parse_mode=q}else if(!("parse_mode"in C)){C.parse_mode=q}}}break;default:ae={...ae,...{parse_mode:q}}}return C(re,ae,Ue)};return transformer};q.parseMode=buildTransformer},51860:()=>{},98153:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{composePaginateRest:()=>Wt,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>Ar});C.exports=__toCommonJS(lt);var Pt="11.3.1";function normalizePaginatedListResponse(C){if(!C.data){return{...C,data:[]}}const q="total_count"in C.data&&!("url"in C.data);if(!q)return C;const re=C.data.incomplete_results;const ae=C.data.repository_selection;const Ue=C.data.total_count;delete C.data.incomplete_results;delete C.data.repository_selection;delete C.data.total_count;const lt=Object.keys(C.data)[0];const Pt=C.data[lt];C.data=Pt;if(typeof re!=="undefined"){C.data.incomplete_results=re}if(typeof ae!=="undefined"){C.data.repository_selection=ae}C.data.total_count=Ue;return C}function iterator(C,q,re){const ae=typeof q==="function"?q.endpoint(re):C.request.endpoint(q,re);const Ue=typeof q==="function"?q:C.request;const lt=ae.method;const Pt=ae.headers;let Wt=ae.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!Wt)return{done:true};try{const C=await Ue({method:lt,url:Wt,headers:Pt});const q=normalizePaginatedListResponse(C);Wt=((q.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:q}}catch(C){if(C.status!==409)throw C;Wt="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(C,q,re,ae){if(typeof re==="function"){ae=re;re=void 0}return gather(C,[],iterator(C,q,re)[Symbol.asyncIterator](),ae)}function gather(C,q,re,ae){return re.next().then((Ue=>{if(Ue.done){return q}let lt=false;function done(){lt=true}q=q.concat(ae?ae(Ue.value,done):Ue.value.data);if(lt){return q}return gather(C,q,re,ae)}))}var Wt=Object.assign(paginate,{iterator:iterator});var Ar=["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(C){if(typeof C==="string"){return Ar.includes(C)}else{return false}}function paginateRest(C){return{paginate:Object.assign(paginate.bind(null,C),{iterator:iterator.bind(null,C)})}}paginateRest.VERSION=Pt;0&&0},77864:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{createTokenAuth:()=>Er});C.exports=__toCommonJS(lt);var Pt=/^v1\./;var Wt=/^ghs_/;var Ar=/^ghu_/;async function auth(C){const q=C.split(/\./).length===3;const re=Pt.test(C)||Wt.test(C);const ae=Ar.test(C);const Ue=q?"app":re?"installation":ae?"user-to-server":"oauth";return{type:"token",token:C,tokenType:Ue}}function withAuthorizationPrefix(C){if(C.split(/\./).length===3){return`bearer ${C}`}return`token ${C}`}async function hook(C,q,re,ae){const Ue=q.endpoint.merge(re,ae);Ue.headers.authorization=withAuthorizationPrefix(C);return q(Ue)}var Er=function createTokenAuth2(C){if(!C){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof C!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}C=C.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,C),{hook:hook.bind(null,C)})};0&&0},61897:(C,q,re)=>{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{Octokit:()=>xr});C.exports=__toCommonJS(Wt);var Ar=re(33843);var Er=re(52732);var Ir=re(66255);var Br=re(70007);var kr=re(77864);var Pr="5.2.0";var noop=()=>{};var Qr=console.warn.bind(console);var Fr=console.error.bind(console);var Dr=`octokit-core.js/${Pr} ${(0,Ar.getUserAgent)()}`;var xr=class{static{this.VERSION=Pr}static defaults(C){const q=class extends(this){constructor(...q){const re=q[0]||{};if(typeof C==="function"){super(C(re));return}super(Object.assign({},C,re,re.userAgent&&C.userAgent?{userAgent:`${re.userAgent} ${C.userAgent}`}:null))}};return q}static{this.plugins=[]}static plugin(...C){const q=this.plugins;const re=class extends(this){static{this.plugins=q.concat(C.filter((C=>!q.includes(C))))}};return re}constructor(C={}){const q=new Er.Collection;const re={baseUrl:Ir.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},C.request,{hook:q.bind(null,"request")}),mediaType:{previews:[],format:""}};re.headers["user-agent"]=C.userAgent?`${C.userAgent} ${Dr}`:Dr;if(C.baseUrl){re.baseUrl=C.baseUrl}if(C.previews){re.mediaType.previews=C.previews}if(C.timeZone){re.headers["time-zone"]=C.timeZone}this.request=Ir.request.defaults(re);this.graphql=(0,Br.withCustomRequest)(this.request).defaults(re);this.log=Object.assign({debug:noop,info:noop,warn:Qr,error:Fr},C.log);this.hook=q;if(!C.authStrategy){if(!C.auth){this.auth=async()=>({type:"unauthenticated"})}else{const re=(0,kr.createTokenAuth)(C.auth);q.wrap("request",re.hook);this.auth=re}}else{const{authStrategy:re,...ae}=C;const Ue=re(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:ae},C.auth));q.wrap("request",Ue.hook);this.auth=Ue}const ae=this.constructor;for(let q=0;q{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{endpoint:()=>Pr});C.exports=__toCommonJS(Wt);var Ar=re(33843);var Er="9.0.5";var Ir=`octokit-endpoint.js/${Er} ${(0,Ar.getUserAgent)()}`;var Br={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ir},mediaType:{format:""}};function lowercaseKeys(C){if(!C){return{}}return Object.keys(C).reduce(((q,re)=>{q[re.toLowerCase()]=C[re];return q}),{})}function isPlainObject(C){if(typeof C!=="object"||C===null)return false;if(Object.prototype.toString.call(C)!=="[object Object]")return false;const q=Object.getPrototypeOf(C);if(q===null)return true;const re=Object.prototype.hasOwnProperty.call(q,"constructor")&&q.constructor;return typeof re==="function"&&re instanceof re&&Function.prototype.call(re)===Function.prototype.call(C)}function mergeDeep(C,q){const re=Object.assign({},C);Object.keys(q).forEach((ae=>{if(isPlainObject(q[ae])){if(!(ae in C))Object.assign(re,{[ae]:q[ae]});else re[ae]=mergeDeep(C[ae],q[ae])}else{Object.assign(re,{[ae]:q[ae]})}}));return re}function removeUndefinedProperties(C){for(const q in C){if(C[q]===void 0){delete C[q]}}return C}function merge(C,q,re){if(typeof q==="string"){let[C,ae]=q.split(" ");re=Object.assign(ae?{method:C,url:ae}:{url:C},re)}else{re=Object.assign({},q)}re.headers=lowercaseKeys(re.headers);removeUndefinedProperties(re);removeUndefinedProperties(re.headers);const ae=mergeDeep(C||{},re);if(re.url==="/graphql"){if(C&&C.mediaType.previews?.length){ae.mediaType.previews=C.mediaType.previews.filter((C=>!ae.mediaType.previews.includes(C))).concat(ae.mediaType.previews)}ae.mediaType.previews=(ae.mediaType.previews||[]).map((C=>C.replace(/-preview/,"")))}return ae}function addQueryParameters(C,q){const re=/\?/.test(C)?"&":"?";const ae=Object.keys(q);if(ae.length===0){return C}return C+re+ae.map((C=>{if(C==="q"){return"q="+q.q.split("+").map(encodeURIComponent).join("+")}return`${C}=${encodeURIComponent(q[C])}`})).join("&")}var kr=/\{[^}]+\}/g;function removeNonChars(C){return C.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(C){const q=C.match(kr);if(!q){return[]}return q.map(removeNonChars).reduce(((C,q)=>C.concat(q)),[])}function omit(C,q){const re={__proto__:null};for(const ae of Object.keys(C)){if(q.indexOf(ae)===-1){re[ae]=C[ae]}}return re}function encodeReserved(C){return C.split(/(%[0-9A-Fa-f]{2})/g).map((function(C){if(!/%[0-9A-Fa-f]/.test(C)){C=encodeURI(C).replace(/%5B/g,"[").replace(/%5D/g,"]")}return C})).join("")}function encodeUnreserved(C){return encodeURIComponent(C).replace(/[!'()*]/g,(function(C){return"%"+C.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(C,q,re){q=C==="+"||C==="#"?encodeReserved(q):encodeUnreserved(q);if(re){return encodeUnreserved(re)+"="+q}else{return q}}function isDefined(C){return C!==void 0&&C!==null}function isKeyOperator(C){return C===";"||C==="&"||C==="?"}function getValues(C,q,re,ae){var Ue=C[re],lt=[];if(isDefined(Ue)&&Ue!==""){if(typeof Ue==="string"||typeof Ue==="number"||typeof Ue==="boolean"){Ue=Ue.toString();if(ae&&ae!=="*"){Ue=Ue.substring(0,parseInt(ae,10))}lt.push(encodeValue(q,Ue,isKeyOperator(q)?re:""))}else{if(ae==="*"){if(Array.isArray(Ue)){Ue.filter(isDefined).forEach((function(C){lt.push(encodeValue(q,C,isKeyOperator(q)?re:""))}))}else{Object.keys(Ue).forEach((function(C){if(isDefined(Ue[C])){lt.push(encodeValue(q,Ue[C],C))}}))}}else{const C=[];if(Array.isArray(Ue)){Ue.filter(isDefined).forEach((function(re){C.push(encodeValue(q,re))}))}else{Object.keys(Ue).forEach((function(re){if(isDefined(Ue[re])){C.push(encodeUnreserved(re));C.push(encodeValue(q,Ue[re].toString()))}}))}if(isKeyOperator(q)){lt.push(encodeUnreserved(re)+"="+C.join(","))}else if(C.length!==0){lt.push(C.join(","))}}}}else{if(q===";"){if(isDefined(Ue)){lt.push(encodeUnreserved(re))}}else if(Ue===""&&(q==="&"||q==="?")){lt.push(encodeUnreserved(re)+"=")}else if(Ue===""){lt.push("")}}return lt}function parseUrl(C){return{expand:expand.bind(null,C)}}function expand(C,q){var re=["+","#",".","/",";","?","&"];C=C.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(C,ae,Ue){if(ae){let C="";const Ue=[];if(re.indexOf(ae.charAt(0))!==-1){C=ae.charAt(0);ae=ae.substr(1)}ae.split(/,/g).forEach((function(re){var ae=/([^:\*]*)(?::(\d+)|(\*))?/.exec(re);Ue.push(getValues(q,C,ae[1],ae[2]||ae[3]))}));if(C&&C!=="+"){var lt=",";if(C==="?"){lt="&"}else if(C!=="#"){lt=C}return(Ue.length!==0?C:"")+Ue.join(lt)}else{return Ue.join(",")}}else{return encodeReserved(Ue)}}));if(C==="/"){return C}else{return C.replace(/\/$/,"")}}function parse(C){let q=C.method.toUpperCase();let re=(C.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let ae=Object.assign({},C.headers);let Ue;let lt=omit(C,["method","baseUrl","url","headers","request","mediaType"]);const Pt=extractUrlVariableNames(re);re=parseUrl(re).expand(lt);if(!/^http/.test(re)){re=C.baseUrl+re}const Wt=Object.keys(C).filter((C=>Pt.includes(C))).concat("baseUrl");const Ar=omit(lt,Wt);const Er=/application\/octet-stream/i.test(ae.accept);if(!Er){if(C.mediaType.format){ae.accept=ae.accept.split(/,/).map((q=>q.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${C.mediaType.format}`))).join(",")}if(re.endsWith("/graphql")){if(C.mediaType.previews?.length){const q=ae.accept.match(/[\w-]+(?=-preview)/g)||[];ae.accept=q.concat(C.mediaType.previews).map((q=>{const re=C.mediaType.format?`.${C.mediaType.format}`:"+json";return`application/vnd.github.${q}-preview${re}`})).join(",")}}}if(["GET","HEAD"].includes(q)){re=addQueryParameters(re,Ar)}else{if("data"in Ar){Ue=Ar.data}else{if(Object.keys(Ar).length){Ue=Ar}}}if(!ae["content-type"]&&typeof Ue!=="undefined"){ae["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(q)&&typeof Ue==="undefined"){Ue=""}return Object.assign({method:q,url:re,headers:ae},typeof Ue!=="undefined"?{body:Ue}:null,C.request?{request:C.request}:null)}function endpointWithDefaults(C,q,re){return parse(merge(C,q,re))}function withDefaults(C,q){const re=merge(C,q);const ae=endpointWithDefaults.bind(null,re);return Object.assign(ae,{DEFAULTS:re,defaults:withDefaults.bind(null,re),merge:merge.bind(null,re),parse:parse})}var Pr=withDefaults(null,Br);0&&0},70007:(C,q,re)=>{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{GraphqlResponseError:()=>Pr,graphql:()=>xr,withCustomRequest:()=>withCustomRequest});C.exports=__toCommonJS(Wt);var Ar=re(66255);var Er=re(33843);var Ir="7.1.0";var Br=re(66255);var kr=re(66255);function _buildMessageForResponseErrors(C){return`Request failed due to following response errors:\n`+C.errors.map((C=>` - ${C.message}`)).join("\n")}var Pr=class extends Error{constructor(C,q,re){super(_buildMessageForResponseErrors(re));this.request=C;this.headers=q;this.response=re;this.name="GraphqlResponseError";this.errors=re.errors;this.data=re.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var Qr=["method","baseUrl","url","headers","request","query","mediaType"];var Fr=["query","method","url"];var Dr=/\/api\/v3\/?$/;function graphql(C,q,re){if(re){if(typeof q==="string"&&"query"in re){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const C in re){if(!Fr.includes(C))continue;return Promise.reject(new Error(`[@octokit/graphql] "${C}" cannot be used as variable name`))}}const ae=typeof q==="string"?Object.assign({query:q},re):q;const Ue=Object.keys(ae).reduce(((C,q)=>{if(Qr.includes(q)){C[q]=ae[q];return C}if(!C.variables){C.variables={}}C.variables[q]=ae[q];return C}),{});const lt=ae.baseUrl||C.endpoint.DEFAULTS.baseUrl;if(Dr.test(lt)){Ue.url=lt.replace(Dr,"/api/graphql")}return C(Ue).then((C=>{if(C.data.errors){const q={};for(const re of Object.keys(C.headers)){q[re]=C.headers[re]}throw new Pr(Ue,q,C.data)}return C.data.data}))}function withDefaults(C,q){const re=C.defaults(q);const newApi=(C,q)=>graphql(re,C,q);return Object.assign(newApi,{defaults:withDefaults.bind(null,re),endpoint:re.endpoint})}var xr=withDefaults(Ar.request,{headers:{"user-agent":`octokit-graphql.js/${Ir} ${(0,Er.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(C){return withDefaults(C,{method:"POST",url:"/graphql"})}0&&0},38082:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{composePaginateRest:()=>Wt,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>Ar});C.exports=__toCommonJS(lt);var Pt="9.2.1";function normalizePaginatedListResponse(C){if(!C.data){return{...C,data:[]}}const q="total_count"in C.data&&!("url"in C.data);if(!q)return C;const re=C.data.incomplete_results;const ae=C.data.repository_selection;const Ue=C.data.total_count;delete C.data.incomplete_results;delete C.data.repository_selection;delete C.data.total_count;const lt=Object.keys(C.data)[0];const Pt=C.data[lt];C.data=Pt;if(typeof re!=="undefined"){C.data.incomplete_results=re}if(typeof ae!=="undefined"){C.data.repository_selection=ae}C.data.total_count=Ue;return C}function iterator(C,q,re){const ae=typeof q==="function"?q.endpoint(re):C.request.endpoint(q,re);const Ue=typeof q==="function"?q:C.request;const lt=ae.method;const Pt=ae.headers;let Wt=ae.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!Wt)return{done:true};try{const C=await Ue({method:lt,url:Wt,headers:Pt});const q=normalizePaginatedListResponse(C);Wt=((q.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:q}}catch(C){if(C.status!==409)throw C;Wt="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(C,q,re,ae){if(typeof re==="function"){ae=re;re=void 0}return gather(C,[],iterator(C,q,re)[Symbol.asyncIterator](),ae)}function gather(C,q,re,ae){return re.next().then((Ue=>{if(Ue.done){return q}let lt=false;function done(){lt=true}q=q.concat(ae?ae(Ue.value,done):Ue.value.data);if(lt){return q}return gather(C,q,re,ae)}))}var Wt=Object.assign(paginate,{iterator:iterator});var Ar=["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(C){if(typeof C==="string"){return Ar.includes(C)}else{return false}}function paginateRest(C){return{paginate:Object.assign(paginate.bind(null,C),{iterator:iterator.bind(null,C)})}}paginateRest.VERSION=Pt;0&&0},6966:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{requestLog:()=>requestLog});C.exports=__toCommonJS(lt);var Pt="4.0.1";function requestLog(C){C.hook.wrap("request",((q,re)=>{C.log.debug("request",re);const ae=Date.now();const Ue=C.request.endpoint.parse(re);const lt=Ue.url.replace(re.baseUrl,"");return q(re).then((q=>{C.log.info(`${Ue.method} ${lt} - ${q.status} in ${Date.now()-ae}ms`);return q})).catch((q=>{C.log.info(`${Ue.method} ${lt} - ${q.status} in ${Date.now()-ae}ms`);throw q}))}))}requestLog.VERSION=Pt;0&&0},84935:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});C.exports=__toCommonJS(lt);var Pt="10.4.1";var Wt={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 Ar=Wt;var Er=new Map;for(const[C,q]of Object.entries(Ar)){for(const[re,ae]of Object.entries(q)){const[q,Ue,lt]=ae;const[Pt,Wt]=q.split(/ /);const Ar=Object.assign({method:Pt,url:Wt},Ue);if(!Er.has(C)){Er.set(C,new Map)}Er.get(C).set(re,{scope:C,methodName:re,endpointDefaults:Ar,decorations:lt})}}var Ir={has({scope:C},q){return Er.get(C).has(q)},getOwnPropertyDescriptor(C,q){return{value:this.get(C,q),configurable:true,writable:true,enumerable:true}},defineProperty(C,q,re){Object.defineProperty(C.cache,q,re);return true},deleteProperty(C,q){delete C.cache[q];return true},ownKeys({scope:C}){return[...Er.get(C).keys()]},set(C,q,re){return C.cache[q]=re},get({octokit:C,scope:q,cache:re},ae){if(re[ae]){return re[ae]}const Ue=Er.get(q).get(ae);if(!Ue){return void 0}const{endpointDefaults:lt,decorations:Pt}=Ue;if(Pt){re[ae]=decorate(C,q,ae,lt,Pt)}else{re[ae]=C.request.defaults(lt)}return re[ae]}};function endpointsToMethods(C){const q={};for(const re of Er.keys()){q[re]=new Proxy({octokit:C,scope:re,cache:{}},Ir)}return q}function decorate(C,q,re,ae,Ue){const lt=C.request.defaults(ae);function withDecorations(...ae){let Pt=lt.endpoint.merge(...ae);if(Ue.mapToData){Pt=Object.assign({},Pt,{data:Pt[Ue.mapToData],[Ue.mapToData]:void 0});return lt(Pt)}if(Ue.renamed){const[ae,lt]=Ue.renamed;C.log.warn(`octokit.${q}.${re}() has been renamed to octokit.${ae}.${lt}()`)}if(Ue.deprecated){C.log.warn(Ue.deprecated)}if(Ue.renamedParameters){const Pt=lt.endpoint.merge(...ae);for(const[ae,lt]of Object.entries(Ue.renamedParameters)){if(ae in Pt){C.log.warn(`"${ae}" parameter is deprecated for "octokit.${q}.${re}()". Use "${lt}" instead`);if(!(lt in Pt)){Pt[lt]=Pt[ae]}delete Pt[ae]}}return lt(Pt)}return lt(...ae)}return Object.assign(withDecorations,lt)}function restEndpointMethods(C){const q=endpointsToMethods(C);return{rest:q}}restEndpointMethods.VERSION=Pt;function legacyRestEndpointMethods(C){const q=endpointsToMethods(C);return{...q,rest:q}}legacyRestEndpointMethods.VERSION=Pt;0&&0},66255:(C,q,re)=>{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{request:()=>kr});C.exports=__toCommonJS(Wt);var Ar=re(54471);var Er=re(33843);var Ir="8.4.0";function isPlainObject(C){if(typeof C!=="object"||C===null)return false;if(Object.prototype.toString.call(C)!=="[object Object]")return false;const q=Object.getPrototypeOf(C);if(q===null)return true;const re=Object.prototype.hasOwnProperty.call(q,"constructor")&&q.constructor;return typeof re==="function"&&re instanceof re&&Function.prototype.call(re)===Function.prototype.call(C)}var Br=re(54071);function getBufferResponse(C){return C.arrayBuffer()}function fetchWrapper(C){var q,re,ae,Ue;const lt=C.request&&C.request.log?C.request.log:console;const Pt=((q=C.request)==null?void 0:q.parseSuccessResponseBody)!==false;if(isPlainObject(C.body)||Array.isArray(C.body)){C.body=JSON.stringify(C.body)}let Wt={};let Ar;let Er;let{fetch:Ir}=globalThis;if((re=C.request)==null?void 0:re.fetch){Ir=C.request.fetch}if(!Ir){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 Ir(C.url,{method:C.method,body:C.body,redirect:(ae=C.request)==null?void 0:ae.redirect,headers:C.headers,signal:(Ue=C.request)==null?void 0:Ue.signal,...C.body&&{duplex:"half"}}).then((async q=>{Er=q.url;Ar=q.status;for(const C of q.headers){Wt[C[0]]=C[1]}if("deprecation"in Wt){const q=Wt.link&&Wt.link.match(/<([^>]+)>; rel="deprecation"/);const re=q&&q.pop();lt.warn(`[@octokit/request] "${C.method} ${C.url}" is deprecated. It is scheduled to be removed on ${Wt.sunset}${re?`. See ${re}`:""}`)}if(Ar===204||Ar===205){return}if(C.method==="HEAD"){if(Ar<400){return}throw new Br.RequestError(q.statusText,Ar,{response:{url:Er,status:Ar,headers:Wt,data:void 0},request:C})}if(Ar===304){throw new Br.RequestError("Not modified",Ar,{response:{url:Er,status:Ar,headers:Wt,data:await getResponseData(q)},request:C})}if(Ar>=400){const re=await getResponseData(q);const ae=new Br.RequestError(toErrorMessage(re),Ar,{response:{url:Er,status:Ar,headers:Wt,data:re},request:C});throw ae}return Pt?await getResponseData(q):q.body})).then((C=>({status:Ar,url:Er,headers:Wt,data:C}))).catch((q=>{if(q instanceof Br.RequestError)throw q;else if(q.name==="AbortError")throw q;let re=q.message;if(q.name==="TypeError"&&"cause"in q){if(q.cause instanceof Error){re=q.cause.message}else if(typeof q.cause==="string"){re=q.cause}}throw new Br.RequestError(re,500,{request:C})}))}async function getResponseData(C){const q=C.headers.get("content-type");if(/application\/json/.test(q)){return C.json().catch((()=>C.text())).catch((()=>""))}if(!q||/^text\/|charset=utf-8$/.test(q)){return C.text()}return getBufferResponse(C)}function toErrorMessage(C){if(typeof C==="string")return C;let q;if("documentation_url"in C){q=` - ${C.documentation_url}`}else{q=""}if("message"in C){if(Array.isArray(C.errors)){return`${C.message}: ${C.errors.map(JSON.stringify).join(", ")}${q}`}return`${C.message}${q}`}return`Unknown error: ${JSON.stringify(C)}`}function withDefaults(C,q){const re=C.defaults(q);const newApi=function(C,q){const ae=re.merge(C,q);if(!ae.request||!ae.request.hook){return fetchWrapper(re.parse(ae))}const request2=(C,q)=>fetchWrapper(re.parse(re.merge(C,q)));Object.assign(request2,{endpoint:re,defaults:withDefaults.bind(null,re)});return ae.request.hook(request2,ae)};return Object.assign(newApi,{endpoint:re,defaults:withDefaults.bind(null,re)})}var kr=withDefaults(Ar.endpoint,{headers:{"user-agent":`octokit-request.js/${Ir} ${(0,Er.getUserAgent)()}`}});0&&0},54071:(C,q,re)=>{var ae=Object.create;var Ue=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var Pt=Object.getOwnPropertyNames;var Wt=Object.getPrototypeOf;var Ar=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)Ue(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,ae)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Wt of Pt(q))if(!Ar.call(C,Wt)&&Wt!==re)Ue(C,Wt,{get:()=>q[Wt],enumerable:!(ae=lt(q,Wt))||ae.enumerable})}return C};var __toESM=(C,q,re)=>(re=C!=null?ae(Wt(C)):{},__copyProps(q||!C||!C.__esModule?Ue(re,"default",{value:C,enumerable:true}):re,C));var __toCommonJS=C=>__copyProps(Ue({},"__esModule",{value:true}),C);var Er={};__export(Er,{RequestError:()=>Qr});C.exports=__toCommonJS(Er);var Ir=re(14150);var Br=__toESM(re(55560));var kr=(0,Br.default)((C=>console.warn(C)));var Pr=(0,Br.default)((C=>console.warn(C)));var Qr=class extends Error{constructor(C,q,re){super(C);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=q;let ae;if("headers"in re&&typeof re.headers!=="undefined"){ae=re.headers}if("response"in re){this.response=re.response;ae=re.response.headers}const Ue=Object.assign({},re.request);if(re.request.headers.authorization){Ue.headers=Object.assign({},re.request.headers,{authorization:re.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}Ue.url=Ue.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=Ue;Object.defineProperty(this,"code",{get(){kr(new Ir.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return q}});Object.defineProperty(this,"headers",{get(){Pr(new Ir.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return ae||{}}})}};0&&0},65772:(C,q,re)=>{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{Octokit:()=>Pr});C.exports=__toCommonJS(Wt);var Ar=re(61897);var Er=re(6966);var Ir=re(77198);var Br=re(33779);var kr="20.1.1";var Pr=Ar.Octokit.plugin(Er.requestLog,Br.legacyRestEndpointMethods,Ir.paginateRest).defaults({userAgent:`octokit-rest.js/${kr}`});0&&0},77198:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{composePaginateRest:()=>Wt,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>Ar});C.exports=__toCommonJS(lt);var Pt="11.3.1";function normalizePaginatedListResponse(C){if(!C.data){return{...C,data:[]}}const q="total_count"in C.data&&!("url"in C.data);if(!q)return C;const re=C.data.incomplete_results;const ae=C.data.repository_selection;const Ue=C.data.total_count;delete C.data.incomplete_results;delete C.data.repository_selection;delete C.data.total_count;const lt=Object.keys(C.data)[0];const Pt=C.data[lt];C.data=Pt;if(typeof re!=="undefined"){C.data.incomplete_results=re}if(typeof ae!=="undefined"){C.data.repository_selection=ae}C.data.total_count=Ue;return C}function iterator(C,q,re){const ae=typeof q==="function"?q.endpoint(re):C.request.endpoint(q,re);const Ue=typeof q==="function"?q:C.request;const lt=ae.method;const Pt=ae.headers;let Wt=ae.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!Wt)return{done:true};try{const C=await Ue({method:lt,url:Wt,headers:Pt});const q=normalizePaginatedListResponse(C);Wt=((q.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:q}}catch(C){if(C.status!==409)throw C;Wt="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(C,q,re,ae){if(typeof re==="function"){ae=re;re=void 0}return gather(C,[],iterator(C,q,re)[Symbol.asyncIterator](),ae)}function gather(C,q,re,ae){return re.next().then((Ue=>{if(Ue.done){return q}let lt=false;function done(){lt=true}q=q.concat(ae?ae(Ue.value,done):Ue.value.data);if(lt){return q}return gather(C,q,re,ae)}))}var Wt=Object.assign(paginate,{iterator:iterator});var Ar=["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(C){if(typeof C==="string"){return Ar.includes(C)}else{return false}}function paginateRest(C){return{paginate:Object.assign(paginate.bind(null,C),{iterator:iterator.bind(null,C)})}}paginateRest.VERSION=Pt;0&&0},33779:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});C.exports=__toCommonJS(lt);var Pt="13.2.2";var Wt={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 Ar=Wt;var Er=new Map;for(const[C,q]of Object.entries(Ar)){for(const[re,ae]of Object.entries(q)){const[q,Ue,lt]=ae;const[Pt,Wt]=q.split(/ /);const Ar=Object.assign({method:Pt,url:Wt},Ue);if(!Er.has(C)){Er.set(C,new Map)}Er.get(C).set(re,{scope:C,methodName:re,endpointDefaults:Ar,decorations:lt})}}var Ir={has({scope:C},q){return Er.get(C).has(q)},getOwnPropertyDescriptor(C,q){return{value:this.get(C,q),configurable:true,writable:true,enumerable:true}},defineProperty(C,q,re){Object.defineProperty(C.cache,q,re);return true},deleteProperty(C,q){delete C.cache[q];return true},ownKeys({scope:C}){return[...Er.get(C).keys()]},set(C,q,re){return C.cache[q]=re},get({octokit:C,scope:q,cache:re},ae){if(re[ae]){return re[ae]}const Ue=Er.get(q).get(ae);if(!Ue){return void 0}const{endpointDefaults:lt,decorations:Pt}=Ue;if(Pt){re[ae]=decorate(C,q,ae,lt,Pt)}else{re[ae]=C.request.defaults(lt)}return re[ae]}};function endpointsToMethods(C){const q={};for(const re of Er.keys()){q[re]=new Proxy({octokit:C,scope:re,cache:{}},Ir)}return q}function decorate(C,q,re,ae,Ue){const lt=C.request.defaults(ae);function withDecorations(...ae){let Pt=lt.endpoint.merge(...ae);if(Ue.mapToData){Pt=Object.assign({},Pt,{data:Pt[Ue.mapToData],[Ue.mapToData]:void 0});return lt(Pt)}if(Ue.renamed){const[ae,lt]=Ue.renamed;C.log.warn(`octokit.${q}.${re}() has been renamed to octokit.${ae}.${lt}()`)}if(Ue.deprecated){C.log.warn(Ue.deprecated)}if(Ue.renamedParameters){const Pt=lt.endpoint.merge(...ae);for(const[ae,lt]of Object.entries(Ue.renamedParameters)){if(ae in Pt){C.log.warn(`"${ae}" parameter is deprecated for "octokit.${q}.${re}()". Use "${lt}" instead`);if(!(lt in Pt)){Pt[lt]=Pt[ae]}delete Pt[ae]}}return lt(Pt)}return lt(...ae)}return Object.assign(withDecorations,lt)}function restEndpointMethods(C){const q=endpointsToMethods(C);return{rest:q}}restEndpointMethods.VERSION=Pt;function legacyRestEndpointMethods(C){const q=endpointsToMethods(C);return{...q,rest:q}}legacyRestEndpointMethods.VERSION=Pt;0&&0},75364:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeCompiler=q.Policy=q.TypeCompilerTypeGuardError=q.TypeCompilerUnknownTypeError=q.TypeCheck=void 0;const ae=re(50038);const Ue=re(65507);const lt=re(82129);const Pt=re(26113);const Wt=re(40886);const Ar=re(7210);const Er=re(97034);const Ir=re(51786);const Br=re(73373);const kr=re(82486);const Pr=re(54025);const Qr=re(17479);const Fr=re(70384);class TypeCheck{constructor(C,q,re,Ue){this.schema=C;this.references=q;this.checkFunc=re;this.code=Ue;this.hasTransform=(0,ae.HasTransform)(C,q)}Code(){return this.code}Errors(C){return(0,Ue.Errors)(this.schema,this.references,C)}Check(C){return this.checkFunc(C)}Decode(C){if(!this.checkFunc(C))throw new ae.TransformDecodeCheckError(this.schema,C,this.Errors(C).First());return this.hasTransform?(0,ae.TransformDecode)(this.schema,this.references,C):C}Encode(C){const q=this.hasTransform?(0,ae.TransformEncode)(this.schema,this.references,C):C;if(!this.checkFunc(q))throw new ae.TransformEncodeCheckError(this.schema,C,this.Errors(C).First());return q}}q.TypeCheck=TypeCheck;var Dr;(function(C){function DollarSign(C){return C===36}C.DollarSign=DollarSign;function IsUnderscore(C){return C===95}C.IsUnderscore=IsUnderscore;function IsAlpha(C){return C>=65&&C<=90||C>=97&&C<=122}C.IsAlpha=IsAlpha;function IsNumeric(C){return C>=48&&C<=57}C.IsNumeric=IsNumeric})(Dr||(Dr={}));var xr;(function(C){function IsFirstCharacterNumeric(C){if(C.length===0)return false;return Dr.IsNumeric(C.charCodeAt(0))}function IsAccessor(C){if(IsFirstCharacterNumeric(C))return false;for(let q=0;q= ${C.minItems}`;const lt=CreateExpression(C.items,q,"value");yield`${re}.every((${ae}) => ${lt})`;if((0,Fr.IsSchema)(C.contains)||(0,Qr.IsNumber)(C.minContains)||(0,Qr.IsNumber)(C.maxContains)){const lt=(0,Fr.IsSchema)(C.contains)?C.contains:(0,Pr.Never)();const Pt=CreateExpression(lt,q,"value");const Wt=(0,Qr.IsNumber)(C.minContains)?[`(count >= ${C.minContains})`]:[];const Ar=(0,Qr.IsNumber)(C.maxContains)?[`(count <= ${C.maxContains})`]:[];const Er=`const count = value.reduce((${Ue}, ${ae}) => ${Pt} ? acc + 1 : acc, 0)`;const Ir=[`(count > 0)`,...Wt,...Ar].join(" && ");yield`((${ae}) => { ${Er}; return ${Ir}})(${re})`}if(C.uniqueItems===true){const C=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const q=`const set = new Set(); for(const element of value) { ${C} }`;yield`((${ae}) => { ${q} )(${re})`}}function*FromAsyncIterator(C,q,re){yield`(typeof value === 'object' && Symbol.asyncIterator in ${re})`}function*FromBigInt(C,q,re){yield`(typeof ${re} === 'bigint')`;if((0,Qr.IsBigInt)(C.exclusiveMaximum))yield`${re} < BigInt(${C.exclusiveMaximum})`;if((0,Qr.IsBigInt)(C.exclusiveMinimum))yield`${re} > BigInt(${C.exclusiveMinimum})`;if((0,Qr.IsBigInt)(C.maximum))yield`${re} <= BigInt(${C.maximum})`;if((0,Qr.IsBigInt)(C.minimum))yield`${re} >= BigInt(${C.minimum})`;if((0,Qr.IsBigInt)(C.multipleOf))yield`(${re} % BigInt(${C.multipleOf})) === 0`}function*FromBoolean(C,q,re){yield`(typeof ${re} === 'boolean')`}function*FromConstructor(C,q,re){yield*Visit(C.returns,q,`${re}.prototype`)}function*FromDate(C,q,re){yield`(${re} instanceof Date) && Number.isFinite(${re}.getTime())`;if((0,Qr.IsNumber)(C.exclusiveMaximumTimestamp))yield`${re}.getTime() < ${C.exclusiveMaximumTimestamp}`;if((0,Qr.IsNumber)(C.exclusiveMinimumTimestamp))yield`${re}.getTime() > ${C.exclusiveMinimumTimestamp}`;if((0,Qr.IsNumber)(C.maximumTimestamp))yield`${re}.getTime() <= ${C.maximumTimestamp}`;if((0,Qr.IsNumber)(C.minimumTimestamp))yield`${re}.getTime() >= ${C.minimumTimestamp}`;if((0,Qr.IsNumber)(C.multipleOfTimestamp))yield`(${re}.getTime() % ${C.multipleOfTimestamp}) === 0`}function*FromFunction(C,q,re){yield`(typeof ${re} === 'function')`}function*FromInteger(C,q,re){yield`Number.isInteger(${re})`;if((0,Qr.IsNumber)(C.exclusiveMaximum))yield`${re} < ${C.exclusiveMaximum}`;if((0,Qr.IsNumber)(C.exclusiveMinimum))yield`${re} > ${C.exclusiveMinimum}`;if((0,Qr.IsNumber)(C.maximum))yield`${re} <= ${C.maximum}`;if((0,Qr.IsNumber)(C.minimum))yield`${re} >= ${C.minimum}`;if((0,Qr.IsNumber)(C.multipleOf))yield`(${re} % ${C.multipleOf}) === 0`}function*FromIntersect(C,q,re){const ae=C.allOf.map((C=>CreateExpression(C,q,re))).join(" && ");if(C.unevaluatedProperties===false){const q=CreateVariable(`${new RegExp((0,Br.KeyOfPattern)(C))};`);const Ue=`Object.getOwnPropertyNames(${re}).every(key => ${q}.test(key))`;yield`(${ae} && ${Ue})`}else if((0,Fr.IsSchema)(C.unevaluatedProperties)){const Ue=CreateVariable(`${new RegExp((0,Br.KeyOfPattern)(C))};`);const lt=`Object.getOwnPropertyNames(${re}).every(key => ${Ue}.test(key) || ${CreateExpression(C.unevaluatedProperties,q,`${re}[key]`)})`;yield`(${ae} && ${lt})`}else{yield`(${ae})`}}function*FromIterator(C,q,re){yield`(typeof value === 'object' && Symbol.iterator in ${re})`}function*FromLiteral(C,q,re){if(typeof C.const==="number"||typeof C.const==="boolean"){yield`(${re} === ${C.const})`}else{yield`(${re} === '${Ur.Escape(C.const)}')`}}function*FromNever(C,q,re){yield`false`}function*FromNot(C,q,re){const ae=CreateExpression(C.not,q,re);yield`(!${ae})`}function*FromNull(C,q,re){yield`(${re} === null)`}function*FromNumber(C,q,re){yield Nr.IsNumberLike(re);if((0,Qr.IsNumber)(C.exclusiveMaximum))yield`${re} < ${C.exclusiveMaximum}`;if((0,Qr.IsNumber)(C.exclusiveMinimum))yield`${re} > ${C.exclusiveMinimum}`;if((0,Qr.IsNumber)(C.maximum))yield`${re} <= ${C.maximum}`;if((0,Qr.IsNumber)(C.minimum))yield`${re} >= ${C.minimum}`;if((0,Qr.IsNumber)(C.multipleOf))yield`(${re} % ${C.multipleOf}) === 0`}function*FromObject(C,q,re){yield Nr.IsObjectLike(re);if((0,Qr.IsNumber)(C.minProperties))yield`Object.getOwnPropertyNames(${re}).length >= ${C.minProperties}`;if((0,Qr.IsNumber)(C.maxProperties))yield`Object.getOwnPropertyNames(${re}).length <= ${C.maxProperties}`;const ae=Object.getOwnPropertyNames(C.properties);for(const Ue of ae){const ae=xr.Encode(re,Ue);const lt=C.properties[Ue];if(C.required&&C.required.includes(Ue)){yield*Visit(lt,q,ae);if((0,kr.ExtendsUndefinedCheck)(lt)||IsAnyOrUnknown(lt))yield`('${Ue}' in ${re})`}else{const C=CreateExpression(lt,q,ae);yield Nr.IsExactOptionalProperty(re,Ue,C)}}if(C.additionalProperties===false){if(C.required&&C.required.length===ae.length){yield`Object.getOwnPropertyNames(${re}).length === ${ae.length}`}else{const C=`[${ae.map((C=>`'${C}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${re}).every(key => ${C}.includes(key))`}}if(typeof C.additionalProperties==="object"){const Ue=CreateExpression(C.additionalProperties,q,`${re}[key]`);const lt=`[${ae.map((C=>`'${C}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${re}).every(key => ${lt}.includes(key) || ${Ue}))`}}function*FromPromise(C,q,re){yield`(typeof value === 'object' && typeof ${re}.then === 'function')`}function*FromRecord(C,q,re){yield Nr.IsRecordLike(re);if((0,Qr.IsNumber)(C.minProperties))yield`Object.getOwnPropertyNames(${re}).length >= ${C.minProperties}`;if((0,Qr.IsNumber)(C.maxProperties))yield`Object.getOwnPropertyNames(${re}).length <= ${C.maxProperties}`;const[ae,Ue]=Object.entries(C.patternProperties)[0];const lt=CreateVariable(`${new RegExp(ae)}`);const Pt=CreateExpression(Ue,q,"value");const Wt=(0,Fr.IsSchema)(C.additionalProperties)?CreateExpression(C.additionalProperties,q,re):C.additionalProperties===false?"false":"true";const Ar=`(${lt}.test(key) ? ${Pt} : ${Wt})`;yield`(Object.entries(${re}).every(([key, value]) => ${Ar}))`}function*FromRef(C,re,ae){const Ue=(0,Wt.Deref)(C,re);if(q.functions.has(C.$ref))return yield`${CreateFunctionName(C.$ref)}(${ae})`;yield*Visit(Ue,re,ae)}function*FromRegExp(C,q,re){const ae=CreateVariable(`${new RegExp(C.source,C.flags)};`);yield`(typeof ${re} === 'string')`;if((0,Qr.IsNumber)(C.maxLength))yield`${re}.length <= ${C.maxLength}`;if((0,Qr.IsNumber)(C.minLength))yield`${re}.length >= ${C.minLength}`;yield`${ae}.test(${re})`}function*FromString(C,q,re){yield`(typeof ${re} === 'string')`;if((0,Qr.IsNumber)(C.maxLength))yield`${re}.length <= ${C.maxLength}`;if((0,Qr.IsNumber)(C.minLength))yield`${re}.length >= ${C.minLength}`;if(C.pattern!==undefined){const q=CreateVariable(`${new RegExp(C.pattern)};`);yield`${q}.test(${re})`}if(C.format!==undefined){yield`format('${C.format}', ${re})`}}function*FromSymbol(C,q,re){yield`(typeof ${re} === 'symbol')`}function*FromTemplateLiteral(C,q,re){yield`(typeof ${re} === 'string')`;const ae=CreateVariable(`${new RegExp(C.pattern)};`);yield`${ae}.test(${re})`}function*FromThis(C,q,re){yield`${CreateFunctionName(C.$ref)}(${re})`}function*FromTuple(C,q,re){yield`Array.isArray(${re})`;if(C.items===undefined)return yield`${re}.length === 0`;yield`(${re}.length === ${C.maxItems})`;for(let ae=0;aeCreateExpression(C,q,re)));yield`(${ae.join(" || ")})`}function*FromUint8Array(C,q,re){yield`${re} instanceof Uint8Array`;if((0,Qr.IsNumber)(C.maxByteLength))yield`(${re}.length <= ${C.maxByteLength})`;if((0,Qr.IsNumber)(C.minByteLength))yield`(${re}.length >= ${C.minByteLength})`}function*FromUnknown(C,q,re){yield"true"}function*FromVoid(C,q,re){yield Nr.IsVoidLike(re)}function*FromKind(C,re,ae){const Ue=q.instances.size;q.instances.set(Ue,C);yield`kind('${C[Er.Kind]}', ${Ue}, ${ae})`}function*Visit(C,re,ae,Ue=true){const lt=(0,Qr.IsString)(C.$id)?[...re,C]:re;const Pt=C;if(Ue&&(0,Qr.IsString)(C.$id)){const Ue=CreateFunctionName(C.$id);if(q.functions.has(Ue)){return yield`${Ue}(${ae})`}else{const lt=CreateFunction(Ue,C,re,"value",false);q.functions.set(Ue,lt);return yield`${Ue}(${ae})`}}switch(Pt[Er.Kind]){case"Any":return yield*FromAny(Pt,lt,ae);case"Array":return yield*FromArray(Pt,lt,ae);case"AsyncIterator":return yield*FromAsyncIterator(Pt,lt,ae);case"BigInt":return yield*FromBigInt(Pt,lt,ae);case"Boolean":return yield*FromBoolean(Pt,lt,ae);case"Constructor":return yield*FromConstructor(Pt,lt,ae);case"Date":return yield*FromDate(Pt,lt,ae);case"Function":return yield*FromFunction(Pt,lt,ae);case"Integer":return yield*FromInteger(Pt,lt,ae);case"Intersect":return yield*FromIntersect(Pt,lt,ae);case"Iterator":return yield*FromIterator(Pt,lt,ae);case"Literal":return yield*FromLiteral(Pt,lt,ae);case"Never":return yield*FromNever(Pt,lt,ae);case"Not":return yield*FromNot(Pt,lt,ae);case"Null":return yield*FromNull(Pt,lt,ae);case"Number":return yield*FromNumber(Pt,lt,ae);case"Object":return yield*FromObject(Pt,lt,ae);case"Promise":return yield*FromPromise(Pt,lt,ae);case"Record":return yield*FromRecord(Pt,lt,ae);case"Ref":return yield*FromRef(Pt,lt,ae);case"RegExp":return yield*FromRegExp(Pt,lt,ae);case"String":return yield*FromString(Pt,lt,ae);case"Symbol":return yield*FromSymbol(Pt,lt,ae);case"TemplateLiteral":return yield*FromTemplateLiteral(Pt,lt,ae);case"This":return yield*FromThis(Pt,lt,ae);case"Tuple":return yield*FromTuple(Pt,lt,ae);case"Undefined":return yield*FromUndefined(Pt,lt,ae);case"Union":return yield*FromUnion(Pt,lt,ae);case"Uint8Array":return yield*FromUint8Array(Pt,lt,ae);case"Unknown":return yield*FromUnknown(Pt,lt,ae);case"Void":return yield*FromVoid(Pt,lt,ae);default:if(!Ir.TypeRegistry.Has(Pt[Er.Kind]))throw new TypeCompilerUnknownTypeError(C);return yield*FromKind(Pt,lt,ae)}}const q={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(C,q,re,ae=true){return`(${[...Visit(C,q,re,ae)].join(" && ")})`}function CreateFunctionName(C){return`check_${Mr.Encode(C)}`}function CreateVariable(C){const re=`local_${q.variables.size}`;q.variables.set(re,`const ${re} = ${C}`);return re}function CreateFunction(C,q,re,ae,Ue=true){const[lt,Pt]=["\n",C=>"".padStart(C," ")];const Wt=CreateParameter("value","any");const Ar=CreateReturns("boolean");const Er=[...Visit(q,re,ae,Ue)].map((C=>`${Pt(4)}${C}`)).join(` &&${lt}`);return`function ${C}(${Wt})${Ar} {${lt}${Pt(2)}return (${lt}${Er}${lt}${Pt(2)})\n}`}function CreateParameter(C,re){const ae=q.language==="typescript"?`: ${re}`:"";return`${C}${ae}`}function CreateReturns(C){return q.language==="typescript"?`: ${C}`:""}function Build(C,re,ae){const Ue=CreateFunction("check",C,re,"value");const lt=CreateParameter("value","any");const Pt=CreateReturns("boolean");const Wt=[...q.functions.values()];const Ar=[...q.variables.values()];const Er=(0,Qr.IsString)(C.$id)?`return function check(${lt})${Pt} {\n return ${CreateFunctionName(C.$id)}(value)\n}`:`return ${Ue}`;return[...Ar,...Wt,Er].join("\n")}function Code(...C){const re={language:"javascript"};const[ae,Ue,lt]=C.length===2&&(0,Qr.IsArray)(C[1])?[C[0],C[1],re]:C.length===2&&!(0,Qr.IsArray)(C[1])?[C[0],[],C[1]]:C.length===3?[C[0],C[1],C[2]]:C.length===1?[C[0],[],re]:[null,[],re];q.language=lt.language;q.variables.clear();q.functions.clear();q.instances.clear();if(!(0,Fr.IsSchema)(ae))throw new TypeCompilerTypeGuardError(ae);for(const C of Ue)if(!(0,Fr.IsSchema)(C))throw new TypeCompilerTypeGuardError(C);return Build(ae,Ue,lt)}C.Code=Code;function Compile(C,re=[]){const ae=Code(C,re,{language:"javascript"});const Ue=globalThis.Function("kind","format","hash",ae);const lt=new Map(q.instances);function typeRegistryFunction(C,q,re){if(!Ir.TypeRegistry.Has(C)||!lt.has(q))return false;const ae=Ir.TypeRegistry.Get(C);const Ue=lt.get(q);return ae(Ue,re)}function formatRegistryFunction(C,q){if(!Ir.FormatRegistry.Has(C))return false;const re=Ir.FormatRegistry.Get(C);return re(q)}function hashFunction(C){return(0,Ar.Hash)(C)}const Pt=Ue(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(C,re,Pt,ae)}C.Compile=Compile})(Lr||(q.TypeCompiler=Lr={}))},25269:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});q.ValueErrorIterator=q.ValueErrorType=void 0;var lt=re(65507);Object.defineProperty(q,"ValueErrorType",{enumerable:true,get:function(){return lt.ValueErrorType}});Object.defineProperty(q,"ValueErrorIterator",{enumerable:true,get:function(){return lt.ValueErrorIterator}});Ue(re(75364),q)},91660:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Errors=q.ValueErrorIterator=q.ValueErrorsUnknownTypeError=q.ValueErrorType=void 0;const ae=re(82129);const Ue=re(73373);const lt=re(51786);const Pt=re(82486);const Wt=re(84039);const Ar=re(26113);const Er=re(40886);const Ir=re(7210);const Br=re(97034);const kr=re(54025);const Pr=re(17479);var Qr;(function(C){C[C["ArrayContains"]=0]="ArrayContains";C[C["ArrayMaxContains"]=1]="ArrayMaxContains";C[C["ArrayMaxItems"]=2]="ArrayMaxItems";C[C["ArrayMinContains"]=3]="ArrayMinContains";C[C["ArrayMinItems"]=4]="ArrayMinItems";C[C["ArrayUniqueItems"]=5]="ArrayUniqueItems";C[C["Array"]=6]="Array";C[C["AsyncIterator"]=7]="AsyncIterator";C[C["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";C[C["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";C[C["BigIntMaximum"]=10]="BigIntMaximum";C[C["BigIntMinimum"]=11]="BigIntMinimum";C[C["BigIntMultipleOf"]=12]="BigIntMultipleOf";C[C["BigInt"]=13]="BigInt";C[C["Boolean"]=14]="Boolean";C[C["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";C[C["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";C[C["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";C[C["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";C[C["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";C[C["Date"]=20]="Date";C[C["Function"]=21]="Function";C[C["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";C[C["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";C[C["IntegerMaximum"]=24]="IntegerMaximum";C[C["IntegerMinimum"]=25]="IntegerMinimum";C[C["IntegerMultipleOf"]=26]="IntegerMultipleOf";C[C["Integer"]=27]="Integer";C[C["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";C[C["Intersect"]=29]="Intersect";C[C["Iterator"]=30]="Iterator";C[C["Kind"]=31]="Kind";C[C["Literal"]=32]="Literal";C[C["Never"]=33]="Never";C[C["Not"]=34]="Not";C[C["Null"]=35]="Null";C[C["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";C[C["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";C[C["NumberMaximum"]=38]="NumberMaximum";C[C["NumberMinimum"]=39]="NumberMinimum";C[C["NumberMultipleOf"]=40]="NumberMultipleOf";C[C["Number"]=41]="Number";C[C["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";C[C["ObjectMaxProperties"]=43]="ObjectMaxProperties";C[C["ObjectMinProperties"]=44]="ObjectMinProperties";C[C["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";C[C["Object"]=46]="Object";C[C["Promise"]=47]="Promise";C[C["RegExp"]=48]="RegExp";C[C["StringFormatUnknown"]=49]="StringFormatUnknown";C[C["StringFormat"]=50]="StringFormat";C[C["StringMaxLength"]=51]="StringMaxLength";C[C["StringMinLength"]=52]="StringMinLength";C[C["StringPattern"]=53]="StringPattern";C[C["String"]=54]="String";C[C["Symbol"]=55]="Symbol";C[C["TupleLength"]=56]="TupleLength";C[C["Tuple"]=57]="Tuple";C[C["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";C[C["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";C[C["Uint8Array"]=60]="Uint8Array";C[C["Undefined"]=61]="Undefined";C[C["Union"]=62]="Union";C[C["Void"]=63]="Void"})(Qr||(q.ValueErrorType=Qr={}));class ValueErrorsUnknownTypeError extends Ar.TypeBoxError{constructor(C){super("Unknown type");this.schema=C}}q.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(C){return C.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(C){return C!==undefined}class ValueErrorIterator{constructor(C){this.iterator=C}[Symbol.iterator](){return this.iterator}First(){const C=this.iterator.next();return C.done?undefined:C.value}}q.ValueErrorIterator=ValueErrorIterator;function Create(C,q,re,ae){return{type:C,schema:q,path:re,value:ae,message:(0,Wt.GetErrorFunction)()({errorType:C,path:re,schema:q,value:ae})}}function*FromAny(C,q,re,ae){}function*FromArray(C,q,re,ae){if(!(0,Pr.IsArray)(ae)){return yield Create(Qr.Array,C,re,ae)}if(IsDefined(C.minItems)&&!(ae.length>=C.minItems)){yield Create(Qr.ArrayMinItems,C,re,ae)}if(IsDefined(C.maxItems)&&!(ae.length<=C.maxItems)){yield Create(Qr.ArrayMaxItems,C,re,ae)}for(let Ue=0;UeVisit(Ue,q,`${re}${lt}`,ae).next().done===true?C+1:C),0);if(lt===0){yield Create(Qr.ArrayContains,C,re,ae)}if((0,Pr.IsNumber)(C.minContains)&<C.maxContains){yield Create(Qr.ArrayMaxContains,C,re,ae)}}function*FromAsyncIterator(C,q,re,ae){if(!(0,Pr.IsAsyncIterator)(ae))yield Create(Qr.AsyncIterator,C,re,ae)}function*FromBigInt(C,q,re,ae){if(!(0,Pr.IsBigInt)(ae))return yield Create(Qr.BigInt,C,re,ae);if(IsDefined(C.exclusiveMaximum)&&!(aeC.exclusiveMinimum)){yield Create(Qr.BigIntExclusiveMinimum,C,re,ae)}if(IsDefined(C.maximum)&&!(ae<=C.maximum)){yield Create(Qr.BigIntMaximum,C,re,ae)}if(IsDefined(C.minimum)&&!(ae>=C.minimum)){yield Create(Qr.BigIntMinimum,C,re,ae)}if(IsDefined(C.multipleOf)&&!(ae%C.multipleOf===BigInt(0))){yield Create(Qr.BigIntMultipleOf,C,re,ae)}}function*FromBoolean(C,q,re,ae){if(!(0,Pr.IsBoolean)(ae))yield Create(Qr.Boolean,C,re,ae)}function*FromConstructor(C,q,re,ae){yield*Visit(C.returns,q,re,ae.prototype)}function*FromDate(C,q,re,ae){if(!(0,Pr.IsDate)(ae))return yield Create(Qr.Date,C,re,ae);if(IsDefined(C.exclusiveMaximumTimestamp)&&!(ae.getTime()C.exclusiveMinimumTimestamp)){yield Create(Qr.DateExclusiveMinimumTimestamp,C,re,ae)}if(IsDefined(C.maximumTimestamp)&&!(ae.getTime()<=C.maximumTimestamp)){yield Create(Qr.DateMaximumTimestamp,C,re,ae)}if(IsDefined(C.minimumTimestamp)&&!(ae.getTime()>=C.minimumTimestamp)){yield Create(Qr.DateMinimumTimestamp,C,re,ae)}if(IsDefined(C.multipleOfTimestamp)&&!(ae.getTime()%C.multipleOfTimestamp===0)){yield Create(Qr.DateMultipleOfTimestamp,C,re,ae)}}function*FromFunction(C,q,re,ae){if(!(0,Pr.IsFunction)(ae))yield Create(Qr.Function,C,re,ae)}function*FromInteger(C,q,re,ae){if(!(0,Pr.IsInteger)(ae))return yield Create(Qr.Integer,C,re,ae);if(IsDefined(C.exclusiveMaximum)&&!(aeC.exclusiveMinimum)){yield Create(Qr.IntegerExclusiveMinimum,C,re,ae)}if(IsDefined(C.maximum)&&!(ae<=C.maximum)){yield Create(Qr.IntegerMaximum,C,re,ae)}if(IsDefined(C.minimum)&&!(ae>=C.minimum)){yield Create(Qr.IntegerMinimum,C,re,ae)}if(IsDefined(C.multipleOf)&&!(ae%C.multipleOf===0)){yield Create(Qr.IntegerMultipleOf,C,re,ae)}}function*FromIntersect(C,q,re,ae){for(const Ue of C.allOf){const lt=Visit(Ue,q,re,ae).next();if(!lt.done){yield Create(Qr.Intersect,C,re,ae);yield lt.value}}if(C.unevaluatedProperties===false){const q=new RegExp((0,Ue.KeyOfPattern)(C));for(const Ue of Object.getOwnPropertyNames(ae)){if(!q.test(Ue)){yield Create(Qr.IntersectUnevaluatedProperties,C,`${re}/${Ue}`,ae)}}}if(typeof C.unevaluatedProperties==="object"){const lt=new RegExp((0,Ue.KeyOfPattern)(C));for(const Ue of Object.getOwnPropertyNames(ae)){if(!lt.test(Ue)){const lt=Visit(C.unevaluatedProperties,q,`${re}/${Ue}`,ae[Ue]).next();if(!lt.done)yield lt.value}}}}function*FromIterator(C,q,re,ae){if(!(0,Pr.IsIterator)(ae))yield Create(Qr.Iterator,C,re,ae)}function*FromLiteral(C,q,re,ae){if(!(ae===C.const))yield Create(Qr.Literal,C,re,ae)}function*FromNever(C,q,re,ae){yield Create(Qr.Never,C,re,ae)}function*FromNot(C,q,re,ae){if(Visit(C.not,q,re,ae).next().done===true)yield Create(Qr.Not,C,re,ae)}function*FromNull(C,q,re,ae){if(!(0,Pr.IsNull)(ae))yield Create(Qr.Null,C,re,ae)}function*FromNumber(C,q,re,Ue){if(!ae.TypeSystemPolicy.IsNumberLike(Ue))return yield Create(Qr.Number,C,re,Ue);if(IsDefined(C.exclusiveMaximum)&&!(UeC.exclusiveMinimum)){yield Create(Qr.NumberExclusiveMinimum,C,re,Ue)}if(IsDefined(C.maximum)&&!(Ue<=C.maximum)){yield Create(Qr.NumberMaximum,C,re,Ue)}if(IsDefined(C.minimum)&&!(Ue>=C.minimum)){yield Create(Qr.NumberMinimum,C,re,Ue)}if(IsDefined(C.multipleOf)&&!(Ue%C.multipleOf===0)){yield Create(Qr.NumberMultipleOf,C,re,Ue)}}function*FromObject(C,q,re,Ue){if(!ae.TypeSystemPolicy.IsObjectLike(Ue))return yield Create(Qr.Object,C,re,Ue);if(IsDefined(C.minProperties)&&!(Object.getOwnPropertyNames(Ue).length>=C.minProperties)){yield Create(Qr.ObjectMinProperties,C,re,Ue)}if(IsDefined(C.maxProperties)&&!(Object.getOwnPropertyNames(Ue).length<=C.maxProperties)){yield Create(Qr.ObjectMaxProperties,C,re,Ue)}const lt=Array.isArray(C.required)?C.required:[];const Wt=Object.getOwnPropertyNames(C.properties);const Ar=Object.getOwnPropertyNames(Ue);for(const q of lt){if(Ar.includes(q))continue;yield Create(Qr.ObjectRequiredProperty,C.properties[q],`${re}/${EscapeKey(q)}`,undefined)}if(C.additionalProperties===false){for(const q of Ar){if(!Wt.includes(q)){yield Create(Qr.ObjectAdditionalProperties,C,`${re}/${EscapeKey(q)}`,Ue[q])}}}if(typeof C.additionalProperties==="object"){for(const ae of Ar){if(Wt.includes(ae))continue;yield*Visit(C.additionalProperties,q,`${re}/${EscapeKey(ae)}`,Ue[ae])}}for(const lt of Wt){const Wt=C.properties[lt];if(C.required&&C.required.includes(lt)){yield*Visit(Wt,q,`${re}/${EscapeKey(lt)}`,Ue[lt]);if((0,Pt.ExtendsUndefinedCheck)(C)&&!(lt in Ue)){yield Create(Qr.ObjectRequiredProperty,Wt,`${re}/${EscapeKey(lt)}`,undefined)}}else{if(ae.TypeSystemPolicy.IsExactOptionalProperty(Ue,lt)){yield*Visit(Wt,q,`${re}/${EscapeKey(lt)}`,Ue[lt])}}}}function*FromPromise(C,q,re,ae){if(!(0,Pr.IsPromise)(ae))yield Create(Qr.Promise,C,re,ae)}function*FromRecord(C,q,re,Ue){if(!ae.TypeSystemPolicy.IsRecordLike(Ue))return yield Create(Qr.Object,C,re,Ue);if(IsDefined(C.minProperties)&&!(Object.getOwnPropertyNames(Ue).length>=C.minProperties)){yield Create(Qr.ObjectMinProperties,C,re,Ue)}if(IsDefined(C.maxProperties)&&!(Object.getOwnPropertyNames(Ue).length<=C.maxProperties)){yield Create(Qr.ObjectMaxProperties,C,re,Ue)}const[lt,Pt]=Object.entries(C.patternProperties)[0];const Wt=new RegExp(lt);for(const[C,ae]of Object.entries(Ue)){if(Wt.test(C))yield*Visit(Pt,q,`${re}/${EscapeKey(C)}`,ae)}if(typeof C.additionalProperties==="object"){for(const[ae,lt]of Object.entries(Ue)){if(!Wt.test(ae))yield*Visit(C.additionalProperties,q,`${re}/${EscapeKey(ae)}`,lt)}}if(C.additionalProperties===false){for(const[q,ae]of Object.entries(Ue)){if(Wt.test(q))continue;return yield Create(Qr.ObjectAdditionalProperties,C,`${re}/${EscapeKey(q)}`,ae)}}}function*FromRef(C,q,re,ae){yield*Visit((0,Er.Deref)(C,q),q,re,ae)}function*FromRegExp(C,q,re,ae){if(!(0,Pr.IsString)(ae))return yield Create(Qr.String,C,re,ae);if(IsDefined(C.minLength)&&!(ae.length>=C.minLength)){yield Create(Qr.StringMinLength,C,re,ae)}if(IsDefined(C.maxLength)&&!(ae.length<=C.maxLength)){yield Create(Qr.StringMaxLength,C,re,ae)}const Ue=new RegExp(C.source,C.flags);if(!Ue.test(ae)){return yield Create(Qr.RegExp,C,re,ae)}}function*FromString(C,q,re,ae){if(!(0,Pr.IsString)(ae))return yield Create(Qr.String,C,re,ae);if(IsDefined(C.minLength)&&!(ae.length>=C.minLength)){yield Create(Qr.StringMinLength,C,re,ae)}if(IsDefined(C.maxLength)&&!(ae.length<=C.maxLength)){yield Create(Qr.StringMaxLength,C,re,ae)}if((0,Pr.IsString)(C.pattern)){const q=new RegExp(C.pattern);if(!q.test(ae)){yield Create(Qr.StringPattern,C,re,ae)}}if((0,Pr.IsString)(C.format)){if(!lt.FormatRegistry.Has(C.format)){yield Create(Qr.StringFormatUnknown,C,re,ae)}else{const q=lt.FormatRegistry.Get(C.format);if(!q(ae)){yield Create(Qr.StringFormat,C,re,ae)}}}}function*FromSymbol(C,q,re,ae){if(!(0,Pr.IsSymbol)(ae))yield Create(Qr.Symbol,C,re,ae)}function*FromTemplateLiteral(C,q,re,ae){if(!(0,Pr.IsString)(ae))return yield Create(Qr.String,C,re,ae);const Ue=new RegExp(C.pattern);if(!Ue.test(ae)){yield Create(Qr.StringPattern,C,re,ae)}}function*FromThis(C,q,re,ae){yield*Visit((0,Er.Deref)(C,q),q,re,ae)}function*FromTuple(C,q,re,ae){if(!(0,Pr.IsArray)(ae))return yield Create(Qr.Tuple,C,re,ae);if(C.items===undefined&&!(ae.length===0)){return yield Create(Qr.TupleLength,C,re,ae)}if(!(ae.length===C.maxItems)){return yield Create(Qr.TupleLength,C,re,ae)}if(!C.items){return}for(let Ue=0;Ue0){yield Create(Qr.Union,C,re,ae)}}function*FromUint8Array(C,q,re,ae){if(!(0,Pr.IsUint8Array)(ae))return yield Create(Qr.Uint8Array,C,re,ae);if(IsDefined(C.maxByteLength)&&!(ae.length<=C.maxByteLength)){yield Create(Qr.Uint8ArrayMaxByteLength,C,re,ae)}if(IsDefined(C.minByteLength)&&!(ae.length>=C.minByteLength)){yield Create(Qr.Uint8ArrayMinByteLength,C,re,ae)}}function*FromUnknown(C,q,re,ae){}function*FromVoid(C,q,re,Ue){if(!ae.TypeSystemPolicy.IsVoidLike(Ue))yield Create(Qr.Void,C,re,Ue)}function*FromKind(C,q,re,ae){const Ue=lt.TypeRegistry.Get(C[Br.Kind]);if(!Ue(C,ae))yield Create(Qr.Kind,C,re,ae)}function*Visit(C,q,re,ae){const Ue=IsDefined(C.$id)?[...q,C]:q;const Pt=C;switch(Pt[Br.Kind]){case"Any":return yield*FromAny(Pt,Ue,re,ae);case"Array":return yield*FromArray(Pt,Ue,re,ae);case"AsyncIterator":return yield*FromAsyncIterator(Pt,Ue,re,ae);case"BigInt":return yield*FromBigInt(Pt,Ue,re,ae);case"Boolean":return yield*FromBoolean(Pt,Ue,re,ae);case"Constructor":return yield*FromConstructor(Pt,Ue,re,ae);case"Date":return yield*FromDate(Pt,Ue,re,ae);case"Function":return yield*FromFunction(Pt,Ue,re,ae);case"Integer":return yield*FromInteger(Pt,Ue,re,ae);case"Intersect":return yield*FromIntersect(Pt,Ue,re,ae);case"Iterator":return yield*FromIterator(Pt,Ue,re,ae);case"Literal":return yield*FromLiteral(Pt,Ue,re,ae);case"Never":return yield*FromNever(Pt,Ue,re,ae);case"Not":return yield*FromNot(Pt,Ue,re,ae);case"Null":return yield*FromNull(Pt,Ue,re,ae);case"Number":return yield*FromNumber(Pt,Ue,re,ae);case"Object":return yield*FromObject(Pt,Ue,re,ae);case"Promise":return yield*FromPromise(Pt,Ue,re,ae);case"Record":return yield*FromRecord(Pt,Ue,re,ae);case"Ref":return yield*FromRef(Pt,Ue,re,ae);case"RegExp":return yield*FromRegExp(Pt,Ue,re,ae);case"String":return yield*FromString(Pt,Ue,re,ae);case"Symbol":return yield*FromSymbol(Pt,Ue,re,ae);case"TemplateLiteral":return yield*FromTemplateLiteral(Pt,Ue,re,ae);case"This":return yield*FromThis(Pt,Ue,re,ae);case"Tuple":return yield*FromTuple(Pt,Ue,re,ae);case"Undefined":return yield*FromUndefined(Pt,Ue,re,ae);case"Union":return yield*FromUnion(Pt,Ue,re,ae);case"Uint8Array":return yield*FromUint8Array(Pt,Ue,re,ae);case"Unknown":return yield*FromUnknown(Pt,Ue,re,ae);case"Void":return yield*FromVoid(Pt,Ue,re,ae);default:if(!lt.TypeRegistry.Has(Pt[Br.Kind]))throw new ValueErrorsUnknownTypeError(C);return yield*FromKind(Pt,Ue,re,ae)}}function Errors(...C){const q=C.length===3?Visit(C[0],C[1],"",C[2]):Visit(C[0],[],"",C[1]);return new ValueErrorIterator(q)}q.Errors=Errors},84039:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.GetErrorFunction=q.SetErrorFunction=q.DefaultErrorFunction=void 0;const ae=re(97034);const Ue=re(91660);function DefaultErrorFunction(C){switch(C.errorType){case Ue.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case Ue.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${C.schema.maxContains} matching values`;case Ue.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${C.schema.minContains} matching values`;case Ue.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${C.schema.maxItems}`;case Ue.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${C.schema.minItems}`;case Ue.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case Ue.ValueErrorType.Array:return"Expected array";case Ue.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case Ue.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${C.schema.exclusiveMaximum}`;case Ue.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${C.schema.exclusiveMinimum}`;case Ue.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${C.schema.maximum}`;case Ue.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${C.schema.minimum}`;case Ue.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${C.schema.multipleOf}`;case Ue.ValueErrorType.BigInt:return"Expected bigint";case Ue.ValueErrorType.Boolean:return"Expected boolean";case Ue.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${C.schema.exclusiveMinimumTimestamp}`;case Ue.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${C.schema.exclusiveMaximumTimestamp}`;case Ue.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${C.schema.minimumTimestamp}`;case Ue.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${C.schema.maximumTimestamp}`;case Ue.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${C.schema.multipleOfTimestamp}`;case Ue.ValueErrorType.Date:return"Expected Date";case Ue.ValueErrorType.Function:return"Expected function";case Ue.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${C.schema.exclusiveMaximum}`;case Ue.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${C.schema.exclusiveMinimum}`;case Ue.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${C.schema.maximum}`;case Ue.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${C.schema.minimum}`;case Ue.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${C.schema.multipleOf}`;case Ue.ValueErrorType.Integer:return"Expected integer";case Ue.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case Ue.ValueErrorType.Intersect:return"Expected all values to match";case Ue.ValueErrorType.Iterator:return"Expected Iterator";case Ue.ValueErrorType.Literal:return`Expected ${typeof C.schema.const==="string"?`'${C.schema.const}'`:C.schema.const}`;case Ue.ValueErrorType.Never:return"Never";case Ue.ValueErrorType.Not:return"Value should not match";case Ue.ValueErrorType.Null:return"Expected null";case Ue.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${C.schema.exclusiveMaximum}`;case Ue.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${C.schema.exclusiveMinimum}`;case Ue.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${C.schema.maximum}`;case Ue.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${C.schema.minimum}`;case Ue.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${C.schema.multipleOf}`;case Ue.ValueErrorType.Number:return"Expected number";case Ue.ValueErrorType.Object:return"Expected object";case Ue.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case Ue.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${C.schema.maxProperties} properties`;case Ue.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${C.schema.minProperties} properties`;case Ue.ValueErrorType.ObjectRequiredProperty:return"Required property";case Ue.ValueErrorType.Promise:return"Expected Promise";case Ue.ValueErrorType.RegExp:return"Expected string to match regular expression";case Ue.ValueErrorType.StringFormatUnknown:return`Unknown format '${C.schema.format}'`;case Ue.ValueErrorType.StringFormat:return`Expected string to match '${C.schema.format}' format`;case Ue.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${C.schema.maxLength}`;case Ue.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${C.schema.minLength}`;case Ue.ValueErrorType.StringPattern:return`Expected string to match '${C.schema.pattern}'`;case Ue.ValueErrorType.String:return"Expected string";case Ue.ValueErrorType.Symbol:return"Expected symbol";case Ue.ValueErrorType.TupleLength:return`Expected tuple to have ${C.schema.maxItems||0} elements`;case Ue.ValueErrorType.Tuple:return"Expected tuple";case Ue.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${C.schema.maxByteLength}`;case Ue.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${C.schema.minByteLength}`;case Ue.ValueErrorType.Uint8Array:return"Expected Uint8Array";case Ue.ValueErrorType.Undefined:return"Expected undefined";case Ue.ValueErrorType.Union:return"Expected union value";case Ue.ValueErrorType.Void:return"Expected void";case Ue.ValueErrorType.Kind:return`Expected kind '${C.schema[ae.Kind]}'`;default:return"Unknown error type"}}q.DefaultErrorFunction=DefaultErrorFunction;let lt=DefaultErrorFunction;function SetErrorFunction(C){lt=C}q.SetErrorFunction=SetErrorFunction;function GetErrorFunction(){return lt}q.GetErrorFunction=GetErrorFunction},65507:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(91660),q);Ue(re(84039),q)},14019:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(91769),q);Ue(re(26113),q);Ue(re(64754),q);Ue(re(57782),q);Ue(re(94354),q);Ue(re(51786),q);Ue(re(12760),q);Ue(re(97034),q);Ue(re(36813),q);Ue(re(17186),q);Ue(re(68092),q);Ue(re(85164),q);Ue(re(13278),q);Ue(re(64515),q);Ue(re(80788),q);Ue(re(19236),q);Ue(re(16939),q);Ue(re(58562),q);Ue(re(49305),q);Ue(re(911),q);Ue(re(98056),q);Ue(re(41153),q);Ue(re(94850),q);Ue(re(69682),q);Ue(re(29857),q);Ue(re(86918),q);Ue(re(26277),q);Ue(re(4949),q);Ue(re(62746),q);Ue(re(35907),q);Ue(re(30568),q);Ue(re(73373),q);Ue(re(98076),q);Ue(re(41094),q);Ue(re(54025),q);Ue(re(1078),q);Ue(re(50468),q);Ue(re(85544),q);Ue(re(62094),q);Ue(re(88932),q);Ue(re(38425),q);Ue(re(30449),q);Ue(re(75726),q);Ue(re(40640),q);Ue(re(70062),q);Ue(re(40675),q);Ue(re(78946),q);Ue(re(30420),q);Ue(re(33107),q);Ue(re(80470),q);Ue(re(26936),q);Ue(re(42744),q);Ue(re(83003),q);Ue(re(32970),q);Ue(re(68954),q);Ue(re(60343),q);Ue(re(23556),q);Ue(re(81688),q);Ue(re(2129),q);Ue(re(26609),q);Ue(re(67575),q);Ue(re(7521),q);Ue(re(45760),q);Ue(re(96231),q);Ue(re(69100),q);Ue(re(51897),q);Ue(re(23339),q);Ue(re(81947),q);Ue(re(68237),q)},82129:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(17755),q);Ue(re(15912),q)},17755:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeSystemPolicy=void 0;const ae=re(17479);var Ue;(function(C){C.ExactOptionalPropertyTypes=false;C.AllowArrayObject=false;C.AllowNaN=false;C.AllowNullVoid=false;function IsExactOptionalProperty(q,re){return C.ExactOptionalPropertyTypes?re in q:q[re]!==undefined}C.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(q){const re=(0,ae.IsObject)(q);return C.AllowArrayObject?re:re&&!(0,ae.IsArray)(q)}C.IsObjectLike=IsObjectLike;function IsRecordLike(C){return IsObjectLike(C)&&!(C instanceof Date)&&!(C instanceof Uint8Array)}C.IsRecordLike=IsRecordLike;function IsNumberLike(q){return C.AllowNaN?(0,ae.IsNumber)(q):Number.isFinite(q)}C.IsNumberLike=IsNumberLike;function IsVoidLike(q){const re=(0,ae.IsUndefined)(q);return C.AllowNullVoid?re||q===null:re}C.IsVoidLike=IsVoidLike})(Ue||(q.TypeSystemPolicy=Ue={}))},15912:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeSystem=q.TypeSystemDuplicateFormat=q.TypeSystemDuplicateTypeKind=void 0;const ae=re(51786);const Ue=re(23339);const lt=re(97034);const Pt=re(26113);class TypeSystemDuplicateTypeKind extends Pt.TypeBoxError{constructor(C){super(`Duplicate type kind '${C}' detected`)}}q.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends Pt.TypeBoxError{constructor(C){super(`Duplicate string format '${C}' detected`)}}q.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var Wt;(function(C){function Type(C,q){if(ae.TypeRegistry.Has(C))throw new TypeSystemDuplicateTypeKind(C);ae.TypeRegistry.Set(C,q);return(q={})=>(0,Ue.Unsafe)({...q,[lt.Kind]:C})}C.Type=Type;function Format(C,q){if(ae.FormatRegistry.Has(C))throw new TypeSystemDuplicateFormat(C);ae.FormatRegistry.Set(C,q);return C}C.Format=Format})(Wt||(q.TypeSystem=Wt={}))},57815:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Any=void 0;const ae=re(97034);function Any(C={}){return{...C,[ae.Kind]:"Any"}}q.Any=Any},36813:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(57815),q)},45311:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Array=void 0;const ae=re(38100);const Ue=re(97034);function Array(C,q={}){return{...q,[Ue.Kind]:"Array",type:"array",items:(0,ae.CloneType)(C)}}q.Array=Array},17186:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(45311),q)},15007:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.AsyncIterator=void 0;const ae=re(97034);const Ue=re(38100);function AsyncIterator(C,q={}){return{...q,[ae.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,Ue.CloneType)(C)}}q.AsyncIterator=AsyncIterator},68092:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(15007),q)},68263:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Awaited=void 0;const ae=re(62746);const Ue=re(69100);const lt=re(38100);const Pt=re(96994);function FromRest(C){return C.map((C=>AwaitedResolve(C)))}function FromIntersect(C){return(0,ae.Intersect)(FromRest(C))}function FromUnion(C){return(0,Ue.Union)(FromRest(C))}function FromPromise(C){return AwaitedResolve(C)}function AwaitedResolve(C){return(0,Pt.IsIntersect)(C)?FromIntersect(C.allOf):(0,Pt.IsUnion)(C)?FromUnion(C.anyOf):(0,Pt.IsPromise)(C)?FromPromise(C.item):C}function Awaited(C,q={}){return(0,lt.CloneType)(AwaitedResolve(C),q)}q.Awaited=Awaited},85164:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(68263),q)},9495:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.BigInt=void 0;const ae=re(97034);function BigInt(C={}){return{...C,[ae.Kind]:"BigInt",type:"bigint"}}q.BigInt=BigInt},13278:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(9495),q)},53715:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Boolean=void 0;const ae=re(97034);function Boolean(C={}){return{...C,[ae.Kind]:"Boolean",type:"boolean"}}q.Boolean=Boolean},64515:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(53715),q)},91769:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(38100),q);Ue(re(80387),q)},38100:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.CloneType=q.CloneRest=void 0;const ae=re(80387);function CloneRest(C){return C.map((C=>CloneType(C)))}q.CloneRest=CloneRest;function CloneType(C,q={}){return{...(0,ae.Clone)(C),...q}}q.CloneType=CloneType},80387:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Clone=void 0;const ae=re(13415);function ArrayType(C){return C.map((C=>Visit(C)))}function DateType(C){return new Date(C.getTime())}function Uint8ArrayType(C){return new Uint8Array(C)}function RegExpType(C){return new RegExp(C.source,C.flags)}function ObjectType(C){const q={};for(const re of Object.getOwnPropertyNames(C)){q[re]=Visit(C[re])}for(const re of Object.getOwnPropertySymbols(C)){q[re]=Visit(C[re])}return q}function Visit(C){return ae.IsArray(C)?ArrayType(C):ae.IsDate(C)?DateType(C):ae.IsUint8Array(C)?Uint8ArrayType(C):ae.IsRegExp(C)?RegExpType(C):ae.IsObject(C)?ObjectType(C):C}function Clone(C){return Visit(C)}q.Clone=Clone},67263:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Composite=void 0;const ae=re(62746);const Ue=re(86918);const lt=re(73373);const Pt=re(62094);const Wt=re(12760);const Ar=re(96994);function CompositeKeys(C){const q=[];for(const re of C)q.push(...(0,lt.KeyOfPropertyKeys)(re));return(0,Wt.SetDistinct)(q)}function FilterNever(C){return C.filter((C=>!(0,Ar.IsNever)(C)))}function CompositeProperty(C,q){const re=[];for(const ae of C)re.push(...(0,Ue.IndexFromPropertyKeys)(ae,[q]));return FilterNever(re)}function CompositeProperties(C,q){const re={};for(const Ue of q){re[Ue]=(0,ae.IntersectEvaluated)(CompositeProperty(C,Ue))}return re}function Composite(C,q={}){const re=CompositeKeys(C);const ae=CompositeProperties(C,re);const Ue=(0,Pt.Object)(ae,q);return Ue}q.Composite=Composite},80788:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(67263),q)},54191:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Const=void 0;const ae=re(36813);const Ue=re(13278);const lt=re(49305);const Pt=re(29857);const Wt=re(98076);const Ar=re(50468);const Er=re(62094);const Ir=re(2129);const Br=re(7521);const kr=re(40675);const Pr=re(96231);const Qr=re(45760);const Fr=re(51897);const Dr=re(91769);const xr=re(13415);function FromArray(C){return C.map((C=>FromValue(C,false)))}function FromProperties(C){const q={};for(const re of globalThis.Object.getOwnPropertyNames(C))q[re]=(0,kr.Readonly)(FromValue(C[re],false));return q}function ConditionalReadonly(C,q){return q===true?C:(0,kr.Readonly)(C)}function FromValue(C,q){return(0,xr.IsAsyncIterator)(C)?ConditionalReadonly((0,ae.Any)(),q):(0,xr.IsIterator)(C)?ConditionalReadonly((0,ae.Any)(),q):(0,xr.IsArray)(C)?(0,kr.Readonly)((0,Br.Tuple)(FromArray(C))):(0,xr.IsUint8Array)(C)?(0,Qr.Uint8Array)():(0,xr.IsDate)(C)?(0,lt.Date)():(0,xr.IsObject)(C)?ConditionalReadonly((0,Er.Object)(FromProperties(C)),q):(0,xr.IsFunction)(C)?ConditionalReadonly((0,Pt.Function)([],(0,Fr.Unknown)()),q):(0,xr.IsUndefined)(C)?(0,Pr.Undefined)():(0,xr.IsNull)(C)?(0,Ar.Null)():(0,xr.IsSymbol)(C)?(0,Ir.Symbol)():(0,xr.IsBigInt)(C)?(0,Ue.BigInt)():(0,xr.IsNumber)(C)?(0,Wt.Literal)(C):(0,xr.IsBoolean)(C)?(0,Wt.Literal)(C):(0,xr.IsString)(C)?(0,Wt.Literal)(C):(0,Er.Object)({})}function Const(C,q={}){return(0,Dr.CloneType)(FromValue(C,true),q)}q.Const=Const},19236:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(54191),q)},96127:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ConstructorParameters=void 0;const ae=re(7521);const Ue=re(38100);function ConstructorParameters(C,q={}){return(0,ae.Tuple)((0,Ue.CloneRest)(C.parameters),{...q})}q.ConstructorParameters=ConstructorParameters},58562:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(96127),q)},89035:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Constructor=void 0;const ae=re(38100);const Ue=re(97034);function Constructor(C,q,re){return{...re,[Ue.Kind]:"Constructor",type:"Constructor",parameters:(0,ae.CloneRest)(C),returns:(0,ae.CloneType)(q)}}q.Constructor=Constructor},16939:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(89035),q)},7617:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Date=void 0;const ae=re(97034);function Date(C={}){return{...C,[ae.Kind]:"Date",type:"Date"}}q.Date=Date},49305:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(7617),q)},79911:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Deref=void 0;const ae=re(38100);const Ue=re(83889);const lt=re(13415);const Pt=re(96994);function FromRest(C,q){return C.map((C=>Deref(C,q)))}function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C)){re[ae]=Deref(C[ae],q)}return re}function FromConstructor(C,q){C.parameters=FromRest(C.parameters,q);C.returns=Deref(C.returns,q);return C}function FromFunction(C,q){C.parameters=FromRest(C.parameters,q);C.returns=Deref(C.returns,q);return C}function FromIntersect(C,q){C.allOf=FromRest(C.allOf,q);return C}function FromUnion(C,q){C.anyOf=FromRest(C.anyOf,q);return C}function FromTuple(C,q){if((0,lt.IsUndefined)(C.items))return C;C.items=FromRest(C.items,q);return C}function FromArray(C,q){C.items=Deref(C.items,q);return C}function FromObject(C,q){C.properties=FromProperties(C.properties,q);return C}function FromPromise(C,q){C.item=Deref(C.item,q);return C}function FromAsyncIterator(C,q){C.items=Deref(C.items,q);return C}function FromIterator(C,q){C.items=Deref(C.items,q);return C}function FromRef(C,q){const re=q.find((q=>q.$id===C.$ref));if(re===undefined)throw Error(`Unable to dereference schema with $id ${C.$ref}`);const ae=(0,Ue.Discard)(re,["$id"]);return Deref(ae,q)}function DerefResolve(C,q){return(0,Pt.IsConstructor)(C)?FromConstructor(C,q):(0,Pt.IsFunction)(C)?FromFunction(C,q):(0,Pt.IsIntersect)(C)?FromIntersect(C,q):(0,Pt.IsUnion)(C)?FromUnion(C,q):(0,Pt.IsTuple)(C)?FromTuple(C,q):(0,Pt.IsArray)(C)?FromArray(C,q):(0,Pt.IsObject)(C)?FromObject(C,q):(0,Pt.IsPromise)(C)?FromPromise(C,q):(0,Pt.IsAsyncIterator)(C)?FromAsyncIterator(C,q):(0,Pt.IsIterator)(C)?FromIterator(C,q):(0,Pt.IsRef)(C)?FromRef(C,q):C}function Deref(C,q){return DerefResolve((0,ae.CloneType)(C),(0,ae.CloneRest)(q))}q.Deref=Deref},911:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(79911),q)},8147:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Discard=void 0;function DiscardKey(C,q){const{[q]:re,...ae}=C;return ae}function Discard(C,q){return q.reduce(((C,q)=>DiscardKey(C,q)),C)}q.Discard=Discard},83889:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(8147),q)},77991:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Enum=void 0;const ae=re(98076);const Ue=re(97034);const lt=re(69100);const Pt=re(13415);function Enum(C,q={}){if((0,Pt.IsUndefined)(C))throw new Error("Enum undefined or empty");const re=globalThis.Object.getOwnPropertyNames(C).filter((C=>isNaN(C))).map((q=>C[q]));const Wt=[...new Set(re)];const Ar=Wt.map((C=>(0,ae.Literal)(C)));return(0,lt.Union)(Ar,{...q,[Ue.Hint]:"Enum"})}q.Enum=Enum},98056:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(77991),q)},85523:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(C){super(C)}}q.TypeBoxError=TypeBoxError},26113:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85523),q)},92094:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExcludeFromMappedResult=void 0;const ae=re(41094);const Ue=re(63651);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Exclude)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function ExcludeFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.ExcludeFromMappedResult=ExcludeFromMappedResult},9505:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExcludeFromTemplateLiteral=void 0;const ae=re(63651);const Ue=re(26609);function ExcludeFromTemplateLiteral(C,q){return(0,ae.Exclude)((0,Ue.TemplateLiteralToUnion)(C),q)}q.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral},63651:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Exclude=void 0;const ae=re(69100);const Ue=re(54025);const lt=re(94850);const Pt=re(38100);const Wt=re(92094);const Ar=re(9505);const Er=re(96994);function ExcludeRest(C,q){const re=C.filter((C=>(0,lt.ExtendsCheck)(C,q)===lt.ExtendsResult.False));return re.length===1?re[0]:(0,ae.Union)(re)}function Exclude(C,q,re={}){if((0,Er.IsTemplateLiteral)(C))return(0,Pt.CloneType)((0,Ar.ExcludeFromTemplateLiteral)(C,q),re);if((0,Er.IsMappedResult)(C))return(0,Pt.CloneType)((0,Wt.ExcludeFromMappedResult)(C,q),re);return(0,Pt.CloneType)((0,Er.IsUnion)(C)?ExcludeRest(C.anyOf,q):(0,lt.ExtendsCheck)(C,q)!==lt.ExtendsResult.False?(0,Ue.Never)():C,re)}q.Exclude=Exclude},41153:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(92094),q);Ue(re(9505),q);Ue(re(63651),q)},18410:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtendsCheck=q.ExtendsResult=q.ExtendsResolverError=void 0;const ae=re(36813);const Ue=re(29857);const lt=re(85544);const Pt=re(81688);const Wt=re(51897);const Ar=re(26609);const Er=re(94354);const Ir=re(97034);const Br=re(26113);const kr=re(64754);class ExtendsResolverError extends Br.TypeBoxError{}q.ExtendsResolverError=ExtendsResolverError;var Pr;(function(C){C[C["Union"]=0]="Union";C[C["True"]=1]="True";C[C["False"]=2]="False"})(Pr||(q.ExtendsResult=Pr={}));function IntoBooleanResult(C){return C===Pr.False?C:Pr.True}function Throw(C){throw new ExtendsResolverError(C)}function IsStructuralRight(C){return kr.TypeGuard.IsNever(C)||kr.TypeGuard.IsIntersect(C)||kr.TypeGuard.IsUnion(C)||kr.TypeGuard.IsUnknown(C)||kr.TypeGuard.IsAny(C)}function StructuralRight(C,q){return kr.TypeGuard.IsNever(q)?FromNeverRight(C,q):kr.TypeGuard.IsIntersect(q)?FromIntersectRight(C,q):kr.TypeGuard.IsUnion(q)?FromUnionRight(C,q):kr.TypeGuard.IsUnknown(q)?FromUnknownRight(C,q):kr.TypeGuard.IsAny(q)?FromAnyRight(C,q):Throw("StructuralRight")}function FromAnyRight(C,q){return Pr.True}function FromAny(C,q){return kr.TypeGuard.IsIntersect(q)?FromIntersectRight(C,q):kr.TypeGuard.IsUnion(q)&&q.anyOf.some((C=>kr.TypeGuard.IsAny(C)||kr.TypeGuard.IsUnknown(C)))?Pr.True:kr.TypeGuard.IsUnion(q)?Pr.Union:kr.TypeGuard.IsUnknown(q)?Pr.True:kr.TypeGuard.IsAny(q)?Pr.True:Pr.Union}function FromArrayRight(C,q){return kr.TypeGuard.IsUnknown(C)?Pr.False:kr.TypeGuard.IsAny(C)?Pr.Union:kr.TypeGuard.IsNever(C)?Pr.True:Pr.False}function FromArray(C,q){return kr.TypeGuard.IsObject(q)&&IsObjectArrayLike(q)?Pr.True:IsStructuralRight(q)?StructuralRight(C,q):!kr.TypeGuard.IsArray(q)?Pr.False:IntoBooleanResult(Visit(C.items,q.items))}function FromAsyncIterator(C,q){return IsStructuralRight(q)?StructuralRight(C,q):!kr.TypeGuard.IsAsyncIterator(q)?Pr.False:IntoBooleanResult(Visit(C.items,q.items))}function FromBigInt(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsBigInt(q)?Pr.True:Pr.False}function FromBooleanRight(C,q){return kr.TypeGuard.IsLiteralBoolean(C)?Pr.True:kr.TypeGuard.IsBoolean(C)?Pr.True:Pr.False}function FromBoolean(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsBoolean(q)?Pr.True:Pr.False}function FromConstructor(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):!kr.TypeGuard.IsConstructor(q)?Pr.False:C.parameters.length>q.parameters.length?Pr.False:!C.parameters.every(((C,re)=>IntoBooleanResult(Visit(q.parameters[re],C))===Pr.True))?Pr.False:IntoBooleanResult(Visit(C.returns,q.returns))}function FromDate(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsDate(q)?Pr.True:Pr.False}function FromFunction(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):!kr.TypeGuard.IsFunction(q)?Pr.False:C.parameters.length>q.parameters.length?Pr.False:!C.parameters.every(((C,re)=>IntoBooleanResult(Visit(q.parameters[re],C))===Pr.True))?Pr.False:IntoBooleanResult(Visit(C.returns,q.returns))}function FromIntegerRight(C,q){return kr.TypeGuard.IsLiteral(C)&&kr.ValueGuard.IsNumber(C.const)?Pr.True:kr.TypeGuard.IsNumber(C)||kr.TypeGuard.IsInteger(C)?Pr.True:Pr.False}function FromInteger(C,q){return kr.TypeGuard.IsInteger(q)||kr.TypeGuard.IsNumber(q)?Pr.True:IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):Pr.False}function FromIntersectRight(C,q){return q.allOf.every((q=>Visit(C,q)===Pr.True))?Pr.True:Pr.False}function FromIntersect(C,q){return C.allOf.some((C=>Visit(C,q)===Pr.True))?Pr.True:Pr.False}function FromIterator(C,q){return IsStructuralRight(q)?StructuralRight(C,q):!kr.TypeGuard.IsIterator(q)?Pr.False:IntoBooleanResult(Visit(C.items,q.items))}function FromLiteral(C,q){return kr.TypeGuard.IsLiteral(q)&&q.const===C.const?Pr.True:IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsString(q)?FromStringRight(C,q):kr.TypeGuard.IsNumber(q)?FromNumberRight(C,q):kr.TypeGuard.IsInteger(q)?FromIntegerRight(C,q):kr.TypeGuard.IsBoolean(q)?FromBooleanRight(C,q):Pr.False}function FromNeverRight(C,q){return Pr.False}function FromNever(C,q){return Pr.True}function UnwrapTNot(C){let[q,re]=[C,0];while(true){if(!kr.TypeGuard.IsNot(q))break;q=q.not;re+=1}return re%2===0?q:(0,Wt.Unknown)()}function FromNot(C,q){return kr.TypeGuard.IsNot(C)?Visit(UnwrapTNot(C),q):kr.TypeGuard.IsNot(q)?Visit(C,UnwrapTNot(q)):Throw("Invalid fallthrough for Not")}function FromNull(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsNull(q)?Pr.True:Pr.False}function FromNumberRight(C,q){return kr.TypeGuard.IsLiteralNumber(C)?Pr.True:kr.TypeGuard.IsNumber(C)||kr.TypeGuard.IsInteger(C)?Pr.True:Pr.False}function FromNumber(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsInteger(q)||kr.TypeGuard.IsNumber(q)?Pr.True:Pr.False}function IsObjectPropertyCount(C,q){return Object.getOwnPropertyNames(C.properties).length===q}function IsObjectStringLike(C){return IsObjectArrayLike(C)}function IsObjectSymbolLike(C){return IsObjectPropertyCount(C,0)||IsObjectPropertyCount(C,1)&&"description"in C.properties&&kr.TypeGuard.IsUnion(C.properties.description)&&C.properties.description.anyOf.length===2&&(kr.TypeGuard.IsString(C.properties.description.anyOf[0])&&kr.TypeGuard.IsUndefined(C.properties.description.anyOf[1])||kr.TypeGuard.IsString(C.properties.description.anyOf[1])&&kr.TypeGuard.IsUndefined(C.properties.description.anyOf[0]))}function IsObjectNumberLike(C){return IsObjectPropertyCount(C,0)}function IsObjectBooleanLike(C){return IsObjectPropertyCount(C,0)}function IsObjectBigIntLike(C){return IsObjectPropertyCount(C,0)}function IsObjectDateLike(C){return IsObjectPropertyCount(C,0)}function IsObjectUint8ArrayLike(C){return IsObjectArrayLike(C)}function IsObjectFunctionLike(C){const q=(0,lt.Number)();return IsObjectPropertyCount(C,0)||IsObjectPropertyCount(C,1)&&"length"in C.properties&&IntoBooleanResult(Visit(C.properties["length"],q))===Pr.True}function IsObjectConstructorLike(C){return IsObjectPropertyCount(C,0)}function IsObjectArrayLike(C){const q=(0,lt.Number)();return IsObjectPropertyCount(C,0)||IsObjectPropertyCount(C,1)&&"length"in C.properties&&IntoBooleanResult(Visit(C.properties["length"],q))===Pr.True}function IsObjectPromiseLike(C){const q=(0,Ue.Function)([(0,ae.Any)()],(0,ae.Any)());return IsObjectPropertyCount(C,0)||IsObjectPropertyCount(C,1)&&"then"in C.properties&&IntoBooleanResult(Visit(C.properties["then"],q))===Pr.True}function Property(C,q){return Visit(C,q)===Pr.False?Pr.False:kr.TypeGuard.IsOptional(C)&&!kr.TypeGuard.IsOptional(q)?Pr.False:Pr.True}function FromObjectRight(C,q){return kr.TypeGuard.IsUnknown(C)?Pr.False:kr.TypeGuard.IsAny(C)?Pr.Union:kr.TypeGuard.IsNever(C)||kr.TypeGuard.IsLiteralString(C)&&IsObjectStringLike(q)||kr.TypeGuard.IsLiteralNumber(C)&&IsObjectNumberLike(q)||kr.TypeGuard.IsLiteralBoolean(C)&&IsObjectBooleanLike(q)||kr.TypeGuard.IsSymbol(C)&&IsObjectSymbolLike(q)||kr.TypeGuard.IsBigInt(C)&&IsObjectBigIntLike(q)||kr.TypeGuard.IsString(C)&&IsObjectStringLike(q)||kr.TypeGuard.IsSymbol(C)&&IsObjectSymbolLike(q)||kr.TypeGuard.IsNumber(C)&&IsObjectNumberLike(q)||kr.TypeGuard.IsInteger(C)&&IsObjectNumberLike(q)||kr.TypeGuard.IsBoolean(C)&&IsObjectBooleanLike(q)||kr.TypeGuard.IsUint8Array(C)&&IsObjectUint8ArrayLike(q)||kr.TypeGuard.IsDate(C)&&IsObjectDateLike(q)||kr.TypeGuard.IsConstructor(C)&&IsObjectConstructorLike(q)||kr.TypeGuard.IsFunction(C)&&IsObjectFunctionLike(q)?Pr.True:kr.TypeGuard.IsRecord(C)&&kr.TypeGuard.IsString(RecordKey(C))?(()=>q[Ir.Hint]==="Record"?Pr.True:Pr.False)():kr.TypeGuard.IsRecord(C)&&kr.TypeGuard.IsNumber(RecordKey(C))?(()=>IsObjectPropertyCount(q,0)?Pr.True:Pr.False)():Pr.False}function FromObject(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):!kr.TypeGuard.IsObject(q)?Pr.False:(()=>{for(const re of Object.getOwnPropertyNames(q.properties)){if(!(re in C.properties)&&!kr.TypeGuard.IsOptional(q.properties[re])){return Pr.False}if(kr.TypeGuard.IsOptional(q.properties[re])){return Pr.True}if(Property(C.properties[re],q.properties[re])===Pr.False){return Pr.False}}return Pr.True})()}function FromPromise(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)&&IsObjectPromiseLike(q)?Pr.True:!kr.TypeGuard.IsPromise(q)?Pr.False:IntoBooleanResult(Visit(C.item,q.item))}function RecordKey(C){return Er.PatternNumberExact in C.patternProperties?(0,lt.Number)():Er.PatternStringExact in C.patternProperties?(0,Pt.String)():Throw("Unknown record key pattern")}function RecordValue(C){return Er.PatternNumberExact in C.patternProperties?C.patternProperties[Er.PatternNumberExact]:Er.PatternStringExact in C.patternProperties?C.patternProperties[Er.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(C,q){const[re,ae]=[RecordKey(q),RecordValue(q)];return kr.TypeGuard.IsLiteralString(C)&&kr.TypeGuard.IsNumber(re)&&IntoBooleanResult(Visit(C,ae))===Pr.True?Pr.True:kr.TypeGuard.IsUint8Array(C)&&kr.TypeGuard.IsNumber(re)?Visit(C,ae):kr.TypeGuard.IsString(C)&&kr.TypeGuard.IsNumber(re)?Visit(C,ae):kr.TypeGuard.IsArray(C)&&kr.TypeGuard.IsNumber(re)?Visit(C,ae):kr.TypeGuard.IsObject(C)?(()=>{for(const q of Object.getOwnPropertyNames(C.properties)){if(Property(ae,C.properties[q])===Pr.False){return Pr.False}}return Pr.True})():Pr.False}function FromRecord(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):!kr.TypeGuard.IsRecord(q)?Pr.False:Visit(RecordValue(C),RecordValue(q))}function FromRegExp(C,q){const re=kr.TypeGuard.IsRegExp(C)?(0,Pt.String)():C;const ae=kr.TypeGuard.IsRegExp(q)?(0,Pt.String)():q;return Visit(re,ae)}function FromStringRight(C,q){return kr.TypeGuard.IsLiteral(C)&&kr.ValueGuard.IsString(C.const)?Pr.True:kr.TypeGuard.IsString(C)?Pr.True:Pr.False}function FromString(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsString(q)?Pr.True:Pr.False}function FromSymbol(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsSymbol(q)?Pr.True:Pr.False}function FromTemplateLiteral(C,q){return kr.TypeGuard.IsTemplateLiteral(C)?Visit((0,Ar.TemplateLiteralToUnion)(C),q):kr.TypeGuard.IsTemplateLiteral(q)?Visit(C,(0,Ar.TemplateLiteralToUnion)(q)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(C,q){return kr.TypeGuard.IsArray(q)&&C.items!==undefined&&C.items.every((C=>Visit(C,q.items)===Pr.True))}function FromTupleRight(C,q){return kr.TypeGuard.IsNever(C)?Pr.True:kr.TypeGuard.IsUnknown(C)?Pr.False:kr.TypeGuard.IsAny(C)?Pr.Union:Pr.False}function FromTuple(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)&&IsObjectArrayLike(q)?Pr.True:kr.TypeGuard.IsArray(q)&&IsArrayOfTuple(C,q)?Pr.True:!kr.TypeGuard.IsTuple(q)?Pr.False:kr.ValueGuard.IsUndefined(C.items)&&!kr.ValueGuard.IsUndefined(q.items)||!kr.ValueGuard.IsUndefined(C.items)&&kr.ValueGuard.IsUndefined(q.items)?Pr.False:kr.ValueGuard.IsUndefined(C.items)&&!kr.ValueGuard.IsUndefined(q.items)?Pr.True:C.items.every(((C,re)=>Visit(C,q.items[re])===Pr.True))?Pr.True:Pr.False}function FromUint8Array(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsUint8Array(q)?Pr.True:Pr.False}function FromUndefined(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsVoid(q)?FromVoidRight(C,q):kr.TypeGuard.IsUndefined(q)?Pr.True:Pr.False}function FromUnionRight(C,q){return q.anyOf.some((q=>Visit(C,q)===Pr.True))?Pr.True:Pr.False}function FromUnion(C,q){return C.anyOf.every((C=>Visit(C,q)===Pr.True))?Pr.True:Pr.False}function FromUnknownRight(C,q){return Pr.True}function FromUnknown(C,q){return kr.TypeGuard.IsNever(q)?FromNeverRight(C,q):kr.TypeGuard.IsIntersect(q)?FromIntersectRight(C,q):kr.TypeGuard.IsUnion(q)?FromUnionRight(C,q):kr.TypeGuard.IsAny(q)?FromAnyRight(C,q):kr.TypeGuard.IsString(q)?FromStringRight(C,q):kr.TypeGuard.IsNumber(q)?FromNumberRight(C,q):kr.TypeGuard.IsInteger(q)?FromIntegerRight(C,q):kr.TypeGuard.IsBoolean(q)?FromBooleanRight(C,q):kr.TypeGuard.IsArray(q)?FromArrayRight(C,q):kr.TypeGuard.IsTuple(q)?FromTupleRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsUnknown(q)?Pr.True:Pr.False}function FromVoidRight(C,q){return kr.TypeGuard.IsUndefined(C)?Pr.True:kr.TypeGuard.IsUndefined(C)?Pr.True:Pr.False}function FromVoid(C,q){return kr.TypeGuard.IsIntersect(q)?FromIntersectRight(C,q):kr.TypeGuard.IsUnion(q)?FromUnionRight(C,q):kr.TypeGuard.IsUnknown(q)?FromUnknownRight(C,q):kr.TypeGuard.IsAny(q)?FromAnyRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsVoid(q)?Pr.True:Pr.False}function Visit(C,q){return kr.TypeGuard.IsTemplateLiteral(C)||kr.TypeGuard.IsTemplateLiteral(q)?FromTemplateLiteral(C,q):kr.TypeGuard.IsRegExp(C)||kr.TypeGuard.IsRegExp(q)?FromRegExp(C,q):kr.TypeGuard.IsNot(C)||kr.TypeGuard.IsNot(q)?FromNot(C,q):kr.TypeGuard.IsAny(C)?FromAny(C,q):kr.TypeGuard.IsArray(C)?FromArray(C,q):kr.TypeGuard.IsBigInt(C)?FromBigInt(C,q):kr.TypeGuard.IsBoolean(C)?FromBoolean(C,q):kr.TypeGuard.IsAsyncIterator(C)?FromAsyncIterator(C,q):kr.TypeGuard.IsConstructor(C)?FromConstructor(C,q):kr.TypeGuard.IsDate(C)?FromDate(C,q):kr.TypeGuard.IsFunction(C)?FromFunction(C,q):kr.TypeGuard.IsInteger(C)?FromInteger(C,q):kr.TypeGuard.IsIntersect(C)?FromIntersect(C,q):kr.TypeGuard.IsIterator(C)?FromIterator(C,q):kr.TypeGuard.IsLiteral(C)?FromLiteral(C,q):kr.TypeGuard.IsNever(C)?FromNever(C,q):kr.TypeGuard.IsNull(C)?FromNull(C,q):kr.TypeGuard.IsNumber(C)?FromNumber(C,q):kr.TypeGuard.IsObject(C)?FromObject(C,q):kr.TypeGuard.IsRecord(C)?FromRecord(C,q):kr.TypeGuard.IsString(C)?FromString(C,q):kr.TypeGuard.IsSymbol(C)?FromSymbol(C,q):kr.TypeGuard.IsTuple(C)?FromTuple(C,q):kr.TypeGuard.IsPromise(C)?FromPromise(C,q):kr.TypeGuard.IsUint8Array(C)?FromUint8Array(C,q):kr.TypeGuard.IsUndefined(C)?FromUndefined(C,q):kr.TypeGuard.IsUnion(C)?FromUnion(C,q):kr.TypeGuard.IsUnknown(C)?FromUnknown(C,q):kr.TypeGuard.IsVoid(C)?FromVoid(C,q):Throw(`Unknown left type operand '${C[Ir.Kind]}'`)}function ExtendsCheck(C,q){return Visit(C,q)}q.ExtendsCheck=ExtendsCheck},83948:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtendsFromMappedKey=void 0;const ae=re(41094);const Ue=re(98076);const lt=re(34263);function FromPropertyKey(C,q,re,ae,Pt){return{[C]:(0,lt.Extends)((0,Ue.Literal)(C),q,re,ae,Pt)}}function FromPropertyKeys(C,q,re,ae,Ue){return C.reduce(((C,lt)=>({...C,...FromPropertyKey(lt,q,re,ae,Ue)})),{})}function FromMappedKey(C,q,re,ae,Ue){return FromPropertyKeys(C.keys,q,re,ae,Ue)}function ExtendsFromMappedKey(C,q,re,Ue,lt){const Pt=FromMappedKey(C,q,re,Ue,lt);return(0,ae.MappedResult)(Pt)}q.ExtendsFromMappedKey=ExtendsFromMappedKey},80338:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtendsFromMappedResult=void 0;const ae=re(41094);const Ue=re(34263);function FromProperties(C,q,re,ae,lt){const Pt={};for(const Wt of globalThis.Object.getOwnPropertyNames(C))Pt[Wt]=(0,Ue.Extends)(C[Wt],q,re,ae,lt);return Pt}function FromMappedResult(C,q,re,ae,Ue){return FromProperties(C.properties,q,re,ae,Ue)}function ExtendsFromMappedResult(C,q,re,Ue,lt){const Pt=FromMappedResult(C,q,re,Ue,lt);return(0,ae.MappedResult)(Pt)}q.ExtendsFromMappedResult=ExtendsFromMappedResult},82486:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtendsUndefinedCheck=void 0;const ae=re(97034);function Intersect(C){return C.allOf.every((C=>ExtendsUndefinedCheck(C)))}function Union(C){return C.anyOf.some((C=>ExtendsUndefinedCheck(C)))}function Not(C){return!ExtendsUndefinedCheck(C.not)}function ExtendsUndefinedCheck(C){return C[ae.Kind]==="Intersect"?Intersect(C):C[ae.Kind]==="Union"?Union(C):C[ae.Kind]==="Not"?Not(C):C[ae.Kind]==="Undefined"?true:false}q.ExtendsUndefinedCheck=ExtendsUndefinedCheck},34263:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Extends=void 0;const ae=re(69100);const Ue=re(18410);const lt=re(38100);const Pt=re(83948);const Wt=re(80338);const Ar=re(96994);function ExtendsResolve(C,q,re,lt){const Pt=(0,Ue.ExtendsCheck)(C,q);return Pt===Ue.ExtendsResult.Union?(0,ae.Union)([re,lt]):Pt===Ue.ExtendsResult.True?re:lt}function Extends(C,q,re,ae,Ue={}){return(0,Ar.IsMappedResult)(C)?(0,Wt.ExtendsFromMappedResult)(C,q,re,ae,Ue):(0,Ar.IsMappedKey)(C)?(0,lt.CloneType)((0,Pt.ExtendsFromMappedKey)(C,q,re,ae,Ue)):(0,lt.CloneType)(ExtendsResolve(C,q,re,ae),Ue)}q.Extends=Extends},94850:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(18410),q);Ue(re(83948),q);Ue(re(80338),q);Ue(re(82486),q);Ue(re(34263),q)},70826:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtractFromMappedResult=void 0;const ae=re(41094);const Ue=re(4847);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Extract)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function ExtractFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.ExtractFromMappedResult=ExtractFromMappedResult},50253:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtractFromTemplateLiteral=void 0;const ae=re(4847);const Ue=re(26609);function ExtractFromTemplateLiteral(C,q){return(0,ae.Extract)((0,Ue.TemplateLiteralToUnion)(C),q)}q.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral},4847:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Extract=void 0;const ae=re(69100);const Ue=re(54025);const lt=re(94850);const Pt=re(38100);const Wt=re(70826);const Ar=re(50253);const Er=re(96994);function ExtractRest(C,q){const re=C.filter((C=>(0,lt.ExtendsCheck)(C,q)!==lt.ExtendsResult.False));return re.length===1?re[0]:(0,ae.Union)(re)}function Extract(C,q,re={}){if((0,Er.IsTemplateLiteral)(C))return(0,Pt.CloneType)((0,Ar.ExtractFromTemplateLiteral)(C,q),re);if((0,Er.IsMappedResult)(C))return(0,Pt.CloneType)((0,Wt.ExtractFromMappedResult)(C,q),re);return(0,Pt.CloneType)((0,Er.IsUnion)(C)?ExtractRest(C.anyOf,q):(0,lt.ExtendsCheck)(C,q)!==lt.ExtendsResult.False?C:(0,Ue.Never)(),re)}q.Extract=Extract},69682:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(70826),q);Ue(re(50253),q);Ue(re(4847),q)},93649:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Function=void 0;const ae=re(38100);const Ue=re(97034);function Function(C,q,re){return{...re,[Ue.Kind]:"Function",type:"Function",parameters:(0,ae.CloneRest)(C),returns:(0,ae.CloneType)(q)}}q.Function=Function},29857:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(93649),q)},64754:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ValueGuard=q.TypeGuard=q.KindGuard=void 0;q.KindGuard=re(96994);q.TypeGuard=re(70384);q.ValueGuard=re(13415)},96994:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsSchema=q.IsKind=q.IsVoid=q.IsUnsafe=q.IsUnknown=q.IsUint8Array=q.IsUnion=q.IsUndefined=q.IsTuple=q.IsTransform=q.IsThis=q.IsTemplateLiteral=q.IsSymbol=q.IsString=q.IsRegExp=q.IsRef=q.IsRecursive=q.IsRecord=q.IsPromise=q.IsObject=q.IsNumber=q.IsNull=q.IsNot=q.IsNever=q.IsMappedResult=q.IsMappedKey=q.IsLiteral=q.IsLiteralBoolean=q.IsLiteralNumber=q.IsLiteralString=q.IsKindOf=q.IsIterator=q.IsIntersect=q.IsProperties=q.IsInteger=q.IsFunction=q.IsDate=q.IsConstructor=q.IsBoolean=q.IsBigInt=q.IsAsyncIterator=q.IsArray=q.IsAny=q.IsOptional=q.IsReadonly=void 0;const ae=re(13415);const Ue=re(97034);function IsReadonly(C){return ae.IsObject(C)&&C[Ue.ReadonlyKind]==="Readonly"}q.IsReadonly=IsReadonly;function IsOptional(C){return ae.IsObject(C)&&C[Ue.OptionalKind]==="Optional"}q.IsOptional=IsOptional;function IsAny(C){return IsKindOf(C,"Any")}q.IsAny=IsAny;function IsArray(C){return IsKindOf(C,"Array")}q.IsArray=IsArray;function IsAsyncIterator(C){return IsKindOf(C,"AsyncIterator")}q.IsAsyncIterator=IsAsyncIterator;function IsBigInt(C){return IsKindOf(C,"BigInt")}q.IsBigInt=IsBigInt;function IsBoolean(C){return IsKindOf(C,"Boolean")}q.IsBoolean=IsBoolean;function IsConstructor(C){return IsKindOf(C,"Constructor")}q.IsConstructor=IsConstructor;function IsDate(C){return IsKindOf(C,"Date")}q.IsDate=IsDate;function IsFunction(C){return IsKindOf(C,"Function")}q.IsFunction=IsFunction;function IsInteger(C){return IsKindOf(C,"Integer")}q.IsInteger=IsInteger;function IsProperties(C){return ae.IsObject(C)}q.IsProperties=IsProperties;function IsIntersect(C){return IsKindOf(C,"Intersect")}q.IsIntersect=IsIntersect;function IsIterator(C){return IsKindOf(C,"Iterator")}q.IsIterator=IsIterator;function IsKindOf(C,q){return ae.IsObject(C)&&Ue.Kind in C&&C[Ue.Kind]===q}q.IsKindOf=IsKindOf;function IsLiteralString(C){return IsLiteral(C)&&ae.IsString(C.const)}q.IsLiteralString=IsLiteralString;function IsLiteralNumber(C){return IsLiteral(C)&&ae.IsNumber(C.const)}q.IsLiteralNumber=IsLiteralNumber;function IsLiteralBoolean(C){return IsLiteral(C)&&ae.IsBoolean(C.const)}q.IsLiteralBoolean=IsLiteralBoolean;function IsLiteral(C){return IsKindOf(C,"Literal")}q.IsLiteral=IsLiteral;function IsMappedKey(C){return IsKindOf(C,"MappedKey")}q.IsMappedKey=IsMappedKey;function IsMappedResult(C){return IsKindOf(C,"MappedResult")}q.IsMappedResult=IsMappedResult;function IsNever(C){return IsKindOf(C,"Never")}q.IsNever=IsNever;function IsNot(C){return IsKindOf(C,"Not")}q.IsNot=IsNot;function IsNull(C){return IsKindOf(C,"Null")}q.IsNull=IsNull;function IsNumber(C){return IsKindOf(C,"Number")}q.IsNumber=IsNumber;function IsObject(C){return IsKindOf(C,"Object")}q.IsObject=IsObject;function IsPromise(C){return IsKindOf(C,"Promise")}q.IsPromise=IsPromise;function IsRecord(C){return IsKindOf(C,"Record")}q.IsRecord=IsRecord;function IsRecursive(C){return ae.IsObject(C)&&Ue.Hint in C&&C[Ue.Hint]==="Recursive"}q.IsRecursive=IsRecursive;function IsRef(C){return IsKindOf(C,"Ref")}q.IsRef=IsRef;function IsRegExp(C){return IsKindOf(C,"RegExp")}q.IsRegExp=IsRegExp;function IsString(C){return IsKindOf(C,"String")}q.IsString=IsString;function IsSymbol(C){return IsKindOf(C,"Symbol")}q.IsSymbol=IsSymbol;function IsTemplateLiteral(C){return IsKindOf(C,"TemplateLiteral")}q.IsTemplateLiteral=IsTemplateLiteral;function IsThis(C){return IsKindOf(C,"This")}q.IsThis=IsThis;function IsTransform(C){return ae.IsObject(C)&&Ue.TransformKind in C}q.IsTransform=IsTransform;function IsTuple(C){return IsKindOf(C,"Tuple")}q.IsTuple=IsTuple;function IsUndefined(C){return IsKindOf(C,"Undefined")}q.IsUndefined=IsUndefined;function IsUnion(C){return IsKindOf(C,"Union")}q.IsUnion=IsUnion;function IsUint8Array(C){return IsKindOf(C,"Uint8Array")}q.IsUint8Array=IsUint8Array;function IsUnknown(C){return IsKindOf(C,"Unknown")}q.IsUnknown=IsUnknown;function IsUnsafe(C){return IsKindOf(C,"Unsafe")}q.IsUnsafe=IsUnsafe;function IsVoid(C){return IsKindOf(C,"Void")}q.IsVoid=IsVoid;function IsKind(C){return ae.IsObject(C)&&Ue.Kind in C&&ae.IsString(C[Ue.Kind])}q.IsKind=IsKind;function IsSchema(C){return IsAny(C)||IsArray(C)||IsBoolean(C)||IsBigInt(C)||IsAsyncIterator(C)||IsConstructor(C)||IsDate(C)||IsFunction(C)||IsInteger(C)||IsIntersect(C)||IsIterator(C)||IsLiteral(C)||IsMappedKey(C)||IsMappedResult(C)||IsNever(C)||IsNot(C)||IsNull(C)||IsNumber(C)||IsObject(C)||IsPromise(C)||IsRecord(C)||IsRef(C)||IsRegExp(C)||IsString(C)||IsSymbol(C)||IsTemplateLiteral(C)||IsThis(C)||IsTuple(C)||IsUndefined(C)||IsUnion(C)||IsUint8Array(C)||IsUnknown(C)||IsUnsafe(C)||IsVoid(C)||IsKind(C)}q.IsSchema=IsSchema},70384:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsSchema=q.IsKind=q.IsVoid=q.IsUnsafe=q.IsUnknown=q.IsUint8Array=q.IsUnion=q.IsUnionLiteral=q.IsUndefined=q.IsTuple=q.IsTransform=q.IsThis=q.IsTemplateLiteral=q.IsSymbol=q.IsString=q.IsRegExp=q.IsRef=q.IsRecursive=q.IsRecord=q.IsPromise=q.IsObject=q.IsNumber=q.IsNull=q.IsNot=q.IsNever=q.IsMappedResult=q.IsMappedKey=q.IsLiteralValue=q.IsLiteral=q.IsLiteralBoolean=q.IsLiteralNumber=q.IsLiteralString=q.IsKindOf=q.IsIterator=q.IsIntersect=q.IsProperties=q.IsInteger=q.IsFunction=q.IsDate=q.IsConstructor=q.IsBoolean=q.IsBigInt=q.IsAsyncIterator=q.IsArray=q.IsAny=q.IsOptional=q.IsReadonly=q.TypeGuardUnknownTypeError=void 0;const ae=re(13415);const Ue=re(97034);const lt=re(26113);class TypeGuardUnknownTypeError extends lt.TypeBoxError{}q.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const Pt=["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(C){try{new RegExp(C);return true}catch{return false}}function IsControlCharacterFree(C){if(!ae.IsString(C))return false;for(let q=0;q=7&&re<=13||re===27||re===127){return false}}return true}function IsAdditionalProperties(C){return IsOptionalBoolean(C)||IsSchema(C)}function IsOptionalBigInt(C){return ae.IsUndefined(C)||ae.IsBigInt(C)}function IsOptionalNumber(C){return ae.IsUndefined(C)||ae.IsNumber(C)}function IsOptionalBoolean(C){return ae.IsUndefined(C)||ae.IsBoolean(C)}function IsOptionalString(C){return ae.IsUndefined(C)||ae.IsString(C)}function IsOptionalPattern(C){return ae.IsUndefined(C)||ae.IsString(C)&&IsControlCharacterFree(C)&&IsPattern(C)}function IsOptionalFormat(C){return ae.IsUndefined(C)||ae.IsString(C)&&IsControlCharacterFree(C)}function IsOptionalSchema(C){return ae.IsUndefined(C)||IsSchema(C)}function IsReadonly(C){return ae.IsObject(C)&&C[Ue.ReadonlyKind]==="Readonly"}q.IsReadonly=IsReadonly;function IsOptional(C){return ae.IsObject(C)&&C[Ue.OptionalKind]==="Optional"}q.IsOptional=IsOptional;function IsAny(C){return IsKindOf(C,"Any")&&IsOptionalString(C.$id)}q.IsAny=IsAny;function IsArray(C){return IsKindOf(C,"Array")&&C.type==="array"&&IsOptionalString(C.$id)&&IsSchema(C.items)&&IsOptionalNumber(C.minItems)&&IsOptionalNumber(C.maxItems)&&IsOptionalBoolean(C.uniqueItems)&&IsOptionalSchema(C.contains)&&IsOptionalNumber(C.minContains)&&IsOptionalNumber(C.maxContains)}q.IsArray=IsArray;function IsAsyncIterator(C){return IsKindOf(C,"AsyncIterator")&&C.type==="AsyncIterator"&&IsOptionalString(C.$id)&&IsSchema(C.items)}q.IsAsyncIterator=IsAsyncIterator;function IsBigInt(C){return IsKindOf(C,"BigInt")&&C.type==="bigint"&&IsOptionalString(C.$id)&&IsOptionalBigInt(C.exclusiveMaximum)&&IsOptionalBigInt(C.exclusiveMinimum)&&IsOptionalBigInt(C.maximum)&&IsOptionalBigInt(C.minimum)&&IsOptionalBigInt(C.multipleOf)}q.IsBigInt=IsBigInt;function IsBoolean(C){return IsKindOf(C,"Boolean")&&C.type==="boolean"&&IsOptionalString(C.$id)}q.IsBoolean=IsBoolean;function IsConstructor(C){return IsKindOf(C,"Constructor")&&C.type==="Constructor"&&IsOptionalString(C.$id)&&ae.IsArray(C.parameters)&&C.parameters.every((C=>IsSchema(C)))&&IsSchema(C.returns)}q.IsConstructor=IsConstructor;function IsDate(C){return IsKindOf(C,"Date")&&C.type==="Date"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.exclusiveMaximumTimestamp)&&IsOptionalNumber(C.exclusiveMinimumTimestamp)&&IsOptionalNumber(C.maximumTimestamp)&&IsOptionalNumber(C.minimumTimestamp)&&IsOptionalNumber(C.multipleOfTimestamp)}q.IsDate=IsDate;function IsFunction(C){return IsKindOf(C,"Function")&&C.type==="Function"&&IsOptionalString(C.$id)&&ae.IsArray(C.parameters)&&C.parameters.every((C=>IsSchema(C)))&&IsSchema(C.returns)}q.IsFunction=IsFunction;function IsInteger(C){return IsKindOf(C,"Integer")&&C.type==="integer"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.exclusiveMaximum)&&IsOptionalNumber(C.exclusiveMinimum)&&IsOptionalNumber(C.maximum)&&IsOptionalNumber(C.minimum)&&IsOptionalNumber(C.multipleOf)}q.IsInteger=IsInteger;function IsProperties(C){return ae.IsObject(C)&&Object.entries(C).every((([C,q])=>IsControlCharacterFree(C)&&IsSchema(q)))}q.IsProperties=IsProperties;function IsIntersect(C){return IsKindOf(C,"Intersect")&&(ae.IsString(C.type)&&C.type!=="object"?false:true)&&ae.IsArray(C.allOf)&&C.allOf.every((C=>IsSchema(C)&&!IsTransform(C)))&&IsOptionalString(C.type)&&(IsOptionalBoolean(C.unevaluatedProperties)||IsOptionalSchema(C.unevaluatedProperties))&&IsOptionalString(C.$id)}q.IsIntersect=IsIntersect;function IsIterator(C){return IsKindOf(C,"Iterator")&&C.type==="Iterator"&&IsOptionalString(C.$id)&&IsSchema(C.items)}q.IsIterator=IsIterator;function IsKindOf(C,q){return ae.IsObject(C)&&Ue.Kind in C&&C[Ue.Kind]===q}q.IsKindOf=IsKindOf;function IsLiteralString(C){return IsLiteral(C)&&ae.IsString(C.const)}q.IsLiteralString=IsLiteralString;function IsLiteralNumber(C){return IsLiteral(C)&&ae.IsNumber(C.const)}q.IsLiteralNumber=IsLiteralNumber;function IsLiteralBoolean(C){return IsLiteral(C)&&ae.IsBoolean(C.const)}q.IsLiteralBoolean=IsLiteralBoolean;function IsLiteral(C){return IsKindOf(C,"Literal")&&IsOptionalString(C.$id)&&IsLiteralValue(C.const)}q.IsLiteral=IsLiteral;function IsLiteralValue(C){return ae.IsBoolean(C)||ae.IsNumber(C)||ae.IsString(C)}q.IsLiteralValue=IsLiteralValue;function IsMappedKey(C){return IsKindOf(C,"MappedKey")&&ae.IsArray(C.keys)&&C.keys.every((C=>ae.IsNumber(C)||ae.IsString(C)))}q.IsMappedKey=IsMappedKey;function IsMappedResult(C){return IsKindOf(C,"MappedResult")&&IsProperties(C.properties)}q.IsMappedResult=IsMappedResult;function IsNever(C){return IsKindOf(C,"Never")&&ae.IsObject(C.not)&&Object.getOwnPropertyNames(C.not).length===0}q.IsNever=IsNever;function IsNot(C){return IsKindOf(C,"Not")&&IsSchema(C.not)}q.IsNot=IsNot;function IsNull(C){return IsKindOf(C,"Null")&&C.type==="null"&&IsOptionalString(C.$id)}q.IsNull=IsNull;function IsNumber(C){return IsKindOf(C,"Number")&&C.type==="number"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.exclusiveMaximum)&&IsOptionalNumber(C.exclusiveMinimum)&&IsOptionalNumber(C.maximum)&&IsOptionalNumber(C.minimum)&&IsOptionalNumber(C.multipleOf)}q.IsNumber=IsNumber;function IsObject(C){return IsKindOf(C,"Object")&&C.type==="object"&&IsOptionalString(C.$id)&&IsProperties(C.properties)&&IsAdditionalProperties(C.additionalProperties)&&IsOptionalNumber(C.minProperties)&&IsOptionalNumber(C.maxProperties)}q.IsObject=IsObject;function IsPromise(C){return IsKindOf(C,"Promise")&&C.type==="Promise"&&IsOptionalString(C.$id)&&IsSchema(C.item)}q.IsPromise=IsPromise;function IsRecord(C){return IsKindOf(C,"Record")&&C.type==="object"&&IsOptionalString(C.$id)&&IsAdditionalProperties(C.additionalProperties)&&ae.IsObject(C.patternProperties)&&(C=>{const q=Object.getOwnPropertyNames(C.patternProperties);return q.length===1&&IsPattern(q[0])&&ae.IsObject(C.patternProperties)&&IsSchema(C.patternProperties[q[0]])})(C)}q.IsRecord=IsRecord;function IsRecursive(C){return ae.IsObject(C)&&Ue.Hint in C&&C[Ue.Hint]==="Recursive"}q.IsRecursive=IsRecursive;function IsRef(C){return IsKindOf(C,"Ref")&&IsOptionalString(C.$id)&&ae.IsString(C.$ref)}q.IsRef=IsRef;function IsRegExp(C){return IsKindOf(C,"RegExp")&&IsOptionalString(C.$id)&&ae.IsString(C.source)&&ae.IsString(C.flags)&&IsOptionalNumber(C.maxLength)&&IsOptionalNumber(C.minLength)}q.IsRegExp=IsRegExp;function IsString(C){return IsKindOf(C,"String")&&C.type==="string"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.minLength)&&IsOptionalNumber(C.maxLength)&&IsOptionalPattern(C.pattern)&&IsOptionalFormat(C.format)}q.IsString=IsString;function IsSymbol(C){return IsKindOf(C,"Symbol")&&C.type==="symbol"&&IsOptionalString(C.$id)}q.IsSymbol=IsSymbol;function IsTemplateLiteral(C){return IsKindOf(C,"TemplateLiteral")&&C.type==="string"&&ae.IsString(C.pattern)&&C.pattern[0]==="^"&&C.pattern[C.pattern.length-1]==="$"}q.IsTemplateLiteral=IsTemplateLiteral;function IsThis(C){return IsKindOf(C,"This")&&IsOptionalString(C.$id)&&ae.IsString(C.$ref)}q.IsThis=IsThis;function IsTransform(C){return ae.IsObject(C)&&Ue.TransformKind in C}q.IsTransform=IsTransform;function IsTuple(C){return IsKindOf(C,"Tuple")&&C.type==="array"&&IsOptionalString(C.$id)&&ae.IsNumber(C.minItems)&&ae.IsNumber(C.maxItems)&&C.minItems===C.maxItems&&(ae.IsUndefined(C.items)&&ae.IsUndefined(C.additionalItems)&&C.minItems===0||ae.IsArray(C.items)&&C.items.every((C=>IsSchema(C))))}q.IsTuple=IsTuple;function IsUndefined(C){return IsKindOf(C,"Undefined")&&C.type==="undefined"&&IsOptionalString(C.$id)}q.IsUndefined=IsUndefined;function IsUnionLiteral(C){return IsUnion(C)&&C.anyOf.every((C=>IsLiteralString(C)||IsLiteralNumber(C)))}q.IsUnionLiteral=IsUnionLiteral;function IsUnion(C){return IsKindOf(C,"Union")&&IsOptionalString(C.$id)&&ae.IsObject(C)&&ae.IsArray(C.anyOf)&&C.anyOf.every((C=>IsSchema(C)))}q.IsUnion=IsUnion;function IsUint8Array(C){return IsKindOf(C,"Uint8Array")&&C.type==="Uint8Array"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.minByteLength)&&IsOptionalNumber(C.maxByteLength)}q.IsUint8Array=IsUint8Array;function IsUnknown(C){return IsKindOf(C,"Unknown")&&IsOptionalString(C.$id)}q.IsUnknown=IsUnknown;function IsUnsafe(C){return IsKindOf(C,"Unsafe")}q.IsUnsafe=IsUnsafe;function IsVoid(C){return IsKindOf(C,"Void")&&C.type==="void"&&IsOptionalString(C.$id)}q.IsVoid=IsVoid;function IsKind(C){return ae.IsObject(C)&&Ue.Kind in C&&ae.IsString(C[Ue.Kind])&&!Pt.includes(C[Ue.Kind])}q.IsKind=IsKind;function IsSchema(C){return ae.IsObject(C)&&(IsAny(C)||IsArray(C)||IsBoolean(C)||IsBigInt(C)||IsAsyncIterator(C)||IsConstructor(C)||IsDate(C)||IsFunction(C)||IsInteger(C)||IsIntersect(C)||IsIterator(C)||IsLiteral(C)||IsMappedKey(C)||IsMappedResult(C)||IsNever(C)||IsNot(C)||IsNull(C)||IsNumber(C)||IsObject(C)||IsPromise(C)||IsRecord(C)||IsRef(C)||IsRegExp(C)||IsString(C)||IsSymbol(C)||IsTemplateLiteral(C)||IsThis(C)||IsTuple(C)||IsUndefined(C)||IsUnion(C)||IsUint8Array(C)||IsUnknown(C)||IsUnsafe(C)||IsVoid(C)||IsKind(C))}q.IsSchema=IsSchema},13415:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsUndefined=q.IsUint8Array=q.IsSymbol=q.IsString=q.IsRegExp=q.IsObject=q.IsNumber=q.IsNull=q.IsIterator=q.IsFunction=q.IsDate=q.IsBoolean=q.IsBigInt=q.IsArray=q.IsAsyncIterator=void 0;function IsAsyncIterator(C){return IsObject(C)&&!IsArray(C)&&!IsUint8Array(C)&&Symbol.asyncIterator in C}q.IsAsyncIterator=IsAsyncIterator;function IsArray(C){return Array.isArray(C)}q.IsArray=IsArray;function IsBigInt(C){return typeof C==="bigint"}q.IsBigInt=IsBigInt;function IsBoolean(C){return typeof C==="boolean"}q.IsBoolean=IsBoolean;function IsDate(C){return C instanceof globalThis.Date}q.IsDate=IsDate;function IsFunction(C){return typeof C==="function"}q.IsFunction=IsFunction;function IsIterator(C){return IsObject(C)&&!IsArray(C)&&!IsUint8Array(C)&&Symbol.iterator in C}q.IsIterator=IsIterator;function IsNull(C){return C===null}q.IsNull=IsNull;function IsNumber(C){return typeof C==="number"}q.IsNumber=IsNumber;function IsObject(C){return typeof C==="object"&&C!==null}q.IsObject=IsObject;function IsRegExp(C){return C instanceof globalThis.RegExp}q.IsRegExp=IsRegExp;function IsString(C){return typeof C==="string"}q.IsString=IsString;function IsSymbol(C){return typeof C==="symbol"}q.IsSymbol=IsSymbol;function IsUint8Array(C){return C instanceof globalThis.Uint8Array}q.IsUint8Array=IsUint8Array;function IsUndefined(C){return C===undefined}q.IsUndefined=IsUndefined},87943:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Increment=void 0;function Increment(C){return(parseInt(C)+1).toString()}q.Increment=Increment},57782:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(87943),q)},86918:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(66904),q);Ue(re(80494),q);Ue(re(65774),q);Ue(re(11795),q)},66904:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IndexFromMappedKey=void 0;const ae=re(11795);const Ue=re(41094);function MappedIndexPropertyKey(C,q,re){return{[q]:(0,ae.Index)(C,[q],re)}}function MappedIndexPropertyKeys(C,q,re){return q.reduce(((q,ae)=>({...q,...MappedIndexPropertyKey(C,ae,re)})),{})}function MappedIndexProperties(C,q,re){return MappedIndexPropertyKeys(C,q.keys,re)}function IndexFromMappedKey(C,q,re){const ae=MappedIndexProperties(C,q,re);return(0,Ue.MappedResult)(ae)}q.IndexFromMappedKey=IndexFromMappedKey},80494:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IndexFromMappedResult=void 0;const ae=re(41094);const Ue=re(65774);const lt=re(86918);function FromProperties(C,q,re){const ae={};for(const Pt of Object.getOwnPropertyNames(q)){ae[Pt]=(0,lt.Index)(C,(0,Ue.IndexPropertyKeys)(q[Pt]),re)}return ae}function FromMappedResult(C,q,re){return FromProperties(C,q.properties,re)}function IndexFromMappedResult(C,q,re){const Ue=FromMappedResult(C,q,re);return(0,ae.MappedResult)(Ue)}q.IndexFromMappedResult=IndexFromMappedResult},65774:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IndexPropertyKeys=void 0;const ae=re(26609);const Ue=re(96994);function FromTemplateLiteral(C){const q=(0,ae.TemplateLiteralGenerate)(C);return q.map((C=>C.toString()))}function FromUnion(C){const q=[];for(const re of C)q.push(...IndexPropertyKeys(re));return q}function FromLiteral(C){return[C.toString()]}function IndexPropertyKeys(C){return[...new Set((0,Ue.IsTemplateLiteral)(C)?FromTemplateLiteral(C):(0,Ue.IsUnion)(C)?FromUnion(C.anyOf):(0,Ue.IsLiteral)(C)?FromLiteral(C.const):(0,Ue.IsNumber)(C)?["[number]"]:(0,Ue.IsInteger)(C)?["[number]"]:[])]}q.IndexPropertyKeys=IndexPropertyKeys},11795:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Index=q.IndexFromPropertyKeys=q.IndexFromPropertyKey=void 0;const ae=re(54025);const Ue=re(62746);const lt=re(69100);const Pt=re(38100);const Wt=re(65774);const Ar=re(66904);const Er=re(80494);const Ir=re(96994);function FromRest(C,q){return C.map((C=>IndexFromPropertyKey(C,q)))}function FromIntersectRest(C){return C.filter((C=>!(0,Ir.IsNever)(C)))}function FromIntersect(C,q){return(0,Ue.IntersectEvaluated)(FromIntersectRest(FromRest(C,q)))}function FromUnionRest(C){return C.some((C=>(0,Ir.IsNever)(C)))?[]:C}function FromUnion(C,q){return(0,lt.UnionEvaluated)(FromUnionRest(FromRest(C,q)))}function FromTuple(C,q){return q in C?C[q]:q==="[number]"?(0,lt.UnionEvaluated)(C):(0,ae.Never)()}function FromArray(C,q){return q==="[number]"?C:(0,ae.Never)()}function FromProperty(C,q){return q in C?C[q]:(0,ae.Never)()}function IndexFromPropertyKey(C,q){return(0,Ir.IsIntersect)(C)?FromIntersect(C.allOf,q):(0,Ir.IsUnion)(C)?FromUnion(C.anyOf,q):(0,Ir.IsTuple)(C)?FromTuple(C.items??[],q):(0,Ir.IsArray)(C)?FromArray(C.items,q):(0,Ir.IsObject)(C)?FromProperty(C.properties,q):(0,ae.Never)()}q.IndexFromPropertyKey=IndexFromPropertyKey;function IndexFromPropertyKeys(C,q){return q.map((q=>IndexFromPropertyKey(C,q)))}q.IndexFromPropertyKeys=IndexFromPropertyKeys;function FromSchema(C,q){return(0,lt.UnionEvaluated)(IndexFromPropertyKeys(C,q))}function Index(C,q,re={}){return(0,Ir.IsMappedResult)(q)?(0,Pt.CloneType)((0,Er.IndexFromMappedResult)(C,q,re)):(0,Ir.IsMappedKey)(q)?(0,Pt.CloneType)((0,Ar.IndexFromMappedKey)(C,q,re)):(0,Ir.IsSchema)(q)?(0,Pt.CloneType)(FromSchema(C,(0,Wt.IndexPropertyKeys)(q)),re):(0,Pt.CloneType)(FromSchema(C,q),re)}q.Index=Index},26277:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(79659),q)},79659:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.InstanceType=void 0;const ae=re(38100);function InstanceType(C,q={}){return(0,ae.CloneType)(C.returns,q)}q.InstanceType=InstanceType},4949:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(76295),q)},76295:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Integer=void 0;const ae=re(97034);function Integer(C={}){return{...C,[ae.Kind]:"Integer",type:"integer"}}q.Integer=Integer},62746:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(89995),q);Ue(re(35212),q);Ue(re(26015),q)},57604:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IntersectCreate=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(96994);function IntersectCreate(C,q){const re=C.every((C=>(0,lt.IsObject)(C)));const Pt=(0,lt.IsSchema)(q.unevaluatedProperties)?{unevaluatedProperties:(0,Ue.CloneType)(q.unevaluatedProperties)}:{};return q.unevaluatedProperties===false||(0,lt.IsSchema)(q.unevaluatedProperties)||re?{...q,...Pt,[ae.Kind]:"Intersect",type:"object",allOf:(0,Ue.CloneRest)(C)}:{...q,...Pt,[ae.Kind]:"Intersect",allOf:(0,Ue.CloneRest)(C)}}q.IntersectCreate=IntersectCreate},89995:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IntersectEvaluated=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(54025);const Wt=re(38425);const Ar=re(57604);const Er=re(96994);function IsIntersectOptional(C){return C.every((C=>(0,Er.IsOptional)(C)))}function RemoveOptionalFromType(C){return(0,lt.Discard)(C,[ae.OptionalKind])}function RemoveOptionalFromRest(C){return C.map((C=>(0,Er.IsOptional)(C)?RemoveOptionalFromType(C):C))}function ResolveIntersect(C,q){return IsIntersectOptional(C)?(0,Wt.Optional)((0,Ar.IntersectCreate)(RemoveOptionalFromRest(C),q)):(0,Ar.IntersectCreate)(RemoveOptionalFromRest(C),q)}function IntersectEvaluated(C,q={}){if(C.length===0)return(0,Pt.Never)(q);if(C.length===1)return(0,Ue.CloneType)(C[0],q);if(C.some((C=>(0,Er.IsTransform)(C))))throw new Error("Cannot intersect transform types");return ResolveIntersect(C,q)}q.IntersectEvaluated=IntersectEvaluated},35212:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});const ae=re(97034)},26015:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Intersect=void 0;const ae=re(38100);const Ue=re(54025);const lt=re(57604);const Pt=re(96994);function Intersect(C,q={}){if(C.length===0)return(0,Ue.Never)(q);if(C.length===1)return(0,ae.CloneType)(C[0],q);if(C.some((C=>(0,Pt.IsTransform)(C))))throw new Error("Cannot intersect transform types");return(0,lt.IntersectCreate)(C,q)}q.Intersect=Intersect},15400:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Capitalize=void 0;const ae=re(39015);function Capitalize(C,q={}){return(0,ae.Intrinsic)(C,"Capitalize",q)}q.Capitalize=Capitalize},30568:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(15400),q);Ue(re(71804),q);Ue(re(39015),q);Ue(re(13161),q);Ue(re(57019),q);Ue(re(80968),q)},71804:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IntrinsicFromMappedKey=void 0;const ae=re(41094);const Ue=re(39015);const lt=re(98076);function MappedIntrinsicPropertyKey(C,q,re){return{[C]:(0,Ue.Intrinsic)((0,lt.Literal)(C),q,re)}}function MappedIntrinsicPropertyKeys(C,q,re){return C.reduce(((C,ae)=>({...C,...MappedIntrinsicPropertyKey(ae,q,re)})),{})}function MappedIntrinsicProperties(C,q,re){return MappedIntrinsicPropertyKeys(C["keys"],q,re)}function IntrinsicFromMappedKey(C,q,re){const Ue=MappedIntrinsicProperties(C,q,re);return(0,ae.MappedResult)(Ue)}q.IntrinsicFromMappedKey=IntrinsicFromMappedKey},39015:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Intrinsic=void 0;const ae=re(26609);const Ue=re(71804);const lt=re(98076);const Pt=re(69100);const Wt=re(96994);function ApplyUncapitalize(C){const[q,re]=[C.slice(0,1),C.slice(1)];return[q.toLowerCase(),re].join("")}function ApplyCapitalize(C){const[q,re]=[C.slice(0,1),C.slice(1)];return[q.toUpperCase(),re].join("")}function ApplyUppercase(C){return C.toUpperCase()}function ApplyLowercase(C){return C.toLowerCase()}function FromTemplateLiteral(C,q,re){const Ue=(0,ae.TemplateLiteralParseExact)(C.pattern);const Wt=(0,ae.IsTemplateLiteralExpressionFinite)(Ue);if(!Wt)return{...C,pattern:FromLiteralValue(C.pattern,q)};const Ar=[...(0,ae.TemplateLiteralExpressionGenerate)(Ue)];const Er=Ar.map((C=>(0,lt.Literal)(C)));const Ir=FromRest(Er,q);const Br=(0,Pt.Union)(Ir);return(0,ae.TemplateLiteral)([Br],re)}function FromLiteralValue(C,q){return typeof C==="string"?q==="Uncapitalize"?ApplyUncapitalize(C):q==="Capitalize"?ApplyCapitalize(C):q==="Uppercase"?ApplyUppercase(C):q==="Lowercase"?ApplyLowercase(C):C:C.toString()}function FromRest(C,q){return C.map((C=>Intrinsic(C,q)))}function Intrinsic(C,q,re={}){return(0,Wt.IsMappedKey)(C)?(0,Ue.IntrinsicFromMappedKey)(C,q,re):(0,Wt.IsTemplateLiteral)(C)?FromTemplateLiteral(C,q,C):(0,Wt.IsUnion)(C)?(0,Pt.Union)(FromRest(C.anyOf,q),re):(0,Wt.IsLiteral)(C)?(0,lt.Literal)(FromLiteralValue(C.const,q),re):C}q.Intrinsic=Intrinsic},13161:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Lowercase=void 0;const ae=re(39015);function Lowercase(C,q={}){return(0,ae.Intrinsic)(C,"Lowercase",q)}q.Lowercase=Lowercase},57019:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Uncapitalize=void 0;const ae=re(39015);function Uncapitalize(C,q={}){return(0,ae.Intrinsic)(C,"Uncapitalize",q)}q.Uncapitalize=Uncapitalize},80968:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Uppercase=void 0;const ae=re(39015);function Uppercase(C,q={}){return(0,ae.Intrinsic)(C,"Uppercase",q)}q.Uppercase=Uppercase},35907:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(78493),q)},78493:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Iterator=void 0;const ae=re(38100);const Ue=re(97034);function Iterator(C,q={}){return{...q,[Ue.Kind]:"Iterator",type:"Iterator",items:(0,ae.CloneType)(C)}}q.Iterator=Iterator},73373:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(19642),q);Ue(re(740),q);Ue(re(33930),q);Ue(re(36895),q)},19642:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.KeyOfFromMappedResult=void 0;const ae=re(41094);const Ue=re(36895);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.KeyOf)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function KeyOfFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.KeyOfFromMappedResult=KeyOfFromMappedResult},740:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.KeyOfPropertyEntries=void 0;const ae=re(11795);const Ue=re(33930);function KeyOfPropertyEntries(C){const q=(0,Ue.KeyOfPropertyKeys)(C);const re=(0,ae.IndexFromPropertyKeys)(C,q);return q.map(((C,ae)=>[q[ae],re[ae]]))}q.KeyOfPropertyEntries=KeyOfPropertyEntries},33930:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.KeyOfPattern=q.KeyOfPropertyKeys=void 0;const ae=re(12760);const Ue=re(96994);function FromRest(C){const q=[];for(const re of C)q.push(KeyOfPropertyKeys(re));return q}function FromIntersect(C){const q=FromRest(C);const re=(0,ae.SetUnionMany)(q);return re}function FromUnion(C){const q=FromRest(C);const re=(0,ae.SetIntersectMany)(q);return re}function FromTuple(C){return C.map(((C,q)=>q.toString()))}function FromArray(C){return["[number]"]}function FromProperties(C){return globalThis.Object.getOwnPropertyNames(C)}function FromPatternProperties(C){if(!lt)return[];const q=globalThis.Object.getOwnPropertyNames(C);return q.map((C=>C[0]==="^"&&C[C.length-1]==="$"?C.slice(1,C.length-1):C))}function KeyOfPropertyKeys(C){return(0,Ue.IsIntersect)(C)?FromIntersect(C.allOf):(0,Ue.IsUnion)(C)?FromUnion(C.anyOf):(0,Ue.IsTuple)(C)?FromTuple(C.items??[]):(0,Ue.IsArray)(C)?FromArray(C.items):(0,Ue.IsObject)(C)?FromProperties(C.properties):(0,Ue.IsRecord)(C)?FromPatternProperties(C.patternProperties):[]}q.KeyOfPropertyKeys=KeyOfPropertyKeys;let lt=false;function KeyOfPattern(C){lt=true;const q=KeyOfPropertyKeys(C);lt=false;const re=q.map((C=>`(${C})`));return`^(${re.join("|")})$`}q.KeyOfPattern=KeyOfPattern},36895:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.KeyOf=q.KeyOfPropertyKeysToRest=void 0;const ae=re(98076);const Ue=re(85544);const lt=re(33930);const Pt=re(69100);const Wt=re(38100);const Ar=re(19642);const Er=re(96994);function KeyOfPropertyKeysToRest(C){return C.map((C=>C==="[number]"?(0,Ue.Number)():(0,ae.Literal)(C)))}q.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;function KeyOf(C,q={}){if((0,Er.IsMappedResult)(C)){return(0,Ar.KeyOfFromMappedResult)(C,q)}else{const re=(0,lt.KeyOfPropertyKeys)(C);const ae=KeyOfPropertyKeysToRest(re);const Ue=(0,Pt.UnionEvaluated)(ae);return(0,Wt.CloneType)(Ue,q)}}q.KeyOf=KeyOf},98076:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(31591),q)},31591:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Literal=void 0;const ae=re(97034);function Literal(C,q={}){return{...q,[ae.Kind]:"Literal",const:C,type:typeof C}}q.Literal=Literal},41094:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(35613),q);Ue(re(67517),q);Ue(re(90467),q)},35613:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.MappedKey=void 0;const ae=re(97034);function MappedKey(C){return{[ae.Kind]:"MappedKey",keys:C}}q.MappedKey=MappedKey},67517:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.MappedResult=void 0;const ae=re(97034);function MappedResult(C){return{[ae.Kind]:"MappedResult",properties:C}}q.MappedResult=MappedResult},90467:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Mapped=q.MappedFunctionReturnType=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(17186);const Wt=re(68092);const Ar=re(16939);const Er=re(29857);const Ir=re(86918);const Br=re(62746);const kr=re(35907);const Pr=re(98076);const Qr=re(62094);const Fr=re(38425);const Dr=re(70062);const xr=re(40675);const Mr=re(7521);const Ur=re(69100);const Nr=re(12760);const Lr=re(67517);const jr=re(96994);function FromMappedResult(C,q){return C in q?FromSchemaType(C,q[C]):(0,Lr.MappedResult)(q)}function MappedKeyToKnownMappedResultProperties(C){return{[C]:(0,Pr.Literal)(C)}}function MappedKeyToUnknownMappedResultProperties(C){const q={};for(const re of C)q[re]=(0,Pr.Literal)(re);return q}function MappedKeyToMappedResultProperties(C,q){return(0,Nr.SetIncludes)(q,C)?MappedKeyToKnownMappedResultProperties(C):MappedKeyToUnknownMappedResultProperties(q)}function FromMappedKey(C,q){const re=MappedKeyToMappedResultProperties(C,q);return FromMappedResult(C,re)}function FromRest(C,q){return q.map((q=>FromSchemaType(C,q)))}function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(q))re[ae]=FromSchemaType(C,q[ae]);return re}function FromSchemaType(C,q){return(0,jr.IsOptional)(q)?(0,Fr.Optional)(FromSchemaType(C,(0,lt.Discard)(q,[ae.OptionalKind]))):(0,jr.IsReadonly)(q)?(0,xr.Readonly)(FromSchemaType(C,(0,lt.Discard)(q,[ae.ReadonlyKind]))):(0,jr.IsMappedResult)(q)?FromMappedResult(C,q.properties):(0,jr.IsMappedKey)(q)?FromMappedKey(C,q.keys):(0,jr.IsConstructor)(q)?(0,Ar.Constructor)(FromRest(C,q.parameters),FromSchemaType(C,q.returns)):(0,jr.IsFunction)(q)?(0,Er.Function)(FromRest(C,q.parameters),FromSchemaType(C,q.returns)):(0,jr.IsAsyncIterator)(q)?(0,Wt.AsyncIterator)(FromSchemaType(C,q.items)):(0,jr.IsIterator)(q)?(0,kr.Iterator)(FromSchemaType(C,q.items)):(0,jr.IsIntersect)(q)?(0,Br.Intersect)(FromRest(C,q.allOf)):(0,jr.IsUnion)(q)?(0,Ur.Union)(FromRest(C,q.anyOf)):(0,jr.IsTuple)(q)?(0,Mr.Tuple)(FromRest(C,q.items??[])):(0,jr.IsObject)(q)?(0,Qr.Object)(FromProperties(C,q.properties)):(0,jr.IsArray)(q)?(0,Pt.Array)(FromSchemaType(C,q.items)):(0,jr.IsPromise)(q)?(0,Dr.Promise)(FromSchemaType(C,q.item)):q}function MappedFunctionReturnType(C,q){const re={};for(const ae of C)re[ae]=FromSchemaType(ae,q);return re}q.MappedFunctionReturnType=MappedFunctionReturnType;function Mapped(C,q,re={}){const lt=(0,jr.IsSchema)(C)?(0,Ir.IndexPropertyKeys)(C):C;const Pt=q({[ae.Kind]:"MappedKey",keys:lt});const Wt=MappedFunctionReturnType(lt,Pt);return(0,Ue.CloneType)((0,Qr.Object)(Wt),re)}q.Mapped=Mapped},54025:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(29867),q)},29867:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Never=void 0;const ae=re(97034);function Never(C={}){return{...C,[ae.Kind]:"Never",not:{}}}q.Never=Never},1078:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(8559),q)},8559:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Not=void 0;const ae=re(38100);const Ue=re(97034);function Not(C,q){return{...q,[Ue.Kind]:"Not",not:(0,ae.CloneType)(C)}}q.Not=Not},50468:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(3007),q)},3007:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Null=void 0;const ae=re(97034);function Null(C={}){return{...C,[ae.Kind]:"Null",type:"null"}}q.Null=Null},85544:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(14151),q)},14151:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Number=void 0;const ae=re(97034);function Number(C={}){return{...C,[ae.Kind]:"Number",type:"number"}}q.Number=Number},62094:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(14211),q)},14211:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Object=void 0;const ae=re(38100);const Ue=re(97034);const lt=re(96994);function _Object(C,q={}){const re=globalThis.Object.getOwnPropertyNames(C);const Pt=re.filter((q=>(0,lt.IsOptional)(C[q])));const Wt=re.filter((C=>!Pt.includes(C)));const Ar=(0,lt.IsSchema)(q.additionalProperties)?{additionalProperties:(0,ae.CloneType)(q.additionalProperties)}:{};const Er={};for(const q of re)Er[q]=(0,ae.CloneType)(C[q]);return Wt.length>0?{...q,...Ar,[Ue.Kind]:"Object",type:"object",properties:Er,required:Wt}:{...q,...Ar,[Ue.Kind]:"Object",type:"object",properties:Er}}q.Object=_Object},88932:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(99308),q);Ue(re(39602),q);Ue(re(33143),q)},99308:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.OmitFromMappedKey=void 0;const ae=re(41094);const Ue=re(33143);function FromPropertyKey(C,q,re){return{[q]:(0,Ue.Omit)(C,[q],re)}}function FromPropertyKeys(C,q,re){return q.reduce(((q,ae)=>({...q,...FromPropertyKey(C,ae,re)})),{})}function FromMappedKey(C,q,re){return FromPropertyKeys(C,q.keys,re)}function OmitFromMappedKey(C,q,re){const Ue=FromMappedKey(C,q,re);return(0,ae.MappedResult)(Ue)}q.OmitFromMappedKey=OmitFromMappedKey},39602:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.OmitFromMappedResult=void 0;const ae=re(41094);const Ue=re(33143);function FromProperties(C,q,re){const ae={};for(const lt of globalThis.Object.getOwnPropertyNames(C))ae[lt]=(0,Ue.Omit)(C[lt],q,re);return ae}function FromMappedResult(C,q,re){return FromProperties(C.properties,q,re)}function OmitFromMappedResult(C,q,re){const Ue=FromMappedResult(C,q,re);return(0,ae.MappedResult)(Ue)}q.OmitFromMappedResult=OmitFromMappedResult},33143:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Omit=void 0;const ae=re(62746);const Ue=re(69100);const lt=re(62094);const Pt=re(86918);const Wt=re(83889);const Ar=re(97034);const Er=re(38100);const Ir=re(99308);const Br=re(39602);const kr=re(96994);function FromIntersect(C,q){return C.map((C=>OmitResolve(C,q)))}function FromUnion(C,q){return C.map((C=>OmitResolve(C,q)))}function FromProperty(C,q){const{[q]:re,...ae}=C;return ae}function FromProperties(C,q){return q.reduce(((C,q)=>FromProperty(C,q)),C)}function OmitResolve(C,q){return(0,kr.IsIntersect)(C)?(0,ae.Intersect)(FromIntersect(C.allOf,q)):(0,kr.IsUnion)(C)?(0,Ue.Union)(FromUnion(C.anyOf,q)):(0,kr.IsObject)(C)?(0,lt.Object)(FromProperties(C.properties,q)):(0,lt.Object)({})}function Omit(C,q,re={}){if((0,kr.IsMappedKey)(q))return(0,Ir.OmitFromMappedKey)(C,q,re);if((0,kr.IsMappedResult)(C))return(0,Br.OmitFromMappedResult)(C,q,re);const ae=(0,kr.IsSchema)(q)?(0,Pt.IndexPropertyKeys)(q):q;const Ue=(0,Wt.Discard)(C,[Ar.TransformKind,"$id","required"]);const lt=(0,Er.CloneType)(OmitResolve(C,ae),re);return{...Ue,...lt}}q.Omit=Omit},38425:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(63984),q);Ue(re(15405),q)},63984:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.OptionalFromMappedResult=void 0;const ae=re(41094);const Ue=re(15405);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Optional)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function OptionalFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.OptionalFromMappedResult=OptionalFromMappedResult},15405:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Optional=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(63984);const Wt=re(96994);function RemoveOptional(C){return(0,lt.Discard)((0,Ue.CloneType)(C),[ae.OptionalKind])}function AddOptional(C){return{...(0,Ue.CloneType)(C),[ae.OptionalKind]:"Optional"}}function OptionalWithFlag(C,q){return q===false?RemoveOptional(C):AddOptional(C)}function Optional(C,q){const re=q??true;return(0,Wt.IsMappedResult)(C)?(0,Pt.OptionalFromMappedResult)(C,re):OptionalWithFlag(C,re)}q.Optional=Optional},30449:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(92853),q)},92853:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Parameters=void 0;const ae=re(7521);const Ue=re(38100);function Parameters(C,q={}){return(0,ae.Tuple)((0,Ue.CloneRest)(C.parameters),{...q})}q.Parameters=Parameters},75726:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(16438),q);Ue(re(34523),q)},16438:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.PartialFromMappedResult=void 0;const ae=re(41094);const Ue=re(34523);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Partial)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function PartialFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.PartialFromMappedResult=PartialFromMappedResult},34523:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Partial=void 0;const ae=re(38425);const Ue=re(62094);const lt=re(62746);const Pt=re(69100);const Wt=re(83889);const Ar=re(97034);const Er=re(38100);const Ir=re(16438);const Br=re(96994);function FromRest(C){return C.map((C=>PartialResolve(C)))}function FromProperties(C){const q={};for(const re of globalThis.Object.getOwnPropertyNames(C))q[re]=(0,ae.Optional)(C[re]);return q}function PartialResolve(C){return(0,Br.IsIntersect)(C)?(0,lt.Intersect)(FromRest(C.allOf)):(0,Br.IsUnion)(C)?(0,Pt.Union)(FromRest(C.anyOf)):(0,Br.IsObject)(C)?(0,Ue.Object)(FromProperties(C.properties)):(0,Ue.Object)({})}function Partial(C,q={}){if((0,Br.IsMappedResult)(C))return(0,Ir.PartialFromMappedResult)(C,q);const re=(0,Wt.Discard)(C,[Ar.TransformKind,"$id","required"]);const ae=(0,Er.CloneType)(PartialResolve(C),q);return{...re,...ae}}q.Partial=Partial},94354:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(74327),q)},74327:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.PatternStringExact=q.PatternNumberExact=q.PatternBooleanExact=q.PatternString=q.PatternNumber=q.PatternBoolean=void 0;q.PatternBoolean="(true|false)";q.PatternNumber="(0|[1-9][0-9]*)";q.PatternString="(.*)";q.PatternBooleanExact=`^${q.PatternBoolean}$`;q.PatternNumberExact=`^${q.PatternNumber}$`;q.PatternStringExact=`^${q.PatternString}$`},40640:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(72748),q);Ue(re(4882),q);Ue(re(65911),q)},72748:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.PickFromMappedKey=void 0;const ae=re(41094);const Ue=re(65911);function FromPropertyKey(C,q,re){return{[q]:(0,Ue.Pick)(C,[q],re)}}function FromPropertyKeys(C,q,re){return q.reduce(((q,ae)=>({...q,...FromPropertyKey(C,ae,re)})),{})}function FromMappedKey(C,q,re){return FromPropertyKeys(C,q.keys,re)}function PickFromMappedKey(C,q,re){const Ue=FromMappedKey(C,q,re);return(0,ae.MappedResult)(Ue)}q.PickFromMappedKey=PickFromMappedKey},4882:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.PickFromMappedResult=void 0;const ae=re(41094);const Ue=re(65911);function FromProperties(C,q,re){const ae={};for(const lt of globalThis.Object.getOwnPropertyNames(C))ae[lt]=(0,Ue.Pick)(C[lt],q,re);return ae}function FromMappedResult(C,q,re){return FromProperties(C.properties,q,re)}function PickFromMappedResult(C,q,re){const Ue=FromMappedResult(C,q,re);return(0,ae.MappedResult)(Ue)}q.PickFromMappedResult=PickFromMappedResult},65911:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Pick=void 0;const ae=re(62746);const Ue=re(69100);const lt=re(62094);const Pt=re(86918);const Wt=re(83889);const Ar=re(97034);const Er=re(38100);const Ir=re(72748);const Br=re(4882);const kr=re(96994);function FromIntersect(C,q){return C.map((C=>PickResolve(C,q)))}function FromUnion(C,q){return C.map((C=>PickResolve(C,q)))}function FromProperties(C,q){const re={};for(const ae of q)if(ae in C)re[ae]=C[ae];return re}function PickResolve(C,q){return(0,kr.IsIntersect)(C)?(0,ae.Intersect)(FromIntersect(C.allOf,q)):(0,kr.IsUnion)(C)?(0,Ue.Union)(FromUnion(C.anyOf,q)):(0,kr.IsObject)(C)?(0,lt.Object)(FromProperties(C.properties,q)):(0,lt.Object)({})}function Pick(C,q,re={}){if((0,kr.IsMappedKey)(q))return(0,Ir.PickFromMappedKey)(C,q,re);if((0,kr.IsMappedResult)(C))return(0,Br.PickFromMappedResult)(C,q,re);const ae=(0,kr.IsSchema)(q)?(0,Pt.IndexPropertyKeys)(q):q;const Ue=(0,Wt.Discard)(C,[Ar.TransformKind,"$id","required"]);const lt=(0,Er.CloneType)(PickResolve(C,ae),re);return{...Ue,...lt}}q.Pick=Pick},70062:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(35675),q)},35675:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Promise=void 0;const ae=re(38100);const Ue=re(97034);function Promise(C,q={}){return{...q,[Ue.Kind]:"Promise",type:"Promise",item:(0,ae.CloneType)(C)}}q.Promise=Promise},78946:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(84127),q)},84127:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ReadonlyOptional=void 0;const ae=re(40675);const Ue=re(38425);function ReadonlyOptional(C){return(0,ae.Readonly)((0,Ue.Optional)(C))}q.ReadonlyOptional=ReadonlyOptional},40675:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(94180),q);Ue(re(90401),q)},94180:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ReadonlyFromMappedResult=void 0;const ae=re(41094);const Ue=re(90401);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Readonly)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function ReadonlyFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.ReadonlyFromMappedResult=ReadonlyFromMappedResult},90401:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Readonly=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(94180);const Wt=re(96994);function RemoveReadonly(C){return(0,lt.Discard)((0,Ue.CloneType)(C),[ae.ReadonlyKind])}function AddReadonly(C){return{...(0,Ue.CloneType)(C),[ae.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(C,q){return q===false?RemoveReadonly(C):AddReadonly(C)}function Readonly(C,q){const re=q??true;return(0,Wt.IsMappedResult)(C)?(0,Pt.ReadonlyFromMappedResult)(C,re):ReadonlyWithFlag(C,re)}q.Readonly=Readonly},30420:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(98167),q)},98167:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Record=void 0;const ae=re(62094);const Ue=re(54025);const lt=re(69100);const Pt=re(26609);const Wt=re(94354);const Ar=re(86918);const Er=re(97034);const Ir=re(38100);const Br=re(13415);const kr=re(96994);function RecordCreateFromPattern(C,q,re){return{...re,[Er.Kind]:"Record",type:"object",patternProperties:{[C]:(0,Ir.CloneType)(q)}}}function RecordCreateFromKeys(C,q,re){const Ue={};for(const re of C)Ue[re]=(0,Ir.CloneType)(q);return(0,ae.Object)(Ue,{...re,[Er.Hint]:"Record"})}function FromTemplateLiteralKey(C,q,re){return(0,Pt.IsTemplateLiteralFinite)(C)?RecordCreateFromKeys((0,Ar.IndexPropertyKeys)(C),q,re):RecordCreateFromPattern(C.pattern,q,re)}function FromUnionKey(C,q,re){return RecordCreateFromKeys((0,Ar.IndexPropertyKeys)((0,lt.Union)(C)),q,re)}function FromLiteralKey(C,q,re){return RecordCreateFromKeys([C.toString()],q,re)}function FromRegExpKey(C,q,re){return RecordCreateFromPattern(C.source,q,re)}function FromStringKey(C,q,re){const ae=(0,Br.IsUndefined)(C.pattern)?Wt.PatternStringExact:C.pattern;return RecordCreateFromPattern(ae,q,re)}function FromIntegerKey(C,q,re){return RecordCreateFromPattern(Wt.PatternNumberExact,q,re)}function FromNumberKey(C,q,re){return RecordCreateFromPattern(Wt.PatternNumberExact,q,re)}function Record(C,q,re={}){return(0,kr.IsUnion)(C)?FromUnionKey(C.anyOf,q,re):(0,kr.IsTemplateLiteral)(C)?FromTemplateLiteralKey(C,q,re):(0,kr.IsLiteral)(C)?FromLiteralKey(C.const,q,re):(0,kr.IsInteger)(C)?FromIntegerKey(C,q,re):(0,kr.IsNumber)(C)?FromNumberKey(C,q,re):(0,kr.IsRegExp)(C)?FromRegExpKey(C,q,re):(0,kr.IsString)(C)?FromStringKey(C,q,re):(0,Ue.Never)(re)}q.Record=Record},33107:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(13475),q)},13475:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Recursive=void 0;const ae=re(38100);const Ue=re(13415);const lt=re(97034);let Pt=0;function Recursive(C,q={}){if((0,Ue.IsUndefined)(q.$id))q.$id=`T${Pt++}`;const re=C({[lt.Kind]:"This",$ref:`${q.$id}`});re.$id=q.$id;return(0,ae.CloneType)({...q,[lt.Hint]:"Recursive",...re})}q.Recursive=Recursive},80470:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(27735),q)},27735:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Ref=void 0;const ae=re(97034);const Ue=re(13415);function Ref(C,q={}){if((0,Ue.IsString)(C))return{...q,[ae.Kind]:"Ref",$ref:C};if((0,Ue.IsUndefined)(C.$id))throw new Error("Reference target type must specify an $id");return{...q,[ae.Kind]:"Ref",$ref:C.$id}}q.Ref=Ref},26936:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(99383),q)},99383:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.RegExp=void 0;const ae=re(13415);const Ue=re(97034);function RegExp(C,q={}){const re=(0,ae.IsString)(C)?new globalThis.RegExp(C):C;return{...q,[Ue.Kind]:"RegExp",type:"RegExp",source:re.source,flags:re.flags}}q.RegExp=RegExp},56315:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Get=q.Set=q.Has=q.Delete=q.Clear=q.Entries=void 0;const re=new Map;function Entries(){return new Map(re)}q.Entries=Entries;function Clear(){return re.clear()}q.Clear=Clear;function Delete(C){return re.delete(C)}q.Delete=Delete;function Has(C){return re.has(C)}q.Has=Has;function Set(C,q){re.set(C,q)}q.Set=Set;function Get(C){return re.get(C)}q.Get=Get},51786:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeRegistry=q.FormatRegistry=void 0;q.FormatRegistry=re(56315);q.TypeRegistry=re(1912)},1912:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Get=q.Set=q.Has=q.Delete=q.Clear=q.Entries=void 0;const re=new Map;function Entries(){return new Map(re)}q.Entries=Entries;function Clear(){return re.clear()}q.Clear=Clear;function Delete(C){return re.delete(C)}q.Delete=Delete;function Has(C){return re.has(C)}q.Has=Has;function Set(C,q){re.set(C,q)}q.Set=Set;function Get(C){return re.get(C)}q.Get=Get},42744:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(24722),q);Ue(re(78775),q)},24722:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.RequiredFromMappedResult=void 0;const ae=re(41094);const Ue=re(78775);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Required)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function RequiredFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.RequiredFromMappedResult=RequiredFromMappedResult},78775:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Required=void 0;const ae=re(62746);const Ue=re(69100);const lt=re(62094);const Pt=re(97034);const Wt=re(38100);const Ar=re(83889);const Er=re(24722);const Ir=re(96994);function FromRest(C){return C.map((C=>RequiredResolve(C)))}function FromProperties(C){const q={};for(const re of globalThis.Object.getOwnPropertyNames(C))q[re]=(0,Ar.Discard)(C[re],[Pt.OptionalKind]);return q}function RequiredResolve(C){return(0,Ir.IsIntersect)(C)?(0,ae.Intersect)(FromRest(C.allOf)):(0,Ir.IsUnion)(C)?(0,Ue.Union)(FromRest(C.anyOf)):(0,Ir.IsObject)(C)?(0,lt.Object)(FromProperties(C.properties)):(0,lt.Object)({})}function Required(C,q={}){if((0,Ir.IsMappedResult)(C)){return(0,Er.RequiredFromMappedResult)(C,q)}else{const re=(0,Ar.Discard)(C,[Pt.TransformKind,"$id","required"]);const ae=(0,Wt.CloneType)(RequiredResolve(C),q);return{...re,...ae}}}q.Required=Required},83003:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(48881),q)},48881:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Rest=void 0;const ae=re(38100);const Ue=re(96994);function RestResolve(C){return(0,Ue.IsIntersect)(C)?(0,ae.CloneRest)(C.allOf):(0,Ue.IsUnion)(C)?(0,ae.CloneRest)(C.anyOf):(0,Ue.IsTuple)(C)?(0,ae.CloneRest)(C.items??[]):[]}function Rest(C){return(0,ae.CloneRest)(RestResolve(C))}q.Rest=Rest},32970:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(11243),q)},11243:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ReturnType=void 0;const ae=re(38100);function ReturnType(C,q={}){return(0,ae.CloneType)(C.returns,q)}q.ReturnType=ReturnType},13523:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},68954:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(13523),q);Ue(re(53283),q)},53283:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});const ae=re(97034)},12760:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85944),q)},85944:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.SetUnionMany=q.SetIntersectMany=q.SetComplement=q.SetUnion=q.SetIntersect=q.SetDistinct=q.SetIsSubset=q.SetIncludes=void 0;function SetIncludes(C,q){return C.includes(q)}q.SetIncludes=SetIncludes;function SetIsSubset(C,q){return C.every((C=>SetIncludes(q,C)))}q.SetIsSubset=SetIsSubset;function SetDistinct(C){return[...new Set(C)]}q.SetDistinct=SetDistinct;function SetIntersect(C,q){return C.filter((C=>q.includes(C)))}q.SetIntersect=SetIntersect;function SetUnion(C,q){return[...C,...q]}q.SetUnion=SetUnion;function SetComplement(C,q){return C.filter((C=>!q.includes(C)))}q.SetComplement=SetComplement;function SetIntersectManyResolve(C,q){return C.reduce(((C,q)=>SetIntersect(C,q)),q)}function SetIntersectMany(C){return C.length===1?C[0]:C.length>1?SetIntersectManyResolve(C.slice(1),C[0]):[]}q.SetIntersectMany=SetIntersectMany;function SetUnionMany(C){const q=[];for(const re of C)q.push(...re);return q}q.SetUnionMany=SetUnionMany},60343:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(917),q)},917:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},23556:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(69295),q)},69295:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Strict=void 0;function Strict(C){return JSON.parse(JSON.stringify(C))}q.Strict=Strict},81688:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(14695),q)},14695:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.String=void 0;const ae=re(97034);function String(C={}){return{...C,[ae.Kind]:"String",type:"string"}}q.String=String},2129:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(86445),q)},86445:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Symbol=void 0;const ae=re(97034);function Symbol(C){return{...C,[ae.Kind]:"Symbol",type:"symbol"}}q.Symbol=Symbol},97034:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(22311),q)},22311:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Kind=q.Hint=q.OptionalKind=q.ReadonlyKind=q.TransformKind=void 0;q.TransformKind=Symbol.for("TypeBox.Transform");q.ReadonlyKind=Symbol.for("TypeBox.Readonly");q.OptionalKind=Symbol.for("TypeBox.Optional");q.Hint=Symbol.for("TypeBox.Hint");q.Kind=Symbol.for("TypeBox.Kind")},75930:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsTemplateLiteralFinite=q.IsTemplateLiteralExpressionFinite=q.TemplateLiteralFiniteError=void 0;const ae=re(75430);const Ue=re(26113);class TemplateLiteralFiniteError extends Ue.TypeBoxError{}q.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(C){return C.type==="or"&&C.expr.length===2&&C.expr[0].type==="const"&&C.expr[0].const==="0"&&C.expr[1].type==="const"&&C.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(C){return C.type==="or"&&C.expr.length===2&&C.expr[0].type==="const"&&C.expr[0].const==="true"&&C.expr[1].type==="const"&&C.expr[1].const==="false"}function IsStringExpression(C){return C.type==="const"&&C.const===".*"}function IsTemplateLiteralExpressionFinite(C){return IsNumberExpression(C)||IsStringExpression(C)?false:IsBooleanExpression(C)?true:C.type==="and"?C.expr.every((C=>IsTemplateLiteralExpressionFinite(C))):C.type==="or"?C.expr.every((C=>IsTemplateLiteralExpressionFinite(C))):C.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}q.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;function IsTemplateLiteralFinite(C){const q=(0,ae.TemplateLiteralParseExact)(C.pattern);return IsTemplateLiteralExpressionFinite(q)}q.IsTemplateLiteralFinite=IsTemplateLiteralFinite},85670:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralGenerate=q.TemplateLiteralExpressionGenerate=q.TemplateLiteralGenerateError=void 0;const ae=re(75930);const Ue=re(75430);const lt=re(26113);class TemplateLiteralGenerateError extends lt.TypeBoxError{}q.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(C){if(C.length===1)return yield*C[0];for(const q of C[0]){for(const re of GenerateReduce(C.slice(1))){yield`${q}${re}`}}}function*GenerateAnd(C){return yield*GenerateReduce(C.expr.map((C=>[...TemplateLiteralExpressionGenerate(C)])))}function*GenerateOr(C){for(const q of C.expr)yield*TemplateLiteralExpressionGenerate(q)}function*GenerateConst(C){return yield C.const}function*TemplateLiteralExpressionGenerate(C){return C.type==="and"?yield*GenerateAnd(C):C.type==="or"?yield*GenerateOr(C):C.type==="const"?yield*GenerateConst(C):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}q.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;function TemplateLiteralGenerate(C){const q=(0,Ue.TemplateLiteralParseExact)(C.pattern);return(0,ae.IsTemplateLiteralExpressionFinite)(q)?[...TemplateLiteralExpressionGenerate(q)]:[]}q.TemplateLiteralGenerate=TemplateLiteralGenerate},26609:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(75930),q);Ue(re(85670),q);Ue(re(98094),q);Ue(re(75430),q);Ue(re(85855),q);Ue(re(27522),q);Ue(re(4181),q)},75430:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralParseExact=q.TemplateLiteralParse=q.TemplateLiteralParserError=void 0;const ae=re(26113);class TemplateLiteralParserError extends ae.TypeBoxError{}q.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(C){return C.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(C,q,re){return C[q]===re&&C.charCodeAt(q-1)!==92}function IsOpenParen(C,q){return IsNonEscaped(C,q,"(")}function IsCloseParen(C,q){return IsNonEscaped(C,q,")")}function IsSeparator(C,q){return IsNonEscaped(C,q,"|")}function IsGroup(C){if(!(IsOpenParen(C,0)&&IsCloseParen(C,C.length-1)))return false;let q=0;for(let re=0;re0)ae.push(TemplateLiteralParse(q));re=Ue+1}}const Ue=C.slice(re);if(Ue.length>0)ae.push(TemplateLiteralParse(Ue));if(ae.length===0)return{type:"const",const:""};if(ae.length===1)return ae[0];return{type:"or",expr:ae}}function And(C){function Group(C,q){if(!IsOpenParen(C,q))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let re=0;for(let ae=q;ae0)q.push(TemplateLiteralParse(lt));re=Ue-1}}return q.length===0?{type:"const",const:""}:q.length===1?q[0]:{type:"and",expr:q}}function TemplateLiteralParse(C){return IsGroup(C)?TemplateLiteralParse(InGroup(C)):IsPrecedenceOr(C)?Or(C):IsPrecedenceAnd(C)?And(C):{type:"const",const:Unescape(C)}}q.TemplateLiteralParse=TemplateLiteralParse;function TemplateLiteralParseExact(C){return TemplateLiteralParse(C.slice(1,C.length-1))}q.TemplateLiteralParseExact=TemplateLiteralParseExact},85855:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralPattern=q.TemplateLiteralPatternError=void 0;const ae=re(94354);const Ue=re(97034);const lt=re(26113);const Pt=re(96994);class TemplateLiteralPatternError extends lt.TypeBoxError{}q.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(C){return C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(C,q){return(0,Pt.IsTemplateLiteral)(C)?C.pattern.slice(1,C.pattern.length-1):(0,Pt.IsUnion)(C)?`(${C.anyOf.map((C=>Visit(C,q))).join("|")})`:(0,Pt.IsNumber)(C)?`${q}${ae.PatternNumber}`:(0,Pt.IsInteger)(C)?`${q}${ae.PatternNumber}`:(0,Pt.IsBigInt)(C)?`${q}${ae.PatternNumber}`:(0,Pt.IsString)(C)?`${q}${ae.PatternString}`:(0,Pt.IsLiteral)(C)?`${q}${Escape(C.const.toString())}`:(0,Pt.IsBoolean)(C)?`${q}${ae.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${C[Ue.Kind]}'`)})()}function TemplateLiteralPattern(C){return`^${C.map((C=>Visit(C,""))).join("")}$`}q.TemplateLiteralPattern=TemplateLiteralPattern},98094:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralSyntax=void 0;const ae=re(98076);const Ue=re(64515);const lt=re(13278);const Pt=re(85544);const Wt=re(81688);const Ar=re(69100);const Er=re(54025);function*FromUnion(C){const q=C.trim().replace(/"|'/g,"");return q==="boolean"?yield(0,Ue.Boolean)():q==="number"?yield(0,Pt.Number)():q==="bigint"?yield(0,lt.BigInt)():q==="string"?yield(0,Wt.String)():yield(()=>{const C=q.split("|").map((C=>(0,ae.Literal)(C.trim())));return C.length===0?(0,Er.Never)():C.length===1?C[0]:(0,Ar.UnionEvaluated)(C)})()}function*FromTerminal(C){if(C[1]!=="{"){const q=(0,ae.Literal)("$");const re=FromSyntax(C.slice(1));return yield*[q,...re]}for(let q=2;q{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteral=void 0;const ae=re(98094);const Ue=re(85855);const lt=re(13415);const Pt=re(97034);function TemplateLiteral(C,q={}){const re=(0,lt.IsString)(C)?(0,Ue.TemplateLiteralPattern)((0,ae.TemplateLiteralSyntax)(C)):(0,Ue.TemplateLiteralPattern)(C);return{...q,[Pt.Kind]:"TemplateLiteral",type:"string",pattern:re}}q.TemplateLiteral=TemplateLiteral},27522:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralToUnion=void 0;const ae=re(69100);const Ue=re(98076);const lt=re(85670);function TemplateLiteralToUnion(C){const q=(0,lt.TemplateLiteralGenerate)(C);const re=q.map((C=>(0,Ue.Literal)(C)));return(0,ae.UnionEvaluated)(re)}q.TemplateLiteralToUnion=TemplateLiteralToUnion},67575:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(79399),q)},79399:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Transform=q.TransformEncodeBuilder=q.TransformDecodeBuilder=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(96994);class TransformDecodeBuilder{constructor(C){this.schema=C}Decode(C){return new TransformEncodeBuilder(this.schema,C)}}q.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(C,q){this.schema=C;this.decode=q}EncodeTransform(C,q){const Encode=re=>q[ae.TransformKind].Encode(C(re));const Decode=C=>this.decode(q[ae.TransformKind].Decode(C));const re={Encode:Encode,Decode:Decode};return{...q,[ae.TransformKind]:re}}EncodeSchema(C,q){const re={Decode:this.decode,Encode:C};return{...q,[ae.TransformKind]:re}}Encode(C){const q=(0,Ue.CloneType)(this.schema);return(0,lt.IsTransform)(q)?this.EncodeTransform(C,q):this.EncodeSchema(C,q)}}q.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(C){return new TransformDecodeBuilder(C)}q.Transform=Transform},7521:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(65667),q)},65667:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Tuple=void 0;const ae=re(38100);const Ue=re(97034);function Tuple(C,q={}){const[re,lt,Pt]=[false,C.length,C.length];return C.length>0?{...q,[Ue.Kind]:"Tuple",type:"array",items:(0,ae.CloneRest)(C),additionalItems:re,minItems:lt,maxItems:Pt}:{...q,[Ue.Kind]:"Tuple",type:"array",minItems:lt,maxItems:Pt}}q.Tuple=Tuple},68237:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Type=q.JavaScriptTypeBuilder=q.JsonTypeBuilder=void 0;var ae=re(86959);Object.defineProperty(q,"JsonTypeBuilder",{enumerable:true,get:function(){return ae.JsonTypeBuilder}});const Ue=re(17505);const lt=re(18158);Object.defineProperty(q,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return lt.JavaScriptTypeBuilder}});const Pt=Ue;q.Type=Pt},18158:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.JavaScriptTypeBuilder=void 0;const ae=re(86959);const Ue=re(68092);const lt=re(85164);const Pt=re(13278);const Wt=re(16939);const Ar=re(58562);const Er=re(49305);const Ir=re(29857);const Br=re(26277);const kr=re(35907);const Pr=re(30449);const Qr=re(70062);const Fr=re(26936);const Dr=re(32970);const xr=re(2129);const Mr=re(45760);const Ur=re(96231);const Nr=re(81947);class JavaScriptTypeBuilder extends ae.JsonTypeBuilder{AsyncIterator(C,q={}){return(0,Ue.AsyncIterator)(C,q)}Awaited(C,q={}){return(0,lt.Awaited)(C,q)}BigInt(C={}){return(0,Pt.BigInt)(C)}ConstructorParameters(C,q={}){return(0,Ar.ConstructorParameters)(C,q)}Constructor(C,q,re){return(0,Wt.Constructor)(C,q,re)}Date(C={}){return(0,Er.Date)(C)}Function(C,q,re){return(0,Ir.Function)(C,q,re)}InstanceType(C,q={}){return(0,Br.InstanceType)(C,q)}Iterator(C,q={}){return(0,kr.Iterator)(C,q)}Parameters(C,q={}){return(0,Pr.Parameters)(C,q)}Promise(C,q={}){return(0,Qr.Promise)(C,q)}RegExp(C,q={}){return(0,Fr.RegExp)(C,q)}ReturnType(C,q={}){return(0,Dr.ReturnType)(C,q)}Symbol(C){return(0,xr.Symbol)(C)}Undefined(C={}){return(0,Ur.Undefined)(C)}Uint8Array(C={}){return(0,Mr.Uint8Array)(C)}Void(C={}){return(0,Nr.Void)(C)}}q.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.JsonTypeBuilder=void 0;const ae=re(36813);const Ue=re(17186);const lt=re(64515);const Pt=re(80788);const Wt=re(19236);const Ar=re(911);const Er=re(98056);const Ir=re(41153);const Br=re(94850);const kr=re(69682);const Pr=re(86918);const Qr=re(4949);const Fr=re(62746);const Dr=re(30568);const xr=re(73373);const Mr=re(98076);const Ur=re(41094);const Nr=re(54025);const Lr=re(1078);const jr=re(50468);const Gr=re(85544);const Vr=re(62094);const Hr=re(88932);const Wr=re(38425);const $r=re(75726);const Kr=re(40640);const zr=re(40675);const Jr=re(78946);const Yr=re(30420);const Xr=re(33107);const Zr=re(80470);const en=re(42744);const tn=re(83003);const rn=re(23556);const nn=re(81688);const sn=re(26609);const an=re(67575);const cn=re(7521);const ln=re(69100);const un=re(51897);const dn=re(23339);class JsonTypeBuilder{Strict(C){return(0,rn.Strict)(C)}ReadonlyOptional(C){return(0,Jr.ReadonlyOptional)(C)}Readonly(C,q){return(0,zr.Readonly)(C,q??true)}Optional(C,q){return(0,Wr.Optional)(C,q??true)}Any(C={}){return(0,ae.Any)(C)}Array(C,q={}){return(0,Ue.Array)(C,q)}Boolean(C={}){return(0,lt.Boolean)(C)}Capitalize(C,q={}){return(0,Dr.Capitalize)(C,q)}Composite(C,q){return(0,Pt.Composite)(C,q)}Const(C,q={}){return(0,Wt.Const)(C,q)}Deref(C,q){return(0,Ar.Deref)(C,q)}Enum(C,q={}){return(0,Er.Enum)(C,q)}Exclude(C,q,re={}){return(0,Ir.Exclude)(C,q,re)}Extends(C,q,re,ae,Ue={}){return(0,Br.Extends)(C,q,re,ae,Ue)}Extract(C,q,re={}){return(0,kr.Extract)(C,q,re)}Index(C,q,re={}){return(0,Pr.Index)(C,q,re)}Integer(C={}){return(0,Qr.Integer)(C)}Intersect(C,q={}){return(0,Fr.Intersect)(C,q)}KeyOf(C,q={}){return(0,xr.KeyOf)(C,q)}Literal(C,q={}){return(0,Mr.Literal)(C,q)}Lowercase(C,q={}){return(0,Dr.Lowercase)(C,q)}Mapped(C,q,re={}){return(0,Ur.Mapped)(C,q,re)}Never(C={}){return(0,Nr.Never)(C)}Not(C,q){return(0,Lr.Not)(C,q)}Null(C={}){return(0,jr.Null)(C)}Number(C={}){return(0,Gr.Number)(C)}Object(C,q={}){return(0,Vr.Object)(C,q)}Omit(C,q,re={}){return(0,Hr.Omit)(C,q,re)}Partial(C,q={}){return(0,$r.Partial)(C,q)}Pick(C,q,re={}){return(0,Kr.Pick)(C,q,re)}Record(C,q,re={}){return(0,Yr.Record)(C,q,re)}Recursive(C,q={}){return(0,Xr.Recursive)(C,q)}Ref(C,q={}){return(0,Zr.Ref)(C,q)}Required(C,q={}){return(0,en.Required)(C,q)}Rest(C){return(0,tn.Rest)(C)}String(C={}){return(0,nn.String)(C)}TemplateLiteral(C,q={}){return(0,sn.TemplateLiteral)(C,q)}Transform(C){return(0,an.Transform)(C)}Tuple(C,q={}){return(0,cn.Tuple)(C,q)}Uncapitalize(C,q={}){return(0,Dr.Uncapitalize)(C,q)}Union(C,q={}){return(0,ln.Union)(C,q)}Unknown(C={}){return(0,un.Unknown)(C)}Unsafe(C={}){return(0,dn.Unsafe)(C)}Uppercase(C,q={}){return(0,Dr.Uppercase)(C,q)}}q.JsonTypeBuilder=JsonTypeBuilder},17505:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Strict=q.ReturnType=q.Rest=q.Required=q.RegExp=q.Ref=q.Recursive=q.Record=q.ReadonlyOptional=q.Readonly=q.Promise=q.Pick=q.Partial=q.Parameters=q.Optional=q.Omit=q.Object=q.Number=q.Null=q.Not=q.Never=q.Mapped=q.Literal=q.KeyOf=q.Iterator=q.Uppercase=q.Lowercase=q.Uncapitalize=q.Capitalize=q.Intersect=q.Integer=q.InstanceType=q.Index=q.Function=q.Extract=q.Extends=q.Exclude=q.Enum=q.Deref=q.Date=q.ConstructorParameters=q.Constructor=q.Const=q.Composite=q.Boolean=q.BigInt=q.Awaited=q.AsyncIterator=q.Array=q.Any=void 0;q.Void=q.Unsafe=q.Unknown=q.Union=q.Undefined=q.Uint8Array=q.Tuple=q.Transform=q.TemplateLiteral=q.Symbol=q.String=void 0;var ae=re(36813);Object.defineProperty(q,"Any",{enumerable:true,get:function(){return ae.Any}});var Ue=re(17186);Object.defineProperty(q,"Array",{enumerable:true,get:function(){return Ue.Array}});var lt=re(68092);Object.defineProperty(q,"AsyncIterator",{enumerable:true,get:function(){return lt.AsyncIterator}});var Pt=re(85164);Object.defineProperty(q,"Awaited",{enumerable:true,get:function(){return Pt.Awaited}});var Wt=re(13278);Object.defineProperty(q,"BigInt",{enumerable:true,get:function(){return Wt.BigInt}});var Ar=re(64515);Object.defineProperty(q,"Boolean",{enumerable:true,get:function(){return Ar.Boolean}});var Er=re(80788);Object.defineProperty(q,"Composite",{enumerable:true,get:function(){return Er.Composite}});var Ir=re(19236);Object.defineProperty(q,"Const",{enumerable:true,get:function(){return Ir.Const}});var Br=re(16939);Object.defineProperty(q,"Constructor",{enumerable:true,get:function(){return Br.Constructor}});var kr=re(58562);Object.defineProperty(q,"ConstructorParameters",{enumerable:true,get:function(){return kr.ConstructorParameters}});var Pr=re(49305);Object.defineProperty(q,"Date",{enumerable:true,get:function(){return Pr.Date}});var Qr=re(911);Object.defineProperty(q,"Deref",{enumerable:true,get:function(){return Qr.Deref}});var Fr=re(98056);Object.defineProperty(q,"Enum",{enumerable:true,get:function(){return Fr.Enum}});var Dr=re(41153);Object.defineProperty(q,"Exclude",{enumerable:true,get:function(){return Dr.Exclude}});var xr=re(94850);Object.defineProperty(q,"Extends",{enumerable:true,get:function(){return xr.Extends}});var Mr=re(69682);Object.defineProperty(q,"Extract",{enumerable:true,get:function(){return Mr.Extract}});var Ur=re(29857);Object.defineProperty(q,"Function",{enumerable:true,get:function(){return Ur.Function}});var Nr=re(86918);Object.defineProperty(q,"Index",{enumerable:true,get:function(){return Nr.Index}});var Lr=re(26277);Object.defineProperty(q,"InstanceType",{enumerable:true,get:function(){return Lr.InstanceType}});var jr=re(4949);Object.defineProperty(q,"Integer",{enumerable:true,get:function(){return jr.Integer}});var Gr=re(62746);Object.defineProperty(q,"Intersect",{enumerable:true,get:function(){return Gr.Intersect}});var Vr=re(30568);Object.defineProperty(q,"Capitalize",{enumerable:true,get:function(){return Vr.Capitalize}});Object.defineProperty(q,"Uncapitalize",{enumerable:true,get:function(){return Vr.Uncapitalize}});Object.defineProperty(q,"Lowercase",{enumerable:true,get:function(){return Vr.Lowercase}});Object.defineProperty(q,"Uppercase",{enumerable:true,get:function(){return Vr.Uppercase}});var Hr=re(35907);Object.defineProperty(q,"Iterator",{enumerable:true,get:function(){return Hr.Iterator}});var Wr=re(73373);Object.defineProperty(q,"KeyOf",{enumerable:true,get:function(){return Wr.KeyOf}});var $r=re(98076);Object.defineProperty(q,"Literal",{enumerable:true,get:function(){return $r.Literal}});var Kr=re(41094);Object.defineProperty(q,"Mapped",{enumerable:true,get:function(){return Kr.Mapped}});var zr=re(54025);Object.defineProperty(q,"Never",{enumerable:true,get:function(){return zr.Never}});var Jr=re(1078);Object.defineProperty(q,"Not",{enumerable:true,get:function(){return Jr.Not}});var Yr=re(50468);Object.defineProperty(q,"Null",{enumerable:true,get:function(){return Yr.Null}});var Xr=re(85544);Object.defineProperty(q,"Number",{enumerable:true,get:function(){return Xr.Number}});var Zr=re(62094);Object.defineProperty(q,"Object",{enumerable:true,get:function(){return Zr.Object}});var en=re(88932);Object.defineProperty(q,"Omit",{enumerable:true,get:function(){return en.Omit}});var tn=re(38425);Object.defineProperty(q,"Optional",{enumerable:true,get:function(){return tn.Optional}});var rn=re(30449);Object.defineProperty(q,"Parameters",{enumerable:true,get:function(){return rn.Parameters}});var nn=re(75726);Object.defineProperty(q,"Partial",{enumerable:true,get:function(){return nn.Partial}});var sn=re(40640);Object.defineProperty(q,"Pick",{enumerable:true,get:function(){return sn.Pick}});var an=re(70062);Object.defineProperty(q,"Promise",{enumerable:true,get:function(){return an.Promise}});var cn=re(40675);Object.defineProperty(q,"Readonly",{enumerable:true,get:function(){return cn.Readonly}});var ln=re(78946);Object.defineProperty(q,"ReadonlyOptional",{enumerable:true,get:function(){return ln.ReadonlyOptional}});var un=re(30420);Object.defineProperty(q,"Record",{enumerable:true,get:function(){return un.Record}});var dn=re(33107);Object.defineProperty(q,"Recursive",{enumerable:true,get:function(){return dn.Recursive}});var pn=re(80470);Object.defineProperty(q,"Ref",{enumerable:true,get:function(){return pn.Ref}});var fn=re(26936);Object.defineProperty(q,"RegExp",{enumerable:true,get:function(){return fn.RegExp}});var hn=re(42744);Object.defineProperty(q,"Required",{enumerable:true,get:function(){return hn.Required}});var gn=re(83003);Object.defineProperty(q,"Rest",{enumerable:true,get:function(){return gn.Rest}});var An=re(32970);Object.defineProperty(q,"ReturnType",{enumerable:true,get:function(){return An.ReturnType}});var mn=re(23556);Object.defineProperty(q,"Strict",{enumerable:true,get:function(){return mn.Strict}});var _n=re(81688);Object.defineProperty(q,"String",{enumerable:true,get:function(){return _n.String}});var yn=re(2129);Object.defineProperty(q,"Symbol",{enumerable:true,get:function(){return yn.Symbol}});var bn=re(26609);Object.defineProperty(q,"TemplateLiteral",{enumerable:true,get:function(){return bn.TemplateLiteral}});var En=re(67575);Object.defineProperty(q,"Transform",{enumerable:true,get:function(){return En.Transform}});var vn=re(7521);Object.defineProperty(q,"Tuple",{enumerable:true,get:function(){return vn.Tuple}});var In=re(45760);Object.defineProperty(q,"Uint8Array",{enumerable:true,get:function(){return In.Uint8Array}});var wn=re(96231);Object.defineProperty(q,"Undefined",{enumerable:true,get:function(){return wn.Undefined}});var Cn=re(69100);Object.defineProperty(q,"Union",{enumerable:true,get:function(){return Cn.Union}});var Sn=re(51897);Object.defineProperty(q,"Unknown",{enumerable:true,get:function(){return Sn.Unknown}});var Bn=re(23339);Object.defineProperty(q,"Unsafe",{enumerable:true,get:function(){return Bn.Unsafe}});var Tn=re(81947);Object.defineProperty(q,"Void",{enumerable:true,get:function(){return Tn.Void}})},45760:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(2039),q)},2039:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Uint8Array=void 0;const ae=re(97034);function Uint8Array(C={}){return{...C,[ae.Kind]:"Uint8Array",type:"Uint8Array"}}q.Uint8Array=Uint8Array},96231:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(20479),q)},20479:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Undefined=void 0;const ae=re(97034);function Undefined(C={}){return{...C,[ae.Kind]:"Undefined",type:"undefined"}}q.Undefined=Undefined},69100:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(24083),q);Ue(re(75396),q);Ue(re(28519),q)},98252:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.UnionCreate=void 0;const ae=re(38100);const Ue=re(97034);function UnionCreate(C,q){return{...q,[Ue.Kind]:"Union",anyOf:(0,ae.CloneRest)(C)}}q.UnionCreate=UnionCreate},24083:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.UnionEvaluated=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(54025);const Wt=re(38425);const Ar=re(98252);const Er=re(96994);function IsUnionOptional(C){return C.some((C=>(0,Er.IsOptional)(C)))}function RemoveOptionalFromRest(C){return C.map((C=>(0,Er.IsOptional)(C)?RemoveOptionalFromType(C):C))}function RemoveOptionalFromType(C){return(0,lt.Discard)(C,[ae.OptionalKind])}function ResolveUnion(C,q){return IsUnionOptional(C)?(0,Wt.Optional)((0,Ar.UnionCreate)(RemoveOptionalFromRest(C),q)):(0,Ar.UnionCreate)(RemoveOptionalFromRest(C),q)}function UnionEvaluated(C,q={}){return C.length===0?(0,Pt.Never)(q):C.length===1?(0,Ue.CloneType)(C[0],q):ResolveUnion(C,q)}q.UnionEvaluated=UnionEvaluated},75396:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});const ae=re(97034)},28519:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Union=void 0;const ae=re(54025);const Ue=re(38100);const lt=re(98252);function Union(C,q={}){return C.length===0?(0,ae.Never)(q):C.length===1?(0,Ue.CloneType)(C[0],q):(0,lt.UnionCreate)(C,q)}q.Union=Union},51897:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(66303),q)},66303:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Unknown=void 0;const ae=re(97034);function Unknown(C={}){return{...C,[ae.Kind]:"Unknown"}}q.Unknown=Unknown},23339:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(1361),q)},1361:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Unsafe=void 0;const ae=re(97034);function Unsafe(C={}){return{...C,[ae.Kind]:C[ae.Kind]??"Unsafe"}}q.Unsafe=Unsafe},81947:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(14093),q)},14093:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Void=void 0;const ae=re(97034);function Void(C={}){return{...C,[ae.Kind]:"Void",type:"void"}}q.Void=Void},85874:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Cast=q.ValueCastError=void 0;const ae=re(17479);const Ue=re(26113);const lt=re(97034);const Pt=re(18050);const Wt=re(33742);const Ar=re(21683);const Er=re(40886);class ValueCastError extends Ue.TypeBoxError{constructor(C,q){super(q);this.schema=C}}q.ValueCastError=ValueCastError;function ScoreUnion(C,q,re){if(C[lt.Kind]==="Object"&&typeof re==="object"&&!(0,ae.IsNull)(re)){const ae=C;const Ue=Object.getOwnPropertyNames(re);const Pt=Object.entries(ae.properties);const[Ar,Er]=[1/Pt.length,Pt.length];return Pt.reduce(((C,[ae,Pt])=>{const Ir=Pt[lt.Kind]==="Literal"&&Pt.const===re[ae]?Er:0;const Br=(0,Wt.Check)(Pt,q,re[ae])?Ar:0;const kr=Ue.includes(ae)?Ar:0;return C+(Ir+Br+kr)}),0)}else{return(0,Wt.Check)(C,q,re)?1:0}}function SelectUnion(C,q,re){const ae=C.anyOf.map((C=>(0,Er.Deref)(C,q)));let[Ue,lt]=[ae[0],0];for(const C of ae){const ae=ScoreUnion(C,q,re);if(ae>lt){Ue=C;lt=ae}}return Ue}function CastUnion(C,q,re){if("default"in C){return typeof re==="function"?C.default:(0,Ar.Clone)(C.default)}else{const ae=SelectUnion(C,q,re);return Cast(ae,q,re)}}function DefaultClone(C,q,re){return(0,Wt.Check)(C,q,re)?(0,Ar.Clone)(re):(0,Pt.Create)(C,q)}function Default(C,q,re){return(0,Wt.Check)(C,q,re)?re:(0,Pt.Create)(C,q)}function FromArray(C,q,re){if((0,Wt.Check)(C,q,re))return(0,Ar.Clone)(re);const Ue=(0,ae.IsArray)(re)?(0,Ar.Clone)(re):(0,Pt.Create)(C,q);const lt=(0,ae.IsNumber)(C.minItems)&&Ue.lengthnull))]:Ue;const Er=(0,ae.IsNumber)(C.maxItems)&<.length>C.maxItems?lt.slice(0,C.maxItems):lt;const Ir=Er.map((re=>Visit(C.items,q,re)));if(C.uniqueItems!==true)return Ir;const Br=[...new Set(Ir)];if(!(0,Wt.Check)(C,q,Br))throw new ValueCastError(C,"Array cast produced invalid data due to uniqueItems constraint");return Br}function FromConstructor(C,q,re){if((0,Wt.Check)(C,q,re))return(0,Pt.Create)(C,q);const ae=new Set(C.returns.required||[]);const result=function(){};for(const[Ue,lt]of Object.entries(C.returns.properties)){if(!ae.has(Ue)&&re.prototype[Ue]===undefined)continue;result.prototype[Ue]=Visit(lt,q,re.prototype[Ue])}return result}function FromIntersect(C,q,re){const Ue=(0,Pt.Create)(C,q);const lt=(0,ae.IsStandardObject)(Ue)&&(0,ae.IsStandardObject)(re)?{...Ue,...re}:re;return(0,Wt.Check)(C,q,lt)?lt:(0,Pt.Create)(C,q)}function FromNever(C,q,re){throw new ValueCastError(C,"Never types cannot be cast")}function FromObject(C,q,re){if((0,Wt.Check)(C,q,re))return re;if(re===null||typeof re!=="object")return(0,Pt.Create)(C,q);const ae=new Set(C.required||[]);const Ue={};for(const[lt,Pt]of Object.entries(C.properties)){if(!ae.has(lt)&&re[lt]===undefined)continue;Ue[lt]=Visit(Pt,q,re[lt])}if(typeof C.additionalProperties==="object"){const ae=Object.getOwnPropertyNames(C.properties);for(const lt of Object.getOwnPropertyNames(re)){if(ae.includes(lt))continue;Ue[lt]=Visit(C.additionalProperties,q,re[lt])}}return Ue}function FromRecord(C,q,re){if((0,Wt.Check)(C,q,re))return(0,Ar.Clone)(re);if(re===null||typeof re!=="object"||Array.isArray(re)||re instanceof Date)return(0,Pt.Create)(C,q);const ae=Object.getOwnPropertyNames(C.patternProperties)[0];const Ue=C.patternProperties[ae];const lt={};for(const[C,ae]of Object.entries(re)){lt[C]=Visit(Ue,q,ae)}return lt}function FromRef(C,q,re){return Visit((0,Er.Deref)(C,q),q,re)}function FromThis(C,q,re){return Visit((0,Er.Deref)(C,q),q,re)}function FromTuple(C,q,re){if((0,Wt.Check)(C,q,re))return(0,Ar.Clone)(re);if(!(0,ae.IsArray)(re))return(0,Pt.Create)(C,q);if(C.items===undefined)return[];return C.items.map(((C,ae)=>Visit(C,q,re[ae])))}function FromUnion(C,q,re){return(0,Wt.Check)(C,q,re)?(0,Ar.Clone)(re):CastUnion(C,q,re)}function Visit(C,q,re){const Ue=(0,ae.IsString)(C.$id)?[...q,C]:q;const Pt=C;switch(C[lt.Kind]){case"Array":return FromArray(Pt,Ue,re);case"Constructor":return FromConstructor(Pt,Ue,re);case"Intersect":return FromIntersect(Pt,Ue,re);case"Never":return FromNever(Pt,Ue,re);case"Object":return FromObject(Pt,Ue,re);case"Record":return FromRecord(Pt,Ue,re);case"Ref":return FromRef(Pt,Ue,re);case"This":return FromThis(Pt,Ue,re);case"Tuple":return FromTuple(Pt,Ue,re);case"Union":return FromUnion(Pt,Ue,re);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(C,q,re);default:return Default(Pt,Ue,re)}}function Cast(...C){return C.length===3?Visit(C[0],C[1],C[2]):Visit(C[0],[],C[1])}q.Cast=Cast},46097:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85874),q)},85410:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Check=q.ValueCheckUnknownTypeError=void 0;const ae=re(82129);const Ue=re(40886);const lt=re(7210);const Pt=re(97034);const Wt=re(73373);const Ar=re(94850);const Er=re(51786);const Ir=re(26113);const Br=re(54025);const kr=re(17479);const Pr=re(70384);class ValueCheckUnknownTypeError extends Ir.TypeBoxError{constructor(C){super(`Unknown type`);this.schema=C}}q.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(C){return C[Pt.Kind]==="Any"||C[Pt.Kind]==="Unknown"}function IsDefined(C){return C!==undefined}function FromAny(C,q,re){return true}function FromArray(C,q,re){if(!(0,kr.IsArray)(re))return false;if(IsDefined(C.minItems)&&!(re.length>=C.minItems)){return false}if(IsDefined(C.maxItems)&&!(re.length<=C.maxItems)){return false}if(!re.every((re=>Visit(C.items,q,re)))){return false}if(C.uniqueItems===true&&!function(){const C=new Set;for(const q of re){const re=(0,lt.Hash)(q);if(C.has(re)){return false}else{C.add(re)}}return true}()){return false}if(!(IsDefined(C.contains)||(0,kr.IsNumber)(C.minContains)||(0,kr.IsNumber)(C.maxContains))){return true}const ae=IsDefined(C.contains)?C.contains:(0,Br.Never)();const Ue=re.reduce(((C,re)=>Visit(ae,q,re)?C+1:C),0);if(Ue===0){return false}if((0,kr.IsNumber)(C.minContains)&&UeC.maxContains){return false}return true}function FromAsyncIterator(C,q,re){return(0,kr.IsAsyncIterator)(re)}function FromBigInt(C,q,re){if(!(0,kr.IsBigInt)(re))return false;if(IsDefined(C.exclusiveMaximum)&&!(reC.exclusiveMinimum)){return false}if(IsDefined(C.maximum)&&!(re<=C.maximum)){return false}if(IsDefined(C.minimum)&&!(re>=C.minimum)){return false}if(IsDefined(C.multipleOf)&&!(re%C.multipleOf===BigInt(0))){return false}return true}function FromBoolean(C,q,re){return(0,kr.IsBoolean)(re)}function FromConstructor(C,q,re){return Visit(C.returns,q,re.prototype)}function FromDate(C,q,re){if(!(0,kr.IsDate)(re))return false;if(IsDefined(C.exclusiveMaximumTimestamp)&&!(re.getTime()C.exclusiveMinimumTimestamp)){return false}if(IsDefined(C.maximumTimestamp)&&!(re.getTime()<=C.maximumTimestamp)){return false}if(IsDefined(C.minimumTimestamp)&&!(re.getTime()>=C.minimumTimestamp)){return false}if(IsDefined(C.multipleOfTimestamp)&&!(re.getTime()%C.multipleOfTimestamp===0)){return false}return true}function FromFunction(C,q,re){return(0,kr.IsFunction)(re)}function FromInteger(C,q,re){if(!(0,kr.IsInteger)(re)){return false}if(IsDefined(C.exclusiveMaximum)&&!(reC.exclusiveMinimum)){return false}if(IsDefined(C.maximum)&&!(re<=C.maximum)){return false}if(IsDefined(C.minimum)&&!(re>=C.minimum)){return false}if(IsDefined(C.multipleOf)&&!(re%C.multipleOf===0)){return false}return true}function FromIntersect(C,q,re){const ae=C.allOf.every((C=>Visit(C,q,re)));if(C.unevaluatedProperties===false){const q=new RegExp((0,Wt.KeyOfPattern)(C));const Ue=Object.getOwnPropertyNames(re).every((C=>q.test(C)));return ae&&Ue}else if((0,Pr.IsSchema)(C.unevaluatedProperties)){const Ue=new RegExp((0,Wt.KeyOfPattern)(C));const lt=Object.getOwnPropertyNames(re).every((ae=>Ue.test(ae)||Visit(C.unevaluatedProperties,q,re[ae])));return ae&<}else{return ae}}function FromIterator(C,q,re){return(0,kr.IsIterator)(re)}function FromLiteral(C,q,re){return re===C.const}function FromNever(C,q,re){return false}function FromNot(C,q,re){return!Visit(C.not,q,re)}function FromNull(C,q,re){return(0,kr.IsNull)(re)}function FromNumber(C,q,re){if(!ae.TypeSystemPolicy.IsNumberLike(re))return false;if(IsDefined(C.exclusiveMaximum)&&!(reC.exclusiveMinimum)){return false}if(IsDefined(C.minimum)&&!(re>=C.minimum)){return false}if(IsDefined(C.maximum)&&!(re<=C.maximum)){return false}if(IsDefined(C.multipleOf)&&!(re%C.multipleOf===0)){return false}return true}function FromObject(C,q,re){if(!ae.TypeSystemPolicy.IsObjectLike(re))return false;if(IsDefined(C.minProperties)&&!(Object.getOwnPropertyNames(re).length>=C.minProperties)){return false}if(IsDefined(C.maxProperties)&&!(Object.getOwnPropertyNames(re).length<=C.maxProperties)){return false}const Ue=Object.getOwnPropertyNames(C.properties);for(const lt of Ue){const Ue=C.properties[lt];if(C.required&&C.required.includes(lt)){if(!Visit(Ue,q,re[lt])){return false}if(((0,Ar.ExtendsUndefinedCheck)(Ue)||IsAnyOrUnknown(Ue))&&!(lt in re)){return false}}else{if(ae.TypeSystemPolicy.IsExactOptionalProperty(re,lt)&&!Visit(Ue,q,re[lt])){return false}}}if(C.additionalProperties===false){const q=Object.getOwnPropertyNames(re);if(C.required&&C.required.length===Ue.length&&q.length===Ue.length){return true}else{return q.every((C=>Ue.includes(C)))}}else if(typeof C.additionalProperties==="object"){const ae=Object.getOwnPropertyNames(re);return ae.every((ae=>Ue.includes(ae)||Visit(C.additionalProperties,q,re[ae])))}else{return true}}function FromPromise(C,q,re){return(0,kr.IsPromise)(re)}function FromRecord(C,q,re){if(!ae.TypeSystemPolicy.IsRecordLike(re)){return false}if(IsDefined(C.minProperties)&&!(Object.getOwnPropertyNames(re).length>=C.minProperties)){return false}if(IsDefined(C.maxProperties)&&!(Object.getOwnPropertyNames(re).length<=C.maxProperties)){return false}const[Ue,lt]=Object.entries(C.patternProperties)[0];const Pt=new RegExp(Ue);const Wt=Object.entries(re).every((([C,re])=>Pt.test(C)?Visit(lt,q,re):true));const Ar=typeof C.additionalProperties==="object"?Object.entries(re).every((([re,ae])=>!Pt.test(re)?Visit(C.additionalProperties,q,ae):true)):true;const Er=C.additionalProperties===false?Object.getOwnPropertyNames(re).every((C=>Pt.test(C))):true;return Wt&&Ar&&Er}function FromRef(C,q,re){return Visit((0,Ue.Deref)(C,q),q,re)}function FromRegExp(C,q,re){const ae=new RegExp(C.source,C.flags);if(IsDefined(C.minLength)){if(!(re.length>=C.minLength))return false}if(IsDefined(C.maxLength)){if(!(re.length<=C.maxLength))return false}return ae.test(re)}function FromString(C,q,re){if(!(0,kr.IsString)(re)){return false}if(IsDefined(C.minLength)){if(!(re.length>=C.minLength))return false}if(IsDefined(C.maxLength)){if(!(re.length<=C.maxLength))return false}if(IsDefined(C.pattern)){const q=new RegExp(C.pattern);if(!q.test(re))return false}if(IsDefined(C.format)){if(!Er.FormatRegistry.Has(C.format))return false;const q=Er.FormatRegistry.Get(C.format);return q(re)}return true}function FromSymbol(C,q,re){return(0,kr.IsSymbol)(re)}function FromTemplateLiteral(C,q,re){return(0,kr.IsString)(re)&&new RegExp(C.pattern).test(re)}function FromThis(C,q,re){return Visit((0,Ue.Deref)(C,q),q,re)}function FromTuple(C,q,re){if(!(0,kr.IsArray)(re)){return false}if(C.items===undefined&&!(re.length===0)){return false}if(!(re.length===C.maxItems)){return false}if(!C.items){return true}for(let ae=0;aeVisit(C,q,re)))}function FromUint8Array(C,q,re){if(!(0,kr.IsUint8Array)(re)){return false}if(IsDefined(C.maxByteLength)&&!(re.length<=C.maxByteLength)){return false}if(IsDefined(C.minByteLength)&&!(re.length>=C.minByteLength)){return false}return true}function FromUnknown(C,q,re){return true}function FromVoid(C,q,re){return ae.TypeSystemPolicy.IsVoidLike(re)}function FromKind(C,q,re){if(!Er.TypeRegistry.Has(C[Pt.Kind]))return false;const ae=Er.TypeRegistry.Get(C[Pt.Kind]);return ae(C,re)}function Visit(C,q,re){const ae=IsDefined(C.$id)?[...q,C]:q;const Ue=C;switch(Ue[Pt.Kind]){case"Any":return FromAny(Ue,ae,re);case"Array":return FromArray(Ue,ae,re);case"AsyncIterator":return FromAsyncIterator(Ue,ae,re);case"BigInt":return FromBigInt(Ue,ae,re);case"Boolean":return FromBoolean(Ue,ae,re);case"Constructor":return FromConstructor(Ue,ae,re);case"Date":return FromDate(Ue,ae,re);case"Function":return FromFunction(Ue,ae,re);case"Integer":return FromInteger(Ue,ae,re);case"Intersect":return FromIntersect(Ue,ae,re);case"Iterator":return FromIterator(Ue,ae,re);case"Literal":return FromLiteral(Ue,ae,re);case"Never":return FromNever(Ue,ae,re);case"Not":return FromNot(Ue,ae,re);case"Null":return FromNull(Ue,ae,re);case"Number":return FromNumber(Ue,ae,re);case"Object":return FromObject(Ue,ae,re);case"Promise":return FromPromise(Ue,ae,re);case"Record":return FromRecord(Ue,ae,re);case"Ref":return FromRef(Ue,ae,re);case"RegExp":return FromRegExp(Ue,ae,re);case"String":return FromString(Ue,ae,re);case"Symbol":return FromSymbol(Ue,ae,re);case"TemplateLiteral":return FromTemplateLiteral(Ue,ae,re);case"This":return FromThis(Ue,ae,re);case"Tuple":return FromTuple(Ue,ae,re);case"Undefined":return FromUndefined(Ue,ae,re);case"Union":return FromUnion(Ue,ae,re);case"Uint8Array":return FromUint8Array(Ue,ae,re);case"Unknown":return FromUnknown(Ue,ae,re);case"Void":return FromVoid(Ue,ae,re);default:if(!Er.TypeRegistry.Has(Ue[Pt.Kind]))throw new ValueCheckUnknownTypeError(Ue);return FromKind(Ue,ae,re)}}function Check(...C){return C.length===3?Visit(C[0],C[1],C[2]):Visit(C[0],[],C[1])}q.Check=Check},33742:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85410),q)},40338:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Clean=void 0;const ae=re(73373);const Ue=re(33742);const lt=re(21683);const Pt=re(40886);const Wt=re(97034);const Ar=re(17479);const Er=re(70384);function IsCheckable(C){return(0,Er.IsSchema)(C)&&C[Wt.Kind]!=="Unsafe"}function FromArray(C,q,re){if(!(0,Ar.IsArray)(re))return re;return re.map((re=>Visit(C.items,q,re)))}function FromIntersect(C,q,re){const Pt=C.unevaluatedProperties;const Wt=C.allOf.map((C=>Visit(C,q,(0,lt.Clone)(re))));const Ir=Wt.reduce(((C,q)=>(0,Ar.IsObject)(q)?{...C,...q}:q),{});if(!(0,Ar.IsObject)(re)||!(0,Ar.IsObject)(Ir)||!(0,Er.IsSchema)(Pt))return Ir;const Br=(0,ae.KeyOfPropertyKeys)(C);for(const C of Object.getOwnPropertyNames(re)){if(Br.includes(C))continue;if((0,Ue.Check)(Pt,q,re[C])){Ir[C]=Visit(Pt,q,re[C])}}return Ir}function FromObject(C,q,re){if(!(0,Ar.IsObject)(re)||(0,Ar.IsArray)(re))return re;const ae=C.additionalProperties;for(const lt of Object.getOwnPropertyNames(re)){if(lt in C.properties){re[lt]=Visit(C.properties[lt],q,re[lt]);continue}if((0,Er.IsSchema)(ae)&&(0,Ue.Check)(ae,q,re[lt])){re[lt]=Visit(ae,q,re[lt]);continue}delete re[lt]}return re}function FromRecord(C,q,re){if(!(0,Ar.IsObject)(re))return re;const ae=C.additionalProperties;const lt=Object.getOwnPropertyNames(re);const[Pt,Wt]=Object.entries(C.patternProperties)[0];const Ir=new RegExp(Pt);for(const C of lt){if(Ir.test(C)){re[C]=Visit(Wt,q,re[C]);continue}if((0,Er.IsSchema)(ae)&&(0,Ue.Check)(ae,q,re[C])){re[C]=Visit(ae,q,re[C]);continue}delete re[C]}return re}function FromRef(C,q,re){return Visit((0,Pt.Deref)(C,q),q,re)}function FromThis(C,q,re){return Visit((0,Pt.Deref)(C,q),q,re)}function FromTuple(C,q,re){if(!(0,Ar.IsArray)(re))return re;if((0,Ar.IsUndefined)(C.items))return[];const ae=Math.min(re.length,C.items.length);for(let Ue=0;Ueae?re.slice(0,ae):re}function FromUnion(C,q,re){for(const ae of C.anyOf){if(IsCheckable(ae)&&(0,Ue.Check)(ae,q,re)){return Visit(ae,q,re)}}return re}function Visit(C,q,re){const ae=(0,Ar.IsString)(C.$id)?[...q,C]:q;const Ue=C;switch(Ue[Wt.Kind]){case"Array":return FromArray(Ue,ae,re);case"Intersect":return FromIntersect(Ue,ae,re);case"Object":return FromObject(Ue,ae,re);case"Record":return FromRecord(Ue,ae,re);case"Ref":return FromRef(Ue,ae,re);case"This":return FromThis(Ue,ae,re);case"Tuple":return FromTuple(Ue,ae,re);case"Union":return FromUnion(Ue,ae,re);default:return re}}function Clean(...C){return C.length===3?Visit(C[0],C[1],C[2]):Visit(C[0],[],C[1])}q.Clean=Clean},6115:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(40338),q)},13366:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Clone=void 0;const ae=re(17479);function ObjectType(C){const q={};for(const re of Object.getOwnPropertyNames(C)){q[re]=Clone(C[re])}for(const re of Object.getOwnPropertySymbols(C)){q[re]=Clone(C[re])}return q}function ArrayType(C){return C.map((C=>Clone(C)))}function TypedArrayType(C){return C.slice()}function DateType(C){return new Date(C.toISOString())}function ValueType(C){return C}function Clone(C){if((0,ae.IsArray)(C))return ArrayType(C);if((0,ae.IsDate)(C))return DateType(C);if((0,ae.IsStandardObject)(C))return ObjectType(C);if((0,ae.IsTypedArray)(C))return TypedArrayType(C);if((0,ae.IsValueType)(C))return ValueType(C);throw new Error("ValueClone: Unable to clone value")}q.Clone=Clone},21683:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(13366),q)},68594:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Convert=void 0;const ae=re(21683);const Ue=re(33742);const lt=re(40886);const Pt=re(97034);const Wt=re(17479);function IsStringNumeric(C){return(0,Wt.IsString)(C)&&!isNaN(C)&&!isNaN(parseFloat(C))}function IsValueToString(C){return(0,Wt.IsBigInt)(C)||(0,Wt.IsBoolean)(C)||(0,Wt.IsNumber)(C)}function IsValueTrue(C){return C===true||(0,Wt.IsNumber)(C)&&C===1||(0,Wt.IsBigInt)(C)&&C===BigInt("1")||(0,Wt.IsString)(C)&&(C.toLowerCase()==="true"||C==="1")}function IsValueFalse(C){return C===false||(0,Wt.IsNumber)(C)&&(C===0||Object.is(C,-0))||(0,Wt.IsBigInt)(C)&&C===BigInt("0")||(0,Wt.IsString)(C)&&(C.toLowerCase()==="false"||C==="0"||C==="-0")}function IsTimeStringWithTimeZone(C){return(0,Wt.IsString)(C)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(C)}function IsTimeStringWithoutTimeZone(C){return(0,Wt.IsString)(C)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(C)}function IsDateTimeStringWithTimeZone(C){return(0,Wt.IsString)(C)&&/^\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(C)}function IsDateTimeStringWithoutTimeZone(C){return(0,Wt.IsString)(C)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(C)}function IsDateString(C){return(0,Wt.IsString)(C)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(C)}function TryConvertLiteralString(C,q){const re=TryConvertString(C);return re===q?re:C}function TryConvertLiteralNumber(C,q){const re=TryConvertNumber(C);return re===q?re:C}function TryConvertLiteralBoolean(C,q){const re=TryConvertBoolean(C);return re===q?re:C}function TryConvertLiteral(C,q){return(0,Wt.IsString)(C.const)?TryConvertLiteralString(q,C.const):(0,Wt.IsNumber)(C.const)?TryConvertLiteralNumber(q,C.const):(0,Wt.IsBoolean)(C.const)?TryConvertLiteralBoolean(q,C.const):(0,ae.Clone)(q)}function TryConvertBoolean(C){return IsValueTrue(C)?true:IsValueFalse(C)?false:C}function TryConvertBigInt(C){return IsStringNumeric(C)?BigInt(parseInt(C)):(0,Wt.IsNumber)(C)?BigInt(C|0):IsValueFalse(C)?BigInt(0):IsValueTrue(C)?BigInt(1):C}function TryConvertString(C){return IsValueToString(C)?C.toString():(0,Wt.IsSymbol)(C)&&C.description!==undefined?C.description.toString():C}function TryConvertNumber(C){return IsStringNumeric(C)?parseFloat(C):IsValueTrue(C)?1:IsValueFalse(C)?0:C}function TryConvertInteger(C){return IsStringNumeric(C)?parseInt(C):(0,Wt.IsNumber)(C)?C|0:IsValueTrue(C)?1:IsValueFalse(C)?0:C}function TryConvertNull(C){return(0,Wt.IsString)(C)&&C.toLowerCase()==="null"?null:C}function TryConvertUndefined(C){return(0,Wt.IsString)(C)&&C==="undefined"?undefined:C}function TryConvertDate(C){return(0,Wt.IsDate)(C)?C:(0,Wt.IsNumber)(C)?new Date(C):IsValueTrue(C)?new Date(1):IsValueFalse(C)?new Date(0):IsStringNumeric(C)?new Date(parseInt(C)):IsTimeStringWithoutTimeZone(C)?new Date(`1970-01-01T${C}.000Z`):IsTimeStringWithTimeZone(C)?new Date(`1970-01-01T${C}`):IsDateTimeStringWithoutTimeZone(C)?new Date(`${C}.000Z`):IsDateTimeStringWithTimeZone(C)?new Date(C):IsDateString(C)?new Date(`${C}T00:00:00.000Z`):C}function Default(C){return C}function FromArray(C,q,re){const ae=(0,Wt.IsArray)(re)?re:[re];return ae.map((re=>Visit(C.items,q,re)))}function FromBigInt(C,q,re){return TryConvertBigInt(re)}function FromBoolean(C,q,re){return TryConvertBoolean(re)}function FromDate(C,q,re){return TryConvertDate(re)}function FromInteger(C,q,re){return TryConvertInteger(re)}function FromIntersect(C,q,re){return C.allOf.reduce(((C,re)=>Visit(re,q,C)),re)}function FromLiteral(C,q,re){return TryConvertLiteral(C,re)}function FromNull(C,q,re){return TryConvertNull(re)}function FromNumber(C,q,re){return TryConvertNumber(re)}function FromObject(C,q,re){const ae=(0,Wt.IsObject)(re);if(!ae)return re;const Ue={};for(const ae of Object.keys(re)){Ue[ae]=(0,Wt.HasPropertyKey)(C.properties,ae)?Visit(C.properties[ae],q,re[ae]):re[ae]}return Ue}function FromRecord(C,q,re){const ae=Object.getOwnPropertyNames(C.patternProperties)[0];const Ue=C.patternProperties[ae];const lt={};for(const[C,ae]of Object.entries(re)){lt[C]=Visit(Ue,q,ae)}return lt}function FromRef(C,q,re){return Visit((0,lt.Deref)(C,q),q,re)}function FromString(C,q,re){return TryConvertString(re)}function FromSymbol(C,q,re){return(0,Wt.IsString)(re)||(0,Wt.IsNumber)(re)?Symbol(re):re}function FromThis(C,q,re){return Visit((0,lt.Deref)(C,q),q,re)}function FromTuple(C,q,re){const ae=(0,Wt.IsArray)(re)&&!(0,Wt.IsUndefined)(C.items);if(!ae)return re;return re.map(((re,ae)=>ae{Object.defineProperty(q,"__esModule",{value:true});q.Create=q.ValueCreateError=void 0;const ae=re(17479);const Ue=re(33742);const lt=re(21683);const Pt=re(40886);const Wt=re(26609);const Ar=re(94354);const Er=re(51786);const Ir=re(97034);const Br=re(26113);class ValueCreateError extends Br.TypeBoxError{constructor(C,q){super(q);this.schema=C}}q.ValueCreateError=ValueCreateError;function FromDefault(C){return typeof C==="function"?C:(0,lt.Clone)(C)}function FromAny(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return{}}}function FromArray(C,q){if(C.uniqueItems===true&&!(0,ae.HasPropertyKey)(C,"default")){throw new ValueCreateError(C,"Array with the uniqueItems constraint requires a default value")}else if("contains"in C&&!(0,ae.HasPropertyKey)(C,"default")){throw new ValueCreateError(C,"Array with the contains constraint requires a default value")}else if("default"in C){return FromDefault(C.default)}else if(C.minItems!==undefined){return Array.from({length:C.minItems}).map((re=>Visit(C.items,q)))}else{return[]}}function FromAsyncIterator(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return async function*(){}()}}function FromBigInt(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return BigInt(0)}}function FromBoolean(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return false}}function FromConstructor(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{const re=Visit(C.returns,q);if(typeof re==="object"&&!Array.isArray(re)){return class{constructor(){for(const[C,q]of Object.entries(re)){const re=this;re[C]=q}}}}else{return class{}}}}function FromDate(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minimumTimestamp!==undefined){return new Date(C.minimumTimestamp)}else{return new Date}}function FromFunction(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return()=>Visit(C.returns,q)}}function FromInteger(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minimum!==undefined){return C.minimum}else{return 0}}function FromIntersect(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{const re=C.allOf.reduce(((C,re)=>{const ae=Visit(re,q);return typeof ae==="object"?{...C,...ae}:ae}),{});if(!(0,Ue.Check)(C,q,re))throw new ValueCreateError(C,"Intersect produced invalid value. Consider using a default value.");return re}}function FromIterator(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return function*(){}()}}function FromLiteral(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return C.const}}function FromNever(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{throw new ValueCreateError(C,"Never types cannot be created. Consider using a default value.")}}function FromNot(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{throw new ValueCreateError(C,"Not types must have a default value")}}function FromNull(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return null}}function FromNumber(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minimum!==undefined){return C.minimum}else{return 0}}function FromObject(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{const re=new Set(C.required);const ae={};for(const[Ue,lt]of Object.entries(C.properties)){if(!re.has(Ue))continue;ae[Ue]=Visit(lt,q)}return ae}}function FromPromise(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return Promise.resolve(Visit(C.item,q))}}function FromRecord(C,q){const[re,Ue]=Object.entries(C.patternProperties)[0];if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(!(re===Ar.PatternStringExact||re===Ar.PatternNumberExact)){const C=re.slice(1,re.length-1).split("|");const ae={};for(const re of C)ae[re]=Visit(Ue,q);return ae}else{return{}}}function FromRef(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return Visit((0,Pt.Deref)(C,q),q)}}function FromRegExp(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{throw new ValueCreateError(C,"RegExp types cannot be created. Consider using a default value.")}}function FromString(C,q){if(C.pattern!==undefined){if(!(0,ae.HasPropertyKey)(C,"default")){throw new ValueCreateError(C,"String types with patterns must specify a default value")}else{return FromDefault(C.default)}}else if(C.format!==undefined){if(!(0,ae.HasPropertyKey)(C,"default")){throw new ValueCreateError(C,"String types with formats must specify a default value")}else{return FromDefault(C.default)}}else{if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minLength!==undefined){return Array.from({length:C.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if("value"in C){return Symbol.for(C.value)}else{return Symbol()}}function FromTemplateLiteral(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}if(!(0,Wt.IsTemplateLiteralFinite)(C))throw new ValueCreateError(C,"Can only create template literals that produce a finite variants. Consider using a default value.");const re=(0,Wt.TemplateLiteralGenerate)(C);return re[0]}function FromThis(C,q){if(Pr++>kr)throw new ValueCreateError(C,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return Visit((0,Pt.Deref)(C,q),q)}}function FromTuple(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}if(C.items===undefined){return[]}else{return Array.from({length:C.minItems}).map(((re,ae)=>Visit(C.items[ae],q)))}}function FromUndefined(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return undefined}}function FromUnion(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(C.anyOf[0],q)}}function FromUint8Array(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minByteLength!==undefined){return new Uint8Array(C.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return{}}}function FromVoid(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return void 0}}function FromKind(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(C,q){const re=(0,ae.IsString)(C.$id)?[...q,C]:q;const Ue=C;switch(Ue[Ir.Kind]){case"Any":return FromAny(Ue,re);case"Array":return FromArray(Ue,re);case"AsyncIterator":return FromAsyncIterator(Ue,re);case"BigInt":return FromBigInt(Ue,re);case"Boolean":return FromBoolean(Ue,re);case"Constructor":return FromConstructor(Ue,re);case"Date":return FromDate(Ue,re);case"Function":return FromFunction(Ue,re);case"Integer":return FromInteger(Ue,re);case"Intersect":return FromIntersect(Ue,re);case"Iterator":return FromIterator(Ue,re);case"Literal":return FromLiteral(Ue,re);case"Never":return FromNever(Ue,re);case"Not":return FromNot(Ue,re);case"Null":return FromNull(Ue,re);case"Number":return FromNumber(Ue,re);case"Object":return FromObject(Ue,re);case"Promise":return FromPromise(Ue,re);case"Record":return FromRecord(Ue,re);case"Ref":return FromRef(Ue,re);case"RegExp":return FromRegExp(Ue,re);case"String":return FromString(Ue,re);case"Symbol":return FromSymbol(Ue,re);case"TemplateLiteral":return FromTemplateLiteral(Ue,re);case"This":return FromThis(Ue,re);case"Tuple":return FromTuple(Ue,re);case"Undefined":return FromUndefined(Ue,re);case"Union":return FromUnion(Ue,re);case"Uint8Array":return FromUint8Array(Ue,re);case"Unknown":return FromUnknown(Ue,re);case"Void":return FromVoid(Ue,re);default:if(!Er.TypeRegistry.Has(Ue[Ir.Kind]))throw new ValueCreateError(Ue,"Unknown type");return FromKind(Ue,re)}}const kr=512;let Pr=0;function Create(...C){Pr=0;return C.length===2?Visit(C[0],C[1]):Visit(C[0],[])}q.Create=Create},18050:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(51744),q)},28766:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Default=void 0;const ae=re(33742);const Ue=re(21683);const lt=re(40886);const Pt=re(97034);const Wt=re(17479);const Ar=re(70384);function ValueOrDefault(C,q){return q===undefined&&"default"in C?(0,Ue.Clone)(C.default):q}function IsCheckable(C){return(0,Ar.IsSchema)(C)&&C[Pt.Kind]!=="Unsafe"}function IsDefaultSchema(C){return(0,Ar.IsSchema)(C)&&"default"in C}function FromArray(C,q,re){const ae=ValueOrDefault(C,re);if(!(0,Wt.IsArray)(ae))return ae;for(let re=0;re{const Ue=Visit(re,q,ae);return(0,Wt.IsObject)(Ue)?{...C,...Ue}:Ue}),{})}function FromObject(C,q,re){const ae=ValueOrDefault(C,re);if(!(0,Wt.IsObject)(ae))return ae;const Ue=C.additionalProperties;const lt=Object.getOwnPropertyNames(C.properties);for(const re of lt){if(!IsDefaultSchema(C.properties[re]))continue;ae[re]=Visit(C.properties[re],q,ae[re])}if(!IsDefaultSchema(Ue))return ae;for(const C of Object.getOwnPropertyNames(ae)){if(lt.includes(C))continue;ae[C]=Visit(Ue,q,ae[C])}return ae}function FromRecord(C,q,re){const ae=ValueOrDefault(C,re);if(!(0,Wt.IsObject)(ae))return ae;const Ue=C.additionalProperties;const[lt,Pt]=Object.entries(C.patternProperties)[0];const Ar=new RegExp(lt);for(const C of Object.getOwnPropertyNames(ae)){if(!(Ar.test(C)&&IsDefaultSchema(Pt)))continue;ae[C]=Visit(Pt,q,ae[C])}if(!IsDefaultSchema(Ue))return ae;for(const C of Object.getOwnPropertyNames(ae)){if(Ar.test(C))continue;ae[C]=Visit(Ue,q,ae[C])}return ae}function FromRef(C,q,re){return Visit((0,lt.Deref)(C,q),q,ValueOrDefault(C,re))}function FromThis(C,q,re){return Visit((0,lt.Deref)(C,q),q,re)}function FromTuple(C,q,re){const ae=ValueOrDefault(C,re);if(!(0,Wt.IsArray)(ae)||(0,Wt.IsUndefined)(C.items))return ae;const[Ue,lt]=[C.items,Math.max(C.items.length,ae.length)];for(let C=0;C{Object.defineProperty(q,"__esModule",{value:true});q.Patch=q.Diff=q.ValueDeltaSymbolError=q.ValueDeltaError=q.Edit=q.Delete=q.Update=q.Insert=void 0;const ae=re(17479);const Ue=re(23079);const lt=re(21683);const Pt=re(26113);const Wt=re(98076);const Ar=re(62094);const Er=re(81688);const Ir=re(51897);const Br=re(69100);q.Insert=(0,Ar.Object)({type:(0,Wt.Literal)("insert"),path:(0,Er.String)(),value:(0,Ir.Unknown)()});q.Update=(0,Ar.Object)({type:(0,Wt.Literal)("update"),path:(0,Er.String)(),value:(0,Ir.Unknown)()});q.Delete=(0,Ar.Object)({type:(0,Wt.Literal)("delete"),path:(0,Er.String)()});q.Edit=(0,Br.Union)([q.Insert,q.Update,q.Delete]);class ValueDeltaError extends Pt.TypeBoxError{constructor(C,q){super(q);this.value=C}}q.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(C){super(C,"Cannot diff objects with symbol keys");this.value=C}}q.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(C,q){return{type:"update",path:C,value:q}}function CreateInsert(C,q){return{type:"insert",path:C,value:q}}function CreateDelete(C){return{type:"delete",path:C}}function*ObjectType(C,q,re){if(!(0,ae.IsStandardObject)(re))return yield CreateUpdate(C,re);const Ue=[...globalThis.Object.keys(q),...globalThis.Object.getOwnPropertySymbols(q)];const lt=[...globalThis.Object.keys(re),...globalThis.Object.getOwnPropertySymbols(re)];for(const q of Ue){if((0,ae.IsSymbol)(q))throw new ValueDeltaSymbolError(q);if((0,ae.IsUndefined)(re[q])&<.includes(q))yield CreateUpdate(`${C}/${globalThis.String(q)}`,undefined)}for(const Ue of lt){if((0,ae.IsUndefined)(q[Ue])||(0,ae.IsUndefined)(re[Ue]))continue;if((0,ae.IsSymbol)(Ue))throw new ValueDeltaSymbolError(Ue);yield*Visit(`${C}/${globalThis.String(Ue)}`,q[Ue],re[Ue])}for(const Ue of lt){if((0,ae.IsSymbol)(Ue))throw new ValueDeltaSymbolError(Ue);if((0,ae.IsUndefined)(q[Ue]))yield CreateInsert(`${C}/${globalThis.String(Ue)}`,re[Ue])}for(const q of Ue.reverse()){if((0,ae.IsSymbol)(q))throw new ValueDeltaSymbolError(q);if((0,ae.IsUndefined)(re[q])&&!lt.includes(q))yield CreateDelete(`${C}/${globalThis.String(q)}`)}}function*ArrayType(C,q,re){if(!(0,ae.IsArray)(re))return yield CreateUpdate(C,re);for(let ae=0;ae=0;ae--){if(ae0&&C[0].path===""&&C[0].type==="update"}function IsIdentity(C){return C.length===0}function Patch(C,q){if(IsRootUpdate(q)){return(0,lt.Clone)(q[0].value)}if(IsIdentity(q)){return(0,lt.Clone)(C)}const re=(0,lt.Clone)(C);for(const C of q){switch(C.type){case"insert":{Ue.ValuePointer.Set(re,C.path,C.value);break}case"update":{Ue.ValuePointer.Set(re,C.path,C.value);break}case"delete":{Ue.ValuePointer.Delete(re,C.path);break}}}return re}q.Patch=Patch},8124:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(67126),q)},85298:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Deref=q.TypeDereferenceError=void 0;const ae=re(26113);const Ue=re(97034);class TypeDereferenceError extends ae.TypeBoxError{constructor(C){super(`Unable to dereference schema with $id '${C.$id}'`);this.schema=C}}q.TypeDereferenceError=TypeDereferenceError;function Resolve(C,q){const re=q.find((q=>q.$id===C.$ref));if(re===undefined)throw new TypeDereferenceError(C);return Deref(re,q)}function Deref(C,q){return C[Ue.Kind]==="This"||C[Ue.Kind]==="Ref"?Resolve(C,q):C}q.Deref=Deref},40886:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85298),q)},60586:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Equal=void 0;const ae=re(17479);function ObjectType(C,q){if(!(0,ae.IsStandardObject)(q))return false;const re=[...Object.keys(C),...Object.getOwnPropertySymbols(C)];const Ue=[...Object.keys(q),...Object.getOwnPropertySymbols(q)];if(re.length!==Ue.length)return false;return re.every((re=>Equal(C[re],q[re])))}function DateType(C,q){return(0,ae.IsDate)(q)&&C.getTime()===q.getTime()}function ArrayType(C,q){if(!(0,ae.IsArray)(q)||C.length!==q.length)return false;return C.every(((C,re)=>Equal(C,q[re])))}function TypedArrayType(C,q){if(!(0,ae.IsTypedArray)(q)||C.length!==q.length||Object.getPrototypeOf(C).constructor.name!==Object.getPrototypeOf(q).constructor.name)return false;return C.every(((C,re)=>Equal(C,q[re])))}function ValueType(C,q){return C===q}function Equal(C,q){if((0,ae.IsStandardObject)(C))return ObjectType(C,q);if((0,ae.IsDate)(C))return DateType(C,q);if((0,ae.IsTypedArray)(C))return TypedArrayType(C,q);if((0,ae.IsArray)(C))return ArrayType(C,q);if((0,ae.IsValueType)(C))return ValueType(C,q);throw new Error("ValueEquals: Unable to compare value")}q.Equal=Equal},46186:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(60586),q)},1850:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsValueType=q.IsSymbol=q.IsFunction=q.IsString=q.IsBigInt=q.IsInteger=q.IsNumber=q.IsBoolean=q.IsNull=q.IsUndefined=q.IsArray=q.IsObject=q.HasPropertyKey=q.IsBigUint64Array=q.IsBigInt64Array=q.IsFloat64Array=q.IsFloat32Array=q.IsUint32Array=q.IsInt32Array=q.IsUint16Array=q.IsInt16Array=q.IsUint8ClampedArray=q.IsUint8Array=q.IsInt8Array=q.IsTypedArray=q.IsRegExp=q.IsSet=q.IsMap=q.IsDate=q.IsPromise=q.IsInstanceObject=q.IsStandardObject=q.IsIterator=q.IsAsyncIterator=void 0;function IsAsyncIterator(C){return IsObject(C)&&Symbol.asyncIterator in C}q.IsAsyncIterator=IsAsyncIterator;function IsIterator(C){return IsObject(C)&&Symbol.iterator in C}q.IsIterator=IsIterator;function IsStandardObject(C){return IsObject(C)&&(Object.getPrototypeOf(C)===Object.prototype||Object.getPrototypeOf(C)===null)}q.IsStandardObject=IsStandardObject;function IsInstanceObject(C){return IsObject(C)&&!IsArray(C)&&IsFunction(C.constructor)&&C.constructor.name!=="Object"}q.IsInstanceObject=IsInstanceObject;function IsPromise(C){return C instanceof Promise}q.IsPromise=IsPromise;function IsDate(C){return C instanceof Date&&Number.isFinite(C.getTime())}q.IsDate=IsDate;function IsMap(C){return C instanceof globalThis.Map}q.IsMap=IsMap;function IsSet(C){return C instanceof globalThis.Set}q.IsSet=IsSet;function IsRegExp(C){return C instanceof globalThis.RegExp}q.IsRegExp=IsRegExp;function IsTypedArray(C){return ArrayBuffer.isView(C)}q.IsTypedArray=IsTypedArray;function IsInt8Array(C){return C instanceof globalThis.Int8Array}q.IsInt8Array=IsInt8Array;function IsUint8Array(C){return C instanceof globalThis.Uint8Array}q.IsUint8Array=IsUint8Array;function IsUint8ClampedArray(C){return C instanceof globalThis.Uint8ClampedArray}q.IsUint8ClampedArray=IsUint8ClampedArray;function IsInt16Array(C){return C instanceof globalThis.Int16Array}q.IsInt16Array=IsInt16Array;function IsUint16Array(C){return C instanceof globalThis.Uint16Array}q.IsUint16Array=IsUint16Array;function IsInt32Array(C){return C instanceof globalThis.Int32Array}q.IsInt32Array=IsInt32Array;function IsUint32Array(C){return C instanceof globalThis.Uint32Array}q.IsUint32Array=IsUint32Array;function IsFloat32Array(C){return C instanceof globalThis.Float32Array}q.IsFloat32Array=IsFloat32Array;function IsFloat64Array(C){return C instanceof globalThis.Float64Array}q.IsFloat64Array=IsFloat64Array;function IsBigInt64Array(C){return C instanceof globalThis.BigInt64Array}q.IsBigInt64Array=IsBigInt64Array;function IsBigUint64Array(C){return C instanceof globalThis.BigUint64Array}q.IsBigUint64Array=IsBigUint64Array;function HasPropertyKey(C,q){return q in C}q.HasPropertyKey=HasPropertyKey;function IsObject(C){return C!==null&&typeof C==="object"}q.IsObject=IsObject;function IsArray(C){return Array.isArray(C)&&!ArrayBuffer.isView(C)}q.IsArray=IsArray;function IsUndefined(C){return C===undefined}q.IsUndefined=IsUndefined;function IsNull(C){return C===null}q.IsNull=IsNull;function IsBoolean(C){return typeof C==="boolean"}q.IsBoolean=IsBoolean;function IsNumber(C){return typeof C==="number"}q.IsNumber=IsNumber;function IsInteger(C){return Number.isInteger(C)}q.IsInteger=IsInteger;function IsBigInt(C){return typeof C==="bigint"}q.IsBigInt=IsBigInt;function IsString(C){return typeof C==="string"}q.IsString=IsString;function IsFunction(C){return typeof C==="function"}q.IsFunction=IsFunction;function IsSymbol(C){return typeof C==="symbol"}q.IsSymbol=IsSymbol;function IsValueType(C){return IsBigInt(C)||IsBoolean(C)||IsNull(C)||IsNumber(C)||IsString(C)||IsSymbol(C)||IsUndefined(C)}q.IsValueType=IsValueType},17479:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(1850),q)},83760:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Hash=q.ValueHashError=void 0;const ae=re(17479);const Ue=re(26113);class ValueHashError extends Ue.TypeBoxError{constructor(C){super(`Unable to hash value`);this.value=C}}q.ValueHashError=ValueHashError;var lt;(function(C){C[C["Undefined"]=0]="Undefined";C[C["Null"]=1]="Null";C[C["Boolean"]=2]="Boolean";C[C["Number"]=3]="Number";C[C["String"]=4]="String";C[C["Object"]=5]="Object";C[C["Array"]=6]="Array";C[C["Date"]=7]="Date";C[C["Uint8Array"]=8]="Uint8Array";C[C["Symbol"]=9]="Symbol";C[C["BigInt"]=10]="BigInt"})(lt||(lt={}));let Pt=BigInt("14695981039346656037");const[Wt,Ar]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const Er=Array.from({length:256}).map(((C,q)=>BigInt(q)));const Ir=new Float64Array(1);const Br=new DataView(Ir.buffer);const kr=new Uint8Array(Ir.buffer);function*NumberToBytes(C){const q=C===0?1:Math.ceil(Math.floor(Math.log2(C)+1)/8);for(let re=0;re>8*(q-1-re)&255}}function ArrayType(C){FNV1A64(lt.Array);for(const q of C){Visit(q)}}function BooleanType(C){FNV1A64(lt.Boolean);FNV1A64(C?1:0)}function BigIntType(C){FNV1A64(lt.BigInt);Br.setBigInt64(0,C);for(const C of kr){FNV1A64(C)}}function DateType(C){FNV1A64(lt.Date);Visit(C.getTime())}function NullType(C){FNV1A64(lt.Null)}function NumberType(C){FNV1A64(lt.Number);Br.setFloat64(0,C);for(const C of kr){FNV1A64(C)}}function ObjectType(C){FNV1A64(lt.Object);for(const q of globalThis.Object.getOwnPropertyNames(C).sort()){Visit(q);Visit(C[q])}}function StringType(C){FNV1A64(lt.String);for(let q=0;q{Object.defineProperty(q,"__esModule",{value:true});q.Mutate=q.ValueMutateError=void 0;const ae=re(17479);const Ue=re(23079);const lt=re(21683);const Pt=re(26113);class ValueMutateError extends Pt.TypeBoxError{constructor(C){super(C)}}q.ValueMutateError=ValueMutateError;function ObjectType(C,q,re,Pt){if(!(0,ae.IsStandardObject)(re)){Ue.ValuePointer.Set(C,q,(0,lt.Clone)(Pt))}else{const ae=Object.getOwnPropertyNames(re);const Ue=Object.getOwnPropertyNames(Pt);for(const C of ae){if(!Ue.includes(C)){delete re[C]}}for(const C of Ue){if(!ae.includes(C)){re[C]=null}}for(const ae of Ue){Visit(C,`${q}/${ae}`,re[ae],Pt[ae])}}}function ArrayType(C,q,re,Pt){if(!(0,ae.IsArray)(re)){Ue.ValuePointer.Set(C,q,(0,lt.Clone)(Pt))}else{for(let ae=0;ae{Object.defineProperty(q,"__esModule",{value:true});q.ValuePointer=void 0;q.ValuePointer=re(65630)},65630:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Get=q.Has=q.Delete=q.Set=q.Format=q.ValuePointerRootDeleteError=q.ValuePointerRootSetError=void 0;const ae=re(26113);class ValuePointerRootSetError extends ae.TypeBoxError{constructor(C,q,re){super("Cannot set root value");this.value=C;this.path=q;this.update=re}}q.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends ae.TypeBoxError{constructor(C,q){super("Cannot delete root value");this.value=C;this.path=q}}q.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(C){return C.indexOf("~")===-1?C:C.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(C){if(C==="")return;let[q,re]=[0,0];for(let ae=0;ae{Object.defineProperty(q,"__esModule",{value:true});q.TransformDecode=q.TransformDecodeError=q.TransformDecodeCheckError=void 0;const ae=re(97034);const Ue=re(26113);const lt=re(73373);const Pt=re(40886);const Wt=re(33742);const Ar=re(17479);const Er=re(70384);class TransformDecodeCheckError extends Ue.TypeBoxError{constructor(C,q,re){super(`Unable to decode value as it does not match the expected schema`);this.schema=C;this.value=q;this.error=re}}q.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends Ue.TypeBoxError{constructor(C,q,re,ae){super(ae instanceof Error?ae.message:"Unknown error");this.schema=C;this.path=q;this.value=re;this.error=ae}}q.TransformDecodeError=TransformDecodeError;function Default(C,q,re){try{return(0,Er.IsTransform)(C)?C[ae.TransformKind].Decode(re):re}catch(ae){throw new TransformDecodeError(C,q,re,ae)}}function FromArray(C,q,re,ae){return(0,Ar.IsArray)(ae)?Default(C,re,ae.map(((ae,Ue)=>Visit(C.items,q,`${re}/${Ue}`,ae)))):Default(C,re,ae)}function FromIntersect(C,q,re,ae){if(!(0,Ar.IsStandardObject)(ae)||(0,Ar.IsValueType)(ae))return Default(C,re,ae);const Ue=(0,lt.KeyOfPropertyEntries)(C);const Pt=Ue.map((C=>C[0]));const Wt={...ae};for(const[C,ae]of Ue)if(C in Wt){Wt[C]=Visit(ae,q,`${re}/${C}`,Wt[C])}if(!(0,Er.IsTransform)(C.unevaluatedProperties)){return Default(C,re,Wt)}const Ir=Object.getOwnPropertyNames(Wt);const Br=C.unevaluatedProperties;const kr={...Wt};for(const C of Ir)if(!Pt.includes(C)){kr[C]=Default(Br,`${re}/${C}`,kr[C])}return Default(C,re,kr)}function FromNot(C,q,re,ae){return Default(C,re,Visit(C.not,q,re,ae))}function FromObject(C,q,re,ae){if(!(0,Ar.IsStandardObject)(ae))return Default(C,re,ae);const Ue=(0,lt.KeyOfPropertyKeys)(C);const Pt={...ae};for(const ae of Ue)if(ae in Pt){Pt[ae]=Visit(C.properties[ae],q,`${re}/${ae}`,Pt[ae])}if(!(0,Er.IsSchema)(C.additionalProperties)){return Default(C,re,Pt)}const Wt=Object.getOwnPropertyNames(Pt);const Ir=C.additionalProperties;const Br={...Pt};for(const C of Wt)if(!Ue.includes(C)){Br[C]=Default(Ir,`${re}/${C}`,Br[C])}return Default(C,re,Br)}function FromRecord(C,q,re,ae){if(!(0,Ar.IsStandardObject)(ae))return Default(C,re,ae);const Ue=Object.getOwnPropertyNames(C.patternProperties)[0];const lt=new RegExp(Ue);const Pt={...ae};for(const Wt of Object.getOwnPropertyNames(ae))if(lt.test(Wt)){Pt[Wt]=Visit(C.patternProperties[Ue],q,`${re}/${Wt}`,Pt[Wt])}if(!(0,Er.IsSchema)(C.additionalProperties)){return Default(C,re,Pt)}const Wt=Object.getOwnPropertyNames(Pt);const Ir=C.additionalProperties;const Br={...Pt};for(const C of Wt)if(!lt.test(C)){Br[C]=Default(Ir,`${re}/${C}`,Br[C])}return Default(C,re,Br)}function FromRef(C,q,re,ae){const Ue=(0,Pt.Deref)(C,q);return Default(C,re,Visit(Ue,q,re,ae))}function FromThis(C,q,re,ae){const Ue=(0,Pt.Deref)(C,q);return Default(C,re,Visit(Ue,q,re,ae))}function FromTuple(C,q,re,ae){return(0,Ar.IsArray)(ae)&&(0,Ar.IsArray)(C.items)?Default(C,re,C.items.map(((C,Ue)=>Visit(C,q,`${re}/${Ue}`,ae[Ue])))):Default(C,re,ae)}function FromUnion(C,q,re,ae){for(const Ue of C.anyOf){if(!(0,Wt.Check)(Ue,q,ae))continue;const lt=Visit(Ue,q,re,ae);return Default(C,re,lt)}return Default(C,re,ae)}function Visit(C,q,re,Ue){const lt=typeof C.$id==="string"?[...q,C]:q;const Pt=C;switch(C[ae.Kind]){case"Array":return FromArray(Pt,lt,re,Ue);case"Intersect":return FromIntersect(Pt,lt,re,Ue);case"Not":return FromNot(Pt,lt,re,Ue);case"Object":return FromObject(Pt,lt,re,Ue);case"Record":return FromRecord(Pt,lt,re,Ue);case"Ref":return FromRef(Pt,lt,re,Ue);case"Symbol":return Default(Pt,re,Ue);case"This":return FromThis(Pt,lt,re,Ue);case"Tuple":return FromTuple(Pt,lt,re,Ue);case"Union":return FromUnion(Pt,lt,re,Ue);default:return Default(Pt,re,Ue)}}function TransformDecode(C,q,re){return Visit(C,q,"",re)}q.TransformDecode=TransformDecode},33598:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TransformEncode=q.TransformEncodeError=q.TransformEncodeCheckError=void 0;const ae=re(97034);const Ue=re(26113);const lt=re(73373);const Pt=re(40886);const Wt=re(33742);const Ar=re(17479);const Er=re(70384);class TransformEncodeCheckError extends Ue.TypeBoxError{constructor(C,q,re){super(`The encoded value does not match the expected schema`);this.schema=C;this.value=q;this.error=re}}q.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends Ue.TypeBoxError{constructor(C,q,re,ae){super(`${ae instanceof Error?ae.message:"Unknown error"}`);this.schema=C;this.path=q;this.value=re;this.error=ae}}q.TransformEncodeError=TransformEncodeError;function Default(C,q,re){try{return(0,Er.IsTransform)(C)?C[ae.TransformKind].Encode(re):re}catch(ae){throw new TransformEncodeError(C,q,re,ae)}}function FromArray(C,q,re,ae){const Ue=Default(C,re,ae);return(0,Ar.IsArray)(Ue)?Ue.map(((ae,Ue)=>Visit(C.items,q,`${re}/${Ue}`,ae))):Ue}function FromIntersect(C,q,re,ae){const Ue=Default(C,re,ae);if(!(0,Ar.IsStandardObject)(ae)||(0,Ar.IsValueType)(ae))return Ue;const Pt=(0,lt.KeyOfPropertyEntries)(C);const Wt=Pt.map((C=>C[0]));const Ir={...Ue};for(const[C,ae]of Pt)if(C in Ir){Ir[C]=Visit(ae,q,`${re}/${C}`,Ir[C])}if(!(0,Er.IsTransform)(C.unevaluatedProperties)){return Default(C,re,Ir)}const Br=Object.getOwnPropertyNames(Ir);const kr=C.unevaluatedProperties;const Pr={...Ir};for(const C of Br)if(!Wt.includes(C)){Pr[C]=Default(kr,`${re}/${C}`,Pr[C])}return Pr}function FromNot(C,q,re,ae){return Default(C.not,re,Default(C,re,ae))}function FromObject(C,q,re,ae){const Ue=Default(C,re,ae);if(!(0,Ar.IsStandardObject)(Ue))return Ue;const Pt=(0,lt.KeyOfPropertyKeys)(C);const Wt={...Ue};for(const ae of Pt)if(ae in Wt){Wt[ae]=Visit(C.properties[ae],q,`${re}/${ae}`,Wt[ae])}if(!(0,Er.IsSchema)(C.additionalProperties)){return Wt}const Ir=Object.getOwnPropertyNames(Wt);const Br=C.additionalProperties;const kr={...Wt};for(const C of Ir)if(!Pt.includes(C)){kr[C]=Default(Br,`${re}/${C}`,kr[C])}return kr}function FromRecord(C,q,re,ae){const Ue=Default(C,re,ae);if(!(0,Ar.IsStandardObject)(ae))return Ue;const lt=Object.getOwnPropertyNames(C.patternProperties)[0];const Pt=new RegExp(lt);const Wt={...Ue};for(const Ue of Object.getOwnPropertyNames(ae))if(Pt.test(Ue)){Wt[Ue]=Visit(C.patternProperties[lt],q,`${re}/${Ue}`,Wt[Ue])}if(!(0,Er.IsSchema)(C.additionalProperties)){return Default(C,re,Wt)}const Ir=Object.getOwnPropertyNames(Wt);const Br=C.additionalProperties;const kr={...Wt};for(const C of Ir)if(!Pt.test(C)){kr[C]=Default(Br,`${re}/${C}`,kr[C])}return kr}function FromRef(C,q,re,ae){const Ue=(0,Pt.Deref)(C,q);const lt=Visit(Ue,q,re,ae);return Default(C,re,lt)}function FromThis(C,q,re,ae){const Ue=(0,Pt.Deref)(C,q);const lt=Visit(Ue,q,re,ae);return Default(C,re,lt)}function FromTuple(C,q,re,ae){const Ue=Default(C,re,ae);return(0,Ar.IsArray)(C.items)?C.items.map(((C,ae)=>Visit(C,q,`${re}/${ae}`,Ue[ae]))):[]}function FromUnion(C,q,re,ae){for(const Ue of C.anyOf){if(!(0,Wt.Check)(Ue,q,ae))continue;const lt=Visit(Ue,q,re,ae);return Default(C,re,lt)}for(const Ue of C.anyOf){const lt=Visit(Ue,q,re,ae);if(!(0,Wt.Check)(C,q,lt))continue;return Default(C,re,lt)}return Default(C,re,ae)}function Visit(C,q,re,Ue){const lt=typeof C.$id==="string"?[...q,C]:q;const Pt=C;switch(C[ae.Kind]){case"Array":return FromArray(Pt,lt,re,Ue);case"Intersect":return FromIntersect(Pt,lt,re,Ue);case"Not":return FromNot(Pt,lt,re,Ue);case"Object":return FromObject(Pt,lt,re,Ue);case"Record":return FromRecord(Pt,lt,re,Ue);case"Ref":return FromRef(Pt,lt,re,Ue);case"This":return FromThis(Pt,lt,re,Ue);case"Tuple":return FromTuple(Pt,lt,re,Ue);case"Union":return FromUnion(Pt,lt,re,Ue);default:return Default(Pt,re,Ue)}}function TransformEncode(C,q,re){return Visit(C,q,"",re)}q.TransformEncode=TransformEncode},51542:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.HasTransform=void 0;const ae=re(40886);const Ue=re(97034);const lt=re(70384);const Pt=re(17479);function FromArray(C,q){return(0,lt.IsTransform)(C)||Visit(C.items,q)}function FromAsyncIterator(C,q){return(0,lt.IsTransform)(C)||Visit(C.items,q)}function FromConstructor(C,q){return(0,lt.IsTransform)(C)||Visit(C.returns,q)||C.parameters.some((C=>Visit(C,q)))}function FromFunction(C,q){return(0,lt.IsTransform)(C)||Visit(C.returns,q)||C.parameters.some((C=>Visit(C,q)))}function FromIntersect(C,q){return(0,lt.IsTransform)(C)||(0,lt.IsTransform)(C.unevaluatedProperties)||C.allOf.some((C=>Visit(C,q)))}function FromIterator(C,q){return(0,lt.IsTransform)(C)||Visit(C.items,q)}function FromNot(C,q){return(0,lt.IsTransform)(C)||Visit(C.not,q)}function FromObject(C,q){return(0,lt.IsTransform)(C)||Object.values(C.properties).some((C=>Visit(C,q)))||(0,lt.IsSchema)(C.additionalProperties)&&Visit(C.additionalProperties,q)}function FromPromise(C,q){return(0,lt.IsTransform)(C)||Visit(C.item,q)}function FromRecord(C,q){const re=Object.getOwnPropertyNames(C.patternProperties)[0];const ae=C.patternProperties[re];return(0,lt.IsTransform)(C)||Visit(ae,q)||(0,lt.IsSchema)(C.additionalProperties)&&(0,lt.IsTransform)(C.additionalProperties)}function FromRef(C,q){if((0,lt.IsTransform)(C))return true;return Visit((0,ae.Deref)(C,q),q)}function FromThis(C,q){if((0,lt.IsTransform)(C))return true;return Visit((0,ae.Deref)(C,q),q)}function FromTuple(C,q){return(0,lt.IsTransform)(C)||!(0,Pt.IsUndefined)(C.items)&&C.items.some((C=>Visit(C,q)))}function FromUnion(C,q){return(0,lt.IsTransform)(C)||C.anyOf.some((C=>Visit(C,q)))}function Visit(C,q){const re=(0,Pt.IsString)(C.$id)?[...q,C]:q;const ae=C;if(C.$id&&Wt.has(C.$id))return false;if(C.$id)Wt.add(C.$id);switch(C[Ue.Kind]){case"Array":return FromArray(ae,re);case"AsyncIterator":return FromAsyncIterator(ae,re);case"Constructor":return FromConstructor(ae,re);case"Function":return FromFunction(ae,re);case"Intersect":return FromIntersect(ae,re);case"Iterator":return FromIterator(ae,re);case"Not":return FromNot(ae,re);case"Object":return FromObject(ae,re);case"Promise":return FromPromise(ae,re);case"Record":return FromRecord(ae,re);case"Ref":return FromRef(ae,re);case"This":return FromThis(ae,re);case"Tuple":return FromTuple(ae,re);case"Union":return FromUnion(ae,re);default:return(0,lt.IsTransform)(C)}}const Wt=new Set;function HasTransform(C,q){Wt.clear();return Visit(C,q)}q.HasTransform=HasTransform},50038:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(37354),q);Ue(re(33598),q);Ue(re(51542),q)},22079:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Value=void 0;q.Value=re(50854)},50854:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Mutate=q.Patch=q.Hash=q.Diff=q.Equal=q.Errors=q.Encode=q.Default=q.Decode=q.Clone=q.Convert=q.Clean=q.Check=q.Create=q.Cast=void 0;const ae=re(50038);const Ue=re(36068);const lt=re(7210);const Pt=re(46186);const Wt=re(46097);const Ar=re(21683);const Er=re(41241);const Ir=re(18050);const Br=re(6115);const kr=re(33742);const Pr=re(97659);const Qr=re(8124);const Fr=re(65507);function Cast(...C){return Wt.Cast.apply(Wt.Cast,C)}q.Cast=Cast;function Create(...C){return Ir.Create.apply(Ir.Create,C)}q.Create=Create;function Check(...C){return kr.Check.apply(kr.Check,C)}q.Check=Check;function Clean(...C){return Br.Clean.apply(Br.Clean,C)}q.Clean=Clean;function Convert(...C){return Er.Convert.apply(Er.Convert,C)}q.Convert=Convert;function Clone(C){return(0,Ar.Clone)(C)}q.Clone=Clone;function Decode(...C){const[q,re,Ue]=C.length===3?[C[0],C[1],C[2]]:[C[0],[],C[1]];if(!Check(q,re,Ue))throw new ae.TransformDecodeCheckError(q,Ue,Errors(q,re,Ue).First());return(0,ae.HasTransform)(q,re)?(0,ae.TransformDecode)(q,re,Ue):Ue}q.Decode=Decode;function Default(...C){return Pr.Default.apply(Pr.Default,C)}q.Default=Default;function Encode(...C){const[q,re,Ue]=C.length===3?[C[0],C[1],C[2]]:[C[0],[],C[1]];const lt=(0,ae.HasTransform)(q,re)?(0,ae.TransformEncode)(q,re,Ue):Ue;if(!Check(q,re,lt))throw new ae.TransformEncodeCheckError(q,lt,Errors(q,re,lt).First());return lt}q.Encode=Encode;function Errors(...C){return Fr.Errors.apply(Fr.Errors,C)}q.Errors=Errors;function Equal(C,q){return(0,Pt.Equal)(C,q)}q.Equal=Equal;function Diff(C,q){return(0,Qr.Diff)(C,q)}q.Diff=Diff;function Hash(C){return(0,lt.Hash)(C)}q.Hash=Hash;function Patch(C,q){return(0,Qr.Patch)(C,q)}q.Patch=Patch;function Mutate(C,q){(0,Ue.Mutate)(C,q)}q.Mutate=Mutate},68789:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(52165));const lt=Ue.default;q["default"]=lt},62495:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(16623));const lt=Ue.default;q["default"]=lt},52165:function(C,q,re){var ae=this&&this.__rest||function(C,q){var re={};for(var ae in C)if(Object.prototype.hasOwnProperty.call(C,ae)&&q.indexOf(ae)<0)re[ae]=C[ae];if(C!=null&&typeof Object.getOwnPropertySymbols==="function")for(var Ue=0,ae=Object.getOwnPropertySymbols(C);Ue0){Pr.forEach((C=>{const q=parseInt(C.split(";")[0].split("=")[1].substring(0,1));const re=JSON.parse(C.split(";")[1].split("=")[1]);Pt[`${re}Page`]=q}));Pt.total=parseInt(kr)}return{data:Object.assign(Object.assign({},Br),Pt),error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{users:[]},error:C}}throw C}}async getUserById(C){try{return await(0,Ue._request)(this.fetch,"GET",`${this.url}/admin/users/${C}`,{headers:this.headers,xform:Ue._userResponse})}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null},error:C}}throw C}}async updateUserById(C,q){try{return await(0,Ue._request)(this.fetch,"PUT",`${this.url}/admin/users/${C}`,{body:q,headers:this.headers,xform:Ue._userResponse})}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null},error:C}}throw C}}async deleteUser(C,q=false){try{return await(0,Ue._request)(this.fetch,"DELETE",`${this.url}/admin/users/${C}`,{headers:this.headers,body:{should_soft_delete:q},xform:Ue._userResponse})}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null},error:C}}throw C}}async _listFactors(C){try{const{data:q,error:re}=await(0,Ue._request)(this.fetch,"GET",`${this.url}/admin/users/${C.userId}/factors`,{headers:this.headers,xform:C=>({data:{factors:C},error:null})});return{data:q,error:re}}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async _deleteFactor(C){try{const q=await(0,Ue._request)(this.fetch,"DELETE",`${this.url}/admin/users/${C.userId}/factors/${C.id}`,{headers:this.headers});return{data:q,error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}}q["default"]=GoTrueAdminApi},16623:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(52165));const lt=re(26705);const Pt=re(73981);const Wt=re(92356);const Ar=re(30601);const Er=re(21735);const Ir=re(80512);const Br=re(41920);const kr=re(28932);(0,Ir.polyfillGlobalThis)();const Pr={url:lt.GOTRUE_URL,storageKey:lt.STORAGE_KEY,autoRefreshToken:true,persistSession:true,detectSessionInUrl:true,headers:lt.DEFAULT_HEADERS,flowType:"implicit",debug:false,hasCustomAuthorizationHeader:false};const Qr=30*1e3;const Fr=3;async function lockNoOp(C,q,re){return await re()}class GoTrueClient{constructor(C){var q,re;this.memoryStorage=null;this.stateChangeEmitters=new Map;this.autoRefreshTicker=null;this.visibilityChangedCallback=null;this.refreshingDeferred=null;this.initializePromise=null;this.detectSessionInUrl=true;this.hasCustomAuthorizationHeader=false;this.suppressGetSessionWarning=false;this.lockAcquired=false;this.pendingInLock=[];this.broadcastChannel=null;this.logger=console.log;this.instanceID=GoTrueClient.nextInstanceID;GoTrueClient.nextInstanceID+=1;if(this.instanceID>0&&(0,Ar.isBrowser)()){console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.")}const ae=Object.assign(Object.assign({},Pr),C);this.logDebugMessages=!!ae.debug;if(typeof ae.debug==="function"){this.logger=ae.debug}this.persistSession=ae.persistSession;this.storageKey=ae.storageKey;this.autoRefreshToken=ae.autoRefreshToken;this.admin=new Ue.default({url:ae.url,headers:ae.headers,fetch:ae.fetch});this.url=ae.url;this.headers=ae.headers;this.fetch=(0,Ar.resolveFetch)(ae.fetch);this.lock=ae.lock||lockNoOp;this.detectSessionInUrl=ae.detectSessionInUrl;this.flowType=ae.flowType;this.hasCustomAuthorizationHeader=ae.hasCustomAuthorizationHeader;if(ae.lock){this.lock=ae.lock}else if((0,Ar.isBrowser)()&&((q=globalThis===null||globalThis===void 0?void 0:globalThis.navigator)===null||q===void 0?void 0:q.locks)){this.lock=kr.navigatorLock}else{this.lock=lockNoOp}this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)};if(this.persistSession){if(ae.storage){this.storage=ae.storage}else{if((0,Ar.supportsLocalStorage)()){this.storage=Er.localStorageAdapter}else{this.memoryStorage={};this.storage=(0,Er.memoryLocalStorageAdapter)(this.memoryStorage)}}}else{this.memoryStorage={};this.storage=(0,Er.memoryLocalStorageAdapter)(this.memoryStorage)}if((0,Ar.isBrowser)()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(C){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",C)}(re=this.broadcastChannel)===null||re===void 0?void 0:re.addEventListener("message",(async C=>{this._debug("received broadcast notification from other tab or client",C);await this._notifyAllSubscribers(C.data.event,C.data.session,false)}))}this.initialize()}_debug(...C){if(this.logDebugMessages){this.logger(`GoTrueClient@${this.instanceID} (${Br.version}) ${(new Date).toISOString()}`,...C)}return this}async initialize(){if(this.initializePromise){return await this.initializePromise}this.initializePromise=(async()=>await this._acquireLock(-1,(async()=>await this._initialize())))();return await this.initializePromise}async _initialize(){try{const C=(0,Ar.isBrowser)()?await this._isPKCEFlow():false;this._debug("#_initialize()","begin","is PKCE flow",C);if(C||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:q,error:re}=await this._getSessionFromURL(C);if(re){this._debug("#_initialize()","error detecting session from URL",re);if((re===null||re===void 0?void 0:re.code)==="identity_already_exists"){return{error:re}}await this._removeSession();return{error:re}}const{session:ae,redirectType:Ue}=q;this._debug("#_initialize()","detected session in URL",ae,"redirect type",Ue);await this._saveSession(ae);setTimeout((async()=>{if(Ue==="recovery"){await this._notifyAllSubscribers("PASSWORD_RECOVERY",ae)}else{await this._notifyAllSubscribers("SIGNED_IN",ae)}}),0);return{error:null}}await this._recoverAndRefresh();return{error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{error:C}}return{error:new Pt.AuthUnknownError("Unexpected error during initialization",C)}}finally{await this._handleVisibilityChange();this._debug("#_initialize()","end")}}async signInAnonymously(C){var q,re,ae;try{const Ue=await(0,Wt._request)(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(re=(q=C===null||C===void 0?void 0:C.options)===null||q===void 0?void 0:q.data)!==null&&re!==void 0?re:{},gotrue_meta_security:{captcha_token:(ae=C===null||C===void 0?void 0:C.options)===null||ae===void 0?void 0:ae.captchaToken}},xform:Wt._sessionResponse});const{data:lt,error:Pt}=Ue;if(Pt||!lt){return{data:{user:null,session:null},error:Pt}}const Ar=lt.session;const Er=lt.user;if(lt.session){await this._saveSession(lt.session);await this._notifyAllSubscribers("SIGNED_IN",Ar)}return{data:{user:Er,session:Ar},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signUp(C){var q,re,ae;try{let Ue;if("email"in C){const{email:re,password:ae,options:lt}=C;let Pt=null;let Er=null;if(this.flowType==="pkce"){[Pt,Er]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey)}Ue=await(0,Wt._request)(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:lt===null||lt===void 0?void 0:lt.emailRedirectTo,body:{email:re,password:ae,data:(q=lt===null||lt===void 0?void 0:lt.data)!==null&&q!==void 0?q:{},gotrue_meta_security:{captcha_token:lt===null||lt===void 0?void 0:lt.captchaToken},code_challenge:Pt,code_challenge_method:Er},xform:Wt._sessionResponse})}else if("phone"in C){const{phone:q,password:lt,options:Pt}=C;Ue=await(0,Wt._request)(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:q,password:lt,data:(re=Pt===null||Pt===void 0?void 0:Pt.data)!==null&&re!==void 0?re:{},channel:(ae=Pt===null||Pt===void 0?void 0:Pt.channel)!==null&&ae!==void 0?ae:"sms",gotrue_meta_security:{captcha_token:Pt===null||Pt===void 0?void 0:Pt.captchaToken}},xform:Wt._sessionResponse})}else{throw new Pt.AuthInvalidCredentialsError("You must provide either an email or phone number and a password")}const{data:lt,error:Er}=Ue;if(Er||!lt){return{data:{user:null,session:null},error:Er}}const Ir=lt.session;const Br=lt.user;if(lt.session){await this._saveSession(lt.session);await this._notifyAllSubscribers("SIGNED_IN",Ir)}return{data:{user:Br,session:Ir},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signInWithPassword(C){try{let q;if("email"in C){const{email:re,password:ae,options:Ue}=C;q=await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:re,password:ae,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken}},xform:Wt._sessionResponsePassword})}else if("phone"in C){const{phone:re,password:ae,options:Ue}=C;q=await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:re,password:ae,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken}},xform:Wt._sessionResponsePassword})}else{throw new Pt.AuthInvalidCredentialsError("You must provide either an email or phone number and a password")}const{data:re,error:ae}=q;if(ae){return{data:{user:null,session:null},error:ae}}else if(!re||!re.session||!re.user){return{data:{user:null,session:null},error:new Pt.AuthInvalidTokenResponseError}}if(re.session){await this._saveSession(re.session);await this._notifyAllSubscribers("SIGNED_IN",re.session)}return{data:Object.assign({user:re.user,session:re.session},re.weak_password?{weakPassword:re.weak_password}:null),error:ae}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signInWithOAuth(C){var q,re,ae,Ue;return await this._handleProviderSignIn(C.provider,{redirectTo:(q=C.options)===null||q===void 0?void 0:q.redirectTo,scopes:(re=C.options)===null||re===void 0?void 0:re.scopes,queryParams:(ae=C.options)===null||ae===void 0?void 0:ae.queryParams,skipBrowserRedirect:(Ue=C.options)===null||Ue===void 0?void 0:Ue.skipBrowserRedirect})}async exchangeCodeForSession(C){await this.initializePromise;return this._acquireLock(-1,(async()=>this._exchangeCodeForSession(C)))}async _exchangeCodeForSession(C){const q=await(0,Ar.getItemAsync)(this.storage,`${this.storageKey}-code-verifier`);const[re,ae]=(q!==null&&q!==void 0?q:"").split("/");try{const{data:q,error:Ue}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:C,code_verifier:re},xform:Wt._sessionResponse});await(0,Ar.removeItemAsync)(this.storage,`${this.storageKey}-code-verifier`);if(Ue){throw Ue}if(!q||!q.session||!q.user){return{data:{user:null,session:null,redirectType:null},error:new Pt.AuthInvalidTokenResponseError}}if(q.session){await this._saveSession(q.session);await this._notifyAllSubscribers("SIGNED_IN",q.session)}return{data:Object.assign(Object.assign({},q),{redirectType:ae!==null&&ae!==void 0?ae:null}),error:Ue}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null,redirectType:null},error:C}}throw C}}async signInWithIdToken(C){try{const{options:q,provider:re,token:ae,access_token:Ue,nonce:lt}=C;const Ar=await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:re,id_token:ae,access_token:Ue,nonce:lt,gotrue_meta_security:{captcha_token:q===null||q===void 0?void 0:q.captchaToken}},xform:Wt._sessionResponse});const{data:Er,error:Ir}=Ar;if(Ir){return{data:{user:null,session:null},error:Ir}}else if(!Er||!Er.session||!Er.user){return{data:{user:null,session:null},error:new Pt.AuthInvalidTokenResponseError}}if(Er.session){await this._saveSession(Er.session);await this._notifyAllSubscribers("SIGNED_IN",Er.session)}return{data:Er,error:Ir}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signInWithOtp(C){var q,re,ae,Ue,lt;try{if("email"in C){const{email:ae,options:Ue}=C;let lt=null;let Pt=null;if(this.flowType==="pkce"){[lt,Pt]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey)}const{error:Er}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:ae,data:(q=Ue===null||Ue===void 0?void 0:Ue.data)!==null&&q!==void 0?q:{},create_user:(re=Ue===null||Ue===void 0?void 0:Ue.shouldCreateUser)!==null&&re!==void 0?re:true,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken},code_challenge:lt,code_challenge_method:Pt},redirectTo:Ue===null||Ue===void 0?void 0:Ue.emailRedirectTo});return{data:{user:null,session:null},error:Er}}if("phone"in C){const{phone:q,options:re}=C;const{data:Pt,error:Ar}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:q,data:(ae=re===null||re===void 0?void 0:re.data)!==null&&ae!==void 0?ae:{},create_user:(Ue=re===null||re===void 0?void 0:re.shouldCreateUser)!==null&&Ue!==void 0?Ue:true,gotrue_meta_security:{captcha_token:re===null||re===void 0?void 0:re.captchaToken},channel:(lt=re===null||re===void 0?void 0:re.channel)!==null&<!==void 0?lt:"sms"}});return{data:{user:null,session:null,messageId:Pt===null||Pt===void 0?void 0:Pt.message_id},error:Ar}}throw new Pt.AuthInvalidCredentialsError("You must provide either an email or phone number.")}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async verifyOtp(C){var q,re;try{let ae=undefined;let Ue=undefined;if("options"in C){ae=(q=C.options)===null||q===void 0?void 0:q.redirectTo;Ue=(re=C.options)===null||re===void 0?void 0:re.captchaToken}const{data:lt,error:Pt}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},C),{gotrue_meta_security:{captcha_token:Ue}}),redirectTo:ae,xform:Wt._sessionResponse});if(Pt){throw Pt}if(!lt){throw new Error("An error occurred on token verification.")}const Ar=lt.session;const Er=lt.user;if(Ar===null||Ar===void 0?void 0:Ar.access_token){await this._saveSession(Ar);await this._notifyAllSubscribers(C.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",Ar)}return{data:{user:Er,session:Ar},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signInWithSSO(C){var q,re,ae;try{let Ue=null;let lt=null;if(this.flowType==="pkce"){[Ue,lt]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey)}return await(0,Wt._request)(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in C?{provider_id:C.providerId}:null),"domain"in C?{domain:C.domain}:null),{redirect_to:(re=(q=C.options)===null||q===void 0?void 0:q.redirectTo)!==null&&re!==void 0?re:undefined}),((ae=C===null||C===void 0?void 0:C.options)===null||ae===void 0?void 0:ae.captchaToken)?{gotrue_meta_security:{captcha_token:C.options.captchaToken}}:null),{skip_http_redirect:true,code_challenge:Ue,code_challenge_method:lt}),headers:this.headers,xform:Wt._ssoResponse})}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async reauthenticate(){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._reauthenticate()))}async _reauthenticate(){try{return await this._useSession((async C=>{const{data:{session:q},error:re}=C;if(re)throw re;if(!q)throw new Pt.AuthSessionMissingError;const{error:ae}=await(0,Wt._request)(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:q.access_token});return{data:{user:null,session:null},error:ae}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async resend(C){try{const q=`${this.url}/resend`;if("email"in C){const{email:re,type:ae,options:Ue}=C;const{error:lt}=await(0,Wt._request)(this.fetch,"POST",q,{headers:this.headers,body:{email:re,type:ae,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken}},redirectTo:Ue===null||Ue===void 0?void 0:Ue.emailRedirectTo});return{data:{user:null,session:null},error:lt}}else if("phone"in C){const{phone:re,type:ae,options:Ue}=C;const{data:lt,error:Pt}=await(0,Wt._request)(this.fetch,"POST",q,{headers:this.headers,body:{phone:re,type:ae,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken}}});return{data:{user:null,session:null,messageId:lt===null||lt===void 0?void 0:lt.message_id},error:Pt}}throw new Pt.AuthInvalidCredentialsError("You must provide either an email or phone number and a type")}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async getSession(){await this.initializePromise;const C=await this._acquireLock(-1,(async()=>this._useSession((async C=>C))));return C}async _acquireLock(C,q){this._debug("#_acquireLock","begin",C);try{if(this.lockAcquired){const C=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve();const re=(async()=>{await C;return await q()})();this.pendingInLock.push((async()=>{try{await re}catch(C){}})());return re}return await this.lock(`lock:${this.storageKey}`,C,(async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=true;const C=q();this.pendingInLock.push((async()=>{try{await C}catch(C){}})());await C;while(this.pendingInLock.length){const C=[...this.pendingInLock];await Promise.all(C);this.pendingInLock.splice(0,C.length)}return await C}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey);this.lockAcquired=false}}))}finally{this._debug("#_acquireLock","end")}}async _useSession(C){this._debug("#_useSession","begin");try{const q=await this.__loadSession();return await C(q)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin");if(!this.lockAcquired){this._debug("#__loadSession()","used outside of an acquired lock!",(new Error).stack)}try{let C=null;const q=await(0,Ar.getItemAsync)(this.storage,this.storageKey);this._debug("#getSession()","session from storage",q);if(q!==null){if(this._isValidSession(q)){C=q}else{this._debug("#getSession()","session from storage is not valid");await this._removeSession()}}if(!C){return{data:{session:null},error:null}}const re=C.expires_at?C.expires_at<=Date.now()/1e3:false;this._debug("#__loadSession()",`session has${re?"":" not"} expired`,"expires_at",C.expires_at);if(!re){if(this.storage.isServer){let q=this.suppressGetSessionWarning;const re=new Proxy(C,{get:(C,re,ae)=>{if(!q&&re==="user"){console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.");q=true;this.suppressGetSessionWarning=true}return Reflect.get(C,re,ae)}});C=re}return{data:{session:C},error:null}}const{session:ae,error:Ue}=await this._callRefreshToken(C.refresh_token);if(Ue){return{data:{session:null},error:Ue}}return{data:{session:ae},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(C){if(C){return await this._getUser(C)}await this.initializePromise;const q=await this._acquireLock(-1,(async()=>await this._getUser()));return q}async _getUser(C){try{if(C){return await(0,Wt._request)(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:C,xform:Wt._userResponse})}return await this._useSession((async C=>{var q,re,ae;const{data:Ue,error:lt}=C;if(lt){throw lt}if(!((q=Ue.session)===null||q===void 0?void 0:q.access_token)&&!this.hasCustomAuthorizationHeader){return{data:{user:null},error:new Pt.AuthSessionMissingError}}return await(0,Wt._request)(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(ae=(re=Ue.session)===null||re===void 0?void 0:re.access_token)!==null&&ae!==void 0?ae:undefined,xform:Wt._userResponse})}))}catch(C){if((0,Pt.isAuthError)(C)){if((0,Pt.isAuthSessionMissingError)(C)){await this._removeSession();await(0,Ar.removeItemAsync)(this.storage,`${this.storageKey}-code-verifier`)}return{data:{user:null},error:C}}throw C}}async updateUser(C,q={}){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._updateUser(C,q)))}async _updateUser(C,q={}){try{return await this._useSession((async re=>{const{data:ae,error:Ue}=re;if(Ue){throw Ue}if(!ae.session){throw new Pt.AuthSessionMissingError}const lt=ae.session;let Er=null;let Ir=null;if(this.flowType==="pkce"&&C.email!=null){[Er,Ir]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey)}const{data:Br,error:kr}=await(0,Wt._request)(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:q===null||q===void 0?void 0:q.emailRedirectTo,body:Object.assign(Object.assign({},C),{code_challenge:Er,code_challenge_method:Ir}),jwt:lt.access_token,xform:Wt._userResponse});if(kr)throw kr;lt.user=Br.user;await this._saveSession(lt);await this._notifyAllSubscribers("USER_UPDATED",lt);return{data:{user:lt.user},error:null}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null},error:C}}throw C}}_decodeJWT(C){return(0,Ar.decodeJWTPayload)(C)}async setSession(C){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._setSession(C)))}async _setSession(C){try{if(!C.access_token||!C.refresh_token){throw new Pt.AuthSessionMissingError}const q=Date.now()/1e3;let re=q;let ae=true;let Ue=null;const lt=(0,Ar.decodeJWTPayload)(C.access_token);if(lt.exp){re=lt.exp;ae=re<=q}if(ae){const{session:q,error:re}=await this._callRefreshToken(C.refresh_token);if(re){return{data:{user:null,session:null},error:re}}if(!q){return{data:{user:null,session:null},error:null}}Ue=q}else{const{data:ae,error:lt}=await this._getUser(C.access_token);if(lt){throw lt}Ue={access_token:C.access_token,refresh_token:C.refresh_token,user:ae.user,token_type:"bearer",expires_in:re-q,expires_at:re};await this._saveSession(Ue);await this._notifyAllSubscribers("SIGNED_IN",Ue)}return{data:{user:Ue.user,session:Ue},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{session:null,user:null},error:C}}throw C}}async refreshSession(C){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._refreshSession(C)))}async _refreshSession(C){try{return await this._useSession((async q=>{var re;if(!C){const{data:ae,error:Ue}=q;if(Ue){throw Ue}C=(re=ae.session)!==null&&re!==void 0?re:undefined}if(!(C===null||C===void 0?void 0:C.refresh_token)){throw new Pt.AuthSessionMissingError}const{session:ae,error:Ue}=await this._callRefreshToken(C.refresh_token);if(Ue){return{data:{user:null,session:null},error:Ue}}if(!ae){return{data:{user:null,session:null},error:null}}return{data:{user:ae.user,session:ae},error:null}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async _getSessionFromURL(C){try{if(!(0,Ar.isBrowser)())throw new Pt.AuthImplicitGrantRedirectError("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow()){throw new Pt.AuthImplicitGrantRedirectError("Not a valid implicit grant flow url.")}else if(this.flowType=="pkce"&&!C){throw new Pt.AuthPKCEGrantCodeExchangeError("Not a valid PKCE flow url.")}const q=(0,Ar.parseParametersFromURL)(window.location.href);if(C){if(!q.code)throw new Pt.AuthPKCEGrantCodeExchangeError("No code detected.");const{data:C,error:re}=await this._exchangeCodeForSession(q.code);if(re)throw re;const ae=new URL(window.location.href);ae.searchParams.delete("code");window.history.replaceState(window.history.state,"",ae.toString());return{data:{session:C.session,redirectType:null},error:null}}if(q.error||q.error_description||q.error_code){throw new Pt.AuthImplicitGrantRedirectError(q.error_description||"Error in URL with unspecified error_description",{error:q.error||"unspecified_error",code:q.error_code||"unspecified_code"})}const{provider_token:re,provider_refresh_token:ae,access_token:Ue,refresh_token:lt,expires_in:Wt,expires_at:Er,token_type:Ir}=q;if(!Ue||!Wt||!lt||!Ir){throw new Pt.AuthImplicitGrantRedirectError("No session defined in URL")}const Br=Math.round(Date.now()/1e3);const kr=parseInt(Wt);let Pr=Br+kr;if(Er){Pr=parseInt(Er)}const Fr=Pr-Br;if(Fr*1e3<=Qr){console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${Fr}s, should have been closer to ${kr}s`)}const Dr=Pr-kr;if(Br-Dr>=120){console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",Dr,Pr,Br)}else if(Br-Dr<0){console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",Dr,Pr,Br)}const{data:xr,error:Mr}=await this._getUser(Ue);if(Mr)throw Mr;const Ur={provider_token:re,provider_refresh_token:ae,access_token:Ue,expires_in:kr,expires_at:Pr,refresh_token:lt,token_type:Ir,user:xr.user};window.location.hash="";this._debug("#_getSessionFromURL()","clearing window.location.hash");return{data:{session:Ur,redirectType:q.type},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{session:null,redirectType:null},error:C}}throw C}}_isImplicitGrantFlow(){const C=(0,Ar.parseParametersFromURL)(window.location.href);return!!((0,Ar.isBrowser)()&&(C.access_token||C.error_description))}async _isPKCEFlow(){const C=(0,Ar.parseParametersFromURL)(window.location.href);const q=await(0,Ar.getItemAsync)(this.storage,`${this.storageKey}-code-verifier`);return!!(C.code&&q)}async signOut(C={scope:"global"}){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._signOut(C)))}async _signOut({scope:C}={scope:"global"}){return await this._useSession((async q=>{var re;const{data:ae,error:Ue}=q;if(Ue){return{error:Ue}}const lt=(re=ae.session)===null||re===void 0?void 0:re.access_token;if(lt){const{error:q}=await this.admin.signOut(lt,C);if(q){if(!((0,Pt.isAuthApiError)(q)&&(q.status===404||q.status===401||q.status===403))){return{error:q}}}}if(C!=="others"){await this._removeSession();await(0,Ar.removeItemAsync)(this.storage,`${this.storageKey}-code-verifier`)}return{error:null}}))}onAuthStateChange(C){const q=(0,Ar.uuid)();const re={id:q,callback:C,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",q);this.stateChangeEmitters.delete(q)}};this._debug("#onAuthStateChange()","registered callback with id",q);this.stateChangeEmitters.set(q,re);(async()=>{await this.initializePromise;await this._acquireLock(-1,(async()=>{this._emitInitialSession(q)}))})();return{data:{subscription:re}}}async _emitInitialSession(C){return await this._useSession((async q=>{var re,ae;try{const{data:{session:ae},error:Ue}=q;if(Ue)throw Ue;await((re=this.stateChangeEmitters.get(C))===null||re===void 0?void 0:re.callback("INITIAL_SESSION",ae));this._debug("INITIAL_SESSION","callback id",C,"session",ae)}catch(q){await((ae=this.stateChangeEmitters.get(C))===null||ae===void 0?void 0:ae.callback("INITIAL_SESSION",null));this._debug("INITIAL_SESSION","callback id",C,"error",q);console.error(q)}}))}async resetPasswordForEmail(C,q={}){let re=null;let ae=null;if(this.flowType==="pkce"){[re,ae]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey,true)}try{return await(0,Wt._request)(this.fetch,"POST",`${this.url}/recover`,{body:{email:C,code_challenge:re,code_challenge_method:ae,gotrue_meta_security:{captcha_token:q.captchaToken}},headers:this.headers,redirectTo:q.redirectTo})}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async getUserIdentities(){var C;try{const{data:q,error:re}=await this.getUser();if(re)throw re;return{data:{identities:(C=q.user.identities)!==null&&C!==void 0?C:[]},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async linkIdentity(C){var q;try{const{data:re,error:ae}=await this._useSession((async q=>{var re,ae,Ue,lt,Pt;const{data:Ar,error:Er}=q;if(Er)throw Er;const Ir=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,C.provider,{redirectTo:(re=C.options)===null||re===void 0?void 0:re.redirectTo,scopes:(ae=C.options)===null||ae===void 0?void 0:ae.scopes,queryParams:(Ue=C.options)===null||Ue===void 0?void 0:Ue.queryParams,skipBrowserRedirect:true});return await(0,Wt._request)(this.fetch,"GET",Ir,{headers:this.headers,jwt:(Pt=(lt=Ar.session)===null||lt===void 0?void 0:lt.access_token)!==null&&Pt!==void 0?Pt:undefined})}));if(ae)throw ae;if((0,Ar.isBrowser)()&&!((q=C.options)===null||q===void 0?void 0:q.skipBrowserRedirect)){window.location.assign(re===null||re===void 0?void 0:re.url)}return{data:{provider:C.provider,url:re===null||re===void 0?void 0:re.url},error:null}}catch(q){if((0,Pt.isAuthError)(q)){return{data:{provider:C.provider,url:null},error:q}}throw q}}async unlinkIdentity(C){try{return await this._useSession((async q=>{var re,ae;const{data:Ue,error:lt}=q;if(lt){throw lt}return await(0,Wt._request)(this.fetch,"DELETE",`${this.url}/user/identities/${C.identity_id}`,{headers:this.headers,jwt:(ae=(re=Ue.session)===null||re===void 0?void 0:re.access_token)!==null&&ae!==void 0?ae:undefined})}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async _refreshAccessToken(C){const q=`#_refreshAccessToken(${C.substring(0,5)}...)`;this._debug(q,"begin");try{const re=Date.now();return await(0,Ar.retryable)((async re=>{if(re>0){await(0,Ar.sleep)(200*Math.pow(2,re-1))}this._debug(q,"refreshing attempt",re);return await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:C},headers:this.headers,xform:Wt._sessionResponse})}),((C,q)=>{const ae=200*Math.pow(2,C);return q&&(0,Pt.isAuthRetryableFetchError)(q)&&Date.now()+ae-re{try{await re.callback(C,q)}catch(C){ae.push(C)}}));await Promise.all(Ue);if(ae.length>0){for(let C=0;Cthis._autoRefreshTokenTick()),Qr);this.autoRefreshTicker=C;if(C&&typeof C==="object"&&typeof C.unref==="function"){C.unref()}else if(typeof Deno!=="undefined"&&typeof Deno.unrefTimer==="function"){Deno.unrefTimer(C)}setTimeout((async()=>{await this.initializePromise;await this._autoRefreshTokenTick()}),0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const C=this.autoRefreshTicker;this.autoRefreshTicker=null;if(C){clearInterval(C)}}async startAutoRefresh(){this._removeVisibilityChangedCallback();await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback();await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,(async()=>{try{const C=Date.now();try{return await this._useSession((async q=>{const{data:{session:re}}=q;if(!re||!re.refresh_token||!re.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const ae=Math.floor((re.expires_at*1e3-C)/Qr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${ae} ticks, a tick lasts ${Qr}ms, refresh threshold is ${Fr} ticks`);if(ae<=Fr){await this._callRefreshToken(re.refresh_token)}}))}catch(C){console.error("Auto refresh tick failed with error. This is likely a transient error.",C)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}))}catch(C){if(C.isAcquireTimeout||C instanceof kr.LockAcquireTimeoutError){this._debug("auto refresh token tick lock not available")}else{throw C}}}async _handleVisibilityChange(){this._debug("#_handleVisibilityChange()");if(!(0,Ar.isBrowser)()||!(window===null||window===void 0?void 0:window.addEventListener)){if(this.autoRefreshToken){this.startAutoRefresh()}return false}try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(false);window===null||window===void 0?void 0:window.addEventListener("visibilitychange",this.visibilityChangedCallback);await this._onVisibilityChanged(true)}catch(C){console.error("_handleVisibilityChange",C)}}async _onVisibilityChanged(C){const q=`#_onVisibilityChanged(${C})`;this._debug(q,"visibilityState",document.visibilityState);if(document.visibilityState==="visible"){if(this.autoRefreshToken){this._startAutoRefresh()}if(!C){await this.initializePromise;await this._acquireLock(-1,(async()=>{if(document.visibilityState!=="visible"){this._debug(q,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))}}else if(document.visibilityState==="hidden"){if(this.autoRefreshToken){this._stopAutoRefresh()}}}async _getUrlForProvider(C,q,re){const ae=[`provider=${encodeURIComponent(q)}`];if(re===null||re===void 0?void 0:re.redirectTo){ae.push(`redirect_to=${encodeURIComponent(re.redirectTo)}`)}if(re===null||re===void 0?void 0:re.scopes){ae.push(`scopes=${encodeURIComponent(re.scopes)}`)}if(this.flowType==="pkce"){const[C,q]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey);const re=new URLSearchParams({code_challenge:`${encodeURIComponent(C)}`,code_challenge_method:`${encodeURIComponent(q)}`});ae.push(re.toString())}if(re===null||re===void 0?void 0:re.queryParams){const C=new URLSearchParams(re.queryParams);ae.push(C.toString())}if(re===null||re===void 0?void 0:re.skipBrowserRedirect){ae.push(`skip_http_redirect=${re.skipBrowserRedirect}`)}return`${C}?${ae.join("&")}`}async _unenroll(C){try{return await this._useSession((async q=>{var re;const{data:ae,error:Ue}=q;if(Ue){return{data:null,error:Ue}}return await(0,Wt._request)(this.fetch,"DELETE",`${this.url}/factors/${C.factorId}`,{headers:this.headers,jwt:(re=ae===null||ae===void 0?void 0:ae.session)===null||re===void 0?void 0:re.access_token})}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async _enroll(C){try{return await this._useSession((async q=>{var re,ae;const{data:Ue,error:lt}=q;if(lt){return{data:null,error:lt}}const Pt=Object.assign({friendly_name:C.friendlyName,factor_type:C.factorType},C.factorType==="phone"?{phone:C.phone}:{issuer:C.issuer});const{data:Ar,error:Er}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/factors`,{body:Pt,headers:this.headers,jwt:(re=Ue===null||Ue===void 0?void 0:Ue.session)===null||re===void 0?void 0:re.access_token});if(Er){return{data:null,error:Er}}if(C.factorType==="totp"&&((ae=Ar===null||Ar===void 0?void 0:Ar.totp)===null||ae===void 0?void 0:ae.qr_code)){Ar.totp.qr_code=`data:image/svg+xml;utf-8,${Ar.totp.qr_code}`}return{data:Ar,error:null}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async _verify(C){return this._acquireLock(-1,(async()=>{try{return await this._useSession((async q=>{var re;const{data:ae,error:Ue}=q;if(Ue){return{data:null,error:Ue}}const{data:lt,error:Pt}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/factors/${C.factorId}/verify`,{body:{code:C.code,challenge_id:C.challengeId},headers:this.headers,jwt:(re=ae===null||ae===void 0?void 0:ae.session)===null||re===void 0?void 0:re.access_token});if(Pt){return{data:null,error:Pt}}await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+lt.expires_in},lt));await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",lt);return{data:lt,error:Pt}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}))}async _challenge(C){return this._acquireLock(-1,(async()=>{try{return await this._useSession((async q=>{var re;const{data:ae,error:Ue}=q;if(Ue){return{data:null,error:Ue}}return await(0,Wt._request)(this.fetch,"POST",`${this.url}/factors/${C.factorId}/challenge`,{body:{channel:C.channel},headers:this.headers,jwt:(re=ae===null||ae===void 0?void 0:ae.session)===null||re===void 0?void 0:re.access_token})}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}))}async _challengeAndVerify(C){const{data:q,error:re}=await this._challenge({factorId:C.factorId});if(re){return{data:null,error:re}}return await this._verify({factorId:C.factorId,challengeId:q.id,code:C.code})}async _listFactors(){const{data:{user:C},error:q}=await this.getUser();if(q){return{data:null,error:q}}const re=(C===null||C===void 0?void 0:C.factors)||[];const ae=re.filter((C=>C.factor_type==="totp"&&C.status==="verified"));const Ue=re.filter((C=>C.factor_type==="phone"&&C.status==="verified"));return{data:{all:re,totp:ae,phone:Ue},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,(async()=>await this._useSession((async C=>{var q,re;const{data:{session:ae},error:Ue}=C;if(Ue){return{data:null,error:Ue}}if(!ae){return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null}}const lt=this._decodeJWT(ae.access_token);let Pt=null;if(lt.aal){Pt=lt.aal}let Wt=Pt;const Ar=(re=(q=ae.user.factors)===null||q===void 0?void 0:q.filter((C=>C.status==="verified")))!==null&&re!==void 0?re:[];if(Ar.length>0){Wt="aal2"}const Er=lt.amr||[];return{data:{currentLevel:Pt,nextLevel:Wt,currentAuthenticationMethods:Er},error:null}}))))}}q["default"]=GoTrueClient;GoTrueClient.nextInstanceID=0},31904:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};var lt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.lockInternals=q.NavigatorLockAcquireTimeoutError=q.navigatorLock=q.AuthClient=q.AuthAdminApi=q.GoTrueClient=q.GoTrueAdminApi=void 0;const Pt=lt(re(52165));q.GoTrueAdminApi=Pt.default;const Wt=lt(re(16623));q.GoTrueClient=Wt.default;const Ar=lt(re(68789));q.AuthAdminApi=Ar.default;const Er=lt(re(62495));q.AuthClient=Er.default;Ue(re(53737),q);Ue(re(73981),q);var Ir=re(28932);Object.defineProperty(q,"navigatorLock",{enumerable:true,get:function(){return Ir.navigatorLock}});Object.defineProperty(q,"NavigatorLockAcquireTimeoutError",{enumerable:true,get:function(){return Ir.NavigatorLockAcquireTimeoutError}});Object.defineProperty(q,"lockInternals",{enumerable:true,get:function(){return Ir.internals}})},26705:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.API_VERSIONS=q.API_VERSION_HEADER_NAME=q.NETWORK_FAILURE=q.EXPIRY_MARGIN=q.DEFAULT_HEADERS=q.AUDIENCE=q.STORAGE_KEY=q.GOTRUE_URL=void 0;const ae=re(41920);q.GOTRUE_URL="http://localhost:9999";q.STORAGE_KEY="supabase.auth.token";q.AUDIENCE="";q.DEFAULT_HEADERS={"X-Client-Info":`gotrue-js/${ae.version}`};q.EXPIRY_MARGIN=10;q.NETWORK_FAILURE={MAX_RETRIES:10,RETRY_INTERVAL:2};q.API_VERSION_HEADER_NAME="X-Supabase-Api-Version";q.API_VERSIONS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}}},73981:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.isAuthWeakPasswordError=q.AuthWeakPasswordError=q.isAuthRetryableFetchError=q.AuthRetryableFetchError=q.AuthPKCEGrantCodeExchangeError=q.AuthImplicitGrantRedirectError=q.AuthInvalidCredentialsError=q.AuthInvalidTokenResponseError=q.isAuthSessionMissingError=q.AuthSessionMissingError=q.CustomAuthError=q.AuthUnknownError=q.isAuthApiError=q.AuthApiError=q.isAuthError=q.AuthError=void 0;class AuthError extends Error{constructor(C,q,re){super(C);this.__isAuthError=true;this.name="AuthError";this.status=q;this.code=re}}q.AuthError=AuthError;function isAuthError(C){return typeof C==="object"&&C!==null&&"__isAuthError"in C}q.isAuthError=isAuthError;class AuthApiError extends AuthError{constructor(C,q,re){super(C,q,re);this.name="AuthApiError";this.status=q;this.code=re}}q.AuthApiError=AuthApiError;function isAuthApiError(C){return isAuthError(C)&&C.name==="AuthApiError"}q.isAuthApiError=isAuthApiError;class AuthUnknownError extends AuthError{constructor(C,q){super(C);this.name="AuthUnknownError";this.originalError=q}}q.AuthUnknownError=AuthUnknownError;class CustomAuthError extends AuthError{constructor(C,q,re,ae){super(C,re,ae);this.name=q;this.status=re}}q.CustomAuthError=CustomAuthError;class AuthSessionMissingError extends CustomAuthError{constructor(){super("Auth session missing!","AuthSessionMissingError",400,undefined)}}q.AuthSessionMissingError=AuthSessionMissingError;function isAuthSessionMissingError(C){return isAuthError(C)&&C.name==="AuthSessionMissingError"}q.isAuthSessionMissingError=isAuthSessionMissingError;class AuthInvalidTokenResponseError extends CustomAuthError{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,undefined)}}q.AuthInvalidTokenResponseError=AuthInvalidTokenResponseError;class AuthInvalidCredentialsError extends CustomAuthError{constructor(C){super(C,"AuthInvalidCredentialsError",400,undefined)}}q.AuthInvalidCredentialsError=AuthInvalidCredentialsError;class AuthImplicitGrantRedirectError extends CustomAuthError{constructor(C,q=null){super(C,"AuthImplicitGrantRedirectError",500,undefined);this.details=null;this.details=q}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}q.AuthImplicitGrantRedirectError=AuthImplicitGrantRedirectError;class AuthPKCEGrantCodeExchangeError extends CustomAuthError{constructor(C,q=null){super(C,"AuthPKCEGrantCodeExchangeError",500,undefined);this.details=null;this.details=q}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}q.AuthPKCEGrantCodeExchangeError=AuthPKCEGrantCodeExchangeError;class AuthRetryableFetchError extends CustomAuthError{constructor(C,q){super(C,"AuthRetryableFetchError",q,undefined)}}q.AuthRetryableFetchError=AuthRetryableFetchError;function isAuthRetryableFetchError(C){return isAuthError(C)&&C.name==="AuthRetryableFetchError"}q.isAuthRetryableFetchError=isAuthRetryableFetchError;class AuthWeakPasswordError extends CustomAuthError{constructor(C,q,re){super(C,"AuthWeakPasswordError",q,"weak_password");this.reasons=re}}q.AuthWeakPasswordError=AuthWeakPasswordError;function isAuthWeakPasswordError(C){return isAuthError(C)&&C.name==="AuthWeakPasswordError"}q.isAuthWeakPasswordError=isAuthWeakPasswordError},92356:function(C,q,re){var ae=this&&this.__rest||function(C,q){var re={};for(var ae in C)if(Object.prototype.hasOwnProperty.call(C,ae)&&q.indexOf(ae)<0)re[ae]=C[ae];if(C!=null&&typeof Object.getOwnPropertySymbols==="function")for(var Ue=0,ae=Object.getOwnPropertySymbols(C);UeC.msg||C.message||C.error_description||C.error||JSON.stringify(C);const Wt=[502,503,504];async function handleError(C){var q;if(!(0,lt.looksLikeFetchResponse)(C)){throw new Pt.AuthRetryableFetchError(_getErrorMessage(C),0)}if(Wt.includes(C.status)){throw new Pt.AuthRetryableFetchError(_getErrorMessage(C),C.status)}let re;try{re=await C.json()}catch(C){throw new Pt.AuthUnknownError(_getErrorMessage(C),C)}let ae=undefined;const Ar=(0,lt.parseResponseAPIVersion)(C);if(Ar&&Ar.getTime()>=Ue.API_VERSIONS["2024-01-01"].timestamp&&typeof re==="object"&&re&&typeof re.code==="string"){ae=re.code}else if(typeof re==="object"&&re&&typeof re.error_code==="string"){ae=re.error_code}if(!ae){if(typeof re==="object"&&re&&typeof re.weak_password==="object"&&re.weak_password&&Array.isArray(re.weak_password.reasons)&&re.weak_password.reasons.length&&re.weak_password.reasons.reduce(((C,q)=>C&&typeof q==="string"),true)){throw new Pt.AuthWeakPasswordError(_getErrorMessage(re),C.status,re.weak_password.reasons)}}else if(ae==="weak_password"){throw new Pt.AuthWeakPasswordError(_getErrorMessage(re),C.status,((q=re.weak_password)===null||q===void 0?void 0:q.reasons)||[])}else if(ae==="session_not_found"){throw new Pt.AuthSessionMissingError}throw new Pt.AuthApiError(_getErrorMessage(re),C.status||500,ae)}q.handleError=handleError;const _getRequestParams=(C,q,re,ae)=>{const Ue={method:C,headers:(q===null||q===void 0?void 0:q.headers)||{}};if(C==="GET"){return Ue}Ue.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},q===null||q===void 0?void 0:q.headers);Ue.body=JSON.stringify(ae);return Object.assign(Object.assign({},Ue),re)};async function _request(C,q,re,ae){var lt;const Pt=Object.assign({},ae===null||ae===void 0?void 0:ae.headers);if(!Pt[Ue.API_VERSION_HEADER_NAME]){Pt[Ue.API_VERSION_HEADER_NAME]=Ue.API_VERSIONS["2024-01-01"].name}if(ae===null||ae===void 0?void 0:ae.jwt){Pt["Authorization"]=`Bearer ${ae.jwt}`}const Wt=(lt=ae===null||ae===void 0?void 0:ae.query)!==null&<!==void 0?lt:{};if(ae===null||ae===void 0?void 0:ae.redirectTo){Wt["redirect_to"]=ae.redirectTo}const Ar=Object.keys(Wt).length?"?"+new URLSearchParams(Wt).toString():"";const Er=await _handleRequest(C,q,re+Ar,{headers:Pt,noResolveJson:ae===null||ae===void 0?void 0:ae.noResolveJson},{},ae===null||ae===void 0?void 0:ae.body);return(ae===null||ae===void 0?void 0:ae.xform)?ae===null||ae===void 0?void 0:ae.xform(Er):{data:Object.assign({},Er),error:null}}q._request=_request;async function _handleRequest(C,q,re,ae,Ue,lt){const Wt=_getRequestParams(q,ae,Ue,lt);let Ar;try{Ar=await C(re,Object.assign({},Wt))}catch(C){console.error(C);throw new Pt.AuthRetryableFetchError(_getErrorMessage(C),0)}if(!Ar.ok){await handleError(Ar)}if(ae===null||ae===void 0?void 0:ae.noResolveJson){return Ar}try{return await Ar.json()}catch(C){await handleError(C)}}function _sessionResponse(C){var q;let re=null;if(hasSession(C)){re=Object.assign({},C);if(!C.expires_at){re.expires_at=(0,lt.expiresAt)(C.expires_in)}}const ae=(q=C.user)!==null&&q!==void 0?q:C;return{data:{session:re,user:ae},error:null}}q._sessionResponse=_sessionResponse;function _sessionResponsePassword(C){const q=_sessionResponse(C);if(!q.error&&C.weak_password&&typeof C.weak_password==="object"&&Array.isArray(C.weak_password.reasons)&&C.weak_password.reasons.length&&C.weak_password.message&&typeof C.weak_password.message==="string"&&C.weak_password.reasons.reduce(((C,q)=>C&&typeof q==="string"),true)){q.data.weak_password=C.weak_password}return q}q._sessionResponsePassword=_sessionResponsePassword;function _userResponse(C){var q;const re=(q=C.user)!==null&&q!==void 0?q:C;return{data:{user:re},error:null}}q._userResponse=_userResponse;function _ssoResponse(C){return{data:C,error:null}}q._ssoResponse=_ssoResponse;function _generateLinkResponse(C){const{action_link:q,email_otp:re,hashed_token:Ue,redirect_to:lt,verification_type:Pt}=C,Wt=ae(C,["action_link","email_otp","hashed_token","redirect_to","verification_type"]);const Ar={action_link:q,email_otp:re,hashed_token:Ue,redirect_to:lt,verification_type:Pt};const Er=Object.assign({},Wt);return{data:{properties:Ar,user:Er},error:null}}q._generateLinkResponse=_generateLinkResponse;function _noResolveJsonResponse(C){return C}q._noResolveJsonResponse=_noResolveJsonResponse;function hasSession(C){return C.access_token&&C.refresh_token&&C.expires_in}},30601:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.parseResponseAPIVersion=q.getCodeChallengeAndMethod=q.generatePKCEChallenge=q.generatePKCEVerifier=q.retryable=q.sleep=q.decodeJWTPayload=q.Deferred=q.decodeBase64URL=q.removeItemAsync=q.getItemAsync=q.setItemAsync=q.looksLikeFetchResponse=q.resolveFetch=q.parseParametersFromURL=q.supportsLocalStorage=q.isBrowser=q.uuid=q.expiresAt=void 0;const Pt=re(26705);function expiresAt(C){const q=Math.round(Date.now()/1e3);return q+C}q.expiresAt=expiresAt;function uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(C){const q=Math.random()*16|0,re=C=="x"?q:q&3|8;return re.toString(16)}))}q.uuid=uuid;const isBrowser=()=>typeof document!=="undefined";q.isBrowser=isBrowser;const Wt={tested:false,writable:false};const supportsLocalStorage=()=>{if(!(0,q.isBrowser)()){return false}try{if(typeof globalThis.localStorage!=="object"){return false}}catch(C){return false}if(Wt.tested){return Wt.writable}const C=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(C,C);globalThis.localStorage.removeItem(C);Wt.tested=true;Wt.writable=true}catch(C){Wt.tested=true;Wt.writable=false}return Wt.writable};q.supportsLocalStorage=supportsLocalStorage;function parseParametersFromURL(C){const q={};const re=new URL(C);if(re.hash&&re.hash[0]==="#"){try{const C=new URLSearchParams(re.hash.substring(1));C.forEach(((C,re)=>{q[re]=C}))}catch(C){}}re.searchParams.forEach(((C,re)=>{q[re]=C}));return q}q.parseParametersFromURL=parseParametersFromURL;const resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=(...C)=>Promise.resolve().then((()=>lt(re(83318)))).then((({default:q})=>q(...C)))}else{q=fetch}return(...C)=>q(...C)};q.resolveFetch=resolveFetch;const looksLikeFetchResponse=C=>typeof C==="object"&&C!==null&&"status"in C&&"ok"in C&&"json"in C&&typeof C.json==="function";q.looksLikeFetchResponse=looksLikeFetchResponse;const setItemAsync=async(C,q,re)=>{await C.setItem(q,JSON.stringify(re))};q.setItemAsync=setItemAsync;const getItemAsync=async(C,q)=>{const re=await C.getItem(q);if(!re){return null}try{return JSON.parse(re)}catch(C){return re}};q.getItemAsync=getItemAsync;const removeItemAsync=async(C,q)=>{await C.removeItem(q)};q.removeItemAsync=removeItemAsync;function decodeBase64URL(C){const q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let re="";let ae,Ue,lt;let Pt,Wt,Ar,Er;let Ir=0;C=C.replace("-","+").replace("_","/");while(Ir>4;Ue=(Wt&15)<<4|Ar>>2;lt=(Ar&3)<<6|Er;re=re+String.fromCharCode(ae);if(Ar!=64&&Ue!=0){re=re+String.fromCharCode(Ue)}if(Er!=64&<!=0){re=re+String.fromCharCode(lt)}}return re}q.decodeBase64URL=decodeBase64URL;class Deferred{constructor(){this.promise=new Deferred.promiseConstructor(((C,q)=>{this.resolve=C;this.reject=q}))}}q.Deferred=Deferred;Deferred.promiseConstructor=Promise;function decodeJWTPayload(C){const q=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i;const re=C.split(".");if(re.length!==3){throw new Error("JWT is not valid: not a JWT structure")}if(!q.test(re[1])){throw new Error("JWT is not valid: payload is not in base64url format")}const ae=re[1];return JSON.parse(decodeBase64URL(ae))}q.decodeJWTPayload=decodeJWTPayload;async function sleep(C){return await new Promise((q=>{setTimeout((()=>q(null)),C)}))}q.sleep=sleep;function retryable(C,q){const re=new Promise(((re,ae)=>{(async()=>{for(let Ue=0;UeString.fromCharCode(C))).join("")}function base64urlencode(C){return btoa(C).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function generatePKCEChallenge(C){const q=typeof crypto!=="undefined"&&typeof crypto.subtle!=="undefined"&&typeof TextEncoder!=="undefined";if(!q){console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256.");return C}const re=await sha256(C);return base64urlencode(re)}q.generatePKCEChallenge=generatePKCEChallenge;async function getCodeChallengeAndMethod(C,re,ae=false){const Ue=generatePKCEVerifier();let lt=Ue;if(ae){lt+="/PASSWORD_RECOVERY"}await(0,q.setItemAsync)(C,`${re}-code-verifier`,lt);const Pt=await generatePKCEChallenge(Ue);const Wt=Ue===Pt?"plain":"s256";return[Pt,Wt]}q.getCodeChallengeAndMethod=getCodeChallengeAndMethod;const Ar=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function parseResponseAPIVersion(C){const q=C.headers.get(Pt.API_VERSION_HEADER_NAME);if(!q){return null}if(!q.match(Ar)){return null}try{const C=new Date(`${q}T00:00:00.0Z`);return C}catch(C){return null}}q.parseResponseAPIVersion=parseResponseAPIVersion},21735:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.memoryLocalStorageAdapter=q.localStorageAdapter=void 0;const ae=re(30601);q.localStorageAdapter={getItem:C=>{if(!(0,ae.supportsLocalStorage)()){return null}return globalThis.localStorage.getItem(C)},setItem:(C,q)=>{if(!(0,ae.supportsLocalStorage)()){return}globalThis.localStorage.setItem(C,q)},removeItem:C=>{if(!(0,ae.supportsLocalStorage)()){return}globalThis.localStorage.removeItem(C)}};function memoryLocalStorageAdapter(C={}){return{getItem:q=>C[q]||null,setItem:(q,re)=>{C[q]=re},removeItem:q=>{delete C[q]}}}q.memoryLocalStorageAdapter=memoryLocalStorageAdapter},28932:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.navigatorLock=q.NavigatorLockAcquireTimeoutError=q.LockAcquireTimeoutError=q.internals=void 0;const ae=re(30601);q.internals={debug:!!(globalThis&&(0,ae.supportsLocalStorage)()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class LockAcquireTimeoutError extends Error{constructor(C){super(C);this.isAcquireTimeout=true}}q.LockAcquireTimeoutError=LockAcquireTimeoutError;class NavigatorLockAcquireTimeoutError extends LockAcquireTimeoutError{}q.NavigatorLockAcquireTimeoutError=NavigatorLockAcquireTimeoutError;async function navigatorLock(C,re,ae){if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: acquire lock",C,re)}const Ue=new globalThis.AbortController;if(re>0){setTimeout((()=>{Ue.abort();if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock acquire timed out",C)}}),re)}return await globalThis.navigator.locks.request(C,re===0?{mode:"exclusive",ifAvailable:true}:{mode:"exclusive",signal:Ue.signal},(async Ue=>{if(Ue){if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: acquired",C,Ue.name)}try{return await ae()}finally{if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: released",C,Ue.name)}}}else{if(re===0){if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: not immediately available",C)}throw new NavigatorLockAcquireTimeoutError(`Acquiring an exclusive Navigator LockManager lock "${C}" immediately failed`)}else{if(q.internals.debug){try{const C=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(C,null," "))}catch(C){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",C)}}console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request");return await ae()}}}))}q.navigatorLock=navigatorLock},80512:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.polyfillGlobalThis=void 0;function polyfillGlobalThis(){if(typeof globalThis==="object")return;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:true});__magic__.globalThis=__magic__;delete Object.prototype.__magic__}catch(C){if(typeof self!=="undefined"){self.globalThis=self}}}q.polyfillGlobalThis=polyfillGlobalThis},53737:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},41920:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="2.65.1"},39149:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.FunctionsClient=void 0;const Ue=re(44495);const lt=re(70842);class FunctionsClient{constructor(C,{headers:q={},customFetch:re,region:ae=lt.FunctionRegion.Any}={}){this.url=C;this.headers=q;this.region=ae;this.fetch=(0,Ue.resolveFetch)(re)}setAuth(C){this.headers.Authorization=`Bearer ${C}`}invoke(C,q={}){var re;return ae(this,void 0,void 0,(function*(){try{const{headers:ae,method:Ue,body:Pt}=q;let Wt={};let{region:Ar}=q;if(!Ar){Ar=this.region}if(Ar&&Ar!=="any"){Wt["x-region"]=Ar}let Er;if(Pt&&(ae&&!Object.prototype.hasOwnProperty.call(ae,"Content-Type")||!ae)){if(typeof Blob!=="undefined"&&Pt instanceof Blob||Pt instanceof ArrayBuffer){Wt["Content-Type"]="application/octet-stream";Er=Pt}else if(typeof Pt==="string"){Wt["Content-Type"]="text/plain";Er=Pt}else if(typeof FormData!=="undefined"&&Pt instanceof FormData){Er=Pt}else{Wt["Content-Type"]="application/json";Er=JSON.stringify(Pt)}}const Ir=yield this.fetch(`${this.url}/${C}`,{method:Ue||"POST",headers:Object.assign(Object.assign(Object.assign({},Wt),this.headers),ae),body:Er}).catch((C=>{throw new lt.FunctionsFetchError(C)}));const Br=Ir.headers.get("x-relay-error");if(Br&&Br==="true"){throw new lt.FunctionsRelayError(Ir)}if(!Ir.ok){throw new lt.FunctionsHttpError(Ir)}let kr=((re=Ir.headers.get("Content-Type"))!==null&&re!==void 0?re:"text/plain").split(";")[0].trim();let Pr;if(kr==="application/json"){Pr=yield Ir.json()}else if(kr==="application/octet-stream"){Pr=yield Ir.blob()}else if(kr==="text/event-stream"){Pr=Ir}else if(kr==="multipart/form-data"){Pr=yield Ir.formData()}else{Pr=yield Ir.text()}return{data:Pr,error:null}}catch(C){return{data:null,error:C}}}))}}q.FunctionsClient=FunctionsClient},44495:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.resolveFetch=void 0;const resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=(...C)=>Promise.resolve().then((()=>lt(re(83318)))).then((({default:q})=>q(...C)))}else{q=fetch}return(...C)=>q(...C)};q.resolveFetch=resolveFetch},70459:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.FunctionRegion=q.FunctionsRelayError=q.FunctionsHttpError=q.FunctionsFetchError=q.FunctionsError=q.FunctionsClient=void 0;var ae=re(39149);Object.defineProperty(q,"FunctionsClient",{enumerable:true,get:function(){return ae.FunctionsClient}});var Ue=re(70842);Object.defineProperty(q,"FunctionsError",{enumerable:true,get:function(){return Ue.FunctionsError}});Object.defineProperty(q,"FunctionsFetchError",{enumerable:true,get:function(){return Ue.FunctionsFetchError}});Object.defineProperty(q,"FunctionsHttpError",{enumerable:true,get:function(){return Ue.FunctionsHttpError}});Object.defineProperty(q,"FunctionsRelayError",{enumerable:true,get:function(){return Ue.FunctionsRelayError}});Object.defineProperty(q,"FunctionRegion",{enumerable:true,get:function(){return Ue.FunctionRegion}})},70842:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.FunctionRegion=q.FunctionsHttpError=q.FunctionsRelayError=q.FunctionsFetchError=q.FunctionsError=void 0;class FunctionsError extends Error{constructor(C,q="FunctionsError",re){super(C);this.name=q;this.context=re}}q.FunctionsError=FunctionsError;class FunctionsFetchError extends FunctionsError{constructor(C){super("Failed to send a request to the Edge Function","FunctionsFetchError",C)}}q.FunctionsFetchError=FunctionsFetchError;class FunctionsRelayError extends FunctionsError{constructor(C){super("Relay Error invoking the Edge Function","FunctionsRelayError",C)}}q.FunctionsRelayError=FunctionsRelayError;class FunctionsHttpError extends FunctionsError{constructor(C){super("Edge Function returned a non-2xx status code","FunctionsHttpError",C)}}q.FunctionsHttpError=FunctionsHttpError;var re;(function(C){C["Any"]="any";C["ApNortheast1"]="ap-northeast-1";C["ApNortheast2"]="ap-northeast-2";C["ApSouth1"]="ap-south-1";C["ApSoutheast1"]="ap-southeast-1";C["ApSoutheast2"]="ap-southeast-2";C["CaCentral1"]="ca-central-1";C["EuCentral1"]="eu-central-1";C["EuWest1"]="eu-west-1";C["EuWest2"]="eu-west-2";C["EuWest3"]="eu-west-3";C["SaEast1"]="sa-east-1";C["UsEast1"]="us-east-1";C["UsWest1"]="us-west-1";C["UsWest2"]="us-west-2"})(re=q.FunctionRegion||(q.FunctionRegion={}))},83318:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});function _interopDefault(C){return C&&typeof C==="object"&&"default"in C?C["default"]:C}var ae=_interopDefault(re(2203));var Ue=_interopDefault(re(58611));var lt=_interopDefault(re(87016));var Pt=_interopDefault(re(62686));var Wt=_interopDefault(re(65692));var Ar=_interopDefault(re(43106));const Er=ae.Readable;const Ir=Symbol("buffer");const Br=Symbol("type");class Blob{constructor(){this[Br]="";const C=arguments[0];const q=arguments[1];const re=[];let ae=0;if(C){const q=C;const Ue=Number(q.length);for(let C=0;C1&&arguments[1]!==undefined?arguments[1]:{},Ue=re.size;let lt=Ue===undefined?0:Ue;var Pt=re.timeout;let Wt=Pt===undefined?0:Pt;if(C==null){C=null}else if(isURLSearchParams(C)){C=Buffer.from(C.toString())}else if(isBlob(C));else if(Buffer.isBuffer(C));else if(Object.prototype.toString.call(C)==="[object ArrayBuffer]"){C=Buffer.from(C)}else if(ArrayBuffer.isView(C)){C=Buffer.from(C.buffer,C.byteOffset,C.byteLength)}else if(C instanceof ae);else{C=Buffer.from(String(C))}this[Pr]={body:C,disturbed:false,error:null};this.size=lt;this.timeout=Wt;if(C instanceof ae){C.on("error",(function(C){const re=C.name==="AbortError"?C:new FetchError(`Invalid response body while trying to fetch ${q.url}: ${C.message}`,"system",C);q[Pr].error=re}))}}Body.prototype={get body(){return this[Pr].body},get bodyUsed(){return this[Pr].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(C){return C.buffer.slice(C.byteOffset,C.byteOffset+C.byteLength)}))},blob(){let C=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(q){return Object.assign(new Blob([],{type:C.toLowerCase()}),{[Ir]:q})}))},json(){var C=this;return consumeBody.call(this).then((function(q){try{return JSON.parse(q.toString())}catch(q){return Body.Promise.reject(new FetchError(`invalid json response body at ${C.url} reason: ${q.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(C){return C.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var C=this;return consumeBody.call(this).then((function(q){return convertBody(q,C.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(C){for(const q of Object.getOwnPropertyNames(Body.prototype)){if(!(q in C)){const re=Object.getOwnPropertyDescriptor(Body.prototype,q);Object.defineProperty(C,q,re)}}};function consumeBody(){var C=this;if(this[Pr].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[Pr].disturbed=true;if(this[Pr].error){return Body.Promise.reject(this[Pr].error)}let q=this.body;if(q===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(q)){q=q.stream()}if(Buffer.isBuffer(q)){return Body.Promise.resolve(q)}if(!(q instanceof ae)){return Body.Promise.resolve(Buffer.alloc(0))}let re=[];let Ue=0;let lt=false;return new Body.Promise((function(ae,Pt){let Wt;if(C.timeout){Wt=setTimeout((function(){lt=true;Pt(new FetchError(`Response timeout while trying to fetch ${C.url} (over ${C.timeout}ms)`,"body-timeout"))}),C.timeout)}q.on("error",(function(q){if(q.name==="AbortError"){lt=true;Pt(q)}else{Pt(new FetchError(`Invalid response body while trying to fetch ${C.url}: ${q.message}`,"system",q))}}));q.on("data",(function(q){if(lt||q===null){return}if(C.size&&Ue+q.length>C.size){lt=true;Pt(new FetchError(`content size at ${C.url} over limit: ${C.size}`,"max-size"));return}Ue+=q.length;re.push(q)}));q.on("end",(function(){if(lt){return}clearTimeout(Wt);try{ae(Buffer.concat(re,Ue))}catch(q){Pt(new FetchError(`Could not create Buffer from response body for ${C.url}: ${q.message}`,"system",q))}}))}))}function convertBody(C,q){{throw new Error("The package `encoding` must be installed to use the textConverted() function")}const re=q.get("content-type");let ae="utf-8";let Ue,lt;if(re){Ue=/charset=([^;]*)/i.exec(re)}lt=C.slice(0,1024).toString();if(!Ue&<){Ue=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[xr]=Object.create(null);if(C instanceof Headers){const q=C.raw();const re=Object.keys(q);for(const C of re){for(const re of q[C]){this.append(C,re)}}return}if(C==null);else if(typeof C==="object"){const q=C[Symbol.iterator];if(q!=null){if(typeof q!=="function"){throw new TypeError("Header pairs must be iterable")}const re=[];for(const q of C){if(typeof q!=="object"||typeof q[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}re.push(Array.from(q))}for(const C of re){if(C.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(C[0],C[1])}}else{for(const q of Object.keys(C)){const re=C[q];this.append(q,re)}}}else{throw new TypeError("Provided initializer must be an object")}}get(C){C=`${C}`;validateName(C);const q=find(this[xr],C);if(q===undefined){return null}return this[xr][q].join(", ")}forEach(C){let q=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let re=getHeaders(this);let ae=0;while(ae1&&arguments[1]!==undefined?arguments[1]:"key+value";const re=Object.keys(C[xr]).sort();return re.map(q==="key"?function(C){return C.toLowerCase()}:q==="value"?function(q){return C[xr][q].join(", ")}:function(q){return[q.toLowerCase(),C[xr][q].join(", ")]})}const Mr=Symbol("internal");function createHeadersIterator(C,q){const re=Object.create(Ur);re[Mr]={target:C,kind:q,index:0};return re}const Ur=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==Ur){throw new TypeError("Value of `this` is not a HeadersIterator")}var C=this[Mr];const q=C.target,re=C.kind,ae=C.index;const Ue=getHeaders(q,re);const lt=Ue.length;if(ae>=lt){return{value:undefined,done:true}}this[Mr].index=ae+1;return{value:Ue[ae],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(Ur,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(C){const q=Object.assign({__proto__:null},C[xr]);const re=find(C[xr],"Host");if(re!==undefined){q[re]=q[re][0]}return q}function createHeadersLenient(C){const q=new Headers;for(const re of Object.keys(C)){if(Fr.test(re)){continue}if(Array.isArray(C[re])){for(const ae of C[re]){if(Dr.test(ae)){continue}if(q[xr][re]===undefined){q[xr][re]=[ae]}else{q[xr][re].push(ae)}}}else if(!Dr.test(C[re])){q[xr][re]=[C[re]]}}return q}const Nr=Symbol("Response internals");const Lr=Ue.STATUS_CODES;class Response{constructor(){let C=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let q=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,C,q);const re=q.status||200;const ae=new Headers(q.headers);if(C!=null&&!ae.has("Content-Type")){const q=extractContentType(C);if(q){ae.append("Content-Type",q)}}this[Nr]={url:q.url,status:re,statusText:q.statusText||Lr[re],headers:ae,counter:q.counter}}get url(){return this[Nr].url||""}get status(){return this[Nr].status}get ok(){return this[Nr].status>=200&&this[Nr].status<300}get redirected(){return this[Nr].counter>0}get statusText(){return this[Nr].statusText}get headers(){return this[Nr].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const jr=Symbol("Request internals");const Gr=lt.URL||Pt.URL;const Vr=lt.parse;const Hr=lt.format;function parseURL(C){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(C)){C=new Gr(C).toString()}return Vr(C)}const Wr="destroy"in ae.Readable.prototype;function isRequest(C){return typeof C==="object"&&typeof C[jr]==="object"}function isAbortSignal(C){const q=C&&typeof C==="object"&&Object.getPrototypeOf(C);return!!(q&&q.constructor.name==="AbortSignal")}class Request{constructor(C){let q=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let re;if(!isRequest(C)){if(C&&C.href){re=parseURL(C.href)}else{re=parseURL(`${C}`)}C={}}else{re=parseURL(C.url)}let ae=q.method||C.method||"GET";ae=ae.toUpperCase();if((q.body!=null||isRequest(C)&&C.body!==null)&&(ae==="GET"||ae==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let Ue=q.body!=null?q.body:isRequest(C)&&C.body!==null?clone(C):null;Body.call(this,Ue,{timeout:q.timeout||C.timeout||0,size:q.size||C.size||0});const lt=new Headers(q.headers||C.headers||{});if(Ue!=null&&!lt.has("Content-Type")){const C=extractContentType(Ue);if(C){lt.append("Content-Type",C)}}let Pt=isRequest(C)?C.signal:null;if("signal"in q)Pt=q.signal;if(Pt!=null&&!isAbortSignal(Pt)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[jr]={method:ae,redirect:q.redirect||C.redirect||"follow",headers:lt,parsedURL:re,signal:Pt};this.follow=q.follow!==undefined?q.follow:C.follow!==undefined?C.follow:20;this.compress=q.compress!==undefined?q.compress:C.compress!==undefined?C.compress:true;this.counter=q.counter||C.counter||0;this.agent=q.agent||C.agent}get method(){return this[jr].method}get url(){return Hr(this[jr].parsedURL)}get headers(){return this[jr].headers}get redirect(){return this[jr].redirect}get signal(){return this[jr].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(C){const q=C[jr].parsedURL;const re=new Headers(C[jr].headers);if(!re.has("Accept")){re.set("Accept","*/*")}if(!q.protocol||!q.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(q.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(C.signal&&C.body instanceof ae.Readable&&!Wr){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let Ue=null;if(C.body==null&&/^(POST|PUT)$/i.test(C.method)){Ue="0"}if(C.body!=null){const q=getTotalBytes(C);if(typeof q==="number"){Ue=String(q)}}if(Ue){re.set("Content-Length",Ue)}if(!re.has("User-Agent")){re.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(C.compress&&!re.has("Accept-Encoding")){re.set("Accept-Encoding","gzip,deflate")}let lt=C.agent;if(typeof lt==="function"){lt=lt(q)}if(!re.has("Connection")&&!lt){re.set("Connection","close")}return Object.assign({},q,{method:C.method,headers:exportNodeCompatibleHeaders(re),agent:lt})}function AbortError(C){Error.call(this,C);this.type="aborted";this.message=C;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const $r=lt.URL||Pt.URL;const Kr=ae.PassThrough;const zr=function isDomainOrSubdomain(C,q){const re=new $r(q).hostname;const ae=new $r(C).hostname;return re===ae||re[re.length-ae.length-1]==="."&&re.endsWith(ae)};const Jr=function isSameProtocol(C,q){const re=new $r(q).protocol;const ae=new $r(C).protocol;return re===ae};function fetch(C,q){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(re,lt){const Pt=new Request(C,q);const Er=getNodeRequestOptions(Pt);const Ir=(Er.protocol==="https:"?Wt:Ue).request;const Br=Pt.signal;let kr=null;const Pr=function abort(){let C=new AbortError("The user aborted a request.");lt(C);if(Pt.body&&Pt.body instanceof ae.Readable){destroyStream(Pt.body,C)}if(!kr||!kr.body)return;kr.body.emit("error",C)};if(Br&&Br.aborted){Pr();return}const Qr=function abortAndFinalize(){Pr();finalize()};const Fr=Ir(Er);let Dr;if(Br){Br.addEventListener("abort",Qr)}function finalize(){Fr.abort();if(Br)Br.removeEventListener("abort",Qr);clearTimeout(Dr)}if(Pt.timeout){Fr.once("socket",(function(C){Dr=setTimeout((function(){lt(new FetchError(`network timeout at: ${Pt.url}`,"request-timeout"));finalize()}),Pt.timeout)}))}Fr.on("error",(function(C){lt(new FetchError(`request to ${Pt.url} failed, reason: ${C.message}`,"system",C));if(kr&&kr.body){destroyStream(kr.body,C)}finalize()}));fixResponseChunkedTransferBadEnding(Fr,(function(C){if(Br&&Br.aborted){return}if(kr&&kr.body){destroyStream(kr.body,C)}}));if(parseInt(process.version.substring(1))<14){Fr.on("socket",(function(C){C.addListener("close",(function(q){const re=C.listenerCount("data")>0;if(kr&&re&&!q&&!(Br&&Br.aborted)){const C=new Error("Premature close");C.code="ERR_STREAM_PREMATURE_CLOSE";kr.body.emit("error",C)}}))}))}Fr.on("response",(function(C){clearTimeout(Dr);const q=createHeadersLenient(C.headers);if(fetch.isRedirect(C.statusCode)){const ae=q.get("Location");let Ue=null;try{Ue=ae===null?null:new $r(ae,Pt.url).toString()}catch(C){if(Pt.redirect!=="manual"){lt(new FetchError(`uri requested responds with an invalid redirect URL: ${ae}`,"invalid-redirect"));finalize();return}}switch(Pt.redirect){case"error":lt(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${Pt.url}`,"no-redirect"));finalize();return;case"manual":if(Ue!==null){try{q.set("Location",Ue)}catch(C){lt(C)}}break;case"follow":if(Ue===null){break}if(Pt.counter>=Pt.follow){lt(new FetchError(`maximum redirect reached at: ${Pt.url}`,"max-redirect"));finalize();return}const ae={headers:new Headers(Pt.headers),follow:Pt.follow,counter:Pt.counter+1,agent:Pt.agent,compress:Pt.compress,method:Pt.method,body:Pt.body,signal:Pt.signal,timeout:Pt.timeout,size:Pt.size};if(!zr(Pt.url,Ue)||!Jr(Pt.url,Ue)){for(const C of["authorization","www-authenticate","cookie","cookie2"]){ae.headers.delete(C)}}if(C.statusCode!==303&&Pt.body&&getTotalBytes(Pt)===null){lt(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(C.statusCode===303||(C.statusCode===301||C.statusCode===302)&&Pt.method==="POST"){ae.method="GET";ae.body=undefined;ae.headers.delete("content-length")}re(fetch(new Request(Ue,ae)));finalize();return}}C.once("end",(function(){if(Br)Br.removeEventListener("abort",Qr)}));let ae=C.pipe(new Kr);const Ue={url:Pt.url,status:C.statusCode,statusText:C.statusMessage,headers:q,size:Pt.size,timeout:Pt.timeout,counter:Pt.counter};const Wt=q.get("Content-Encoding");if(!Pt.compress||Pt.method==="HEAD"||Wt===null||C.statusCode===204||C.statusCode===304){kr=new Response(ae,Ue);re(kr);return}const Er={flush:Ar.Z_SYNC_FLUSH,finishFlush:Ar.Z_SYNC_FLUSH};if(Wt=="gzip"||Wt=="x-gzip"){ae=ae.pipe(Ar.createGunzip(Er));kr=new Response(ae,Ue);re(kr);return}if(Wt=="deflate"||Wt=="x-deflate"){const q=C.pipe(new Kr);q.once("data",(function(C){if((C[0]&15)===8){ae=ae.pipe(Ar.createInflate())}else{ae=ae.pipe(Ar.createInflateRaw())}kr=new Response(ae,Ue);re(kr)}));q.on("end",(function(){if(!kr){kr=new Response(ae,Ue);re(kr)}}));return}if(Wt=="br"&&typeof Ar.createBrotliDecompress==="function"){ae=ae.pipe(Ar.createBrotliDecompress());kr=new Response(ae,Ue);re(kr);return}kr=new Response(ae,Ue);re(kr)}));writeToStream(Fr,Pt)}))}function fixResponseChunkedTransferBadEnding(C,q){let re;C.on("socket",(function(C){re=C}));C.on("response",(function(C){const ae=C.headers;if(ae["transfer-encoding"]==="chunked"&&!ae["content-length"]){C.once("close",(function(C){const ae=re&&re.listenerCount("data")>0;if(ae&&!C){const C=new Error("Premature close");C.code="ERR_STREAM_PREMATURE_CLOSE";q(C)}}))}}))}function destroyStream(C,q){if(C.destroy){C.destroy(q)}else{C.emit("error",q);C.end()}}fetch.isRedirect=function(C){return C===301||C===302||C===303||C===307||C===308};fetch.Promise=global.Promise;C.exports=q=fetch;Object.defineProperty(q,"__esModule",{value:true});q["default"]=q;q.Headers=Headers;q.Request=Request;q.Response=Response;q.FetchError=FetchError},88850:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(83318));const lt=ae(re(57631));class PostgrestBuilder{constructor(C){this.shouldThrowOnError=false;this.method=C.method;this.url=C.url;this.headers=C.headers;this.schema=C.schema;this.body=C.body;this.shouldThrowOnError=C.shouldThrowOnError;this.signal=C.signal;this.isMaybeSingle=C.isMaybeSingle;if(C.fetch){this.fetch=C.fetch}else if(typeof fetch==="undefined"){this.fetch=Ue.default}else{this.fetch=fetch}}throwOnError(){this.shouldThrowOnError=true;return this}setHeader(C,q){this.headers=Object.assign({},this.headers);this.headers[C]=q;return this}then(C,q){if(this.schema===undefined){}else if(["GET","HEAD"].includes(this.method)){this.headers["Accept-Profile"]=this.schema}else{this.headers["Content-Profile"]=this.schema}if(this.method!=="GET"&&this.method!=="HEAD"){this.headers["Content-Type"]="application/json"}const re=this.fetch;let ae=re(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then((async C=>{var q,re,ae;let Ue=null;let Pt=null;let Wt=null;let Ar=C.status;let Er=C.statusText;if(C.ok){if(this.method!=="HEAD"){const q=await C.text();if(q===""){}else if(this.headers["Accept"]==="text/csv"){Pt=q}else if(this.headers["Accept"]&&this.headers["Accept"].includes("application/vnd.pgrst.plan+text")){Pt=q}else{Pt=JSON.parse(q)}}const ae=(q=this.headers["Prefer"])===null||q===void 0?void 0:q.match(/count=(exact|planned|estimated)/);const lt=(re=C.headers.get("content-range"))===null||re===void 0?void 0:re.split("/");if(ae&<&<.length>1){Wt=parseInt(lt[1])}if(this.isMaybeSingle&&this.method==="GET"&&Array.isArray(Pt)){if(Pt.length>1){Ue={code:"PGRST116",details:`Results contain ${Pt.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"};Pt=null;Wt=null;Ar=406;Er="Not Acceptable"}else if(Pt.length===1){Pt=Pt[0]}else{Pt=null}}}else{const q=await C.text();try{Ue=JSON.parse(q);if(Array.isArray(Ue)&&C.status===404){Pt=[];Ue=null;Ar=200;Er="OK"}}catch(re){if(C.status===404&&q===""){Ar=204;Er="No Content"}else{Ue={message:q}}}if(Ue&&this.isMaybeSingle&&((ae=Ue===null||Ue===void 0?void 0:Ue.details)===null||ae===void 0?void 0:ae.includes("0 rows"))){Ue=null;Ar=200;Er="OK"}if(Ue&&this.shouldThrowOnError){throw new lt.default(Ue)}}const Ir={error:Ue,data:Pt,count:Wt,status:Ar,statusText:Er};return Ir}));if(!this.shouldThrowOnError){ae=ae.catch((C=>{var q,re,ae;return{error:{message:`${(q=C===null||C===void 0?void 0:C.name)!==null&&q!==void 0?q:"FetchError"}: ${C===null||C===void 0?void 0:C.message}`,details:`${(re=C===null||C===void 0?void 0:C.stack)!==null&&re!==void 0?re:""}`,hint:"",code:`${(ae=C===null||C===void 0?void 0:C.code)!==null&&ae!==void 0?ae:""}`},data:null,count:null,status:0,statusText:""}}))}return ae.then(C,q)}}q["default"]=PostgrestBuilder},20526:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(74846));const lt=ae(re(88868));const Pt=re(73541);class PostgrestClient{constructor(C,{headers:q={},schema:re,fetch:ae}={}){this.url=C;this.headers=Object.assign(Object.assign({},Pt.DEFAULT_HEADERS),q);this.schemaName=re;this.fetch=ae}from(C){const q=new URL(`${this.url}/${C}`);return new Ue.default(q,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(C){return new PostgrestClient(this.url,{headers:this.headers,schema:C,fetch:this.fetch})}rpc(C,q={},{head:re=false,get:ae=false,count:Ue}={}){let Pt;const Wt=new URL(`${this.url}/rpc/${C}`);let Ar;if(re||ae){Pt=re?"HEAD":"GET";Object.entries(q).filter((([C,q])=>q!==undefined)).map((([C,q])=>[C,Array.isArray(q)?`{${q.join(",")}}`:`${q}`])).forEach((([C,q])=>{Wt.searchParams.append(C,q)}))}else{Pt="POST";Ar=q}const Er=Object.assign({},this.headers);if(Ue){Er["Prefer"]=`count=${Ue}`}return new lt.default({method:Pt,url:Wt,headers:Er,schema:this.schemaName,body:Ar,fetch:this.fetch,allowEmpty:false})}}q["default"]=PostgrestClient},57631:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});class PostgrestError extends Error{constructor(C){super(C.message);this.name="PostgrestError";this.details=C.details;this.hint=C.hint;this.code=C.code}}q["default"]=PostgrestError},88868:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(62122));class PostgrestFilterBuilder extends Ue.default{eq(C,q){this.url.searchParams.append(C,`eq.${q}`);return this}neq(C,q){this.url.searchParams.append(C,`neq.${q}`);return this}gt(C,q){this.url.searchParams.append(C,`gt.${q}`);return this}gte(C,q){this.url.searchParams.append(C,`gte.${q}`);return this}lt(C,q){this.url.searchParams.append(C,`lt.${q}`);return this}lte(C,q){this.url.searchParams.append(C,`lte.${q}`);return this}like(C,q){this.url.searchParams.append(C,`like.${q}`);return this}likeAllOf(C,q){this.url.searchParams.append(C,`like(all).{${q.join(",")}}`);return this}likeAnyOf(C,q){this.url.searchParams.append(C,`like(any).{${q.join(",")}}`);return this}ilike(C,q){this.url.searchParams.append(C,`ilike.${q}`);return this}ilikeAllOf(C,q){this.url.searchParams.append(C,`ilike(all).{${q.join(",")}}`);return this}ilikeAnyOf(C,q){this.url.searchParams.append(C,`ilike(any).{${q.join(",")}}`);return this}is(C,q){this.url.searchParams.append(C,`is.${q}`);return this}in(C,q){const re=Array.from(new Set(q)).map((C=>{if(typeof C==="string"&&new RegExp("[,()]").test(C))return`"${C}"`;else return`${C}`})).join(",");this.url.searchParams.append(C,`in.(${re})`);return this}contains(C,q){if(typeof q==="string"){this.url.searchParams.append(C,`cs.${q}`)}else if(Array.isArray(q)){this.url.searchParams.append(C,`cs.{${q.join(",")}}`)}else{this.url.searchParams.append(C,`cs.${JSON.stringify(q)}`)}return this}containedBy(C,q){if(typeof q==="string"){this.url.searchParams.append(C,`cd.${q}`)}else if(Array.isArray(q)){this.url.searchParams.append(C,`cd.{${q.join(",")}}`)}else{this.url.searchParams.append(C,`cd.${JSON.stringify(q)}`)}return this}rangeGt(C,q){this.url.searchParams.append(C,`sr.${q}`);return this}rangeGte(C,q){this.url.searchParams.append(C,`nxl.${q}`);return this}rangeLt(C,q){this.url.searchParams.append(C,`sl.${q}`);return this}rangeLte(C,q){this.url.searchParams.append(C,`nxr.${q}`);return this}rangeAdjacent(C,q){this.url.searchParams.append(C,`adj.${q}`);return this}overlaps(C,q){if(typeof q==="string"){this.url.searchParams.append(C,`ov.${q}`)}else{this.url.searchParams.append(C,`ov.{${q.join(",")}}`)}return this}textSearch(C,q,{config:re,type:ae}={}){let Ue="";if(ae==="plain"){Ue="pl"}else if(ae==="phrase"){Ue="ph"}else if(ae==="websearch"){Ue="w"}const lt=re===undefined?"":`(${re})`;this.url.searchParams.append(C,`${Ue}fts${lt}.${q}`);return this}match(C){Object.entries(C).forEach((([C,q])=>{this.url.searchParams.append(C,`eq.${q}`)}));return this}not(C,q,re){this.url.searchParams.append(C,`not.${q}.${re}`);return this}or(C,{foreignTable:q,referencedTable:re=q}={}){const ae=re?`${re}.or`:"or";this.url.searchParams.append(ae,`(${C})`);return this}filter(C,q,re){this.url.searchParams.append(C,`${q}.${re}`);return this}}q["default"]=PostgrestFilterBuilder},74846:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(88868));class PostgrestQueryBuilder{constructor(C,{headers:q={},schema:re,fetch:ae}){this.url=C;this.headers=q;this.schema=re;this.fetch=ae}select(C,{head:q=false,count:re}={}){const ae=q?"HEAD":"GET";let lt=false;const Pt=(C!==null&&C!==void 0?C:"*").split("").map((C=>{if(/\s/.test(C)&&!lt){return""}if(C==='"'){lt=!lt}return C})).join("");this.url.searchParams.set("select",Pt);if(re){this.headers["Prefer"]=`count=${re}`}return new Ue.default({method:ae,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:false})}insert(C,{count:q,defaultToNull:re=true}={}){const ae="POST";const lt=[];if(this.headers["Prefer"]){lt.push(this.headers["Prefer"])}if(q){lt.push(`count=${q}`)}if(!re){lt.push("missing=default")}this.headers["Prefer"]=lt.join(",");if(Array.isArray(C)){const q=C.reduce(((C,q)=>C.concat(Object.keys(q))),[]);if(q.length>0){const C=[...new Set(q)].map((C=>`"${C}"`));this.url.searchParams.set("columns",C.join(","))}}return new Ue.default({method:ae,url:this.url,headers:this.headers,schema:this.schema,body:C,fetch:this.fetch,allowEmpty:false})}upsert(C,{onConflict:q,ignoreDuplicates:re=false,count:ae,defaultToNull:lt=true}={}){const Pt="POST";const Wt=[`resolution=${re?"ignore":"merge"}-duplicates`];if(q!==undefined)this.url.searchParams.set("on_conflict",q);if(this.headers["Prefer"]){Wt.push(this.headers["Prefer"])}if(ae){Wt.push(`count=${ae}`)}if(!lt){Wt.push("missing=default")}this.headers["Prefer"]=Wt.join(",");if(Array.isArray(C)){const q=C.reduce(((C,q)=>C.concat(Object.keys(q))),[]);if(q.length>0){const C=[...new Set(q)].map((C=>`"${C}"`));this.url.searchParams.set("columns",C.join(","))}}return new Ue.default({method:Pt,url:this.url,headers:this.headers,schema:this.schema,body:C,fetch:this.fetch,allowEmpty:false})}update(C,{count:q}={}){const re="PATCH";const ae=[];if(this.headers["Prefer"]){ae.push(this.headers["Prefer"])}if(q){ae.push(`count=${q}`)}this.headers["Prefer"]=ae.join(",");return new Ue.default({method:re,url:this.url,headers:this.headers,schema:this.schema,body:C,fetch:this.fetch,allowEmpty:false})}delete({count:C}={}){const q="DELETE";const re=[];if(C){re.push(`count=${C}`)}if(this.headers["Prefer"]){re.unshift(this.headers["Prefer"])}this.headers["Prefer"]=re.join(",");return new Ue.default({method:q,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:false})}}q["default"]=PostgrestQueryBuilder},62122:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(88850));class PostgrestTransformBuilder extends Ue.default{select(C){let q=false;const re=(C!==null&&C!==void 0?C:"*").split("").map((C=>{if(/\s/.test(C)&&!q){return""}if(C==='"'){q=!q}return C})).join("");this.url.searchParams.set("select",re);if(this.headers["Prefer"]){this.headers["Prefer"]+=","}this.headers["Prefer"]+="return=representation";return this}order(C,{ascending:q=true,nullsFirst:re,foreignTable:ae,referencedTable:Ue=ae}={}){const lt=Ue?`${Ue}.order`:"order";const Pt=this.url.searchParams.get(lt);this.url.searchParams.set(lt,`${Pt?`${Pt},`:""}${C}.${q?"asc":"desc"}${re===undefined?"":re?".nullsfirst":".nullslast"}`);return this}limit(C,{foreignTable:q,referencedTable:re=q}={}){const ae=typeof re==="undefined"?"limit":`${re}.limit`;this.url.searchParams.set(ae,`${C}`);return this}range(C,q,{foreignTable:re,referencedTable:ae=re}={}){const Ue=typeof ae==="undefined"?"offset":`${ae}.offset`;const lt=typeof ae==="undefined"?"limit":`${ae}.limit`;this.url.searchParams.set(Ue,`${C}`);this.url.searchParams.set(lt,`${q-C+1}`);return this}abortSignal(C){this.signal=C;return this}single(){this.headers["Accept"]="application/vnd.pgrst.object+json";return this}maybeSingle(){if(this.method==="GET"){this.headers["Accept"]="application/json"}else{this.headers["Accept"]="application/vnd.pgrst.object+json"}this.isMaybeSingle=true;return this}csv(){this.headers["Accept"]="text/csv";return this}geojson(){this.headers["Accept"]="application/geo+json";return this}explain({analyze:C=false,verbose:q=false,settings:re=false,buffers:ae=false,wal:Ue=false,format:lt="text"}={}){var Pt;const Wt=[C?"analyze":null,q?"verbose":null,re?"settings":null,ae?"buffers":null,Ue?"wal":null].filter(Boolean).join("|");const Ar=(Pt=this.headers["Accept"])!==null&&Pt!==void 0?Pt:"application/json";this.headers["Accept"]=`application/vnd.pgrst.plan+${lt}; for="${Ar}"; options=${Wt};`;if(lt==="json")return this;else return this}rollback(){var C;if(((C=this.headers["Prefer"])!==null&&C!==void 0?C:"").trim().length>0){this.headers["Prefer"]+=",tx=rollback"}else{this.headers["Prefer"]="tx=rollback"}return this}returns(){return this}}q["default"]=PostgrestTransformBuilder},73541:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.DEFAULT_HEADERS=void 0;const ae=re(41404);q.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${ae.version}`}},93360:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.PostgrestError=q.PostgrestBuilder=q.PostgrestTransformBuilder=q.PostgrestFilterBuilder=q.PostgrestQueryBuilder=q.PostgrestClient=void 0;const Ue=ae(re(20526));q.PostgrestClient=Ue.default;const lt=ae(re(74846));q.PostgrestQueryBuilder=lt.default;const Pt=ae(re(88868));q.PostgrestFilterBuilder=Pt.default;const Wt=ae(re(62122));q.PostgrestTransformBuilder=Wt.default;const Ar=ae(re(88850));q.PostgrestBuilder=Ar.default;const Er=ae(re(57631));q.PostgrestError=Er.default;q["default"]={PostgrestClient:Ue.default,PostgrestQueryBuilder:lt.default,PostgrestFilterBuilder:Pt.default,PostgrestTransformBuilder:Wt.default,PostgrestBuilder:Ar.default,PostgrestError:Er.default}},41404:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="0.0.0-automated"},38093:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.REALTIME_CHANNEL_STATES=q.REALTIME_SUBSCRIBE_STATES=q.REALTIME_LISTEN_TYPES=q.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT=void 0;const Wt=re(29680);const Ar=Pt(re(49333));const Er=Pt(re(99920));const Ir=Pt(re(98493));const Br=lt(re(93429));const kr=re(93429);var Pr;(function(C){C["ALL"]="*";C["INSERT"]="INSERT";C["UPDATE"]="UPDATE";C["DELETE"]="DELETE"})(Pr=q.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT||(q.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT={}));var Qr;(function(C){C["BROADCAST"]="broadcast";C["PRESENCE"]="presence";C["POSTGRES_CHANGES"]="postgres_changes";C["SYSTEM"]="system"})(Qr=q.REALTIME_LISTEN_TYPES||(q.REALTIME_LISTEN_TYPES={}));var Fr;(function(C){C["SUBSCRIBED"]="SUBSCRIBED";C["TIMED_OUT"]="TIMED_OUT";C["CLOSED"]="CLOSED";C["CHANNEL_ERROR"]="CHANNEL_ERROR"})(Fr=q.REALTIME_SUBSCRIBE_STATES||(q.REALTIME_SUBSCRIBE_STATES={}));q.REALTIME_CHANNEL_STATES=Wt.CHANNEL_STATES;class RealtimeChannel{constructor(C,q={config:{}},re){this.topic=C;this.params=q;this.socket=re;this.bindings={};this.state=Wt.CHANNEL_STATES.closed;this.joinedOnce=false;this.pushBuffer=[];this.subTopic=C.replace(/^realtime:/i,"");this.params.config=Object.assign({broadcast:{ack:false,self:false},presence:{key:""},private:false},q.config);this.timeout=this.socket.timeout;this.joinPush=new Ar.default(this,Wt.CHANNEL_EVENTS.join,this.params,this.timeout);this.rejoinTimer=new Er.default((()=>this._rejoinUntilConnected()),this.socket.reconnectAfterMs);this.joinPush.receive("ok",(()=>{this.state=Wt.CHANNEL_STATES.joined;this.rejoinTimer.reset();this.pushBuffer.forEach((C=>C.send()));this.pushBuffer=[]}));this._onClose((()=>{this.rejoinTimer.reset();this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`);this.state=Wt.CHANNEL_STATES.closed;this.socket._remove(this)}));this._onError((C=>{if(this._isLeaving()||this._isClosed()){return}this.socket.log("channel",`error ${this.topic}`,C);this.state=Wt.CHANNEL_STATES.errored;this.rejoinTimer.scheduleTimeout()}));this.joinPush.receive("timeout",(()=>{if(!this._isJoining()){return}this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout);this.state=Wt.CHANNEL_STATES.errored;this.rejoinTimer.scheduleTimeout()}));this._on(Wt.CHANNEL_EVENTS.reply,{},((C,q)=>{this._trigger(this._replyEventName(q),C)}));this.presence=new Ir.default(this);this.broadcastEndpointURL=(0,kr.httpEndpointURL)(this.socket.endPoint)+"/api/broadcast";this.private=this.params.config.private||false}subscribe(C,q=this.timeout){var re,ae;if(!this.socket.isConnected()){this.socket.connect()}if(this.joinedOnce){throw`tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance`}else{const{config:{broadcast:Ue,presence:lt,private:Pt}}=this.params;this._onError((q=>C&&C("CHANNEL_ERROR",q)));this._onClose((()=>C&&C("CLOSED")));const Wt={};const Ar={broadcast:Ue,presence:lt,postgres_changes:(ae=(re=this.bindings.postgres_changes)===null||re===void 0?void 0:re.map((C=>C.filter)))!==null&&ae!==void 0?ae:[],private:Pt};if(this.socket.accessToken){Wt.access_token=this.socket.accessToken}this.updateJoinPayload(Object.assign({config:Ar},Wt));this.joinedOnce=true;this._rejoin(q);this.joinPush.receive("ok",(({postgres_changes:q})=>{var re;this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken);if(q===undefined){C&&C("SUBSCRIBED");return}else{const ae=this.bindings.postgres_changes;const Ue=(re=ae===null||ae===void 0?void 0:ae.length)!==null&&re!==void 0?re:0;const lt=[];for(let re=0;re{C&&C("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(q).join(", ")||"error")));return})).receive("timeout",(()=>{C&&C("TIMED_OUT");return}))}return this}presenceState(){return this.presence.state}async track(C,q={}){return await this.send({type:"presence",event:"track",payload:C},q.timeout||this.timeout)}async untrack(C={}){return await this.send({type:"presence",event:"untrack"},C)}on(C,q,re){return this._on(C,q,re)}async send(C,q={}){var re,ae;if(!this._canPush()&&C.type==="broadcast"){const{event:Ue,payload:lt}=C;const Pt={method:"POST",headers:{Authorization:this.socket.accessToken?`Bearer ${this.socket.accessToken}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:Ue,payload:lt,private:this.private}]})};try{const C=await this._fetchWithTimeout(this.broadcastEndpointURL,Pt,(re=q.timeout)!==null&&re!==void 0?re:this.timeout);await((ae=C.body)===null||ae===void 0?void 0:ae.cancel());return C.ok?"ok":"error"}catch(C){if(C.name==="AbortError"){return"timed out"}else{return"error"}}}else{return new Promise((re=>{var ae,Ue,lt;const Pt=this._push(C.type,C,q.timeout||this.timeout);if(C.type==="broadcast"&&!((lt=(Ue=(ae=this.params)===null||ae===void 0?void 0:ae.config)===null||Ue===void 0?void 0:Ue.broadcast)===null||lt===void 0?void 0:lt.ack)){re("ok")}Pt.receive("ok",(()=>re("ok")));Pt.receive("error",(()=>re("error")));Pt.receive("timeout",(()=>re("timed out")))}))}}updateJoinPayload(C){this.joinPush.updatePayload(C)}unsubscribe(C=this.timeout){this.state=Wt.CHANNEL_STATES.leaving;const onClose=()=>{this.socket.log("channel",`leave ${this.topic}`);this._trigger(Wt.CHANNEL_EVENTS.close,"leave",this._joinRef())};this.rejoinTimer.reset();this.joinPush.destroy();return new Promise((q=>{const re=new Ar.default(this,Wt.CHANNEL_EVENTS.leave,{},C);re.receive("ok",(()=>{onClose();q("ok")})).receive("timeout",(()=>{onClose();q("timed out")})).receive("error",(()=>{q("error")}));re.send();if(!this._canPush()){re.trigger("ok",{})}}))}async _fetchWithTimeout(C,q,re){const ae=new AbortController;const Ue=setTimeout((()=>ae.abort()),re);const lt=await this.socket.fetch(C,Object.assign(Object.assign({},q),{signal:ae.signal}));clearTimeout(Ue);return lt}_push(C,q,re=this.timeout){if(!this.joinedOnce){throw`tried to push '${C}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`}let ae=new Ar.default(this,C,q,re);if(this._canPush()){ae.send()}else{ae.startTimeout();this.pushBuffer.push(ae)}return ae}_onMessage(C,q,re){return q}_isMember(C){return this.topic===C}_joinRef(){return this.joinPush.ref}_trigger(C,q,re){var ae,Ue;const lt=C.toLocaleLowerCase();const{close:Pt,error:Ar,leave:Er,join:Ir}=Wt.CHANNEL_EVENTS;const Br=[Pt,Ar,Er,Ir];if(re&&Br.indexOf(lt)>=0&&re!==this._joinRef()){return}let kr=this._onMessage(lt,q,re);if(q&&!kr){throw"channel onMessage callbacks must return the payload, modified or unmodified"}if(["insert","update","delete"].includes(lt)){(ae=this.bindings.postgres_changes)===null||ae===void 0?void 0:ae.filter((C=>{var q,re,ae;return((q=C.filter)===null||q===void 0?void 0:q.event)==="*"||((ae=(re=C.filter)===null||re===void 0?void 0:re.event)===null||ae===void 0?void 0:ae.toLocaleLowerCase())===lt})).map((C=>C.callback(kr,re)))}else{(Ue=this.bindings[lt])===null||Ue===void 0?void 0:Ue.filter((C=>{var re,ae,Ue,Pt,Wt,Ar;if(["broadcast","presence","postgres_changes"].includes(lt)){if("id"in C){const lt=C.id;const Pt=(re=C.filter)===null||re===void 0?void 0:re.event;return lt&&((ae=q.ids)===null||ae===void 0?void 0:ae.includes(lt))&&(Pt==="*"||(Pt===null||Pt===void 0?void 0:Pt.toLocaleLowerCase())===((Ue=q.data)===null||Ue===void 0?void 0:Ue.type.toLocaleLowerCase()))}else{const re=(Wt=(Pt=C===null||C===void 0?void 0:C.filter)===null||Pt===void 0?void 0:Pt.event)===null||Wt===void 0?void 0:Wt.toLocaleLowerCase();return re==="*"||re===((Ar=q===null||q===void 0?void 0:q.event)===null||Ar===void 0?void 0:Ar.toLocaleLowerCase())}}else{return C.type.toLocaleLowerCase()===lt}})).map((C=>{if(typeof kr==="object"&&"ids"in kr){const C=kr.data;const{schema:q,table:re,commit_timestamp:ae,type:Ue,errors:lt}=C;const Pt={schema:q,table:re,commit_timestamp:ae,eventType:Ue,new:{},old:{},errors:lt};kr=Object.assign(Object.assign({},Pt),this._getPayloadRecords(C))}C.callback(kr,re)}))}}_isClosed(){return this.state===Wt.CHANNEL_STATES.closed}_isJoined(){return this.state===Wt.CHANNEL_STATES.joined}_isJoining(){return this.state===Wt.CHANNEL_STATES.joining}_isLeaving(){return this.state===Wt.CHANNEL_STATES.leaving}_replyEventName(C){return`chan_reply_${C}`}_on(C,q,re){const ae=C.toLocaleLowerCase();const Ue={type:ae,filter:q,callback:re};if(this.bindings[ae]){this.bindings[ae].push(Ue)}else{this.bindings[ae]=[Ue]}return this}_off(C,q){const re=C.toLocaleLowerCase();this.bindings[re]=this.bindings[re].filter((C=>{var ae;return!(((ae=C.type)===null||ae===void 0?void 0:ae.toLocaleLowerCase())===re&&RealtimeChannel.isEqual(C.filter,q))}));return this}static isEqual(C,q){if(Object.keys(C).length!==Object.keys(q).length){return false}for(const re in C){if(C[re]!==q[re]){return false}}return true}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout();if(this.socket.isConnected()){this._rejoin()}}_onClose(C){this._on(Wt.CHANNEL_EVENTS.close,{},C)}_onError(C){this._on(Wt.CHANNEL_EVENTS.error,{},(q=>C(q)))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(C=this.timeout){if(this._isLeaving()){return}this.socket._leaveOpenTopic(this.topic);this.state=Wt.CHANNEL_STATES.joining;this.joinPush.resend(C)}_getPayloadRecords(C){const q={new:{},old:{}};if(C.type==="INSERT"||C.type==="UPDATE"){q.new=Br.convertChangeData(C.columns,C.record)}if(C.type==="UPDATE"||C.type==="DELETE"){q.old=Br.convertChangeData(C.columns,C.old_record)}return q}}q["default"]=RealtimeChannel},73955:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Wt=re(29680);const Ar=Pt(re(72049));const Er=Pt(re(99920));const Ir=re(93429);const Br=Pt(re(38093));const noop=()=>{};const kr=typeof WebSocket!=="undefined";const Pr=`\n addEventListener("message", (e) => {\n if (e.data.event === "start") {\n setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);\n }\n });`;class RealtimeClient{constructor(C,q){var ae;this.accessToken=null;this.apiKey=null;this.channels=[];this.endPoint="";this.httpEndpoint="";this.headers=Wt.DEFAULT_HEADERS;this.params={};this.timeout=Wt.DEFAULT_TIMEOUT;this.heartbeatIntervalMs=3e4;this.heartbeatTimer=undefined;this.pendingHeartbeatRef=null;this.ref=0;this.logger=noop;this.conn=null;this.sendBuffer=[];this.serializer=new Ar.default;this.stateChangeCallbacks={open:[],close:[],error:[],message:[]};this._resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=(...C)=>Promise.resolve().then((()=>lt(re(83318)))).then((({default:q})=>q(...C)))}else{q=fetch}return(...C)=>q(...C)};this.endPoint=`${C}/${Wt.TRANSPORTS.websocket}`;this.httpEndpoint=(0,Ir.httpEndpointURL)(C);if(q===null||q===void 0?void 0:q.transport){this.transport=q.transport}else{this.transport=null}if(q===null||q===void 0?void 0:q.params)this.params=q.params;if(q===null||q===void 0?void 0:q.headers)this.headers=Object.assign(Object.assign({},this.headers),q.headers);if(q===null||q===void 0?void 0:q.timeout)this.timeout=q.timeout;if(q===null||q===void 0?void 0:q.logger)this.logger=q.logger;if(q===null||q===void 0?void 0:q.heartbeatIntervalMs)this.heartbeatIntervalMs=q.heartbeatIntervalMs;const Ue=(ae=q===null||q===void 0?void 0:q.params)===null||ae===void 0?void 0:ae.apikey;if(Ue){this.accessToken=Ue;this.apiKey=Ue}this.reconnectAfterMs=(q===null||q===void 0?void 0:q.reconnectAfterMs)?q.reconnectAfterMs:C=>[1e3,2e3,5e3,1e4][C-1]||1e4;this.encode=(q===null||q===void 0?void 0:q.encode)?q.encode:(C,q)=>q(JSON.stringify(C));this.decode=(q===null||q===void 0?void 0:q.decode)?q.decode:this.serializer.decode.bind(this.serializer);this.reconnectTimer=new Er.default((async()=>{this.disconnect();this.connect()}),this.reconnectAfterMs);this.fetch=this._resolveFetch(q===null||q===void 0?void 0:q.fetch);if(q===null||q===void 0?void 0:q.worker){if(typeof window!=="undefined"&&!window.Worker){throw new Error("Web Worker is not supported")}this.worker=(q===null||q===void 0?void 0:q.worker)||false;this.workerUrl=q===null||q===void 0?void 0:q.workerUrl}}connect(){if(this.conn){return}if(this.transport){this.conn=new this.transport(this._endPointURL(),undefined,{headers:this.headers});return}if(kr){this.conn=new WebSocket(this._endPointURL());this.setupConnection();return}this.conn=new WSWebSocketDummy(this._endPointURL(),undefined,{close:()=>{this.conn=null}});Promise.resolve().then((()=>lt(re(11354)))).then((({default:C})=>{this.conn=new C(this._endPointURL(),undefined,{headers:this.headers});this.setupConnection()}))}disconnect(C,q){if(this.conn){this.conn.onclose=function(){};if(C){this.conn.close(C,q!==null&&q!==void 0?q:"")}else{this.conn.close()}this.conn=null;this.heartbeatTimer&&clearInterval(this.heartbeatTimer);this.reconnectTimer.reset()}}getChannels(){return this.channels}async removeChannel(C){const q=await C.unsubscribe();if(this.channels.length===0){this.disconnect()}return q}async removeAllChannels(){const C=await Promise.all(this.channels.map((C=>C.unsubscribe())));this.disconnect();return C}log(C,q,re){this.logger(C,q,re)}connectionState(){switch(this.conn&&this.conn.readyState){case Wt.SOCKET_STATES.connecting:return Wt.CONNECTION_STATE.Connecting;case Wt.SOCKET_STATES.open:return Wt.CONNECTION_STATE.Open;case Wt.SOCKET_STATES.closing:return Wt.CONNECTION_STATE.Closing;default:return Wt.CONNECTION_STATE.Closed}}isConnected(){return this.connectionState()===Wt.CONNECTION_STATE.Open}channel(C,q={config:{}}){const re=new Br.default(`realtime:${C}`,q,this);this.channels.push(re);return re}push(C){const{topic:q,event:re,payload:ae,ref:Ue}=C;const callback=()=>{this.encode(C,(C=>{var q;(q=this.conn)===null||q===void 0?void 0:q.send(C)}))};this.log("push",`${q} ${re} (${Ue})`,ae);if(this.isConnected()){callback()}else{this.sendBuffer.push(callback)}}setAuth(C){if(C){let q=null;try{q=JSON.parse(atob(C.split(".")[1]))}catch(C){}if(q&&q.exp){let C=Math.floor(Date.now()/1e3);let re=C-q.exp<0;if(!re){this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${q.exp}`);return}}}this.accessToken=C;this.channels.forEach((q=>{C&&q.updateJoinPayload({access_token:C});if(q.joinedOnce&&q._isJoined()){q._push(Wt.CHANNEL_EVENTS.access_token,{access_token:C})}}))}_makeRef(){let C=this.ref+1;if(C===this.ref){this.ref=0}else{this.ref=C}return this.ref.toString()}_leaveOpenTopic(C){let q=this.channels.find((q=>q.topic===C&&(q._isJoined()||q._isJoining())));if(q){this.log("transport",`leaving duplicate topic "${C}"`);q.unsubscribe()}}_remove(C){this.channels=this.channels.filter((q=>q._joinRef()!==C._joinRef()))}setupConnection(){if(this.conn){this.conn.binaryType="arraybuffer";this.conn.onopen=()=>this._onConnOpen();this.conn.onerror=C=>this._onConnError(C);this.conn.onmessage=C=>this._onConnMessage(C);this.conn.onclose=C=>this._onConnClose(C)}}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:Wt.VSN}))}_onConnMessage(C){this.decode(C.data,(C=>{let{topic:q,event:re,payload:ae,ref:Ue}=C;if(Ue&&Ue===this.pendingHeartbeatRef||re===(ae===null||ae===void 0?void 0:ae.type)){this.pendingHeartbeatRef=null}this.log("receive",`${ae.status||""} ${q} ${re} ${Ue&&"("+Ue+")"||""}`,ae);this.channels.filter((C=>C._isMember(q))).forEach((C=>C._trigger(re,ae,Ue)));this.stateChangeCallbacks.message.forEach((q=>q(C)))}))}async _onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`);this._flushSendBuffer();this.reconnectTimer.reset();if(!this.worker){this.heartbeatTimer&&clearInterval(this.heartbeatTimer);this.heartbeatTimer=setInterval((()=>this._sendHeartbeat()),this.heartbeatIntervalMs)}else{if(this.workerUrl){this.log("worker",`starting worker for from ${this.workerUrl}`)}else{this.log("worker",`starting default worker`)}const C=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(C);this.workerRef.onerror=C=>{this.log("worker","worker error",C.message);this.workerRef.terminate()};this.workerRef.onmessage=C=>{if(C.data.event==="keepAlive"){this._sendHeartbeat()}};this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach((C=>C()))}_onConnClose(C){this.log("transport","close",C);this._triggerChanError();this.heartbeatTimer&&clearInterval(this.heartbeatTimer);this.reconnectTimer.scheduleTimeout();this.stateChangeCallbacks.close.forEach((q=>q(C)))}_onConnError(C){this.log("transport",C.message);this._triggerChanError();this.stateChangeCallbacks.error.forEach((q=>q(C)))}_triggerChanError(){this.channels.forEach((C=>C._trigger(Wt.CHANNEL_EVENTS.error)))}_appendParams(C,q){if(Object.keys(q).length===0){return C}const re=C.match(/\?/)?"&":"?";const ae=new URLSearchParams(q);return`${C}${re}${ae}`}_flushSendBuffer(){if(this.isConnected()&&this.sendBuffer.length>0){this.sendBuffer.forEach((C=>C()));this.sendBuffer=[]}}_sendHeartbeat(){var C;if(!this.isConnected()){return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null;this.log("transport","heartbeat timeout. Attempting to re-establish connection");(C=this.conn)===null||C===void 0?void 0:C.close(Wt.WS_CLOSE_NORMAL,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});this.setAuth(this.accessToken)}_workerObjectUrl(C){let q;if(C){q=C}else{const C=new Blob([Pr],{type:"application/javascript"});q=URL.createObjectURL(C)}return q}}q["default"]=RealtimeClient;class WSWebSocketDummy{constructor(C,q,re){this.binaryType="arraybuffer";this.onclose=()=>{};this.onerror=()=>{};this.onmessage=()=>{};this.onopen=()=>{};this.readyState=Wt.SOCKET_STATES.connecting;this.send=()=>{};this.url=null;this.url=C;this.close=re.close}}},98493:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.REALTIME_PRESENCE_LISTEN_EVENTS=void 0;var re;(function(C){C["SYNC"]="sync";C["JOIN"]="join";C["LEAVE"]="leave"})(re=q.REALTIME_PRESENCE_LISTEN_EVENTS||(q.REALTIME_PRESENCE_LISTEN_EVENTS={}));class RealtimePresence{constructor(C,q){this.channel=C;this.state={};this.pendingDiffs=[];this.joinRef=null;this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const re=(q===null||q===void 0?void 0:q.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(re.state,{},(C=>{const{onJoin:q,onLeave:re,onSync:ae}=this.caller;this.joinRef=this.channel._joinRef();this.state=RealtimePresence.syncState(this.state,C,q,re);this.pendingDiffs.forEach((C=>{this.state=RealtimePresence.syncDiff(this.state,C,q,re)}));this.pendingDiffs=[];ae()}));this.channel._on(re.diff,{},(C=>{const{onJoin:q,onLeave:re,onSync:ae}=this.caller;if(this.inPendingSyncState()){this.pendingDiffs.push(C)}else{this.state=RealtimePresence.syncDiff(this.state,C,q,re);ae()}}));this.onJoin(((C,q,re)=>{this.channel._trigger("presence",{event:"join",key:C,currentPresences:q,newPresences:re})}));this.onLeave(((C,q,re)=>{this.channel._trigger("presence",{event:"leave",key:C,currentPresences:q,leftPresences:re})}));this.onSync((()=>{this.channel._trigger("presence",{event:"sync"})}))}static syncState(C,q,re,ae){const Ue=this.cloneDeep(C);const lt=this.transformState(q);const Pt={};const Wt={};this.map(Ue,((C,q)=>{if(!lt[C]){Wt[C]=q}}));this.map(lt,((C,q)=>{const re=Ue[C];if(re){const ae=q.map((C=>C.presence_ref));const Ue=re.map((C=>C.presence_ref));const lt=q.filter((C=>Ue.indexOf(C.presence_ref)<0));const Ar=re.filter((C=>ae.indexOf(C.presence_ref)<0));if(lt.length>0){Pt[C]=lt}if(Ar.length>0){Wt[C]=Ar}}else{Pt[C]=q}}));return this.syncDiff(Ue,{joins:Pt,leaves:Wt},re,ae)}static syncDiff(C,q,re,ae){const{joins:Ue,leaves:lt}={joins:this.transformState(q.joins),leaves:this.transformState(q.leaves)};if(!re){re=()=>{}}if(!ae){ae=()=>{}}this.map(Ue,((q,ae)=>{var Ue;const lt=(Ue=C[q])!==null&&Ue!==void 0?Ue:[];C[q]=this.cloneDeep(ae);if(lt.length>0){const re=C[q].map((C=>C.presence_ref));const ae=lt.filter((C=>re.indexOf(C.presence_ref)<0));C[q].unshift(...ae)}re(q,lt,ae)}));this.map(lt,((q,re)=>{let Ue=C[q];if(!Ue)return;const lt=re.map((C=>C.presence_ref));Ue=Ue.filter((C=>lt.indexOf(C.presence_ref)<0));C[q]=Ue;ae(q,Ue,re);if(Ue.length===0)delete C[q]}));return C}static map(C,q){return Object.getOwnPropertyNames(C).map((re=>q(re,C[re])))}static transformState(C){C=this.cloneDeep(C);return Object.getOwnPropertyNames(C).reduce(((q,re)=>{const ae=C[re];if("metas"in ae){q[re]=ae.metas.map((C=>{C["presence_ref"]=C["phx_ref"];delete C["phx_ref"];delete C["phx_ref_prev"];return C}))}else{q[re]=ae}return q}),{})}static cloneDeep(C){return JSON.parse(JSON.stringify(C))}onJoin(C){this.caller.onJoin=C}onLeave(C){this.caller.onLeave=C}onSync(C){this.caller.onSync=C}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}q["default"]=RealtimePresence},36209:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.REALTIME_CHANNEL_STATES=q.REALTIME_SUBSCRIBE_STATES=q.REALTIME_PRESENCE_LISTEN_EVENTS=q.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT=q.REALTIME_LISTEN_TYPES=q.RealtimeClient=q.RealtimeChannel=q.RealtimePresence=void 0;const Wt=Pt(re(73955));q.RealtimeClient=Wt.default;const Ar=lt(re(38093));q.RealtimeChannel=Ar.default;Object.defineProperty(q,"REALTIME_LISTEN_TYPES",{enumerable:true,get:function(){return Ar.REALTIME_LISTEN_TYPES}});Object.defineProperty(q,"REALTIME_POSTGRES_CHANGES_LISTEN_EVENT",{enumerable:true,get:function(){return Ar.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT}});Object.defineProperty(q,"REALTIME_SUBSCRIBE_STATES",{enumerable:true,get:function(){return Ar.REALTIME_SUBSCRIBE_STATES}});Object.defineProperty(q,"REALTIME_CHANNEL_STATES",{enumerable:true,get:function(){return Ar.REALTIME_CHANNEL_STATES}});const Er=lt(re(98493));q.RealtimePresence=Er.default;Object.defineProperty(q,"REALTIME_PRESENCE_LISTEN_EVENTS",{enumerable:true,get:function(){return Er.REALTIME_PRESENCE_LISTEN_EVENTS}})},29680:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.CONNECTION_STATE=q.TRANSPORTS=q.CHANNEL_EVENTS=q.CHANNEL_STATES=q.SOCKET_STATES=q.WS_CLOSE_NORMAL=q.DEFAULT_TIMEOUT=q.VSN=q.DEFAULT_HEADERS=void 0;const ae=re(38889);q.DEFAULT_HEADERS={"X-Client-Info":`realtime-js/${ae.version}`};q.VSN="1.0.0";q.DEFAULT_TIMEOUT=1e4;q.WS_CLOSE_NORMAL=1e3;var Ue;(function(C){C[C["connecting"]=0]="connecting";C[C["open"]=1]="open";C[C["closing"]=2]="closing";C[C["closed"]=3]="closed"})(Ue=q.SOCKET_STATES||(q.SOCKET_STATES={}));var lt;(function(C){C["closed"]="closed";C["errored"]="errored";C["joined"]="joined";C["joining"]="joining";C["leaving"]="leaving"})(lt=q.CHANNEL_STATES||(q.CHANNEL_STATES={}));var Pt;(function(C){C["close"]="phx_close";C["error"]="phx_error";C["join"]="phx_join";C["reply"]="phx_reply";C["leave"]="phx_leave";C["access_token"]="access_token"})(Pt=q.CHANNEL_EVENTS||(q.CHANNEL_EVENTS={}));var Wt;(function(C){C["websocket"]="websocket"})(Wt=q.TRANSPORTS||(q.TRANSPORTS={}));var Ar;(function(C){C["Connecting"]="connecting";C["Open"]="open";C["Closing"]="closing";C["Closed"]="closed"})(Ar=q.CONNECTION_STATE||(q.CONNECTION_STATE={}))},49333:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});const ae=re(29680);class Push{constructor(C,q,re={},Ue=ae.DEFAULT_TIMEOUT){this.channel=C;this.event=q;this.payload=re;this.timeout=Ue;this.sent=false;this.timeoutTimer=undefined;this.ref="";this.receivedResp=null;this.recHooks=[];this.refEvent=null}resend(C){this.timeout=C;this._cancelRefEvent();this.ref="";this.refEvent=null;this.receivedResp=null;this.sent=false;this.send()}send(){if(this._hasReceived("timeout")){return}this.startTimeout();this.sent=true;this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()})}updatePayload(C){this.payload=Object.assign(Object.assign({},this.payload),C)}receive(C,q){var re;if(this._hasReceived(C)){q((re=this.receivedResp)===null||re===void 0?void 0:re.response)}this.recHooks.push({status:C,callback:q});return this}startTimeout(){if(this.timeoutTimer){return}this.ref=this.channel.socket._makeRef();this.refEvent=this.channel._replyEventName(this.ref);const callback=C=>{this._cancelRefEvent();this._cancelTimeout();this.receivedResp=C;this._matchReceive(C)};this.channel._on(this.refEvent,{},callback);this.timeoutTimer=setTimeout((()=>{this.trigger("timeout",{})}),this.timeout)}trigger(C,q){if(this.refEvent)this.channel._trigger(this.refEvent,{status:C,response:q})}destroy(){this._cancelRefEvent();this._cancelTimeout()}_cancelRefEvent(){if(!this.refEvent){return}this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer);this.timeoutTimer=undefined}_matchReceive({status:C,response:q}){this.recHooks.filter((q=>q.status===C)).forEach((C=>C.callback(q)))}_hasReceived(C){return this.receivedResp&&this.receivedResp.status===C}}q["default"]=Push},72049:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});class Serializer{constructor(){this.HEADER_LENGTH=1}decode(C,q){if(C.constructor===ArrayBuffer){return q(this._binaryDecode(C))}if(typeof C==="string"){return q(JSON.parse(C))}return q({})}_binaryDecode(C){const q=new DataView(C);const re=new TextDecoder;return this._decodeBroadcast(C,q,re)}_decodeBroadcast(C,q,re){const ae=q.getUint8(1);const Ue=q.getUint8(2);let lt=this.HEADER_LENGTH+2;const Pt=re.decode(C.slice(lt,lt+ae));lt=lt+ae;const Wt=re.decode(C.slice(lt,lt+Ue));lt=lt+Ue;const Ar=JSON.parse(re.decode(C.slice(lt,C.byteLength)));return{ref:null,topic:Pt,event:Wt,payload:Ar}}}q["default"]=Serializer},99920:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});class Timer{constructor(C,q){this.callback=C;this.timerCalc=q;this.timer=undefined;this.tries=0;this.callback=C;this.timerCalc=q}reset(){this.tries=0;clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer);this.timer=setTimeout((()=>{this.tries=this.tries+1;this.callback()}),this.timerCalc(this.tries+1))}}q["default"]=Timer},93429:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.httpEndpointURL=q.toTimestampString=q.toArray=q.toJson=q.toNumber=q.toBoolean=q.convertCell=q.convertColumn=q.convertChangeData=q.PostgresTypes=void 0;var re;(function(C){C["abstime"]="abstime";C["bool"]="bool";C["date"]="date";C["daterange"]="daterange";C["float4"]="float4";C["float8"]="float8";C["int2"]="int2";C["int4"]="int4";C["int4range"]="int4range";C["int8"]="int8";C["int8range"]="int8range";C["json"]="json";C["jsonb"]="jsonb";C["money"]="money";C["numeric"]="numeric";C["oid"]="oid";C["reltime"]="reltime";C["text"]="text";C["time"]="time";C["timestamp"]="timestamp";C["timestamptz"]="timestamptz";C["timetz"]="timetz";C["tsrange"]="tsrange";C["tstzrange"]="tstzrange"})(re=q.PostgresTypes||(q.PostgresTypes={}));const convertChangeData=(C,re,ae={})=>{var Ue;const lt=(Ue=ae.skipTypes)!==null&&Ue!==void 0?Ue:[];return Object.keys(re).reduce(((ae,Ue)=>{ae[Ue]=(0,q.convertColumn)(Ue,C,re,lt);return ae}),{})};q.convertChangeData=convertChangeData;const convertColumn=(C,re,ae,Ue)=>{const lt=re.find((q=>q.name===C));const Pt=lt===null||lt===void 0?void 0:lt.type;const Wt=ae[C];if(Pt&&!Ue.includes(Pt)){return(0,q.convertCell)(Pt,Wt)}return noop(Wt)};q.convertColumn=convertColumn;const convertCell=(C,ae)=>{if(C.charAt(0)==="_"){const re=C.slice(1,C.length);return(0,q.toArray)(ae,re)}switch(C){case re.bool:return(0,q.toBoolean)(ae);case re.float4:case re.float8:case re.int2:case re.int4:case re.int8:case re.numeric:case re.oid:return(0,q.toNumber)(ae);case re.json:case re.jsonb:return(0,q.toJson)(ae);case re.timestamp:return(0,q.toTimestampString)(ae);case re.abstime:case re.date:case re.daterange:case re.int4range:case re.int8range:case re.money:case re.reltime:case re.text:case re.time:case re.timestamptz:case re.timetz:case re.tsrange:case re.tstzrange:return noop(ae);default:return noop(ae)}};q.convertCell=convertCell;const noop=C=>C;const toBoolean=C=>{switch(C){case"t":return true;case"f":return false;default:return C}};q.toBoolean=toBoolean;const toNumber=C=>{if(typeof C==="string"){const q=parseFloat(C);if(!Number.isNaN(q)){return q}}return C};q.toNumber=toNumber;const toJson=C=>{if(typeof C==="string"){try{return JSON.parse(C)}catch(q){console.log(`JSON parse error: ${q}`);return C}}return C};q.toJson=toJson;const toArray=(C,re)=>{if(typeof C!=="string"){return C}const ae=C.length-1;const Ue=C[ae];const lt=C[0];if(lt==="{"&&Ue==="}"){let Ue;const lt=C.slice(1,ae);try{Ue=JSON.parse("["+lt+"]")}catch(C){Ue=lt?lt.split(","):[]}return Ue.map((C=>(0,q.convertCell)(re,C)))}return C};q.toArray=toArray;const toTimestampString=C=>{if(typeof C==="string"){return C.replace(" ","T")}return C};q.toTimestampString=toTimestampString;const httpEndpointURL=C=>{let q=C;q=q.replace(/^ws/i,"http");q=q.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,"");return q.replace(/\/+$/,"")};q.httpEndpointURL=httpEndpointURL},38889:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="2.10.9"},31373:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.StorageClient=void 0;const Ue=ae(re(15384));const lt=ae(re(64788));class StorageClient extends lt.default{constructor(C,q={},re){super(C,q,re)}from(C){return new Ue.default(this.url,this.headers,C,this.fetch)}}q.StorageClient=StorageClient},71595:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});q.StorageClient=void 0;var lt=re(31373);Object.defineProperty(q,"StorageClient",{enumerable:true,get:function(){return lt.StorageClient}});Ue(re(58362),q);Ue(re(9012),q)},28990:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.DEFAULT_HEADERS=void 0;const ae=re(7827);q.DEFAULT_HEADERS={"X-Client-Info":`storage-js/${ae.version}`}},9012:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.StorageUnknownError=q.StorageApiError=q.isStorageError=q.StorageError=void 0;class StorageError extends Error{constructor(C){super(C);this.__isStorageError=true;this.name="StorageError"}}q.StorageError=StorageError;function isStorageError(C){return typeof C==="object"&&C!==null&&"__isStorageError"in C}q.isStorageError=isStorageError;class StorageApiError extends StorageError{constructor(C,q){super(C);this.name="StorageApiError";this.status=q}toJSON(){return{name:this.name,message:this.message,status:this.status}}}q.StorageApiError=StorageApiError;class StorageUnknownError extends StorageError{constructor(C,q){super(C);this.name="StorageUnknownError";this.originalError=q}}q.StorageUnknownError=StorageUnknownError},43183:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.remove=q.head=q.put=q.post=q.get=void 0;const Ue=re(9012);const lt=re(58954);const _getErrorMessage=C=>C.msg||C.message||C.error_description||C.error||JSON.stringify(C);const handleError=(C,q,re)=>ae(void 0,void 0,void 0,(function*(){const ae=yield(0,lt.resolveResponse)();if(C instanceof ae&&!(re===null||re===void 0?void 0:re.noResolveJson)){C.json().then((re=>{q(new Ue.StorageApiError(_getErrorMessage(re),C.status||500))})).catch((C=>{q(new Ue.StorageUnknownError(_getErrorMessage(C),C))}))}else{q(new Ue.StorageUnknownError(_getErrorMessage(C),C))}}));const _getRequestParams=(C,q,re,ae)=>{const Ue={method:C,headers:(q===null||q===void 0?void 0:q.headers)||{}};if(C==="GET"){return Ue}Ue.headers=Object.assign({"Content-Type":"application/json"},q===null||q===void 0?void 0:q.headers);if(ae){Ue.body=JSON.stringify(ae)}return Object.assign(Object.assign({},Ue),re)};function _handleRequest(C,q,re,Ue,lt,Pt){return ae(this,void 0,void 0,(function*(){return new Promise(((ae,Wt)=>{C(re,_getRequestParams(q,Ue,lt,Pt)).then((C=>{if(!C.ok)throw C;if(Ue===null||Ue===void 0?void 0:Ue.noResolveJson)return C;return C.json()})).then((C=>ae(C))).catch((C=>handleError(C,Wt,Ue)))}))}))}function get(C,q,re,Ue){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"GET",q,re,Ue)}))}q.get=get;function post(C,q,re,Ue,lt){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"POST",q,Ue,lt,re)}))}q.post=post;function put(C,q,re,Ue,lt){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"PUT",q,Ue,lt,re)}))}q.put=put;function head(C,q,re,Ue){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"HEAD",q,Object.assign(Object.assign({},re),{noResolveJson:true}),Ue)}))}q.head=head;function remove(C,q,re,Ue,lt){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"DELETE",q,Ue,lt,re)}))}q.remove=remove},58954:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.recursiveToCamel=q.resolveResponse=q.resolveFetch=void 0;const resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=(...C)=>Promise.resolve().then((()=>lt(re(83318)))).then((({default:q})=>q(...C)))}else{q=fetch}return(...C)=>q(...C)};q.resolveFetch=resolveFetch;const resolveResponse=()=>Pt(void 0,void 0,void 0,(function*(){if(typeof Response==="undefined"){return(yield Promise.resolve().then((()=>lt(re(83318))))).Response}return Response}));q.resolveResponse=resolveResponse;const recursiveToCamel=C=>{if(Array.isArray(C)){return C.map((C=>(0,q.recursiveToCamel)(C)))}else if(typeof C==="function"||C!==Object(C)){return C}const re={};Object.entries(C).forEach((([C,ae])=>{const Ue=C.replace(/([-_][a-z])/gi,(C=>C.toUpperCase().replace(/[-_]/g,"")));re[Ue]=(0,q.recursiveToCamel)(ae)}));return re};q.recursiveToCamel=recursiveToCamel},58362:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},7827:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="2.7.1"},64788:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});const Ue=re(28990);const lt=re(9012);const Pt=re(43183);const Wt=re(58954);class StorageBucketApi{constructor(C,q={},re){this.url=C;this.headers=Object.assign(Object.assign({},Ue.DEFAULT_HEADERS),q);this.fetch=(0,Wt.resolveFetch)(re)}listBuckets(){return ae(this,void 0,void 0,(function*(){try{const C=yield(0,Pt.get)(this.fetch,`${this.url}/bucket`,{headers:this.headers});return{data:C,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}getBucket(C){return ae(this,void 0,void 0,(function*(){try{const q=yield(0,Pt.get)(this.fetch,`${this.url}/bucket/${C}`,{headers:this.headers});return{data:q,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}createBucket(C,q={public:false}){return ae(this,void 0,void 0,(function*(){try{const re=yield(0,Pt.post)(this.fetch,`${this.url}/bucket`,{id:C,name:C,public:q.public,file_size_limit:q.fileSizeLimit,allowed_mime_types:q.allowedMimeTypes},{headers:this.headers});return{data:re,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}updateBucket(C,q){return ae(this,void 0,void 0,(function*(){try{const re=yield(0,Pt.put)(this.fetch,`${this.url}/bucket/${C}`,{id:C,name:C,public:q.public,file_size_limit:q.fileSizeLimit,allowed_mime_types:q.allowedMimeTypes},{headers:this.headers});return{data:re,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}emptyBucket(C){return ae(this,void 0,void 0,(function*(){try{const q=yield(0,Pt.post)(this.fetch,`${this.url}/bucket/${C}/empty`,{},{headers:this.headers});return{data:q,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}deleteBucket(C){return ae(this,void 0,void 0,(function*(){try{const q=yield(0,Pt.remove)(this.fetch,`${this.url}/bucket/${C}`,{},{headers:this.headers});return{data:q,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}}q["default"]=StorageBucketApi},15384:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});const Ue=re(9012);const lt=re(43183);const Pt=re(58954);const Wt={limit:100,offset:0,sortBy:{column:"name",order:"asc"}};const Ar={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:false};class StorageFileApi{constructor(C,q={},re,ae){this.url=C;this.headers=q;this.bucketId=re;this.fetch=(0,Pt.resolveFetch)(ae)}uploadOrUpdate(C,q,re,lt){return ae(this,void 0,void 0,(function*(){try{let ae;const Ue=Object.assign(Object.assign({},Ar),lt);let Pt=Object.assign(Object.assign({},this.headers),C==="POST"&&{"x-upsert":String(Ue.upsert)});const Wt=Ue.metadata;if(typeof Blob!=="undefined"&&re instanceof Blob){ae=new FormData;ae.append("cacheControl",Ue.cacheControl);if(Wt){ae.append("metadata",this.encodeMetadata(Wt))}ae.append("",re)}else if(typeof FormData!=="undefined"&&re instanceof FormData){ae=re;ae.append("cacheControl",Ue.cacheControl);if(Wt){ae.append("metadata",this.encodeMetadata(Wt))}}else{ae=re;Pt["cache-control"]=`max-age=${Ue.cacheControl}`;Pt["content-type"]=Ue.contentType;if(Wt){Pt["x-metadata"]=this.toBase64(this.encodeMetadata(Wt))}}if(lt===null||lt===void 0?void 0:lt.headers){Pt=Object.assign(Object.assign({},Pt),lt.headers)}const Er=this._removeEmptyFolders(q);const Ir=this._getFinalPath(Er);const Br=yield this.fetch(`${this.url}/object/${Ir}`,Object.assign({method:C,body:ae,headers:Pt},(Ue===null||Ue===void 0?void 0:Ue.duplex)?{duplex:Ue.duplex}:{}));const kr=yield Br.json();if(Br.ok){return{data:{path:Er,id:kr.Id,fullPath:kr.Key},error:null}}else{const C=kr;return{data:null,error:C}}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}upload(C,q,re){return ae(this,void 0,void 0,(function*(){return this.uploadOrUpdate("POST",C,q,re)}))}uploadToSignedUrl(C,q,re,lt){return ae(this,void 0,void 0,(function*(){const ae=this._removeEmptyFolders(C);const Pt=this._getFinalPath(ae);const Wt=new URL(this.url+`/object/upload/sign/${Pt}`);Wt.searchParams.set("token",q);try{let C;const q=Object.assign({upsert:Ar.upsert},lt);const Ue=Object.assign(Object.assign({},this.headers),{"x-upsert":String(q.upsert)});if(typeof Blob!=="undefined"&&re instanceof Blob){C=new FormData;C.append("cacheControl",q.cacheControl);C.append("",re)}else if(typeof FormData!=="undefined"&&re instanceof FormData){C=re;C.append("cacheControl",q.cacheControl)}else{C=re;Ue["cache-control"]=`max-age=${q.cacheControl}`;Ue["content-type"]=q.contentType}const Pt=yield this.fetch(Wt.toString(),{method:"PUT",body:C,headers:Ue});const Er=yield Pt.json();if(Pt.ok){return{data:{path:ae,fullPath:Er.Key},error:null}}else{const C=Er;return{data:null,error:C}}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}createSignedUploadUrl(C,q){return ae(this,void 0,void 0,(function*(){try{let re=this._getFinalPath(C);const ae=Object.assign({},this.headers);if(q===null||q===void 0?void 0:q.upsert){ae["x-upsert"]="true"}const Pt=yield(0,lt.post)(this.fetch,`${this.url}/object/upload/sign/${re}`,{},{headers:ae});const Wt=new URL(this.url+Pt.url);const Ar=Wt.searchParams.get("token");if(!Ar){throw new Ue.StorageError("No token returned by API")}return{data:{signedUrl:Wt.toString(),path:C,token:Ar},error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}update(C,q,re){return ae(this,void 0,void 0,(function*(){return this.uploadOrUpdate("PUT",C,q,re)}))}move(C,q,re){return ae(this,void 0,void 0,(function*(){try{const ae=yield(0,lt.post)(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:C,destinationKey:q,destinationBucket:re===null||re===void 0?void 0:re.destinationBucket},{headers:this.headers});return{data:ae,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}copy(C,q,re){return ae(this,void 0,void 0,(function*(){try{const ae=yield(0,lt.post)(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:C,destinationKey:q,destinationBucket:re===null||re===void 0?void 0:re.destinationBucket},{headers:this.headers});return{data:{path:ae.Key},error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}createSignedUrl(C,q,re){return ae(this,void 0,void 0,(function*(){try{let ae=this._getFinalPath(C);let Ue=yield(0,lt.post)(this.fetch,`${this.url}/object/sign/${ae}`,Object.assign({expiresIn:q},(re===null||re===void 0?void 0:re.transform)?{transform:re.transform}:{}),{headers:this.headers});const Pt=(re===null||re===void 0?void 0:re.download)?`&download=${re.download===true?"":re.download}`:"";const Wt=encodeURI(`${this.url}${Ue.signedURL}${Pt}`);Ue={signedUrl:Wt};return{data:Ue,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}createSignedUrls(C,q,re){return ae(this,void 0,void 0,(function*(){try{const ae=yield(0,lt.post)(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:q,paths:C},{headers:this.headers});const Ue=(re===null||re===void 0?void 0:re.download)?`&download=${re.download===true?"":re.download}`:"";return{data:ae.map((C=>Object.assign(Object.assign({},C),{signedUrl:C.signedURL?encodeURI(`${this.url}${C.signedURL}${Ue}`):null}))),error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}download(C,q){return ae(this,void 0,void 0,(function*(){const re=typeof(q===null||q===void 0?void 0:q.transform)!=="undefined";const ae=re?"render/image/authenticated":"object";const Pt=this.transformOptsToQueryString((q===null||q===void 0?void 0:q.transform)||{});const Wt=Pt?`?${Pt}`:"";try{const q=this._getFinalPath(C);const re=yield(0,lt.get)(this.fetch,`${this.url}/${ae}/${q}${Wt}`,{headers:this.headers,noResolveJson:true});const Ue=yield re.blob();return{data:Ue,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}info(C){return ae(this,void 0,void 0,(function*(){const q=this._getFinalPath(C);try{const C=yield(0,lt.get)(this.fetch,`${this.url}/object/info/${q}`,{headers:this.headers});return{data:(0,Pt.recursiveToCamel)(C),error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}exists(C){return ae(this,void 0,void 0,(function*(){const q=this._getFinalPath(C);try{yield(0,lt.head)(this.fetch,`${this.url}/object/${q}`,{headers:this.headers});return{data:true,error:null}}catch(C){if((0,Ue.isStorageError)(C)&&C instanceof Ue.StorageUnknownError){const q=C.originalError;if([400,404].includes(q===null||q===void 0?void 0:q.status)){return{data:false,error:C}}}throw C}}))}getPublicUrl(C,q){const re=this._getFinalPath(C);const ae=[];const Ue=(q===null||q===void 0?void 0:q.download)?`download=${q.download===true?"":q.download}`:"";if(Ue!==""){ae.push(Ue)}const lt=typeof(q===null||q===void 0?void 0:q.transform)!=="undefined";const Pt=lt?"render/image":"object";const Wt=this.transformOptsToQueryString((q===null||q===void 0?void 0:q.transform)||{});if(Wt!==""){ae.push(Wt)}let Ar=ae.join("&");if(Ar!==""){Ar=`?${Ar}`}return{data:{publicUrl:encodeURI(`${this.url}/${Pt}/public/${re}${Ar}`)}}}remove(C){return ae(this,void 0,void 0,(function*(){try{const q=yield(0,lt.remove)(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:C},{headers:this.headers});return{data:q,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}list(C,q,re){return ae(this,void 0,void 0,(function*(){try{const ae=Object.assign(Object.assign(Object.assign({},Wt),q),{prefix:C||""});const Ue=yield(0,lt.post)(this.fetch,`${this.url}/object/list/${this.bucketId}`,ae,{headers:this.headers},re);return{data:Ue,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}encodeMetadata(C){return JSON.stringify(C)}toBase64(C){if(typeof Buffer!=="undefined"){return Buffer.from(C).toString("base64")}return btoa(C)}_getFinalPath(C){return`${this.bucketId}/${C}`}_removeEmptyFolders(C){return C.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(C){const q=[];if(C.width){q.push(`width=${C.width}`)}if(C.height){q.push(`height=${C.height}`)}if(C.resize){q.push(`resize=${C.resize}`)}if(C.format){q.push(`format=${C.format}`)}if(C.quality){q.push(`quality=${C.quality}`)}return q.join("&")}}q["default"]=StorageFileApi},61619:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});const Ue=re(70459);const lt=re(93360);const Pt=re(36209);const Wt=re(71595);const Ar=re(23597);const Er=re(73248);const Ir=re(87301);const Br=re(15253);class SupabaseClient{constructor(C,q,re){var ae,Ue,Pt;this.supabaseUrl=C;this.supabaseKey=q;if(!C)throw new Error("supabaseUrl is required.");if(!q)throw new Error("supabaseKey is required.");const Wt=(0,Ir.stripTrailingSlash)(C);this.realtimeUrl=`${Wt}/realtime/v1`.replace(/^http/i,"ws");this.authUrl=`${Wt}/auth/v1`;this.storageUrl=`${Wt}/storage/v1`;this.functionsUrl=`${Wt}/functions/v1`;const Br=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`;const kr={db:Ar.DEFAULT_DB_OPTIONS,realtime:Ar.DEFAULT_REALTIME_OPTIONS,auth:Object.assign(Object.assign({},Ar.DEFAULT_AUTH_OPTIONS),{storageKey:Br}),global:Ar.DEFAULT_GLOBAL_OPTIONS};const Pr=(0,Ir.applySettingDefaults)(re!==null&&re!==void 0?re:{},kr);this.storageKey=(ae=Pr.auth.storageKey)!==null&&ae!==void 0?ae:"";this.headers=(Ue=Pr.global.headers)!==null&&Ue!==void 0?Ue:{};if(!Pr.accessToken){this.auth=this._initSupabaseAuthClient((Pt=Pr.auth)!==null&&Pt!==void 0?Pt:{},this.headers,Pr.global.fetch)}else{this.accessToken=Pr.accessToken;this.auth=new Proxy({},{get:(C,q)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(q)} is not possible`)}})}this.fetch=(0,Er.fetchWithAuth)(q,this._getAccessToken.bind(this),Pr.global.fetch);this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},Pr.realtime));this.rest=new lt.PostgrestClient(`${Wt}/rest/v1`,{headers:this.headers,schema:Pr.db.schema,fetch:this.fetch});if(!Pr.accessToken){this._listenForAuthEvents()}}get functions(){return new Ue.FunctionsClient(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new Wt.StorageClient(this.storageUrl,this.headers,this.fetch)}from(C){return this.rest.from(C)}schema(C){return this.rest.schema(C)}rpc(C,q={},re={}){return this.rest.rpc(C,q,re)}channel(C,q={config:{}}){return this.realtime.channel(C,q)}getChannels(){return this.realtime.getChannels()}removeChannel(C){return this.realtime.removeChannel(C)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var C,q;return ae(this,void 0,void 0,(function*(){if(this.accessToken){return yield this.accessToken()}const{data:re}=yield this.auth.getSession();return(q=(C=re.session)===null||C===void 0?void 0:C.access_token)!==null&&q!==void 0?q:null}))}_initSupabaseAuthClient({autoRefreshToken:C,persistSession:q,detectSessionInUrl:re,storage:ae,storageKey:Ue,flowType:lt,lock:Pt,debug:Wt},Ar,Er){var Ir;const kr={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Br.SupabaseAuthClient({url:this.authUrl,headers:Object.assign(Object.assign({},kr),Ar),storageKey:Ue,autoRefreshToken:C,persistSession:q,detectSessionInUrl:re,storage:ae,flowType:lt,lock:Pt,debug:Wt,fetch:Er,hasCustomAuthorizationHeader:(Ir="Authorization"in this.headers)!==null&&Ir!==void 0?Ir:false})}_initRealtimeClient(C){return new Pt.RealtimeClient(this.realtimeUrl,Object.assign(Object.assign({},C),{params:Object.assign({apikey:this.supabaseKey},C===null||C===void 0?void 0:C.params)}))}_listenForAuthEvents(){let C=this.auth.onAuthStateChange(((C,q)=>{this._handleTokenChanged(C,"CLIENT",q===null||q===void 0?void 0:q.access_token)}));return C}_handleTokenChanged(C,q,re){if((C==="TOKEN_REFRESHED"||C==="SIGNED_IN")&&this.changedAccessToken!==re){this.realtime.setAuth(re!==null&&re!==void 0?re:null);this.changedAccessToken=re}else if(C==="SIGNED_OUT"){this.realtime.setAuth(this.supabaseKey);if(q=="STORAGE")this.auth.signOut();this.changedAccessToken=undefined}}}q["default"]=SupabaseClient},85036:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};var lt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.createClient=q.SupabaseClient=q.FunctionRegion=q.FunctionsError=q.FunctionsRelayError=q.FunctionsFetchError=q.FunctionsHttpError=void 0;const Pt=lt(re(61619));Ue(re(31904),q);var Wt=re(70459);Object.defineProperty(q,"FunctionsHttpError",{enumerable:true,get:function(){return Wt.FunctionsHttpError}});Object.defineProperty(q,"FunctionsFetchError",{enumerable:true,get:function(){return Wt.FunctionsFetchError}});Object.defineProperty(q,"FunctionsRelayError",{enumerable:true,get:function(){return Wt.FunctionsRelayError}});Object.defineProperty(q,"FunctionsError",{enumerable:true,get:function(){return Wt.FunctionsError}});Object.defineProperty(q,"FunctionRegion",{enumerable:true,get:function(){return Wt.FunctionRegion}});Ue(re(36209),q);var Ar=re(61619);Object.defineProperty(q,"SupabaseClient",{enumerable:true,get:function(){return lt(Ar).default}});const createClient=(C,q,re)=>new Pt.default(C,q,re);q.createClient=createClient},15253:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.SupabaseAuthClient=void 0;const ae=re(31904);class SupabaseAuthClient extends ae.AuthClient{constructor(C){super(C)}}q.SupabaseAuthClient=SupabaseAuthClient},23597:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.DEFAULT_REALTIME_OPTIONS=q.DEFAULT_AUTH_OPTIONS=q.DEFAULT_DB_OPTIONS=q.DEFAULT_GLOBAL_OPTIONS=q.DEFAULT_HEADERS=void 0;const ae=re(50116);let Ue="";if(typeof Deno!=="undefined"){Ue="deno"}else if(typeof document!=="undefined"){Ue="web"}else if(typeof navigator!=="undefined"&&navigator.product==="ReactNative"){Ue="react-native"}else{Ue="node"}q.DEFAULT_HEADERS={"X-Client-Info":`supabase-js-${Ue}/${ae.version}`};q.DEFAULT_GLOBAL_OPTIONS={headers:q.DEFAULT_HEADERS};q.DEFAULT_DB_OPTIONS={schema:"public"};q.DEFAULT_AUTH_OPTIONS={autoRefreshToken:true,persistSession:true,detectSessionInUrl:true,flowType:"implicit"};q.DEFAULT_REALTIME_OPTIONS={}},73248:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.fetchWithAuth=q.resolveHeadersConstructor=q.resolveFetch=void 0;const Wt=lt(re(83318));const resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=Wt.default}else{q=fetch}return(...C)=>q(...C)};q.resolveFetch=resolveFetch;const resolveHeadersConstructor=()=>{if(typeof Headers==="undefined"){return Wt.Headers}return Headers};q.resolveHeadersConstructor=resolveHeadersConstructor;const fetchWithAuth=(C,re,ae)=>{const Ue=(0,q.resolveFetch)(ae);const lt=(0,q.resolveHeadersConstructor)();return(q,ae)=>Pt(void 0,void 0,void 0,(function*(){var Pt;const Wt=(Pt=yield re())!==null&&Pt!==void 0?Pt:C;let Ar=new lt(ae===null||ae===void 0?void 0:ae.headers);if(!Ar.has("apikey")){Ar.set("apikey",C)}if(!Ar.has("Authorization")){Ar.set("Authorization",`Bearer ${Wt}`)}return Ue(q,Object.assign(Object.assign({},ae),{headers:Ar}))}))};q.fetchWithAuth=fetchWithAuth},87301:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.applySettingDefaults=q.isBrowser=q.stripTrailingSlash=q.uuid=void 0;function uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(C){var q=Math.random()*16|0,re=C=="x"?q:q&3|8;return re.toString(16)}))}q.uuid=uuid;function stripTrailingSlash(C){return C.replace(/\/$/,"")}q.stripTrailingSlash=stripTrailingSlash;const isBrowser=()=>typeof window!=="undefined";q.isBrowser=isBrowser;function applySettingDefaults(C,q){const{db:ae,auth:Ue,realtime:lt,global:Pt}=C;const{db:Wt,auth:Ar,realtime:Er,global:Ir}=q;const Br={db:Object.assign(Object.assign({},Wt),ae),auth:Object.assign(Object.assign({},Ar),Ue),realtime:Object.assign(Object.assign({},Er),lt),global:Object.assign(Object.assign({},Ir),Pt),accessToken:()=>re(this,void 0,void 0,(function*(){return""}))};if(C.accessToken){Br.accessToken=C.accessToken}else{delete Br.accessToken}return Br}q.applySettingDefaults=applySettingDefaults},50116:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="2.46.2"},17413:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});var ae=re(16577);class AbortSignal extends ae.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const C=Ue.get(this);if(typeof C!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return C}}ae.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const C=Object.create(AbortSignal.prototype);ae.EventTarget.call(C);Ue.set(C,false);return C}function abortSignal(C){if(Ue.get(C)!==false){return}Ue.set(C,true);C.dispatchEvent({type:"abort"})}const Ue=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){lt.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const lt=new WeakMap;function getSignal(C){const q=lt.get(C);if(q==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${C===null?"null":typeof C}`)}return q}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}q.AbortController=AbortController;q.AbortSignal=AbortSignal;q["default"]=AbortController;C.exports=AbortController;C.exports.AbortController=C.exports["default"]=AbortController;C.exports.AbortSignal=AbortSignal},3873:(C,q,re)=>{C.exports=re(12532);C.exports.HttpsAgent=re(10414);C.exports.constants=re(16160)},12532:(C,q,re)=>{const ae=re(58611).Agent;const Ue=re(33724);const lt=re(39023).debuglog("agentkeepalive");const{INIT_SOCKET:Pt,CURRENT_ID:Wt,CREATE_ID:Ar,SOCKET_CREATED_TIME:Er,SOCKET_NAME:Ir,SOCKET_REQUEST_COUNT:Br,SOCKET_REQUEST_FINISHED_COUNT:kr}=re(16160);let Pr=1;const Qr=parseInt(process.version.split(".",1)[0].substring(1));if(Qr>=11&&Qr<=12){Pr=2}else if(Qr>=13){Pr=3}function deprecate(C){console.log("[agentkeepalive:deprecated] %s",C)}class Agent extends ae{constructor(C){C=C||{};C.keepAlive=C.keepAlive!==false;if(C.freeSocketTimeout===undefined){C.freeSocketTimeout=4e3}if(C.keepAliveTimeout){deprecate("options.keepAliveTimeout is deprecated, please use options.freeSocketTimeout instead");C.freeSocketTimeout=C.keepAliveTimeout;delete C.keepAliveTimeout}if(C.freeSocketKeepAliveTimeout){deprecate("options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead");C.freeSocketTimeout=C.freeSocketKeepAliveTimeout;delete C.freeSocketKeepAliveTimeout}if(C.timeout===undefined){C.timeout=Math.max(C.freeSocketTimeout*2,8e3)}C.timeout=Ue(C.timeout);C.freeSocketTimeout=Ue(C.freeSocketTimeout);C.socketActiveTTL=C.socketActiveTTL?Ue(C.socketActiveTTL):0;super(C);this[Wt]=0;this.createSocketCount=0;this.createSocketCountLastCheck=0;this.createSocketErrorCount=0;this.createSocketErrorCountLastCheck=0;this.closeSocketCount=0;this.closeSocketCountLastCheck=0;this.errorSocketCount=0;this.errorSocketCountLastCheck=0;this.requestCount=0;this.requestCountLastCheck=0;this.timeoutSocketCount=0;this.timeoutSocketCountLastCheck=0;this.on("free",(C=>{const q=this.calcSocketTimeout(C);if(q>0&&C.timeout!==q){C.setTimeout(q)}}))}get freeSocketKeepAliveTimeout(){deprecate("agent.freeSocketKeepAliveTimeout is deprecated, please use agent.options.freeSocketTimeout instead");return this.options.freeSocketTimeout}get timeout(){deprecate("agent.timeout is deprecated, please use agent.options.timeout instead");return this.options.timeout}get socketActiveTTL(){deprecate("agent.socketActiveTTL is deprecated, please use agent.options.socketActiveTTL instead");return this.options.socketActiveTTL}calcSocketTimeout(C){let q=this.options.freeSocketTimeout;const re=this.options.socketActiveTTL;if(re){const ae=Date.now()-C[Er];const Ue=re-ae;if(Ue<=0){return Ue}if(q&&Ue{if(re)return;re=true;if(ae){this.createSocketErrorCount++;return q(ae)}this[Pt](Ue,C);q(ae,Ue)};const ae=super.createConnection(C,onNewCreate);if(ae)onNewCreate(null,ae);return ae}get statusChanged(){const C=this.createSocketCount!==this.createSocketCountLastCheck||this.createSocketErrorCount!==this.createSocketErrorCountLastCheck||this.closeSocketCount!==this.closeSocketCountLastCheck||this.errorSocketCount!==this.errorSocketCountLastCheck||this.timeoutSocketCount!==this.timeoutSocketCountLastCheck||this.requestCount!==this.requestCountLastCheck;if(C){this.createSocketCountLastCheck=this.createSocketCount;this.createSocketErrorCountLastCheck=this.createSocketErrorCount;this.closeSocketCountLastCheck=this.closeSocketCount;this.errorSocketCountLastCheck=this.errorSocketCount;this.timeoutSocketCountLastCheck=this.timeoutSocketCount;this.requestCountLastCheck=this.requestCount}return C}getCurrentStatus(){return{createSocketCount:this.createSocketCount,createSocketErrorCount:this.createSocketErrorCount,closeSocketCount:this.closeSocketCount,errorSocketCount:this.errorSocketCount,timeoutSocketCount:this.timeoutSocketCount,requestCount:this.requestCount,freeSockets:inspect(this.freeSockets),sockets:inspect(this.sockets),requests:inspect(this.requests)}}}function getSocketTimeout(C){return C.timeout||C._idleTimeout}function installListeners(C,q,re){lt("%s create, timeout %sms",q[Ir],getSocketTimeout(q));function onFree(){if(!q._httpMessage&&q[Br]===1)return;q[kr]++;C.requestCount++;lt("%s(requests: %s, finished: %s) free",q[Ir],q[Br],q[kr]);const ae=C.getName(re);if(q.writable&&C.requests[ae]&&C.requests[ae].length){q[Br]++;lt("%s(requests: %s, finished: %s) will be reuse on agent free event",q[Ir],q[Br],q[kr])}}q.on("free",onFree);function onClose(re){lt("%s(requests: %s, finished: %s) close, isError: %s",q[Ir],q[Br],q[kr],re);C.closeSocketCount++}q.on("close",onClose);function onTimeout(){const ae=q.listeners("timeout").length;const Ue=getSocketTimeout(q);const Pt=q._httpMessage;const Wt=Pt&&Pt.listeners("timeout").length||0;lt("%s(requests: %s, finished: %s) timeout after %sms, listeners %s, defaultTimeoutListenerCount %s, hasHttpRequest %s, HttpRequest timeoutListenerCount %s",q[Ir],q[Br],q[kr],Ue,ae,Pr,!!Pt,Wt);if(lt.enabled){lt("timeout listeners: %s",q.listeners("timeout").map((C=>C.name)).join(", "))}C.timeoutSocketCount++;const Ar=C.getName(re);if(C.freeSockets[Ar]&&C.freeSockets[Ar].indexOf(q)!==-1){q.destroy();C.removeSocket(q,re);lt("%s is free, destroy quietly",q[Ir])}else{if(Wt===0){const ae=new Error("Socket timeout");ae.code="ERR_SOCKET_TIMEOUT";ae.timeout=Ue;q.destroy(ae);C.removeSocket(q,re);lt("%s destroy with timeout error",q[Ir])}}}q.on("timeout",onTimeout);function onError(re){const ae=q.listeners("error").length;lt("%s(requests: %s, finished: %s) error: %s, listenerCount: %s",q[Ir],q[Br],q[kr],re,ae);C.errorSocketCount++;if(ae===1){lt("%s emit uncaught error event",q[Ir]);q.removeListener("error",onError);q.emit("error",re)}}q.on("error",onError);function onRemove(){lt("%s(requests: %s, finished: %s) agentRemove",q[Ir],q[Br],q[kr]);q.removeListener("close",onClose);q.removeListener("error",onError);q.removeListener("free",onFree);q.removeListener("timeout",onTimeout);q.removeListener("agentRemove",onRemove)}q.on("agentRemove",onRemove)}C.exports=Agent;function inspect(C){const q={};for(const re in C){q[re]=C[re].length}return q}},16160:C=>{C.exports={CURRENT_ID:Symbol("agentkeepalive#currentId"),CREATE_ID:Symbol("agentkeepalive#createId"),INIT_SOCKET:Symbol("agentkeepalive#initSocket"),CREATE_HTTPS_CONNECTION:Symbol("agentkeepalive#createHttpsConnection"),SOCKET_CREATED_TIME:Symbol("agentkeepalive#socketCreatedTime"),SOCKET_NAME:Symbol("agentkeepalive#socketName"),SOCKET_REQUEST_COUNT:Symbol("agentkeepalive#socketRequestCount"),SOCKET_REQUEST_FINISHED_COUNT:Symbol("agentkeepalive#socketRequestFinishedCount")}},10414:(C,q,re)=>{const ae=re(65692).Agent;const Ue=re(12532);const{INIT_SOCKET:lt,CREATE_HTTPS_CONNECTION:Pt}=re(16160);class HttpsAgent extends Ue{constructor(C){super(C);this.defaultPort=443;this.protocol="https:";this.maxCachedSessions=this.options.maxCachedSessions;if(this.maxCachedSessions===undefined){this.maxCachedSessions=100}this._sessionCache={map:{},list:[]}}createConnection(C,q){const re=this[Pt](C,q);this[lt](re,C);return re}}HttpsAgent.prototype[Pt]=ae.prototype.createConnection;["getName","_getSession","_cacheSession","_evictSession"].forEach((function(C){if(typeof ae.prototype[C]==="function"){HttpsAgent.prototype[C]=ae.prototype[C]}}));C.exports=HttpsAgent},4777:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});var ae=re(61860);var Ue=re(63168);var lt=function(){function Mutex(C){this._semaphore=new Ue.default(1,C)}Mutex.prototype.acquire=function(){return(0,ae.__awaiter)(this,void 0,void 0,(function(){var C,q;return(0,ae.__generator)(this,(function(re){switch(re.label){case 0:return[4,this._semaphore.acquire()];case 1:C=re.sent(),q=C[1];return[2,q]}}))}))};Mutex.prototype.runExclusive=function(C){return this._semaphore.runExclusive((function(){return C()}))};Mutex.prototype.isLocked=function(){return this._semaphore.isLocked()};Mutex.prototype.waitForUnlock=function(){return this._semaphore.waitForUnlock()};Mutex.prototype.release=function(){this._semaphore.release()};Mutex.prototype.cancel=function(){return this._semaphore.cancel()};return Mutex}();q["default"]=lt},63168:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});var ae=re(61860);var Ue=re(63895);var lt=function(){function Semaphore(C,q){if(q===void 0){q=Ue.E_CANCELED}this._maxConcurrency=C;this._cancelError=q;this._queue=[];this._waiters=[];if(C<=0){throw new Error("semaphore must be initialized to a positive value")}this._value=C}Semaphore.prototype.acquire=function(){var C=this;var q=this.isLocked();var re=new Promise((function(q,re){return C._queue.push({resolve:q,reject:re})}));if(!q)this._dispatch();return re};Semaphore.prototype.runExclusive=function(C){return(0,ae.__awaiter)(this,void 0,void 0,(function(){var q,re,Ue;return(0,ae.__generator)(this,(function(ae){switch(ae.label){case 0:return[4,this.acquire()];case 1:q=ae.sent(),re=q[0],Ue=q[1];ae.label=2;case 2:ae.trys.push([2,,4,5]);return[4,C(re)];case 3:return[2,ae.sent()];case 4:Ue();return[7];case 5:return[2]}}))}))};Semaphore.prototype.waitForUnlock=function(){return(0,ae.__awaiter)(this,void 0,void 0,(function(){var C;var q=this;return(0,ae.__generator)(this,(function(re){if(!this.isLocked()){return[2,Promise.resolve()]}C=new Promise((function(C){return q._waiters.push({resolve:C})}));return[2,C]}))}))};Semaphore.prototype.isLocked=function(){return this._value<=0};Semaphore.prototype.release=function(){if(this._maxConcurrency>1){throw new Error("this method is unavailable on semaphores with concurrency > 1; use the scoped release returned by acquire instead")}if(this._currentReleaser){var C=this._currentReleaser;this._currentReleaser=undefined;C()}};Semaphore.prototype.cancel=function(){var C=this;this._queue.forEach((function(q){return q.reject(C._cancelError)}));this._queue=[]};Semaphore.prototype._dispatch=function(){var C=this;var q=this._queue.shift();if(!q)return;var re=false;this._currentReleaser=function(){if(re)return;re=true;C._value++;C._resolveWaiters();C._dispatch()};q.resolve([this._value--,this._currentReleaser])};Semaphore.prototype._resolveWaiters=function(){this._waiters.forEach((function(C){return C.resolve()}));this._waiters=[]};return Semaphore}();q["default"]=lt},63895:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.E_CANCELED=q.E_ALREADY_LOCKED=q.E_TIMEOUT=void 0;q.E_TIMEOUT=new Error("timeout while waiting for mutex to become available");q.E_ALREADY_LOCKED=new Error("mutex already locked");q.E_CANCELED=new Error("request for lock canceled")},82626:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.tryAcquire=q.withTimeout=q.Semaphore=q.Mutex=void 0;var ae=re(61860);var Ue=re(4777);Object.defineProperty(q,"Mutex",{enumerable:true,get:function(){return Ue.default}});var lt=re(63168);Object.defineProperty(q,"Semaphore",{enumerable:true,get:function(){return lt.default}});var Pt=re(45753);Object.defineProperty(q,"withTimeout",{enumerable:true,get:function(){return Pt.withTimeout}});var Wt=re(36487);Object.defineProperty(q,"tryAcquire",{enumerable:true,get:function(){return Wt.tryAcquire}});(0,ae.__exportStar)(re(63895),q)},36487:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.tryAcquire=void 0;var ae=re(63895);var Ue=re(45753);function tryAcquire(C,q){if(q===void 0){q=ae.E_ALREADY_LOCKED}return(0,Ue.withTimeout)(C,0,q)}q.tryAcquire=tryAcquire},45753:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.withTimeout=void 0;var ae=re(61860);var Ue=re(63895);function withTimeout(C,q,re){var lt=this;if(re===void 0){re=Ue.E_TIMEOUT}return{acquire:function(){return new Promise((function(Ue,Pt){return(0,ae.__awaiter)(lt,void 0,void 0,(function(){var lt,Wt,Ar,Er,Ir;return(0,ae.__generator)(this,(function(ae){switch(ae.label){case 0:lt=false;Wt=setTimeout((function(){lt=true;Pt(re)}),q);ae.label=1;case 1:ae.trys.push([1,3,,4]);return[4,C.acquire()];case 2:Ar=ae.sent();if(lt){Er=Array.isArray(Ar)?Ar[1]:Ar;Er()}else{clearTimeout(Wt);Ue(Ar)}return[3,4];case 3:Ir=ae.sent();if(!lt){clearTimeout(Wt);Pt(Ir)}return[3,4];case 4:return[2]}}))}))}))},runExclusive:function(C){return(0,ae.__awaiter)(this,void 0,void 0,(function(){var q,re;return(0,ae.__generator)(this,(function(ae){switch(ae.label){case 0:q=function(){return undefined};ae.label=1;case 1:ae.trys.push([1,,7,8]);return[4,this.acquire()];case 2:re=ae.sent();if(!Array.isArray(re))return[3,4];q=re[1];return[4,C(re[0])];case 3:return[2,ae.sent()];case 4:q=re;return[4,C()];case 5:return[2,ae.sent()];case 6:return[3,8];case 7:q();return[7];case 8:return[2]}}))}))},release:function(){C.release()},cancel:function(){return C.cancel()},waitForUnlock:function(){return C.waitForUnlock()},isLocked:function(){return C.isLocked()}}}q.withTimeout=withTimeout},52732:(C,q,re)=>{var ae=re(11063);var Ue=re(22027);var lt=re(59934);var Pt=Function.bind;var Wt=Pt.bind(Pt);function bindApi(C,q,re){var ae=Wt(lt,null).apply(null,re?[q,re]:[q]);C.api={remove:ae};C.remove=ae;["before","error","after","wrap"].forEach((function(ae){var lt=re?[q,ae,re]:[q,ae];C[ae]=C.api[ae]=Wt(Ue,null).apply(null,lt)}))}function HookSingular(){var C="h";var q={registry:{}};var re=ae.bind(null,q,C);bindApi(re,q,C);return re}function HookCollection(){var C={registry:{}};var q=ae.bind(null,C);bindApi(q,C);return q}var Ar=false;function Hook(){if(!Ar){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');Ar=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();C.exports=Hook;C.exports.Hook=Hook;C.exports.Singular=Hook.Singular;C.exports.Collection=Hook.Collection},22027:C=>{C.exports=addHook;function addHook(C,q,re,ae){var Ue=ae;if(!C.registry[re]){C.registry[re]=[]}if(q==="before"){ae=function(C,q){return Promise.resolve().then(Ue.bind(null,q)).then(C.bind(null,q))}}if(q==="after"){ae=function(C,q){var re;return Promise.resolve().then(C.bind(null,q)).then((function(C){re=C;return Ue(re,q)})).then((function(){return re}))}}if(q==="error"){ae=function(C,q){return Promise.resolve().then(C.bind(null,q)).catch((function(C){return Ue(C,q)}))}}C.registry[re].push({hook:ae,orig:Ue})}},11063:C=>{C.exports=register;function register(C,q,re,ae){if(typeof re!=="function"){throw new Error("method for before hook must be a function")}if(!ae){ae={}}if(Array.isArray(q)){return q.reverse().reduce((function(q,re){return register.bind(null,C,re,q,ae)}),re)()}return Promise.resolve().then((function(){if(!C.registry[q]){return re(ae)}return C.registry[q].reduce((function(C,q){return q.hook.bind(null,C,ae)}),re)()}))}},59934:C=>{C.exports=removeHook;function removeHook(C,q,re){if(!C.registry[q]){return}var ae=C.registry[q].map((function(C){return C.orig})).indexOf(re);if(ae===-1){return}C.registry[q].splice(ae,1)}},43269:(C,q,re)=>{C=re.nmd(C);var ae=function(C){"use strict";var q=1e7,re=7,Ue=9007199254740992,lt=smallToArray(Ue),Pt="0123456789abcdefghijklmnopqrstuvwxyz";var Wt=typeof BigInt==="function";function Integer(C,q,re,ae){if(typeof C==="undefined")return Integer[0];if(typeof q!=="undefined")return+q===10&&!re?parseValue(C):parseBase(C,q,re,ae);return parseValue(C)}function BigInteger(C,q){this.value=C;this.sign=q;this.isSmall=false}BigInteger.prototype=Object.create(Integer.prototype);function SmallInteger(C){this.value=C;this.sign=C<0;this.isSmall=true}SmallInteger.prototype=Object.create(Integer.prototype);function NativeBigInt(C){this.value=C}NativeBigInt.prototype=Object.create(Integer.prototype);function isPrecise(C){return-Ue0)return Math.floor(C);return Math.ceil(C)}function add(C,re){var ae=C.length,Ue=re.length,lt=new Array(ae),Pt=0,Wt=q,Ar,Er;for(Er=0;Er=Wt?1:0;lt[Er]=Ar-Pt*Wt}while(Er0)lt.push(Pt);return lt}function addAny(C,q){if(C.length>=q.length)return add(C,q);return add(q,C)}function addSmall(C,re){var ae=C.length,Ue=new Array(ae),lt=q,Pt,Wt;for(Wt=0;Wt0){Ue[Wt++]=re%lt;re=Math.floor(re/lt)}return Ue}BigInteger.prototype.add=function(C){var q=parseValue(C);if(this.sign!==q.sign){return this.subtract(q.negate())}var re=this.value,ae=q.value;if(q.isSmall){return new BigInteger(addSmall(re,Math.abs(ae)),this.sign)}return new BigInteger(addAny(re,ae),this.sign)};BigInteger.prototype.plus=BigInteger.prototype.add;SmallInteger.prototype.add=function(C){var q=parseValue(C);var re=this.value;if(re<0!==q.sign){return this.subtract(q.negate())}var ae=q.value;if(q.isSmall){if(isPrecise(re+ae))return new SmallInteger(re+ae);ae=smallToArray(Math.abs(ae))}return new BigInteger(addSmall(ae,Math.abs(re)),re<0)};SmallInteger.prototype.plus=SmallInteger.prototype.add;NativeBigInt.prototype.add=function(C){return new NativeBigInt(this.value+parseValue(C).value)};NativeBigInt.prototype.plus=NativeBigInt.prototype.add;function subtract(C,re){var ae=C.length,Ue=re.length,lt=new Array(ae),Pt=0,Wt=q,Ar,Er;for(Ar=0;Ar=0){ae=subtract(C,q)}else{ae=subtract(q,C);re=!re}ae=arrayToSmall(ae);if(typeof ae==="number"){if(re)ae=-ae;return new SmallInteger(ae)}return new BigInteger(ae,re)}function subtractSmall(C,re,ae){var Ue=C.length,lt=new Array(Ue),Pt=-re,Wt=q,Ar,Er;for(Ar=0;Ar=0)};SmallInteger.prototype.minus=SmallInteger.prototype.subtract;NativeBigInt.prototype.subtract=function(C){return new NativeBigInt(this.value-parseValue(C).value)};NativeBigInt.prototype.minus=NativeBigInt.prototype.subtract;BigInteger.prototype.negate=function(){return new BigInteger(this.value,!this.sign)};SmallInteger.prototype.negate=function(){var C=this.sign;var q=new SmallInteger(-this.value);q.sign=!C;return q};NativeBigInt.prototype.negate=function(){return new NativeBigInt(-this.value)};BigInteger.prototype.abs=function(){return new BigInteger(this.value,false)};SmallInteger.prototype.abs=function(){return new SmallInteger(Math.abs(this.value))};NativeBigInt.prototype.abs=function(){return new NativeBigInt(this.value>=0?this.value:-this.value)};function multiplyLong(C,re){var ae=C.length,Ue=re.length,lt=ae+Ue,Pt=createArray(lt),Wt=q,Ar,Er,Ir,Br,kr;for(Ir=0;Ir0){Ue[Ar++]=Pt%lt;Pt=Math.floor(Pt/lt)}return Ue}function shiftLeft(C,q){var re=[];while(q-- >0)re.push(0);return re.concat(C)}function multiplyKaratsuba(C,q){var re=Math.max(C.length,q.length);if(re<=30)return multiplyLong(C,q);re=Math.ceil(re/2);var ae=C.slice(re),Ue=C.slice(0,re),lt=q.slice(re),Pt=q.slice(0,re);var Wt=multiplyKaratsuba(Ue,Pt),Ar=multiplyKaratsuba(ae,lt),Er=multiplyKaratsuba(addAny(Ue,ae),addAny(Pt,lt));var Ir=addAny(addAny(Wt,shiftLeft(subtract(subtract(Er,Wt),Ar),re)),shiftLeft(Ar,2*re));trim(Ir);return Ir}function useKaratsuba(C,q){return-.012*C-.012*q+15e-6*C*q>0}BigInteger.prototype.multiply=function(C){var re=parseValue(C),ae=this.value,Ue=re.value,lt=this.sign!==re.sign,Pt;if(re.isSmall){if(Ue===0)return Integer[0];if(Ue===1)return this;if(Ue===-1)return this.negate();Pt=Math.abs(Ue);if(Pt=0;kr--){Br=lt-1;if(Er[kr+Ue]!==Wt){Br=Math.floor((Er[kr+Ue]*lt+Er[kr+Ue-1])/Wt)}Pr=0;Qr=0;Dr=Ir.length;for(Fr=0;FrUe){Ir=(Ir+1)*Wt}Ar=Math.ceil(Ir/Br);do{kr=multiplySmall(re,Ar);if(compareAbs(kr,Pt)<=0)break;Ar--}while(Ar);lt.push(Ar);Pt=subtract(Pt,kr)}lt.reverse();return[arrayToSmall(lt),arrayToSmall(Pt)]}function divModSmall(C,re){var ae=C.length,Ue=createArray(ae),lt=q,Pt,Wt,Ar,Er;Ar=0;for(Pt=ae-1;Pt>=0;--Pt){Er=Ar*lt+C[Pt];Wt=truncate(Er/re);Ar=Er-Wt*re;Ue[Pt]=Wt|0}return[Ue,Ar|0]}function divModAny(C,re){var ae,Ue=parseValue(re);if(Wt){return[new NativeBigInt(C.value/Ue.value),new NativeBigInt(C.value%Ue.value)]}var lt=C.value,Pt=Ue.value;var Ar;if(Pt===0)throw new Error("Cannot divide by zero");if(C.isSmall){if(Ue.isSmall){return[new SmallInteger(truncate(lt/Pt)),new SmallInteger(lt%Pt)]}return[Integer[0],C]}if(Ue.isSmall){if(Pt===1)return[C,Integer[0]];if(Pt==-1)return[C.negate(),Integer[0]];var Er=Math.abs(Pt);if(Erq.length?1:-1}for(var re=C.length-1;re>=0;re--){if(C[re]!==q[re])return C[re]>q[re]?1:-1}return 0}BigInteger.prototype.compareAbs=function(C){var q=parseValue(C),re=this.value,ae=q.value;if(q.isSmall)return 1;return compareAbs(re,ae)};SmallInteger.prototype.compareAbs=function(C){var q=parseValue(C),re=Math.abs(this.value),ae=q.value;if(q.isSmall){ae=Math.abs(ae);return re===ae?0:re>ae?1:-1}return-1};NativeBigInt.prototype.compareAbs=function(C){var q=this.value;var re=parseValue(C).value;q=q>=0?q:-q;re=re>=0?re:-re;return q===re?0:q>re?1:-1};BigInteger.prototype.compare=function(C){if(C===Infinity){return-1}if(C===-Infinity){return 1}var q=parseValue(C),re=this.value,ae=q.value;if(this.sign!==q.sign){return q.sign?1:-1}if(q.isSmall){return this.sign?-1:1}return compareAbs(re,ae)*(this.sign?-1:1)};BigInteger.prototype.compareTo=BigInteger.prototype.compare;SmallInteger.prototype.compare=function(C){if(C===Infinity){return-1}if(C===-Infinity){return 1}var q=parseValue(C),re=this.value,ae=q.value;if(q.isSmall){return re==ae?0:re>ae?1:-1}if(re<0!==q.sign){return re<0?-1:1}return re<0?1:-1};SmallInteger.prototype.compareTo=SmallInteger.prototype.compare;NativeBigInt.prototype.compare=function(C){if(C===Infinity){return-1}if(C===-Infinity){return 1}var q=this.value;var re=parseValue(C).value;return q===re?0:q>re?1:-1};NativeBigInt.prototype.compareTo=NativeBigInt.prototype.compare;BigInteger.prototype.equals=function(C){return this.compare(C)===0};NativeBigInt.prototype.eq=NativeBigInt.prototype.equals=SmallInteger.prototype.eq=SmallInteger.prototype.equals=BigInteger.prototype.eq=BigInteger.prototype.equals;BigInteger.prototype.notEquals=function(C){return this.compare(C)!==0};NativeBigInt.prototype.neq=NativeBigInt.prototype.notEquals=SmallInteger.prototype.neq=SmallInteger.prototype.notEquals=BigInteger.prototype.neq=BigInteger.prototype.notEquals;BigInteger.prototype.greater=function(C){return this.compare(C)>0};NativeBigInt.prototype.gt=NativeBigInt.prototype.greater=SmallInteger.prototype.gt=SmallInteger.prototype.greater=BigInteger.prototype.gt=BigInteger.prototype.greater;BigInteger.prototype.lesser=function(C){return this.compare(C)<0};NativeBigInt.prototype.lt=NativeBigInt.prototype.lesser=SmallInteger.prototype.lt=SmallInteger.prototype.lesser=BigInteger.prototype.lt=BigInteger.prototype.lesser;BigInteger.prototype.greaterOrEquals=function(C){return this.compare(C)>=0};NativeBigInt.prototype.geq=NativeBigInt.prototype.greaterOrEquals=SmallInteger.prototype.geq=SmallInteger.prototype.greaterOrEquals=BigInteger.prototype.geq=BigInteger.prototype.greaterOrEquals;BigInteger.prototype.lesserOrEquals=function(C){return this.compare(C)<=0};NativeBigInt.prototype.leq=NativeBigInt.prototype.lesserOrEquals=SmallInteger.prototype.leq=SmallInteger.prototype.lesserOrEquals=BigInteger.prototype.leq=BigInteger.prototype.lesserOrEquals;BigInteger.prototype.isEven=function(){return(this.value[0]&1)===0};SmallInteger.prototype.isEven=function(){return(this.value&1)===0};NativeBigInt.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};BigInteger.prototype.isOdd=function(){return(this.value[0]&1)===1};SmallInteger.prototype.isOdd=function(){return(this.value&1)===1};NativeBigInt.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};BigInteger.prototype.isPositive=function(){return!this.sign};SmallInteger.prototype.isPositive=function(){return this.value>0};NativeBigInt.prototype.isPositive=SmallInteger.prototype.isPositive;BigInteger.prototype.isNegative=function(){return this.sign};SmallInteger.prototype.isNegative=function(){return this.value<0};NativeBigInt.prototype.isNegative=SmallInteger.prototype.isNegative;BigInteger.prototype.isUnit=function(){return false};SmallInteger.prototype.isUnit=function(){return Math.abs(this.value)===1};NativeBigInt.prototype.isUnit=function(){return this.abs().value===BigInt(1)};BigInteger.prototype.isZero=function(){return false};SmallInteger.prototype.isZero=function(){return this.value===0};NativeBigInt.prototype.isZero=function(){return this.value===BigInt(0)};BigInteger.prototype.isDivisibleBy=function(C){var q=parseValue(C);if(q.isZero())return false;if(q.isUnit())return true;if(q.compareAbs(2)===0)return this.isEven();return this.mod(q).isZero()};NativeBigInt.prototype.isDivisibleBy=SmallInteger.prototype.isDivisibleBy=BigInteger.prototype.isDivisibleBy;function isBasicPrime(C){var q=C.abs();if(q.isUnit())return false;if(q.equals(2)||q.equals(3)||q.equals(5))return true;if(q.isEven()||q.isDivisibleBy(3)||q.isDivisibleBy(5))return false;if(q.lesser(49))return true}function millerRabinTest(C,q){var re=C.prev(),Ue=re,lt=0,Pt,Wt,Ar,Er;while(Ue.isEven())Ue=Ue.divide(2),lt++;e:for(Ar=0;Ar-Ue)return new SmallInteger(C-1);return new BigInteger(lt,true)};NativeBigInt.prototype.prev=function(){return new NativeBigInt(this.value-BigInt(1))};var Ar=[1];while(2*Ar[Ar.length-1]<=q)Ar.push(2*Ar[Ar.length-1]);var Er=Ar.length,Ir=Ar[Er-1];function shift_isSmall(C){return Math.abs(C)<=q}BigInteger.prototype.shiftLeft=function(C){var q=parseValue(C).toJSNumber();if(!shift_isSmall(q)){throw new Error(String(q)+" is too large for shifting.")}if(q<0)return this.shiftRight(-q);var re=this;if(re.isZero())return re;while(q>=Er){re=re.multiply(Ir);q-=Er-1}return re.multiply(Ar[q])};NativeBigInt.prototype.shiftLeft=SmallInteger.prototype.shiftLeft=BigInteger.prototype.shiftLeft;BigInteger.prototype.shiftRight=function(C){var q;var re=parseValue(C).toJSNumber();if(!shift_isSmall(re)){throw new Error(String(re)+" is too large for shifting.")}if(re<0)return this.shiftLeft(-re);var ae=this;while(re>=Er){if(ae.isZero()||ae.isNegative()&&ae.isUnit())return ae;q=divModAny(ae,Ir);ae=q[1].isNegative()?q[0].prev():q[0];re-=Er-1}q=divModAny(ae,Ar[re]);return q[1].isNegative()?q[0].prev():q[0]};NativeBigInt.prototype.shiftRight=SmallInteger.prototype.shiftRight=BigInteger.prototype.shiftRight;function bitwise(C,q,re){q=parseValue(q);var Ue=C.isNegative(),lt=q.isNegative();var Pt=Ue?C.not():C,Wt=lt?q.not():q;var Ar=0,Er=0;var Br=null,kr=null;var Pr=[];while(!Pt.isZero()||!Wt.isZero()){Br=divModAny(Pt,Ir);Ar=Br[1].toJSNumber();if(Ue){Ar=Ir-1-Ar}kr=divModAny(Wt,Ir);Er=kr[1].toJSNumber();if(lt){Er=Ir-1-Er}Pt=Br[0];Wt=kr[0];Pr.push(re(Ar,Er))}var Qr=re(Ue?1:0,lt?1:0)!==0?ae(-1):ae(0);for(var Fr=Pr.length-1;Fr>=0;Fr-=1){Qr=Qr.multiply(Ir).add(ae(Pr[Fr]))}return Qr}BigInteger.prototype.not=function(){return this.negate().prev()};NativeBigInt.prototype.not=SmallInteger.prototype.not=BigInteger.prototype.not;BigInteger.prototype.and=function(C){return bitwise(this,C,(function(C,q){return C&q}))};NativeBigInt.prototype.and=SmallInteger.prototype.and=BigInteger.prototype.and;BigInteger.prototype.or=function(C){return bitwise(this,C,(function(C,q){return C|q}))};NativeBigInt.prototype.or=SmallInteger.prototype.or=BigInteger.prototype.or;BigInteger.prototype.xor=function(C){return bitwise(this,C,(function(C,q){return C^q}))};NativeBigInt.prototype.xor=SmallInteger.prototype.xor=BigInteger.prototype.xor;var Br=1<<30,kr=(q&-q)*(q&-q)|Br;function roughLOB(C){var re=C.value,ae=typeof re==="number"?re|Br:typeof re==="bigint"?re|BigInt(Br):re[0]+re[1]*q|kr;return ae&-ae}function integerLogarithm(C,q){if(q.compareTo(C)<=0){var re=integerLogarithm(C,q.square(q));var Ue=re.p;var lt=re.e;var Pt=Ue.multiply(q);return Pt.compareTo(C)<=0?{p:Pt,e:lt*2+1}:{p:Ue,e:lt*2}}return{p:ae(1),e:0}}BigInteger.prototype.bitLength=function(){var C=this;if(C.compareTo(ae(0))<0){C=C.negate().subtract(ae(1))}if(C.compareTo(ae(0))===0){return ae(0)}return ae(integerLogarithm(C,ae(2)).e).add(ae(1))};NativeBigInt.prototype.bitLength=SmallInteger.prototype.bitLength=BigInteger.prototype.bitLength;function max(C,q){C=parseValue(C);q=parseValue(q);return C.greater(q)?C:q}function min(C,q){C=parseValue(C);q=parseValue(q);return C.lesser(q)?C:q}function gcd(C,q){C=parseValue(C).abs();q=parseValue(q).abs();if(C.equals(q))return C;if(C.isZero())return q;if(q.isZero())return C;var re=Integer[1],ae,Ue;while(C.isEven()&&q.isEven()){ae=min(roughLOB(C),roughLOB(q));C=C.divide(ae);q=q.divide(ae);re=re.multiply(ae)}while(C.isEven()){C=C.divide(roughLOB(C))}do{while(q.isEven()){q=q.divide(roughLOB(q))}if(C.greater(q)){Ue=q;q=C;C=Ue}q=q.subtract(C)}while(!q.isZero());return re.isUnit()?C:C.multiply(re)}function lcm(C,q){C=parseValue(C).abs();q=parseValue(q).abs();return C.divide(gcd(C,q)).multiply(q)}function randBetween(C,re,ae){C=parseValue(C);re=parseValue(re);var Ue=ae||Math.random;var lt=min(C,re),Pt=max(C,re);var Wt=Pt.subtract(lt).add(1);if(Wt.isSmall)return lt.add(Math.floor(Ue()*Wt));var Ar=toBase(Wt,q).value;var Er=[],Ir=true;for(var Br=0;Br=Wt){if(Er==="1"&&Wt===1)continue;throw new Error(Er+" is not a valid digit in base "+q+".")}}}q=parseValue(q);var Ir=[];var Br=C[0]==="-";for(lt=Br?1:0;lt"&<=0;lt--){ae=ae.add(C[lt].times(Ue));Ue=Ue.times(q)}return re?ae.negate():ae}function stringify(C,q){q=q||Pt;if(C"}function toBase(C,q){q=ae(q);if(q.isZero()){if(C.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(q.equals(-1)){if(C.isZero())return{value:[0],isNegative:false};if(C.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-C.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var re=Array.apply(null,Array(C.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);re.unshift([1]);return{value:[].concat.apply([],re),isNegative:false}}var Ue=false;if(C.isNegative()&&q.isPositive()){Ue=true;C=C.abs()}if(q.isUnit()){if(C.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(C.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:Ue}}var lt=[];var Pt=C,Wt;while(Pt.isNegative()||Pt.compareAbs(q)>=0){Wt=Pt.divmod(q);Pt=Wt.quotient;var Ar=Wt.remainder;if(Ar.isNegative()){Ar=q.minus(Ar).abs();Pt=Pt.next()}lt.push(Ar.toJSNumber())}lt.push(Pt.toJSNumber());return{value:lt.reverse(),isNegative:Ue}}function toBaseString(C,q,re){var ae=toBase(C,q);return(ae.isNegative?"-":"")+ae.value.map((function(C){return stringify(C,re)})).join("")}BigInteger.prototype.toArray=function(C){return toBase(this,C)};SmallInteger.prototype.toArray=function(C){return toBase(this,C)};NativeBigInt.prototype.toArray=function(C){return toBase(this,C)};BigInteger.prototype.toString=function(q,re){if(q===C)q=10;if(q!==10||re)return toBaseString(this,q,re);var ae=this.value,Ue=ae.length,lt=String(ae[--Ue]),Pt="0000000",Wt;while(--Ue>=0){Wt=String(ae[Ue]);lt+=Pt.slice(Wt.length)+Wt}var Ar=this.sign?"-":"";return Ar+lt};SmallInteger.prototype.toString=function(q,re){if(q===C)q=10;if(q!=10||re)return toBaseString(this,q,re);return String(this.value)};NativeBigInt.prototype.toString=SmallInteger.prototype.toString;NativeBigInt.prototype.toJSON=BigInteger.prototype.toJSON=SmallInteger.prototype.toJSON=function(){return this.toString()};BigInteger.prototype.valueOf=function(){return parseInt(this.toString(),10)};BigInteger.prototype.toJSNumber=BigInteger.prototype.valueOf;SmallInteger.prototype.valueOf=function(){return this.value};SmallInteger.prototype.toJSNumber=SmallInteger.prototype.valueOf;NativeBigInt.prototype.valueOf=NativeBigInt.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function parseStringValue(C){if(isPrecise(+C)){var q=+C;if(q===truncate(q))return Wt?new NativeBigInt(BigInt(q)):new SmallInteger(q);throw new Error("Invalid integer: "+C)}var ae=C[0]==="-";if(ae)C=C.slice(1);var Ue=C.split(/e/i);if(Ue.length>2)throw new Error("Invalid integer: "+Ue.join("e"));if(Ue.length===2){var lt=Ue[1];if(lt[0]==="+")lt=lt.slice(1);lt=+lt;if(lt!==truncate(lt)||!isPrecise(lt))throw new Error("Invalid integer: "+lt+" is not a valid exponent.");var Pt=Ue[0];var Ar=Pt.indexOf(".");if(Ar>=0){lt-=Pt.length-Ar-1;Pt=Pt.slice(0,Ar)+Pt.slice(Ar+1)}if(lt<0)throw new Error("Cannot include negative exponent part for integers");Pt+=new Array(lt+1).join("0");C=Pt}var Er=/^([0-9][0-9]*)$/.test(C);if(!Er)throw new Error("Invalid integer: "+C);if(Wt){return new NativeBigInt(BigInt(ae?"-"+C:C))}var Ir=[],Br=C.length,kr=re,Pr=Br-kr;while(Br>0){Ir.push(+C.slice(Pr,Br));Pr-=kr;if(Pr<0)Pr=0;Br-=kr}trim(Ir);return new BigInteger(Ir,ae)}function parseNumberValue(C){if(Wt){return new NativeBigInt(BigInt(C))}if(isPrecise(C)){if(C!==truncate(C))throw new Error(C+" is not an integer.");return new SmallInteger(C)}return parseStringValue(C.toString())}function parseValue(C){if(typeof C==="number"){return parseNumberValue(C)}if(typeof C==="string"){return parseStringValue(C)}if(typeof C==="bigint"){return new NativeBigInt(C)}return C}for(var Pr=0;Pr<1e3;Pr++){Integer[Pr]=parseValue(Pr);if(Pr>0)Integer[-Pr]=parseValue(-Pr)}Integer.one=Integer[1];Integer.zero=Integer[0];Integer.minusOne=Integer[-1];Integer.max=max;Integer.min=min;Integer.gcd=gcd;Integer.lcm=lcm;Integer.isInstance=function(C){return C instanceof BigInteger||C instanceof SmallInteger||C instanceof NativeBigInt};Integer.randBetween=randBetween;Integer.fromArray=function(C,q,re){return parseBaseFromArray(C.map(parseValue),parseValue(q||10),re)};return Integer}();if(true&&C.hasOwnProperty("exports")){C.exports=ae}if(typeof define==="function"&&define.amd){define((function(){return ae}))}},63251:function(C){(function(q,re){true?C.exports=re():0})(this,(function(){"use strict";var C=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(C){return C&&C["default"]||C}var load=function(C,q,re={}){var ae,Ue,lt;for(ae in q){lt=q[ae];re[ae]=(Ue=C[ae])!=null?Ue:lt}return re};var overwrite=function(C,q,re={}){var ae,Ue;for(ae in C){Ue=C[ae];if(q[ae]!==void 0){re[ae]=Ue}}return re};var q={load:load,overwrite:overwrite};var re;re=class DLList{constructor(C,q){this.incr=C;this.decr=q;this._first=null;this._last=null;this.length=0}push(C){var q;this.length++;if(typeof this.incr==="function"){this.incr()}q={value:C,prev:this._last,next:null};if(this._last!=null){this._last.next=q;this._last=q}else{this._first=this._last=q}return void 0}shift(){var C;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}C=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return C}first(){if(this._first!=null){return this._first.value}}getArray(){var C,q,re;C=this._first;re=[];while(C!=null){re.push((q=C,C=C.next,q.value))}return re}forEachShift(C){var q;q=this.shift();while(q!=null){C(q),q=this.shift()}return void 0}debug(){var C,q,re,ae,Ue;C=this._first;Ue=[];while(C!=null){Ue.push((q=C,C=C.next,{value:q.value,prev:(re=q.prev)!=null?re.value:void 0,next:(ae=q.next)!=null?ae.value:void 0}))}return Ue}};var ae=re;var Ue;Ue=class Events{constructor(C){this.instance=C;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=(C,q)=>this._addListener(C,"many",q);this.instance.once=(C,q)=>this._addListener(C,"once",q);this.instance.removeAllListeners=(C=null)=>{if(C!=null){return delete this._events[C]}else{return this._events={}}}}_addListener(C,q,re){var ae;if((ae=this._events)[C]==null){ae[C]=[]}this._events[C].push({cb:re,status:q});return this.instance}listenerCount(C){if(this._events[C]!=null){return this._events[C].length}else{return 0}}async trigger(C,...q){var re,ae;try{if(C!=="debug"){this.trigger("debug",`Event triggered: ${C}`,q)}if(this._events[C]==null){return}this._events[C]=this._events[C].filter((function(C){return C.status!=="none"}));ae=this._events[C].map((async C=>{var re,ae;if(C.status==="none"){return}if(C.status==="once"){C.status="none"}try{ae=typeof C.cb==="function"?C.cb(...q):void 0;if(typeof(ae!=null?ae.then:void 0)==="function"){return await ae}else{return ae}}catch(C){re=C;{this.trigger("error",re)}return null}}));return(await Promise.all(ae)).find((function(C){return C!=null}))}catch(C){re=C;{this.trigger("error",re)}return null}}};var lt=Ue;var Pt,Wt,Ar;Pt=ae;Wt=lt;Ar=class Queues{constructor(C){var q;this.Events=new Wt(this);this._length=0;this._lists=function(){var re,ae,Ue;Ue=[];for(q=re=1,ae=C;1<=ae?re<=ae:re>=ae;q=1<=ae?++re:--re){Ue.push(new Pt((()=>this.incr()),(()=>this.decr())))}return Ue}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(C){return this._lists[C.options.priority].push(C)}queued(C){if(C!=null){return this._lists[C].length}else{return this._length}}shiftAll(C){return this._lists.forEach((function(q){return q.forEachShift(C)}))}getFirst(C=this._lists){var q,re,ae;for(q=0,re=C.length;q0){return ae}}return[]}shiftLastFrom(C){return this.getFirst(this._lists.slice(C).reverse()).shift()}};var Er=Ar;var Ir;Ir=class BottleneckError extends Error{};var Br=Ir;var kr,Pr,Qr,Fr,Dr;Fr=10;Pr=5;Dr=q;kr=Br;Qr=class Job{constructor(C,q,re,ae,Ue,lt,Pt,Wt){this.task=C;this.args=q;this.rejectOnDrop=Ue;this.Events=lt;this._states=Pt;this.Promise=Wt;this.options=Dr.load(re,ae);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===ae.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((C,q)=>{this._resolve=C;this._reject=q}));this.retryCount=0}_sanitizePriority(C){var q;q=~~C!==C?Pr:C;if(q<0){return 0}else if(q>Fr-1){return Fr-1}else{return q}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:C,message:q="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(C!=null?C:new kr(q))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(C){var q;q=this._states.jobStatus(this.options.id);if(!(q===C||C==="DONE"&&q===null)){throw new kr(`Invalid job status ${q}, expected ${C}. 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(C,q){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:C,blocked:q})}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(C,q,re,ae){var Ue,lt,Pt;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}lt={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",lt);try{Pt=await(C!=null?C.schedule(this.options,this.task,...this.args):this.task(...this.args));if(q()){this.doDone(lt);await ae(this.options,lt);this._assertStatus("DONE");return this._resolve(Pt)}}catch(C){Ue=C;return this._onFailure(Ue,lt,q,re,ae)}}doExpire(C,q,re){var ae,Ue;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");Ue={args:this.args,options:this.options,retryCount:this.retryCount};ae=new kr(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(ae,Ue,C,q,re)}async _onFailure(C,q,re,ae,Ue){var lt,Pt;if(re()){lt=await this.Events.trigger("failed",C,q);if(lt!=null){Pt=~~lt;this.Events.trigger("retry",`Retrying ${this.options.id} after ${Pt} ms`,q);this.retryCount++;return ae(Pt)}else{this.doDone(q);await Ue(this.options,q);this._assertStatus("DONE");return this._reject(C)}}}doDone(C){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",C)}};var xr=Qr;var Mr,Ur,Nr;Nr=q;Mr=Br;Ur=class LocalDatastore{constructor(C,q,re){this.instance=C;this.storeOptions=q;this.clientId=this.instance._randomIndex();Nr.load(re,re,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 C;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(C=this.heartbeat=setInterval((()=>{var C,q,re,ae,Ue;ae=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&ae>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=ae;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&ae>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:C,reservoirIncreaseMaximum:re,reservoir:Ue}=this.storeOptions);this._lastReservoirIncrease=ae;q=re!=null?Math.min(C,re-Ue):C;if(q>0){this.storeOptions.reservoir+=q;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?C.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(C){await this.yieldLoop();return this.instance.Events.trigger("message",C.toString())}async __disconnect__(C){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(C=0){return new this.Promise((function(q,re){return setTimeout(q,C)}))}computePenalty(){var C;return(C=this.storeOptions.penalty)!=null?C:15*this.storeOptions.minTime||5e3}async __updateSettings__(C){await this.yieldLoop();Nr.overwrite(C,C,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__(C){await this.yieldLoop();return this._nextRequest+this.timeout=C}check(C,q){return this.conditionsCheck(C)&&this._nextRequest-q<=0}async __check__(C){var q;await this.yieldLoop();q=Date.now();return this.check(C,q)}async __register__(C,q,re){var ae,Ue;await this.yieldLoop();ae=Date.now();if(this.conditionsCheck(q)){this._running+=q;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=q}Ue=Math.max(this._nextRequest-ae,0);this._nextRequest=ae+Ue+this.storeOptions.minTime;return{success:true,wait:Ue,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(C,q){var re,ae,Ue;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&q>this.storeOptions.maxConcurrent){throw new Mr(`Impossible to add a job having a weight of ${q} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}ae=Date.now();Ue=this.storeOptions.highWater!=null&&C===this.storeOptions.highWater&&!this.check(q,ae);re=this.strategyIsBlock()&&(Ue||this.isBlocked(ae));if(re){this._unblockTime=ae+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:Ue,blocked:re,strategy:this.storeOptions.strategy}}async __free__(C,q){await this.yieldLoop();this._running-=q;this._done+=q;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var Lr=Ur;var jr,Gr;jr=Br;Gr=class States{constructor(C){this.status=C;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(C){var q,re;q=this._jobs[C];re=q+1;if(q!=null&&re{C[this.status[re]]=q;return C}),{})}};var Vr=Gr;var Hr,Wr;Hr=ae;Wr=class Sync{constructor(C,q){this.schedule=this.schedule.bind(this);this.name=C;this.Promise=q;this._running=0;this._queue=new Hr}isEmpty(){return this._queue.length===0}async _tryToRun(){var C,q,re,ae,Ue,lt,Pt;if(this._running<1&&this._queue.length>0){this._running++;({task:Pt,args:C,resolve:Ue,reject:ae}=this._queue.shift());q=await async function(){try{lt=await Pt(...C);return function(){return Ue(lt)}}catch(C){re=C;return function(){return ae(re)}}}();this._running--;this._tryToRun();return q()}}schedule(C,...q){var re,ae,Ue;Ue=ae=null;re=new this.Promise((function(C,q){Ue=C;return ae=q}));this._queue.push({task:C,args:q,resolve:Ue,reject:ae});this._tryToRun();return re}};var $r=Wr;var Kr="2.19.5";var zr={version:Kr};var Jr=Object.freeze({version:Kr,default:zr});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 Yr,Xr,Zr,en,tn,rn;rn=q;Yr=lt;en=require$$2;Zr=require$$3;tn=require$$4;Xr=function(){class Group{constructor(C={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=C;rn.load(this.limiterOptions,this.defaults,this);this.Events=new Yr(this);this.instances={};this.Bottleneck=In;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new en(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new Zr(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(C=""){var q;return(q=this.instances[C])!=null?q:(()=>{var q;q=this.instances[C]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${C}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",q,C);return q})()}async deleteKey(C=""){var q,re;re=this.instances[C];if(this.connection){q=await this.connection.__runCommand__(["del",...tn.allKeys(`${this.id}-${C}`)])}if(re!=null){delete this.instances[C];await re.disconnect()}return re!=null||q>0}limiters(){var C,q,re,ae;q=this.instances;re=[];for(C in q){ae=q[C];re.push({key:C,limiter:ae})}return re}keys(){return Object.keys(this.instances)}async clusterKeys(){var C,q,re,ae,Ue,lt,Pt,Wt,Ar;if(this.connection==null){return this.Promise.resolve(this.keys())}lt=[];C=null;Ar=`b_${this.id}-`.length;q="_settings".length;while(C!==0){[Wt,re]=await this.connection.__runCommand__(["scan",C!=null?C:0,"match",`b_${this.id}-*_settings`,"count",1e4]);C=~~Wt;for(ae=0,Pt=re.length;ae{var C,q,re,ae,Ue,lt;Ue=Date.now();re=this.instances;ae=[];for(q in re){lt=re[q];try{if(await lt._store.__groupCheck__(Ue)){ae.push(this.deleteKey(q))}else{ae.push(void 0)}}catch(q){C=q;ae.push(lt.Events.trigger("error",C))}}return ae}),this.timeout/2)).unref==="function"?C.unref():void 0}updateSettings(C={}){rn.overwrite(C,this.defaults,this);rn.overwrite(C,C,this.limiterOptions);if(C.timeout!=null){return this._startAutoCleanup()}}disconnect(C=true){var q;if(!this.sharedConnection){return(q=this.connection)!=null?q.disconnect(C):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(C);var nn=Xr;var sn,an,cn;cn=q;an=lt;sn=function(){class Batcher{constructor(C={}){this.options=C;cn.load(this.options,this.defaults,this);this.Events=new an(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((C,q)=>this._resolve=C))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(C){var q;this._arr.push(C);q=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 q}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(C);var ln=sn;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var un=getCjsExportFromNamespace(Jr);var dn,pn,fn,hn,gn,An,mn,_n,yn,bn,En,vn=[].splice;An=10;pn=5;En=q;mn=Er;hn=xr;gn=Lr;_n=require$$4$1;fn=lt;yn=Vr;bn=$r;dn=function(){class Bottleneck{constructor(C={},...q){var re,ae;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(C,q);En.load(C,this.instanceDefaults,this);this._queues=new mn(An);this._scheduled={};this._states=new yn(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new fn(this);this._submitLock=new bn("submit",this.Promise);this._registerLock=new bn("register",this.Promise);ae=En.load(C,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){re=En.load(C,this.redisStoreDefaults,{});return new _n(this,ae,re)}else if(this.datastore==="local"){re=En.load(C,this.localStoreDefaults,{});return new gn(this,ae,re)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var C;return(C=this._store.heartbeat)!=null?typeof C.ref==="function"?C.ref():void 0:void 0}));this._queues.on("zero",(()=>{var C;return(C=this._store.heartbeat)!=null?typeof C.unref==="function"?C.unref():void 0:void 0}))}_validateOptions(C,q){if(!(C!=null&&typeof C==="object"&&q.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(C){return this._store.__publish__(C)}disconnect(C=true){return this._store.__disconnect__(C)}chain(C){this._limiter=C;return this}queued(C){return this._queues.queued(C)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(C){return this._states.jobStatus(C)}jobs(C){return this._states.statusJobs(C)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(C=1){return this._store.__check__(C)}_clearGlobalState(C){if(this._scheduled[C]!=null){clearTimeout(this._scheduled[C].expiration);delete this._scheduled[C];return true}else{return false}}async _free(C,q,re,ae){var Ue,lt;try{({running:lt}=await this._store.__free__(C,re.weight));this.Events.trigger("debug",`Freed ${re.id}`,ae);if(lt===0&&this.empty()){return this.Events.trigger("idle")}}catch(C){Ue=C;return this.Events.trigger("error",Ue)}}_run(C,q,re){var ae,Ue,lt;q.doRun();ae=this._clearGlobalState.bind(this,C);lt=this._run.bind(this,C,q);Ue=this._free.bind(this,C,q);return this._scheduled[C]={timeout:setTimeout((()=>q.doExecute(this._limiter,ae,lt,Ue)),re),expiration:q.options.expiration!=null?setTimeout((function(){return q.doExpire(ae,lt,Ue)}),re+q.options.expiration):void 0,job:q}}_drainOne(C){return this._registerLock.schedule((()=>{var q,re,ae,Ue,lt;if(this.queued()===0){return this.Promise.resolve(null)}lt=this._queues.getFirst();({options:Ue,args:q}=ae=lt.first());if(C!=null&&Ue.weight>C){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${Ue.id}`,{args:q,options:Ue});re=this._randomIndex();return this._store.__register__(re,Ue.weight,Ue.expiration).then((({success:C,wait:Pt,reservoir:Wt})=>{var Ar;this.Events.trigger("debug",`Drained ${Ue.id}`,{success:C,args:q,options:Ue});if(C){lt.shift();Ar=this.empty();if(Ar){this.Events.trigger("empty")}if(Wt===0){this.Events.trigger("depleted",Ar)}this._run(re,ae,Pt);return this.Promise.resolve(Ue.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(C,q=0){return this._drainOne(C).then((re=>{var ae;if(re!=null){ae=C!=null?C-re:C;return this._drainAll(ae,q+re)}else{return this.Promise.resolve(q)}})).catch((C=>this.Events.trigger("error",C)))}_dropAllQueued(C){return this._queues.shiftAll((function(q){return q.doDrop({message:C})}))}stop(C={}){var q,re;C=En.load(C,this.stopDefaults);re=C=>{var q;q=()=>{var q;q=this._states.counts;return q[0]+q[1]+q[2]+q[3]===C};return new this.Promise(((C,re)=>{if(q()){return C()}else{return this.on("done",(()=>{if(q()){this.removeAllListeners("done");return C()}}))}}))};q=C.dropWaitingJobs?(this._run=function(q,re){return re.doDrop({message:C.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var q,ae,Ue;ae=this._scheduled;for(q in ae){Ue=ae[q];if(this.jobStatus(Ue.job.options.id)==="RUNNING"){clearTimeout(Ue.timeout);clearTimeout(Ue.expiration);Ue.job.doDrop({message:C.dropErrorMessage})}}this._dropAllQueued(C.dropErrorMessage);return re(0)}))))):this.schedule({priority:An-1,weight:0},(()=>re(1)));this._receive=function(q){return q._reject(new Bottleneck.prototype.BottleneckError(C.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return q}async _addToQueue(C){var q,re,ae,Ue,lt,Pt,Wt;({args:q,options:Ue}=C);try{({reachedHWM:lt,blocked:re,strategy:Wt}=await this._store.__submit__(this.queued(),Ue.weight))}catch(re){ae=re;this.Events.trigger("debug",`Could not queue ${Ue.id}`,{args:q,options:Ue,error:ae});C.doDrop({error:ae});return false}if(re){C.doDrop();return true}else if(lt){Pt=Wt===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(Ue.priority):Wt===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(Ue.priority+1):Wt===Bottleneck.prototype.strategy.OVERFLOW?C:void 0;if(Pt!=null){Pt.doDrop()}if(Pt==null||Wt===Bottleneck.prototype.strategy.OVERFLOW){if(Pt==null){C.doDrop()}return lt}}C.doQueue(lt,re);this._queues.push(C);await this._drainAll();return lt}_receive(C){if(this._states.jobStatus(C.options.id)!=null){C._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${C.options.id})`));return false}else{C.doReceive();return this._submitLock.schedule(this._addToQueue,C)}}submit(...C){var q,re,ae,Ue,lt,Pt,Wt;if(typeof C[0]==="function"){lt=C,[re,...C]=lt,[q]=vn.call(C,-1);Ue=En.load({},this.jobDefaults)}else{Pt=C,[Ue,re,...C]=Pt,[q]=vn.call(C,-1);Ue=En.load(Ue,this.jobDefaults)}Wt=(...C)=>new this.Promise((function(q,ae){return re(...C,(function(...C){return(C[0]!=null?ae:q)(C)}))}));ae=new hn(Wt,C,Ue,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);ae.promise.then((function(C){return typeof q==="function"?q(...C):void 0})).catch((function(C){if(Array.isArray(C)){return typeof q==="function"?q(...C):void 0}else{return typeof q==="function"?q(C):void 0}}));return this._receive(ae)}schedule(...C){var q,re,ae;if(typeof C[0]==="function"){[ae,...C]=C;re={}}else{[re,ae,...C]=C}q=new hn(ae,C,re,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(q);return q.promise}wrap(C){var q,re;q=this.schedule.bind(this);re=function(...re){return q(C.bind(this),...re)};re.withOptions=function(re,...ae){return q(re,C,...ae)};return re}async updateSettings(C={}){await this._store.__updateSettings__(En.overwrite(C,this.storeDefaults));En.overwrite(C,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(C=0){return this._store.__incrementReservoir__(C)}}Bottleneck.default=Bottleneck;Bottleneck.Events=fn;Bottleneck.version=Bottleneck.prototype.version=un.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=Br;Bottleneck.Group=Bottleneck.prototype.Group=nn;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=ln;Bottleneck.prototype.jobDefaults={priority:pn,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(C);var In=dn;var wn=In;return wn}))},60798:C=>{const mask=(C,q,re,ae,Ue)=>{for(var lt=0;lt{const re=C.length;for(var ae=0;ae{try{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)(re.ab+"prebuilds/linux-x64/node.napi1.node")}catch(q){C.exports=re(60798)}},12856:(C,q,re)=>{var ae=re(60470);var Ue=re(53844);var lt=Ue(ae("String.prototype.indexOf"));C.exports=function callBoundIntrinsic(C,q){var re=ae(C,!!q);if(typeof re==="function"&<(C,".prototype.")>-1){return Ue(re)}return re}},53844:(C,q,re)=>{var ae=re(37564);var Ue=re(60470);var lt=re(49346);var Pt=re(73314);var Wt=Ue("%Function.prototype.apply%");var Ar=Ue("%Function.prototype.call%");var Er=Ue("%Reflect.apply%",true)||ae.call(Ar,Wt);var Ir=re(79094);var Br=Ue("%Math.max%");C.exports=function callBind(C){if(typeof C!=="function"){throw new Pt("a function is required")}var q=Er(ae,Ar,arguments);return lt(q,1+Br(0,C.length-(arguments.length-1)),true)};var kr=function applyBind(){return Er(ae,Wt,arguments)};if(Ir){Ir(C.exports,"apply",{value:kr})}else{C.exports.apply=kr}},67449:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.createCallbackData=void 0;var ae=re(33707);var Ue=re(79600);var lt=64;var createCallbackData=function(C,q,re){var Pt;if(C.length===0){throw new Error("Callback data ID cannot be empty.")}var Wt=(Pt=re===null||re===void 0?void 0:re.delimiter)!==null&&Pt!==void 0?Pt:":";var Ar=Object.keys(q).length;var Er=Object.keys(q).sort();return{pack:function(re){var Ue=Object.keys(re).length;if(Ue!==Ar){throw new Error("Callback data serialization error. Invalid number of callback data values (defined in schema ".concat(Ar,", received ").concat(Ue,")."))}var Pt=[C];for(var Er=0,Ir=Object.keys(re).sort();Erlt){throw new Error("Callback data serialization error. Size overflow (".concat(Qr.length," > ").concat(lt,")"))}return Qr},unpack:function(re){var Ue=re.split(Wt);var lt=new Map;var Pt=Ue.shift();if(Pt!==C){throw new Error('Callback data parsing error. Invalid callback data ID ("'.concat(Pt,'" does not match "').concat(C,'").'))}if(Ue.length!==Ar){throw new Error("Callback data parsing error. Invalid number of callback data values (defined in schema ".concat(Ar,", received ").concat(Ue.length,")."))}for(var Ir=0,Br=Er;Ir{var ae;ae={value:true};ae=void 0;var Ue=re(67449);ae={enumerable:true,get:function(){return Ue.createCallbackData}}},79600:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.VALUE_REGEX=void 0;q.VALUE_REGEX=/(.+)?/},33707:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.deserialize=q.serialize=void 0;var serialize=function(C,q){if(q===Boolean){if(C===true){return"1"}else{return"0"}}return C.toString()};q.serialize=serialize;var deserialize=function(C,q){if(q===Number){var re=parseFloat(C);if(isNaN(re)){throw new Error('Callback data parsing error. Invalid number value ("'.concat(C,'")'))}return re}if(q===Boolean){if(C==="1"){return true}else if(C==="0"){return false}else{throw new Error('Callback data parsing error. Invalid boolean value ("'.concat(C,'")'))}}return C};q.deserialize=deserialize},6110:(C,q,re)=>{q.formatArgs=formatArgs;q.save=save;q.load=load;q.useColors=useColors;q.storage=localstorage();q.destroy=(()=>{let C=false;return()=>{if(!C){C=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();q.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let C;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(C=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(C[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(q){q[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+q[0]+(this.useColors?"%c ":" ")+"+"+C.exports.humanize(this.diff);if(!this.useColors){return}const re="color: "+this.color;q.splice(1,0,re,"color: inherit");let ae=0;let Ue=0;q[0].replace(/%[a-zA-Z%]/g,(C=>{if(C==="%%"){return}ae++;if(C==="%c"){Ue=ae}}));q.splice(Ue,0,re)}q.log=console.debug||console.log||(()=>{});function save(C){try{if(C){q.storage.setItem("debug",C)}else{q.storage.removeItem("debug")}}catch(C){}}function load(){let C;try{C=q.storage.getItem("debug")}catch(C){}if(!C&&typeof process!=="undefined"&&"env"in process){C=process.env.DEBUG}return C}function localstorage(){try{return localStorage}catch(C){}}C.exports=re(40897)(q);const{formatters:ae}=C.exports;ae.j=function(C){try{return JSON.stringify(C)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}}},40897:(C,q,re)=>{function setup(C){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=re(70744);createDebug.destroy=destroy;Object.keys(C).forEach((q=>{createDebug[q]=C[q]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(C){let q=0;for(let re=0;re{if(q==="%%"){return"%"}lt++;const Ue=createDebug.formatters[ae];if(typeof Ue==="function"){const ae=C[lt];q=Ue.call(re,ae);C.splice(lt,1);lt--}return q}));createDebug.formatArgs.call(re,C);const Pt=re.log||createDebug.log;Pt.apply(re,C)}debug.namespace=C;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(C);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(re!==null){return re}if(ae!==createDebug.namespaces){ae=createDebug.namespaces;Ue=createDebug.enabled(C)}return Ue},set:C=>{re=C}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(C,q){const re=createDebug(this.namespace+(typeof q==="undefined"?":":q)+C);re.log=this.log;return re}function enable(C){createDebug.save(C);createDebug.namespaces=C;createDebug.names=[];createDebug.skips=[];let q;const re=(typeof C==="string"?C:"").split(/[\s,]+/);const ae=re.length;for(q=0;q"-"+C))].join(",");createDebug.enable("");return C}function enabled(C){if(C[C.length-1]==="*"){return true}let q;let re;for(q=0,re=createDebug.skips.length;q{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){C.exports=re(6110)}else{C.exports=re(95108)}},95108:(C,q,re)=>{const ae=re(52018);const Ue=re(39023);q.init=init;q.log=log;q.formatArgs=formatArgs;q.save=save;q.load=load;q.useColors=useColors;q.destroy=Ue.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");q.colors=[6,2,3,4,5,1];try{const C=re(21450);if(C&&(C.stderr||C).level>=2){q.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(C){}q.inspectOpts=Object.keys(process.env).filter((C=>/^debug_/i.test(C))).reduce(((C,q)=>{const re=q.substring(6).toLowerCase().replace(/_([a-z])/g,((C,q)=>q.toUpperCase()));let ae=process.env[q];if(/^(yes|on|true|enabled)$/i.test(ae)){ae=true}else if(/^(no|off|false|disabled)$/i.test(ae)){ae=false}else if(ae==="null"){ae=null}else{ae=Number(ae)}C[re]=ae;return C}),{});function useColors(){return"colors"in q.inspectOpts?Boolean(q.inspectOpts.colors):ae.isatty(process.stderr.fd)}function formatArgs(q){const{namespace:re,useColors:ae}=this;if(ae){const ae=this.color;const Ue="[3"+(ae<8?ae:"8;5;"+ae);const lt=` ${Ue};1m${re} `;q[0]=lt+q[0].split("\n").join("\n"+lt);q.push(Ue+"m+"+C.exports.humanize(this.diff)+"")}else{q[0]=getDate()+re+" "+q[0]}}function getDate(){if(q.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...C){return process.stderr.write(Ue.formatWithOptions(q.inspectOpts,...C)+"\n")}function save(C){if(C){process.env.DEBUG=C}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(C){C.inspectOpts={};const re=Object.keys(q.inspectOpts);for(let ae=0;aeC.trim())).join(" ")};lt.O=function(C){this.inspectOpts.colors=this.useColors;return Ue.inspect(C,this.inspectOpts)}},31316:(C,q,re)=>{var ae=re(79094);var Ue=re(80105);var lt=re(73314);var Pt=re(33170);C.exports=function defineDataProperty(C,q,re){if(!C||typeof C!=="object"&&typeof C!=="function"){throw new lt("`obj` must be an object or a function`")}if(typeof q!=="string"&&typeof q!=="symbol"){throw new lt("`property` must be a string or a symbol`")}if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null){throw new lt("`nonEnumerable`, if provided, must be a boolean or null")}if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null){throw new lt("`nonWritable`, if provided, must be a boolean or null")}if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null){throw new lt("`nonConfigurable`, if provided, must be a boolean or null")}if(arguments.length>6&&typeof arguments[6]!=="boolean"){throw new lt("`loose`, if provided, must be a boolean")}var Wt=arguments.length>3?arguments[3]:null;var Ar=arguments.length>4?arguments[4]:null;var Er=arguments.length>5?arguments[5]:null;var Ir=arguments.length>6?arguments[6]:false;var Br=!!Pt&&Pt(C,q);if(ae){ae(C,q,{configurable:Er===null&&Br?Br.configurable:!Er,enumerable:Wt===null&&Br?Br.enumerable:!Wt,value:re,writable:Ar===null&&Br?Br.writable:!Ar})}else if(Ir||!Wt&&!Ar&&!Er){C[q]=re}else{throw new Ue("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}},14150:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});class Deprecation extends Error{constructor(C){super(C);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}q.Deprecation=Deprecation},75803:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.attributeNames=q.elementNames=void 0;q.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]);q.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},69943:function(C,q,re){var ae=this&&this.__assign||function(){ae=Object.assign||function(C){for(var q,re=1,ae=arguments.length;re0){Ue+=render(C.children,q)}if(q.xmlMode||!Br.has(C.name)){Ue+=""}}return Ue}function renderDirective(C){return"<"+C.data+">"}function renderText(C,q){var re=C.data||"";if(q.decodeEntities!==false&&!(!q.xmlMode&&C.parent&&Ir.has(C.parent.name))){re=Ar.encodeXML(re)}return re}function renderCdata(C){return""}function renderComment(C){return"\x3c!--"+C.data+"--\x3e"}},81108:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Doctype=q.CDATA=q.Tag=q.Style=q.Script=q.Comment=q.Directive=q.Text=q.Root=q.isTag=q.ElementType=void 0;var re;(function(C){C["Root"]="root";C["Text"]="text";C["Directive"]="directive";C["Comment"]="comment";C["Script"]="script";C["Style"]="style";C["Tag"]="tag";C["CDATA"]="cdata";C["Doctype"]="doctype"})(re=q.ElementType||(q.ElementType={}));function isTag(C){return C.type===re.Tag||C.type===re.Script||C.type===re.Style}q.isTag=isTag;q.Root=re.Root;q.Text=re.Text;q.Directive=re.Directive;q.Comment=re.Comment;q.Script=re.Script;q.Style=re.Style;q.Tag=re.Tag;q.CDATA=re.CDATA;q.Doctype=re.Doctype},57792:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});q.DomHandler=void 0;var lt=re(81108);var Pt=re(62446);Ue(re(62446),q);var Wt=/\s+/g;var Ar={normalizeWhitespace:false,withStartIndices:false,withEndIndices:false,xmlMode:false};var Er=function(){function DomHandler(C,q,re){this.dom=[];this.root=new Pt.Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null;if(typeof q==="function"){re=q;q=Ar}if(typeof C==="object"){q=C;C=undefined}this.callback=C!==null&&C!==void 0?C:null;this.options=q!==null&&q!==void 0?q:Ar;this.elementCB=re!==null&&re!==void 0?re:null}DomHandler.prototype.onparserinit=function(C){this.parser=C};DomHandler.prototype.onreset=function(){this.dom=[];this.root=new Pt.Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null};DomHandler.prototype.onend=function(){if(this.done)return;this.done=true;this.parser=null;this.handleCallback(null)};DomHandler.prototype.onerror=function(C){this.handleCallback(C)};DomHandler.prototype.onclosetag=function(){this.lastNode=null;var C=this.tagStack.pop();if(this.options.withEndIndices){C.endIndex=this.parser.endIndex}if(this.elementCB)this.elementCB(C)};DomHandler.prototype.onopentag=function(C,q){var re=this.options.xmlMode?lt.ElementType.Tag:undefined;var ae=new Pt.Element(C,q,undefined,re);this.addNode(ae);this.tagStack.push(ae)};DomHandler.prototype.ontext=function(C){var q=this.options.normalizeWhitespace;var re=this.lastNode;if(re&&re.type===lt.ElementType.Text){if(q){re.data=(re.data+C).replace(Wt," ")}else{re.data+=C}if(this.options.withEndIndices){re.endIndex=this.parser.endIndex}}else{if(q){C=C.replace(Wt," ")}var ae=new Pt.Text(C);this.addNode(ae);this.lastNode=ae}};DomHandler.prototype.oncomment=function(C){if(this.lastNode&&this.lastNode.type===lt.ElementType.Comment){this.lastNode.data+=C;return}var q=new Pt.Comment(C);this.addNode(q);this.lastNode=q};DomHandler.prototype.oncommentend=function(){this.lastNode=null};DomHandler.prototype.oncdatastart=function(){var C=new Pt.Text("");var q=new Pt.NodeWithChildren(lt.ElementType.CDATA,[C]);this.addNode(q);C.parent=q;this.lastNode=C};DomHandler.prototype.oncdataend=function(){this.lastNode=null};DomHandler.prototype.onprocessinginstruction=function(C,q){var re=new Pt.ProcessingInstruction(C,q);this.addNode(re)};DomHandler.prototype.handleCallback=function(C){if(typeof this.callback==="function"){this.callback(C,this.dom)}else if(C){throw C}};DomHandler.prototype.addNode=function(C){var q=this.tagStack[this.tagStack.length-1];var re=q.children[q.children.length-1];if(this.options.withStartIndices){C.startIndex=this.parser.startIndex}if(this.options.withEndIndices){C.endIndex=this.parser.endIndex}q.children.push(C);if(re){C.prev=re;re.next=C}C.parent=q;this.lastNode=null};return DomHandler}();q.DomHandler=Er;q["default"]=Er},62446:function(C,q,re){var ae=this&&this.__extends||function(){var extendStatics=function(C,q){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,q){C.__proto__=q}||function(C,q){for(var re in q)if(Object.prototype.hasOwnProperty.call(q,re))C[re]=q[re]};return extendStatics(C,q)};return function(C,q){if(typeof q!=="function"&&q!==null)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");extendStatics(C,q);function __(){this.constructor=C}C.prototype=q===null?Object.create(q):(__.prototype=q.prototype,new __)}}();var Ue=this&&this.__assign||function(){Ue=Object.assign||function(C){for(var q,re=1,ae=arguments.length;re0?this.children[this.children.length-1]:null},enumerable:false,configurable:true});Object.defineProperty(NodeWithChildren.prototype,"childNodes",{get:function(){return this.children},set:function(C){this.children=C},enumerable:false,configurable:true});return NodeWithChildren}(Wt);q.NodeWithChildren=kr;var Pr=function(C){ae(Document,C);function Document(q){return C.call(this,lt.ElementType.Root,q)||this}return Document}(kr);q.Document=Pr;var Qr=function(C){ae(Element,C);function Element(q,re,ae,Ue){if(ae===void 0){ae=[]}if(Ue===void 0){Ue=q==="script"?lt.ElementType.Script:q==="style"?lt.ElementType.Style:lt.ElementType.Tag}var Pt=C.call(this,Ue,ae)||this;Pt.name=q;Pt.attribs=re;return Pt}Object.defineProperty(Element.prototype,"tagName",{get:function(){return this.name},set:function(C){this.name=C},enumerable:false,configurable:true});Object.defineProperty(Element.prototype,"attributes",{get:function(){var C=this;return Object.keys(this.attribs).map((function(q){var re,ae;return{name:q,value:C.attribs[q],namespace:(re=C["x-attribsNamespace"])===null||re===void 0?void 0:re[q],prefix:(ae=C["x-attribsPrefix"])===null||ae===void 0?void 0:ae[q]}}))},enumerable:false,configurable:true});return Element}(kr);q.Element=Qr;function isTag(C){return(0,lt.isTag)(C)}q.isTag=isTag;function isCDATA(C){return C.type===lt.ElementType.CDATA}q.isCDATA=isCDATA;function isText(C){return C.type===lt.ElementType.Text}q.isText=isText;function isComment(C){return C.type===lt.ElementType.Comment}q.isComment=isComment;function isDirective(C){return C.type===lt.ElementType.Directive}q.isDirective=isDirective;function isDocument(C){return C.type===lt.ElementType.Root}q.isDocument=isDocument;function hasChildren(C){return Object.prototype.hasOwnProperty.call(C,"children")}q.hasChildren=hasChildren;function cloneNode(C,q){if(q===void 0){q=false}var re;if(isText(C)){re=new Er(C.data)}else if(isComment(C)){re=new Ir(C.data)}else if(isTag(C)){var ae=q?cloneChildren(C.children):[];var Pt=new Qr(C.name,Ue({},C.attribs),ae);ae.forEach((function(C){return C.parent=Pt}));if(C.namespace!=null){Pt.namespace=C.namespace}if(C["x-attribsNamespace"]){Pt["x-attribsNamespace"]=Ue({},C["x-attribsNamespace"])}if(C["x-attribsPrefix"]){Pt["x-attribsPrefix"]=Ue({},C["x-attribsPrefix"])}re=Pt}else if(isCDATA(C)){var ae=q?cloneChildren(C.children):[];var Wt=new kr(lt.ElementType.CDATA,ae);ae.forEach((function(C){return C.parent=Wt}));re=Wt}else if(isDocument(C)){var ae=q?cloneChildren(C.children):[];var Ar=new Pr(ae);ae.forEach((function(C){return C.parent=Ar}));if(C["x-mode"]){Ar["x-mode"]=C["x-mode"]}re=Ar}else if(isDirective(C)){var Fr=new Br(C.name,C.data);if(C["x-name"]!=null){Fr["x-name"]=C["x-name"];Fr["x-publicId"]=C["x-publicId"];Fr["x-systemId"]=C["x-systemId"]}re=Fr}else{throw new Error("Not implemented yet: ".concat(C.type))}re.startIndex=C.startIndex;re.endIndex=C.endIndex;if(C.sourceCodeLocation!=null){re.sourceCodeLocation=C.sourceCodeLocation}return re}q.cloneNode=cloneNode;function cloneChildren(C){var q=C.map((function(C){return cloneNode(C,true)}));for(var re=1;re{Object.defineProperty(q,"__esModule",{value:true});q.getFeed=void 0;var ae=re(87252);var Ue=re(2262);function getFeed(C){var q=getOneElement(isValidFeed,C);return!q?null:q.name==="feed"?getAtomFeed(q):getRssFeed(q)}q.getFeed=getFeed;function getAtomFeed(C){var q;var re=C.children;var ae={type:"atom",items:(0,Ue.getElementsByTagName)("entry",re).map((function(C){var q;var re=C.children;var ae={media:getMediaElements(re)};addConditionally(ae,"id","id",re);addConditionally(ae,"title","title",re);var Ue=(q=getOneElement("link",re))===null||q===void 0?void 0:q.attribs.href;if(Ue){ae.link=Ue}var lt=fetch("summary",re)||fetch("content",re);if(lt){ae.description=lt}var Pt=fetch("updated",re);if(Pt){ae.pubDate=new Date(Pt)}return ae}))};addConditionally(ae,"id","id",re);addConditionally(ae,"title","title",re);var lt=(q=getOneElement("link",re))===null||q===void 0?void 0:q.attribs.href;if(lt){ae.link=lt}addConditionally(ae,"description","subtitle",re);var Pt=fetch("updated",re);if(Pt){ae.updated=new Date(Pt)}addConditionally(ae,"author","email",re,true);return ae}function getRssFeed(C){var q,re;var ae=(re=(q=getOneElement("channel",C.children))===null||q===void 0?void 0:q.children)!==null&&re!==void 0?re:[];var lt={type:C.name.substr(0,3),id:"",items:(0,Ue.getElementsByTagName)("item",C.children).map((function(C){var q=C.children;var re={media:getMediaElements(q)};addConditionally(re,"id","guid",q);addConditionally(re,"title","title",q);addConditionally(re,"link","link",q);addConditionally(re,"description","description",q);var ae=fetch("pubDate",q);if(ae)re.pubDate=new Date(ae);return re}))};addConditionally(lt,"title","title",ae);addConditionally(lt,"link","link",ae);addConditionally(lt,"description","description",ae);var Pt=fetch("lastBuildDate",ae);if(Pt){lt.updated=new Date(Pt)}addConditionally(lt,"author","managingEditor",ae,true);return lt}var lt=["url","type","lang"];var Pt=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(C){return(0,Ue.getElementsByTagName)("media:content",C).map((function(C){var q=C.attribs;var re={medium:q.medium,isDefault:!!q.isDefault};for(var ae=0,Ue=lt;ae{Object.defineProperty(q,"__esModule",{value:true});q.uniqueSort=q.compareDocumentPosition=q.removeSubsets=void 0;var ae=re(57792);function removeSubsets(C){var q=C.length;while(--q>=0){var re=C[q];if(q>0&&C.lastIndexOf(re,q-1)>=0){C.splice(q,1);continue}for(var ae=re.parent;ae;ae=ae.parent){if(C.includes(ae)){C.splice(q,1);break}}}return C}q.removeSubsets=removeSubsets;function compareDocumentPosition(C,q){var re=[];var Ue=[];if(C===q){return 0}var lt=(0,ae.hasChildren)(C)?C:C.parent;while(lt){re.unshift(lt);lt=lt.parent}lt=(0,ae.hasChildren)(q)?q:q.parent;while(lt){Ue.unshift(lt);lt=lt.parent}var Pt=Math.min(re.length,Ue.length);var Wt=0;while(WtEr.indexOf(Br)){if(Ar===q){return 4|16}return 4}if(Ar===C){return 2|8}return 2}q.compareDocumentPosition=compareDocumentPosition;function uniqueSort(C){C=C.filter((function(C,q,re){return!re.includes(C,q+1)}));C.sort((function(C,q){var re=compareDocumentPosition(C,q);if(re&2){return-1}else if(re&4){return 1}return 0}));return C}q.uniqueSort=uniqueSort},92357:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});q.hasChildren=q.isDocument=q.isComment=q.isText=q.isCDATA=q.isTag=void 0;Ue(re(87252),q);Ue(re(29667),q);Ue(re(84456),q);Ue(re(57433),q);Ue(re(2262),q);Ue(re(57776),q);Ue(re(52260),q);var lt=re(57792);Object.defineProperty(q,"isTag",{enumerable:true,get:function(){return lt.isTag}});Object.defineProperty(q,"isCDATA",{enumerable:true,get:function(){return lt.isCDATA}});Object.defineProperty(q,"isText",{enumerable:true,get:function(){return lt.isText}});Object.defineProperty(q,"isComment",{enumerable:true,get:function(){return lt.isComment}});Object.defineProperty(q,"isDocument",{enumerable:true,get:function(){return lt.isDocument}});Object.defineProperty(q,"hasChildren",{enumerable:true,get:function(){return lt.hasChildren}})},2262:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.getElementsByTagType=q.getElementsByTagName=q.getElementById=q.getElements=q.testElement=void 0;var ae=re(57792);var Ue=re(57433);var lt={tag_name:function(C){if(typeof C==="function"){return function(q){return(0,ae.isTag)(q)&&C(q.name)}}else if(C==="*"){return ae.isTag}return function(q){return(0,ae.isTag)(q)&&q.name===C}},tag_type:function(C){if(typeof C==="function"){return function(q){return C(q.type)}}return function(q){return q.type===C}},tag_contains:function(C){if(typeof C==="function"){return function(q){return(0,ae.isText)(q)&&C(q.data)}}return function(q){return(0,ae.isText)(q)&&q.data===C}}};function getAttribCheck(C,q){if(typeof q==="function"){return function(re){return(0,ae.isTag)(re)&&q(re.attribs[C])}}return function(re){return(0,ae.isTag)(re)&&re.attribs[C]===q}}function combineFuncs(C,q){return function(re){return C(re)||q(re)}}function compileTest(C){var q=Object.keys(C).map((function(q){var re=C[q];return Object.prototype.hasOwnProperty.call(lt,q)?lt[q](re):getAttribCheck(q,re)}));return q.length===0?null:q.reduce(combineFuncs)}function testElement(C,q){var re=compileTest(C);return re?re(q):true}q.testElement=testElement;function getElements(C,q,re,ae){if(ae===void 0){ae=Infinity}var lt=compileTest(C);return lt?(0,Ue.filter)(lt,q,re,ae):[]}q.getElements=getElements;function getElementById(C,q,re){if(re===void 0){re=true}if(!Array.isArray(q))q=[q];return(0,Ue.findOne)(getAttribCheck("id",C),q,re)}q.getElementById=getElementById;function getElementsByTagName(C,q,re,ae){if(re===void 0){re=true}if(ae===void 0){ae=Infinity}return(0,Ue.filter)(lt.tag_name(C),q,re,ae)}q.getElementsByTagName=getElementsByTagName;function getElementsByTagType(C,q,re,ae){if(re===void 0){re=true}if(ae===void 0){ae=Infinity}return(0,Ue.filter)(lt.tag_type(C),q,re,ae)}q.getElementsByTagType=getElementsByTagType},84456:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.prepend=q.prependChild=q.append=q.appendChild=q.replaceElement=q.removeElement=void 0;function removeElement(C){if(C.prev)C.prev.next=C.next;if(C.next)C.next.prev=C.prev;if(C.parent){var q=C.parent.children;q.splice(q.lastIndexOf(C),1)}}q.removeElement=removeElement;function replaceElement(C,q){var re=q.prev=C.prev;if(re){re.next=q}var ae=q.next=C.next;if(ae){ae.prev=q}var Ue=q.parent=C.parent;if(Ue){var lt=Ue.children;lt[lt.lastIndexOf(C)]=q}}q.replaceElement=replaceElement;function appendChild(C,q){removeElement(q);q.next=null;q.parent=C;if(C.children.push(q)>1){var re=C.children[C.children.length-2];re.next=q;q.prev=re}else{q.prev=null}}q.appendChild=appendChild;function append(C,q){removeElement(q);var re=C.parent;var ae=C.next;q.next=ae;q.prev=C;C.next=q;q.parent=re;if(ae){ae.prev=q;if(re){var Ue=re.children;Ue.splice(Ue.lastIndexOf(ae),0,q)}}else if(re){re.children.push(q)}}q.append=append;function prependChild(C,q){removeElement(q);q.parent=C;q.prev=null;if(C.children.unshift(q)!==1){var re=C.children[1];re.prev=q;q.next=re}else{q.next=null}}q.prependChild=prependChild;function prepend(C,q){removeElement(q);var re=C.parent;if(re){var ae=re.children;ae.splice(ae.indexOf(C),0,q)}if(C.prev){C.prev.next=q}q.parent=re;q.prev=C.prev;q.next=C;C.prev=q}q.prepend=prepend},57433:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.findAll=q.existsOne=q.findOne=q.findOneChild=q.find=q.filter=void 0;var ae=re(57792);function filter(C,q,re,ae){if(re===void 0){re=true}if(ae===void 0){ae=Infinity}if(!Array.isArray(q))q=[q];return find(C,q,re,ae)}q.filter=filter;function find(C,q,re,Ue){var lt=[];for(var Pt=0,Wt=q;Pt0){var Er=find(C,Ar.children,re,Ue);lt.push.apply(lt,Er);Ue-=Er.length;if(Ue<=0)break}}return lt}q.find=find;function findOneChild(C,q){return q.find(C)}q.findOneChild=findOneChild;function findOne(C,q,re){if(re===void 0){re=true}var Ue=null;for(var lt=0;lt0){Ue=findOne(C,Pt.children)}}return Ue}q.findOne=findOne;function existsOne(C,q){return q.some((function(q){return(0,ae.isTag)(q)&&(C(q)||q.children.length>0&&existsOne(C,q.children))}))}q.existsOne=existsOne;function findAll(C,q){var re;var Ue=[];var lt=q.filter(ae.isTag);var Pt;while(Pt=lt.shift()){var Wt=(re=Pt.children)===null||re===void 0?void 0:re.filter(ae.isTag);if(Wt&&Wt.length>0){lt.unshift.apply(lt,Wt)}if(C(Pt))Ue.push(Pt)}return Ue}q.findAll=findAll},87252:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.innerText=q.textContent=q.getText=q.getInnerHTML=q.getOuterHTML=void 0;var Ue=re(57792);var lt=ae(re(69943));var Pt=re(81108);function getOuterHTML(C,q){return(0,lt.default)(C,q)}q.getOuterHTML=getOuterHTML;function getInnerHTML(C,q){return(0,Ue.hasChildren)(C)?C.children.map((function(C){return getOuterHTML(C,q)})).join(""):""}q.getInnerHTML=getInnerHTML;function getText(C){if(Array.isArray(C))return C.map(getText).join("");if((0,Ue.isTag)(C))return C.name==="br"?"\n":getText(C.children);if((0,Ue.isCDATA)(C))return getText(C.children);if((0,Ue.isText)(C))return C.data;return""}q.getText=getText;function textContent(C){if(Array.isArray(C))return C.map(textContent).join("");if((0,Ue.hasChildren)(C)&&!(0,Ue.isComment)(C)){return textContent(C.children)}if((0,Ue.isText)(C))return C.data;return""}q.textContent=textContent;function innerText(C){if(Array.isArray(C))return C.map(innerText).join("");if((0,Ue.hasChildren)(C)&&(C.type===Pt.ElementType.Tag||(0,Ue.isCDATA)(C))){return innerText(C.children)}if((0,Ue.isText)(C))return C.data;return""}q.innerText=innerText},29667:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.prevElementSibling=q.nextElementSibling=q.getName=q.hasAttrib=q.getAttributeValue=q.getSiblings=q.getParent=q.getChildren=void 0;var ae=re(57792);var Ue=[];function getChildren(C){var q;return(q=C.children)!==null&&q!==void 0?q:Ue}q.getChildren=getChildren;function getParent(C){return C.parent||null}q.getParent=getParent;function getSiblings(C){var q,re;var ae=getParent(C);if(ae!=null)return getChildren(ae);var Ue=[C];var lt=C.prev,Pt=C.next;while(lt!=null){Ue.unshift(lt);q=lt,lt=q.prev}while(Pt!=null){Ue.push(Pt);re=Pt,Pt=re.next}return Ue}q.getSiblings=getSiblings;function getAttributeValue(C,q){var re;return(re=C.attribs)===null||re===void 0?void 0:re[q]}q.getAttributeValue=getAttributeValue;function hasAttrib(C,q){return C.attribs!=null&&Object.prototype.hasOwnProperty.call(C.attribs,q)&&C.attribs[q]!=null}q.hasAttrib=hasAttrib;function getName(C){return C.name}q.getName=getName;function nextElementSibling(C){var q;var re=C.next;while(re!==null&&!(0,ae.isTag)(re))q=re,re=q.next;return re}q.nextElementSibling=nextElementSibling;function prevElementSibling(C){var q;var re=C.prev;while(re!==null&&!(0,ae.isTag)(re))q=re,re=q.prev;return re}q.prevElementSibling=prevElementSibling},52874:(C,q,re)=>{(function(){re(18889).config(Object.assign({},re(39990),re(4531)(process.argv)))})()},4531:C=>{const q=/^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/;C.exports=function optionMatcher(C){return C.reduce((function(C,re){const ae=re.match(q);if(ae){C[ae[1]]=ae[2]}return C}),{})}},39990:C=>{const q={};if(process.env.DOTENV_CONFIG_ENCODING!=null){q.encoding=process.env.DOTENV_CONFIG_ENCODING}if(process.env.DOTENV_CONFIG_PATH!=null){q.path=process.env.DOTENV_CONFIG_PATH}if(process.env.DOTENV_CONFIG_DEBUG!=null){q.debug=process.env.DOTENV_CONFIG_DEBUG}if(process.env.DOTENV_CONFIG_OVERRIDE!=null){q.override=process.env.DOTENV_CONFIG_OVERRIDE}if(process.env.DOTENV_CONFIG_DOTENV_KEY!=null){q.DOTENV_KEY=process.env.DOTENV_CONFIG_DOTENV_KEY}C.exports=q},18889:(C,q,re)=>{const ae=re(79896);const Ue=re(16928);const lt=re(70857);const Pt=re(76982);const Wt=re(80056);const Ar=Wt.version;const Er=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(C){const q={};let re=C.toString();re=re.replace(/\r\n?/gm,"\n");let ae;while((ae=Er.exec(re))!=null){const C=ae[1];let re=ae[2]||"";re=re.trim();const Ue=re[0];re=re.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(Ue==='"'){re=re.replace(/\\n/g,"\n");re=re.replace(/\\r/g,"\r")}q[C]=re}return q}function _parseVault(C){const q=_vaultPath(C);const re=Ir.configDotenv({path:q});if(!re.parsed){const C=new Error(`MISSING_DATA: Cannot parse ${q} for an unknown reason`);C.code="MISSING_DATA";throw C}const ae=_dotenvKey(C).split(",");const Ue=ae.length;let lt;for(let C=0;C=Ue){throw q}}}return Ir.parse(lt)}function _log(C){console.log(`[dotenv@${Ar}][INFO] ${C}`)}function _warn(C){console.log(`[dotenv@${Ar}][WARN] ${C}`)}function _debug(C){console.log(`[dotenv@${Ar}][DEBUG] ${C}`)}function _dotenvKey(C){if(C&&C.DOTENV_KEY&&C.DOTENV_KEY.length>0){return C.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(C,q){let re;try{re=new URL(q)}catch(C){if(C.code==="ERR_INVALID_URL"){const C=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");C.code="INVALID_DOTENV_KEY";throw C}throw C}const ae=re.password;if(!ae){const C=new Error("INVALID_DOTENV_KEY: Missing key part");C.code="INVALID_DOTENV_KEY";throw C}const Ue=re.searchParams.get("environment");if(!Ue){const C=new Error("INVALID_DOTENV_KEY: Missing environment part");C.code="INVALID_DOTENV_KEY";throw C}const lt=`DOTENV_VAULT_${Ue.toUpperCase()}`;const Pt=C.parsed[lt];if(!Pt){const C=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${lt} in your .env.vault file.`);C.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw C}return{ciphertext:Pt,key:ae}}function _vaultPath(C){let q=null;if(C&&C.path&&C.path.length>0){if(Array.isArray(C.path)){for(const re of C.path){if(ae.existsSync(re)){q=re.endsWith(".vault")?re:`${re}.vault`}}}else{q=C.path.endsWith(".vault")?C.path:`${C.path}.vault`}}else{q=Ue.resolve(process.cwd(),".env.vault")}if(ae.existsSync(q)){return q}return null}function _resolveHome(C){return C[0]==="~"?Ue.join(lt.homedir(),C.slice(1)):C}function _configVault(C){_log("Loading env from encrypted .env.vault");const q=Ir._parseVault(C);let re=process.env;if(C&&C.processEnv!=null){re=C.processEnv}Ir.populate(re,q,C);return{parsed:q}}function configDotenv(C){const q=Ue.resolve(process.cwd(),".env");let re="utf8";const lt=Boolean(C&&C.debug);if(C&&C.encoding){re=C.encoding}else{if(lt){_debug("No encoding is specified. UTF-8 is used by default")}}let Pt=[q];if(C&&C.path){if(!Array.isArray(C.path)){Pt=[_resolveHome(C.path)]}else{Pt=[];for(const q of C.path){Pt.push(_resolveHome(q))}}}let Wt;const Ar={};for(const q of Pt){try{const Ue=Ir.parse(ae.readFileSync(q,{encoding:re}));Ir.populate(Ar,Ue,C)}catch(C){if(lt){_debug(`Failed to load ${q} ${C.message}`)}Wt=C}}let Er=process.env;if(C&&C.processEnv!=null){Er=C.processEnv}Ir.populate(Er,Ar,C);if(Wt){return{parsed:Ar,error:Wt}}else{return{parsed:Ar}}}function config(C){if(_dotenvKey(C).length===0){return Ir.configDotenv(C)}const q=_vaultPath(C);if(!q){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${q}. Did you forget to build it?`);return Ir.configDotenv(C)}return Ir._configVault(C)}function decrypt(C,q){const re=Buffer.from(q.slice(-64),"hex");let ae=Buffer.from(C,"base64");const Ue=ae.subarray(0,12);const lt=ae.subarray(-16);ae=ae.subarray(12,-16);try{const C=Pt.createDecipheriv("aes-256-gcm",re,Ue);C.setAuthTag(lt);return`${C.update(ae)}${C.final()}`}catch(C){const q=C instanceof RangeError;const re=C.message==="Invalid key length";const ae=C.message==="Unsupported state or unable to authenticate data";if(q||re){const C=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");C.code="INVALID_DOTENV_KEY";throw C}else if(ae){const C=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");C.code="DECRYPTION_FAILED";throw C}else{throw C}}}function populate(C,q,re={}){const ae=Boolean(re&&re.debug);const Ue=Boolean(re&&re.override);if(typeof q!=="object"){const C=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");C.code="OBJECT_REQUIRED";throw C}for(const re of Object.keys(q)){if(Object.prototype.hasOwnProperty.call(C,re)){if(Ue===true){C[re]=q[re]}if(ae){if(Ue===true){_debug(`"${re}" is already defined and WAS overwritten`)}else{_debug(`"${re}" is already defined and was NOT overwritten`)}}}else{C[re]=q[re]}}}const Ir={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};C.exports.configDotenv=Ir.configDotenv;C.exports._configVault=Ir._configVault;C.exports._parseVault=Ir._parseVault;C.exports.config=Ir.config;C.exports.decrypt=Ir.decrypt;C.exports.parse=Ir.parse;C.exports.populate=Ir.populate;C.exports=Ir},31469:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.decodeHTML=q.decodeHTMLStrict=q.decodeXML=void 0;var Ue=ae(re(94374));var lt=ae(re(51554));var Pt=ae(re(57178));var Wt=ae(re(74487));var Ar=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;q.decodeXML=getStrictDecoder(Pt.default);q.decodeHTMLStrict=getStrictDecoder(Ue.default);function getStrictDecoder(C){var q=getReplacer(C);return function(C){return String(C).replace(Ar,q)}}var sorter=function(C,q){return C65535){C-=65536;q+=String.fromCharCode(C>>>10&1023|55296);C=56320|C&1023}q+=String.fromCharCode(C);return q};function decodeCodePoint(C){if(C>=55296&&C<=57343||C>1114111){return"�"}if(C in Ue.default){C=Ue.default[C]}return lt(C)}q["default"]=decodeCodePoint},86549:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.escapeUTF8=q.escape=q.encodeNonAsciiHTML=q.encodeHTML=q.encodeXML=void 0;var Ue=ae(re(57178));var lt=getInverseObj(Ue.default);var Pt=getInverseReplacer(lt);q.encodeXML=getASCIIEncoder(lt);var Wt=ae(re(94374));var Ar=getInverseObj(Wt.default);var Er=getInverseReplacer(Ar);q.encodeHTML=getInverse(Ar,Er);q.encodeNonAsciiHTML=getASCIIEncoder(Ar);function getInverseObj(C){return Object.keys(C).sort().reduce((function(q,re){q[C[re]]="&"+re+";";return q}),{})}function getInverseReplacer(C){var q=[];var re=[];for(var ae=0,Ue=Object.keys(C);ae1?Br(C):C.charCodeAt(0)).toString(16).toUpperCase()+";"}function getInverse(C,q){return function(re){return re.replace(q,(function(q){return C[q]})).replace(Ir,singleCharReplacer)}}var kr=new RegExp(Pt.source+"|"+Ir.source,"g");function escape(C){return C.replace(kr,singleCharReplacer)}q.escape=escape;function escapeUTF8(C){return C.replace(Pt,singleCharReplacer)}q.escapeUTF8=escapeUTF8;function getASCIIEncoder(C){return function(q){return q.replace(kr,(function(q){return C[q]||singleCharReplacer(q)}))}}},8467:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.decodeXMLStrict=q.decodeHTML5Strict=q.decodeHTML4Strict=q.decodeHTML5=q.decodeHTML4=q.decodeHTMLStrict=q.decodeHTML=q.decodeXML=q.encodeHTML5=q.encodeHTML4=q.escapeUTF8=q.escape=q.encodeNonAsciiHTML=q.encodeHTML=q.encodeXML=q.encode=q.decodeStrict=q.decode=void 0;var ae=re(31469);var Ue=re(86549);function decode(C,q){return(!q||q<=0?ae.decodeXML:ae.decodeHTML)(C)}q.decode=decode;function decodeStrict(C,q){return(!q||q<=0?ae.decodeXML:ae.decodeHTMLStrict)(C)}q.decodeStrict=decodeStrict;function encode(C,q){return(!q||q<=0?Ue.encodeXML:Ue.encodeHTML)(C)}q.encode=encode;var lt=re(86549);Object.defineProperty(q,"encodeXML",{enumerable:true,get:function(){return lt.encodeXML}});Object.defineProperty(q,"encodeHTML",{enumerable:true,get:function(){return lt.encodeHTML}});Object.defineProperty(q,"encodeNonAsciiHTML",{enumerable:true,get:function(){return lt.encodeNonAsciiHTML}});Object.defineProperty(q,"escape",{enumerable:true,get:function(){return lt.escape}});Object.defineProperty(q,"escapeUTF8",{enumerable:true,get:function(){return lt.escapeUTF8}});Object.defineProperty(q,"encodeHTML4",{enumerable:true,get:function(){return lt.encodeHTML}});Object.defineProperty(q,"encodeHTML5",{enumerable:true,get:function(){return lt.encodeHTML}});var Pt=re(31469);Object.defineProperty(q,"decodeXML",{enumerable:true,get:function(){return Pt.decodeXML}});Object.defineProperty(q,"decodeHTML",{enumerable:true,get:function(){return Pt.decodeHTML}});Object.defineProperty(q,"decodeHTMLStrict",{enumerable:true,get:function(){return Pt.decodeHTMLStrict}});Object.defineProperty(q,"decodeHTML4",{enumerable:true,get:function(){return Pt.decodeHTML}});Object.defineProperty(q,"decodeHTML5",{enumerable:true,get:function(){return Pt.decodeHTML}});Object.defineProperty(q,"decodeHTML4Strict",{enumerable:true,get:function(){return Pt.decodeHTMLStrict}});Object.defineProperty(q,"decodeHTML5Strict",{enumerable:true,get:function(){return Pt.decodeHTMLStrict}});Object.defineProperty(q,"decodeXMLStrict",{enumerable:true,get:function(){return Pt.decodeXML}})},79094:(C,q,re)=>{var ae=re(60470);var Ue=ae("%Object.defineProperty%",true)||false;if(Ue){try{Ue({},"a",{value:1})}catch(C){Ue=false}}C.exports=Ue},33056:C=>{C.exports=EvalError},31620:C=>{C.exports=Error},14585:C=>{C.exports=RangeError},46905:C=>{C.exports=ReferenceError},80105:C=>{C.exports=SyntaxError},73314:C=>{C.exports=TypeError},32578:C=>{C.exports=URIError},16577:(C,q)=>{ +import{createRequire as __WEBPACK_EXTERNAL_createRequire}from"module";var __webpack_modules__={44914:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.issue=q.issueCommand=void 0;const Pt=lt(re(70857));const Wt=re(30302);function issueCommand(C,q,re){const ae=new Command(C,q,re);process.stdout.write(ae.toString()+Pt.EOL)}q.issueCommand=issueCommand;function issue(C,q=""){issueCommand(C,{},q)}q.issue=issue;const Ar="::";class Command{constructor(C,q,re){if(!C){C="missing.command"}this.command=C;this.properties=q;this.message=re}toString(){let C=Ar+this.command;if(this.properties&&Object.keys(this.properties).length>0){C+=" ";let q=true;for(const re in this.properties){if(this.properties.hasOwnProperty(re)){const ae=this.properties[re];if(ae){if(q){q=false}else{C+=","}C+=`${re}=${escapeProperty(ae)}`}}}}C+=`${Ar}${escapeData(this.message)}`;return C}}function escapeData(C){return Wt.toCommandValue(C).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(C){return Wt.toCommandValue(C).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},37484:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getIDToken=q.getState=q.saveState=q.group=q.endGroup=q.startGroup=q.info=q.notice=q.warning=q.error=q.debug=q.isDebug=q.setFailed=q.setCommandEcho=q.setOutput=q.getBooleanInput=q.getMultilineInput=q.getInput=q.addPath=q.setSecret=q.exportVariable=q.ExitCode=void 0;const Wt=re(44914);const Ar=re(24753);const Er=re(30302);const Ir=lt(re(70857));const Br=lt(re(16928));const kr=re(35306);var Pr;(function(C){C[C["Success"]=0]="Success";C[C["Failure"]=1]="Failure"})(Pr=q.ExitCode||(q.ExitCode={}));function exportVariable(C,q){const re=Er.toCommandValue(q);process.env[C]=re;const ae=process.env["GITHUB_ENV"]||"";if(ae){return Ar.issueFileCommand("ENV",Ar.prepareKeyValueMessage(C,q))}Wt.issueCommand("set-env",{name:C},re)}q.exportVariable=exportVariable;function setSecret(C){Wt.issueCommand("add-mask",{},C)}q.setSecret=setSecret;function addPath(C){const q=process.env["GITHUB_PATH"]||"";if(q){Ar.issueFileCommand("PATH",C)}else{Wt.issueCommand("add-path",{},C)}process.env["PATH"]=`${C}${Br.delimiter}${process.env["PATH"]}`}q.addPath=addPath;function getInput(C,q){const re=process.env[`INPUT_${C.replace(/ /g,"_").toUpperCase()}`]||"";if(q&&q.required&&!re){throw new Error(`Input required and not supplied: ${C}`)}if(q&&q.trimWhitespace===false){return re}return re.trim()}q.getInput=getInput;function getMultilineInput(C,q){const re=getInput(C,q).split("\n").filter((C=>C!==""));if(q&&q.trimWhitespace===false){return re}return re.map((C=>C.trim()))}q.getMultilineInput=getMultilineInput;function getBooleanInput(C,q){const re=["true","True","TRUE"];const ae=["false","False","FALSE"];const Ue=getInput(C,q);if(re.includes(Ue))return true;if(ae.includes(Ue))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${C}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}q.getBooleanInput=getBooleanInput;function setOutput(C,q){const re=process.env["GITHUB_OUTPUT"]||"";if(re){return Ar.issueFileCommand("OUTPUT",Ar.prepareKeyValueMessage(C,q))}process.stdout.write(Ir.EOL);Wt.issueCommand("set-output",{name:C},Er.toCommandValue(q))}q.setOutput=setOutput;function setCommandEcho(C){Wt.issue("echo",C?"on":"off")}q.setCommandEcho=setCommandEcho;function setFailed(C){process.exitCode=Pr.Failure;error(C)}q.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}q.isDebug=isDebug;function debug(C){Wt.issueCommand("debug",{},C)}q.debug=debug;function error(C,q={}){Wt.issueCommand("error",Er.toCommandProperties(q),C instanceof Error?C.toString():C)}q.error=error;function warning(C,q={}){Wt.issueCommand("warning",Er.toCommandProperties(q),C instanceof Error?C.toString():C)}q.warning=warning;function notice(C,q={}){Wt.issueCommand("notice",Er.toCommandProperties(q),C instanceof Error?C.toString():C)}q.notice=notice;function info(C){process.stdout.write(C+Ir.EOL)}q.info=info;function startGroup(C){Wt.issue("group",C)}q.startGroup=startGroup;function endGroup(){Wt.issue("endgroup")}q.endGroup=endGroup;function group(C,q){return Pt(this,void 0,void 0,(function*(){startGroup(C);let re;try{re=yield q()}finally{endGroup()}return re}))}q.group=group;function saveState(C,q){const re=process.env["GITHUB_STATE"]||"";if(re){return Ar.issueFileCommand("STATE",Ar.prepareKeyValueMessage(C,q))}Wt.issueCommand("save-state",{name:C},Er.toCommandValue(q))}q.saveState=saveState;function getState(C){return process.env[`STATE_${C}`]||""}q.getState=getState;function getIDToken(C){return Pt(this,void 0,void 0,(function*(){return yield kr.OidcClient.getIDToken(C)}))}q.getIDToken=getIDToken;var Qr=re(71847);Object.defineProperty(q,"summary",{enumerable:true,get:function(){return Qr.summary}});var Fr=re(71847);Object.defineProperty(q,"markdownSummary",{enumerable:true,get:function(){return Fr.markdownSummary}});var Dr=re(31976);Object.defineProperty(q,"toPosixPath",{enumerable:true,get:function(){return Dr.toPosixPath}});Object.defineProperty(q,"toWin32Path",{enumerable:true,get:function(){return Dr.toWin32Path}});Object.defineProperty(q,"toPlatformPath",{enumerable:true,get:function(){return Dr.toPlatformPath}})},24753:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.prepareKeyValueMessage=q.issueFileCommand=void 0;const Pt=lt(re(79896));const Wt=lt(re(70857));const Ar=re(12048);const Er=re(30302);function issueFileCommand(C,q){const re=process.env[`GITHUB_${C}`];if(!re){throw new Error(`Unable to find environment variable for file command ${C}`)}if(!Pt.existsSync(re)){throw new Error(`Missing file at path: ${re}`)}Pt.appendFileSync(re,`${Er.toCommandValue(q)}${Wt.EOL}`,{encoding:"utf8"})}q.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(C,q){const re=`ghadelimiter_${Ar.v4()}`;const ae=Er.toCommandValue(q);if(C.includes(re)){throw new Error(`Unexpected input: name should not contain the delimiter "${re}"`)}if(ae.includes(re)){throw new Error(`Unexpected input: value should not contain the delimiter "${re}"`)}return`${C}<<${re}${Wt.EOL}${ae}${Wt.EOL}${re}`}q.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.OidcClient=void 0;const Ue=re(54844);const lt=re(44552);const Pt=re(37484);class OidcClient{static createHttpClient(C=true,q=10){const re={allowRetries:C,maxRetries:q};return new Ue.HttpClient("actions/oidc-client",[new lt.BearerCredentialHandler(OidcClient.getRequestToken())],re)}static getRequestToken(){const C=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!C){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return C}static getIDTokenUrl(){const C=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!C){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return C}static getCall(C){var q;return ae(this,void 0,void 0,(function*(){const re=OidcClient.createHttpClient();const ae=yield re.getJson(C).catch((C=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${C.statusCode}\n \n Error Message: ${C.message}`)}));const Ue=(q=ae.result)===null||q===void 0?void 0:q.value;if(!Ue){throw new Error("Response json body do not have ID Token field")}return Ue}))}static getIDToken(C){return ae(this,void 0,void 0,(function*(){try{let q=OidcClient.getIDTokenUrl();if(C){const re=encodeURIComponent(C);q=`${q}&audience=${re}`}Pt.debug(`ID token url is ${q}`);const re=yield OidcClient.getCall(q);Pt.setSecret(re);return re}catch(C){throw new Error(`Error message: ${C.message}`)}}))}}q.OidcClient=OidcClient},31976:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.toPlatformPath=q.toWin32Path=q.toPosixPath=void 0;const Pt=lt(re(16928));function toPosixPath(C){return C.replace(/[\\]/g,"/")}q.toPosixPath=toPosixPath;function toWin32Path(C){return C.replace(/[/]/g,"\\")}q.toWin32Path=toWin32Path;function toPlatformPath(C){return C.replace(/[/\\]/g,Pt.sep)}q.toPlatformPath=toPlatformPath},71847:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.summary=q.markdownSummary=q.SUMMARY_DOCS_URL=q.SUMMARY_ENV_VAR=void 0;const Ue=re(70857);const lt=re(79896);const{access:Pt,appendFile:Wt,writeFile:Ar}=lt.promises;q.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";q.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 ae(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const C=process.env[q.SUMMARY_ENV_VAR];if(!C){throw new Error(`Unable to find environment variable for $${q.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield Pt(C,lt.constants.R_OK|lt.constants.W_OK)}catch(q){throw new Error(`Unable to access summary file: '${C}'. Check if the file has correct read/write permissions.`)}this._filePath=C;return this._filePath}))}wrap(C,q,re={}){const ae=Object.entries(re).map((([C,q])=>` ${C}="${q}"`)).join("");if(!q){return`<${C}${ae}>`}return`<${C}${ae}>${q}`}write(C){return ae(this,void 0,void 0,(function*(){const q=!!(C===null||C===void 0?void 0:C.overwrite);const re=yield this.filePath();const ae=q?Ar:Wt;yield ae(re,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return ae(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(C,q=false){this._buffer+=C;return q?this.addEOL():this}addEOL(){return this.addRaw(Ue.EOL)}addCodeBlock(C,q){const re=Object.assign({},q&&{lang:q});const ae=this.wrap("pre",this.wrap("code",C),re);return this.addRaw(ae).addEOL()}addList(C,q=false){const re=q?"ol":"ul";const ae=C.map((C=>this.wrap("li",C))).join("");const Ue=this.wrap(re,ae);return this.addRaw(Ue).addEOL()}addTable(C){const q=C.map((C=>{const q=C.map((C=>{if(typeof C==="string"){return this.wrap("td",C)}const{header:q,data:re,colspan:ae,rowspan:Ue}=C;const lt=q?"th":"td";const Pt=Object.assign(Object.assign({},ae&&{colspan:ae}),Ue&&{rowspan:Ue});return this.wrap(lt,re,Pt)})).join("");return this.wrap("tr",q)})).join("");const re=this.wrap("table",q);return this.addRaw(re).addEOL()}addDetails(C,q){const re=this.wrap("details",this.wrap("summary",C)+q);return this.addRaw(re).addEOL()}addImage(C,q,re){const{width:ae,height:Ue}=re||{};const lt=Object.assign(Object.assign({},ae&&{width:ae}),Ue&&{height:Ue});const Pt=this.wrap("img",null,Object.assign({src:C,alt:q},lt));return this.addRaw(Pt).addEOL()}addHeading(C,q){const re=`h${q}`;const ae=["h1","h2","h3","h4","h5","h6"].includes(re)?re:"h1";const Ue=this.wrap(ae,C);return this.addRaw(Ue).addEOL()}addSeparator(){const C=this.wrap("hr",null);return this.addRaw(C).addEOL()}addBreak(){const C=this.wrap("br",null);return this.addRaw(C).addEOL()}addQuote(C,q){const re=Object.assign({},q&&{cite:q});const ae=this.wrap("blockquote",C,re);return this.addRaw(ae).addEOL()}addLink(C,q){const re=this.wrap("a",C,{href:q});return this.addRaw(re).addEOL()}}const Er=new Summary;q.markdownSummary=Er;q.summary=Er},30302:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.toCommandProperties=q.toCommandValue=void 0;function toCommandValue(C){if(C===null||C===undefined){return""}else if(typeof C==="string"||C instanceof String){return C}return JSON.stringify(C)}q.toCommandValue=toCommandValue;function toCommandProperties(C){if(!Object.keys(C).length){return{}}return{title:C.title,file:C.file,line:C.startLine,endLine:C.endLine,col:C.startColumn,endColumn:C.endColumn}}q.toCommandProperties=toCommandProperties},51648:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Context=void 0;const ae=re(79896);const Ue=re(70857);class Context{constructor(){var C,q,re;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,ae.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,ae.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const C=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${C} does not exist${Ue.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=(C=process.env.GITHUB_API_URL)!==null&&C!==void 0?C:`https://api.github.com`;this.serverUrl=(q=process.env.GITHUB_SERVER_URL)!==null&&q!==void 0?q:`https://github.com`;this.graphqlUrl=(re=process.env.GITHUB_GRAPHQL_URL)!==null&&re!==void 0?re:`https://api.github.com/graphql`}get issue(){const C=this.payload;return Object.assign(Object.assign({},this.repo),{number:(C.issue||C.pull_request||C).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[C,q]=process.env.GITHUB_REPOSITORY.split("/");return{owner:C,repo:q}}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'")}}q.Context=Context},93228:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.getOctokit=q.context=void 0;const Pt=lt(re(51648));const Wt=re(38006);q.context=new Pt.Context;function getOctokit(C,q,...re){const ae=Wt.GitHub.plugin(...re);return new ae((0,Wt.getOctokitOptions)(C,q))}q.getOctokit=getOctokit},65156:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getApiBaseUrl=q.getProxyFetch=q.getProxyAgentDispatcher=q.getProxyAgent=q.getAuthString=void 0;const Wt=lt(re(54844));const Ar=re(46752);function getAuthString(C,q){if(!C&&!q.auth){throw new Error("Parameter token or opts.auth is required")}else if(C&&q.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof q.auth==="string"?q.auth:`token ${C}`}q.getAuthString=getAuthString;function getProxyAgent(C){const q=new Wt.HttpClient;return q.getAgent(C)}q.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(C){const q=new Wt.HttpClient;return q.getAgentDispatcher(C)}q.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(C){const q=getProxyAgentDispatcher(C);const proxyFetch=(C,re)=>Pt(this,void 0,void 0,(function*(){return(0,Ar.fetch)(C,Object.assign(Object.assign({},re),{dispatcher:q}))}));return proxyFetch}q.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}q.getApiBaseUrl=getApiBaseUrl},38006:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.getOctokitOptions=q.GitHub=q.defaults=q.context=void 0;const Pt=lt(re(51648));const Wt=lt(re(65156));const Ar=re(61897);const Er=re(84935);const Ir=re(38082);q.context=new Pt.Context;const Br=Wt.getApiBaseUrl();q.defaults={baseUrl:Br,request:{agent:Wt.getProxyAgent(Br),fetch:Wt.getProxyFetch(Br)}};q.GitHub=Ar.Octokit.plugin(Er.restEndpointMethods,Ir.paginateRest).defaults(q.defaults);function getOctokitOptions(C,q){const re=Object.assign({},q||{});const ae=Wt.getAuthString(C,re);if(ae){re.auth=ae}return re}q.getOctokitOptions=getOctokitOptions},44552:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.PersonalAccessTokenCredentialHandler=q.BearerCredentialHandler=q.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(C,q){this.username=C;this.password=q}prepareRequest(C){if(!C.headers){throw Error("The request has no headers")}C.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return re(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}q.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(C){this.token=C}prepareRequest(C){if(!C.headers){throw Error("The request has no headers")}C.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return re(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}q.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(C){this.token=C}prepareRequest(C){if(!C.headers){throw Error("The request has no headers")}C.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return re(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}q.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.HttpClient=q.isHttps=q.HttpClientResponse=q.HttpClientError=q.getProxyUrl=q.MediaTypes=q.Headers=q.HttpCodes=void 0;const Wt=lt(re(58611));const Ar=lt(re(65692));const Er=lt(re(54988));const Ir=lt(re(20770));const Br=re(46752);var kr;(function(C){C[C["OK"]=200]="OK";C[C["MultipleChoices"]=300]="MultipleChoices";C[C["MovedPermanently"]=301]="MovedPermanently";C[C["ResourceMoved"]=302]="ResourceMoved";C[C["SeeOther"]=303]="SeeOther";C[C["NotModified"]=304]="NotModified";C[C["UseProxy"]=305]="UseProxy";C[C["SwitchProxy"]=306]="SwitchProxy";C[C["TemporaryRedirect"]=307]="TemporaryRedirect";C[C["PermanentRedirect"]=308]="PermanentRedirect";C[C["BadRequest"]=400]="BadRequest";C[C["Unauthorized"]=401]="Unauthorized";C[C["PaymentRequired"]=402]="PaymentRequired";C[C["Forbidden"]=403]="Forbidden";C[C["NotFound"]=404]="NotFound";C[C["MethodNotAllowed"]=405]="MethodNotAllowed";C[C["NotAcceptable"]=406]="NotAcceptable";C[C["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";C[C["RequestTimeout"]=408]="RequestTimeout";C[C["Conflict"]=409]="Conflict";C[C["Gone"]=410]="Gone";C[C["TooManyRequests"]=429]="TooManyRequests";C[C["InternalServerError"]=500]="InternalServerError";C[C["NotImplemented"]=501]="NotImplemented";C[C["BadGateway"]=502]="BadGateway";C[C["ServiceUnavailable"]=503]="ServiceUnavailable";C[C["GatewayTimeout"]=504]="GatewayTimeout"})(kr||(q.HttpCodes=kr={}));var Pr;(function(C){C["Accept"]="accept";C["ContentType"]="content-type"})(Pr||(q.Headers=Pr={}));var Qr;(function(C){C["ApplicationJson"]="application/json"})(Qr||(q.MediaTypes=Qr={}));function getProxyUrl(C){const q=Er.getProxyUrl(new URL(C));return q?q.href:""}q.getProxyUrl=getProxyUrl;const Fr=[kr.MovedPermanently,kr.ResourceMoved,kr.SeeOther,kr.TemporaryRedirect,kr.PermanentRedirect];const Dr=[kr.BadGateway,kr.ServiceUnavailable,kr.GatewayTimeout];const xr=["OPTIONS","GET","DELETE","HEAD"];const Mr=10;const Ur=5;class HttpClientError extends Error{constructor(C,q){super(C);this.name="HttpClientError";this.statusCode=q;Object.setPrototypeOf(this,HttpClientError.prototype)}}q.HttpClientError=HttpClientError;class HttpClientResponse{constructor(C){this.message=C}readBody(){return Pt(this,void 0,void 0,(function*(){return new Promise((C=>Pt(this,void 0,void 0,(function*(){let q=Buffer.alloc(0);this.message.on("data",(C=>{q=Buffer.concat([q,C])}));this.message.on("end",(()=>{C(q.toString())}))}))))}))}readBodyBuffer(){return Pt(this,void 0,void 0,(function*(){return new Promise((C=>Pt(this,void 0,void 0,(function*(){const q=[];this.message.on("data",(C=>{q.push(C)}));this.message.on("end",(()=>{C(Buffer.concat(q))}))}))))}))}}q.HttpClientResponse=HttpClientResponse;function isHttps(C){const q=new URL(C);return q.protocol==="https:"}q.isHttps=isHttps;class HttpClient{constructor(C,q,re){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=C;this.handlers=q||[];this.requestOptions=re;if(re){if(re.ignoreSslError!=null){this._ignoreSslError=re.ignoreSslError}this._socketTimeout=re.socketTimeout;if(re.allowRedirects!=null){this._allowRedirects=re.allowRedirects}if(re.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=re.allowRedirectDowngrade}if(re.maxRedirects!=null){this._maxRedirects=Math.max(re.maxRedirects,0)}if(re.keepAlive!=null){this._keepAlive=re.keepAlive}if(re.allowRetries!=null){this._allowRetries=re.allowRetries}if(re.maxRetries!=null){this._maxRetries=re.maxRetries}}}options(C,q){return Pt(this,void 0,void 0,(function*(){return this.request("OPTIONS",C,null,q||{})}))}get(C,q){return Pt(this,void 0,void 0,(function*(){return this.request("GET",C,null,q||{})}))}del(C,q){return Pt(this,void 0,void 0,(function*(){return this.request("DELETE",C,null,q||{})}))}post(C,q,re){return Pt(this,void 0,void 0,(function*(){return this.request("POST",C,q,re||{})}))}patch(C,q,re){return Pt(this,void 0,void 0,(function*(){return this.request("PATCH",C,q,re||{})}))}put(C,q,re){return Pt(this,void 0,void 0,(function*(){return this.request("PUT",C,q,re||{})}))}head(C,q){return Pt(this,void 0,void 0,(function*(){return this.request("HEAD",C,null,q||{})}))}sendStream(C,q,re,ae){return Pt(this,void 0,void 0,(function*(){return this.request(C,q,re,ae)}))}getJson(C,q={}){return Pt(this,void 0,void 0,(function*(){q[Pr.Accept]=this._getExistingOrDefaultHeader(q,Pr.Accept,Qr.ApplicationJson);const re=yield this.get(C,q);return this._processResponse(re,this.requestOptions)}))}postJson(C,q,re={}){return Pt(this,void 0,void 0,(function*(){const ae=JSON.stringify(q,null,2);re[Pr.Accept]=this._getExistingOrDefaultHeader(re,Pr.Accept,Qr.ApplicationJson);re[Pr.ContentType]=this._getExistingOrDefaultHeader(re,Pr.ContentType,Qr.ApplicationJson);const Ue=yield this.post(C,ae,re);return this._processResponse(Ue,this.requestOptions)}))}putJson(C,q,re={}){return Pt(this,void 0,void 0,(function*(){const ae=JSON.stringify(q,null,2);re[Pr.Accept]=this._getExistingOrDefaultHeader(re,Pr.Accept,Qr.ApplicationJson);re[Pr.ContentType]=this._getExistingOrDefaultHeader(re,Pr.ContentType,Qr.ApplicationJson);const Ue=yield this.put(C,ae,re);return this._processResponse(Ue,this.requestOptions)}))}patchJson(C,q,re={}){return Pt(this,void 0,void 0,(function*(){const ae=JSON.stringify(q,null,2);re[Pr.Accept]=this._getExistingOrDefaultHeader(re,Pr.Accept,Qr.ApplicationJson);re[Pr.ContentType]=this._getExistingOrDefaultHeader(re,Pr.ContentType,Qr.ApplicationJson);const Ue=yield this.patch(C,ae,re);return this._processResponse(Ue,this.requestOptions)}))}request(C,q,re,ae){return Pt(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const Ue=new URL(q);let lt=this._prepareRequest(C,Ue,ae);const Pt=this._allowRetries&&xr.includes(C)?this._maxRetries+1:1;let Wt=0;let Ar;do{Ar=yield this.requestRaw(lt,re);if(Ar&&Ar.message&&Ar.message.statusCode===kr.Unauthorized){let C;for(const q of this.handlers){if(q.canHandleAuthentication(Ar)){C=q;break}}if(C){return C.handleAuthentication(this,lt,re)}else{return Ar}}let q=this._maxRedirects;while(Ar.message.statusCode&&Fr.includes(Ar.message.statusCode)&&this._allowRedirects&&q>0){const Pt=Ar.message.headers["location"];if(!Pt){break}const Wt=new URL(Pt);if(Ue.protocol==="https:"&&Ue.protocol!==Wt.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 Ar.readBody();if(Wt.hostname!==Ue.hostname){for(const C in ae){if(C.toLowerCase()==="authorization"){delete ae[C]}}}lt=this._prepareRequest(C,Wt,ae);Ar=yield this.requestRaw(lt,re);q--}if(!Ar.message.statusCode||!Dr.includes(Ar.message.statusCode)){return Ar}Wt+=1;if(Wt{function callbackForResult(C,q){if(C){ae(C)}else if(!q){ae(new Error("Unknown error"))}else{re(q)}}this.requestRawWithCallback(C,q,callbackForResult)}))}))}requestRawWithCallback(C,q,re){if(typeof q==="string"){if(!C.options.headers){C.options.headers={}}C.options.headers["Content-Length"]=Buffer.byteLength(q,"utf8")}let ae=false;function handleResult(C,q){if(!ae){ae=true;re(C,q)}}const Ue=C.httpModule.request(C.options,(C=>{const q=new HttpClientResponse(C);handleResult(undefined,q)}));let lt;Ue.on("socket",(C=>{lt=C}));Ue.setTimeout(this._socketTimeout||3*6e4,(()=>{if(lt){lt.end()}handleResult(new Error(`Request timeout: ${C.options.path}`))}));Ue.on("error",(function(C){handleResult(C)}));if(q&&typeof q==="string"){Ue.write(q,"utf8")}if(q&&typeof q!=="string"){q.on("close",(function(){Ue.end()}));q.pipe(Ue)}else{Ue.end()}}getAgent(C){const q=new URL(C);return this._getAgent(q)}getAgentDispatcher(C){const q=new URL(C);const re=Er.getProxyUrl(q);const ae=re&&re.hostname;if(!ae){return}return this._getProxyAgentDispatcher(q,re)}_prepareRequest(C,q,re){const ae={};ae.parsedUrl=q;const Ue=ae.parsedUrl.protocol==="https:";ae.httpModule=Ue?Ar:Wt;const lt=Ue?443:80;ae.options={};ae.options.host=ae.parsedUrl.hostname;ae.options.port=ae.parsedUrl.port?parseInt(ae.parsedUrl.port):lt;ae.options.path=(ae.parsedUrl.pathname||"")+(ae.parsedUrl.search||"");ae.options.method=C;ae.options.headers=this._mergeHeaders(re);if(this.userAgent!=null){ae.options.headers["user-agent"]=this.userAgent}ae.options.agent=this._getAgent(ae.parsedUrl);if(this.handlers){for(const C of this.handlers){C.prepareRequest(ae.options)}}return ae}_mergeHeaders(C){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(C||{}))}return lowercaseKeys(C||{})}_getExistingOrDefaultHeader(C,q,re){let ae;if(this.requestOptions&&this.requestOptions.headers){ae=lowercaseKeys(this.requestOptions.headers)[q]}return C[q]||ae||re}_getAgent(C){let q;const re=Er.getProxyUrl(C);const ae=re&&re.hostname;if(this._keepAlive&&ae){q=this._proxyAgent}if(!ae){q=this._agent}if(q){return q}const Ue=C.protocol==="https:";let lt=100;if(this.requestOptions){lt=this.requestOptions.maxSockets||Wt.globalAgent.maxSockets}if(re&&re.hostname){const C={maxSockets:lt,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(re.username||re.password)&&{proxyAuth:`${re.username}:${re.password}`}),{host:re.hostname,port:re.port})};let ae;const Pt=re.protocol==="https:";if(Ue){ae=Pt?Ir.httpsOverHttps:Ir.httpsOverHttp}else{ae=Pt?Ir.httpOverHttps:Ir.httpOverHttp}q=ae(C);this._proxyAgent=q}if(!q){const C={keepAlive:this._keepAlive,maxSockets:lt};q=Ue?new Ar.Agent(C):new Wt.Agent(C);this._agent=q}if(Ue&&this._ignoreSslError){q.options=Object.assign(q.options||{},{rejectUnauthorized:false})}return q}_getProxyAgentDispatcher(C,q){let re;if(this._keepAlive){re=this._proxyAgentDispatcher}if(re){return re}const ae=C.protocol==="https:";re=new Br.ProxyAgent(Object.assign({uri:q.href,pipelining:!this._keepAlive?0:1},(q.username||q.password)&&{token:`Basic ${Buffer.from(`${q.username}:${q.password}`).toString("base64")}`}));this._proxyAgentDispatcher=re;if(ae&&this._ignoreSslError){re.options=Object.assign(re.options.requestTls||{},{rejectUnauthorized:false})}return re}_performExponentialBackoff(C){return Pt(this,void 0,void 0,(function*(){C=Math.min(Mr,C);const q=Ur*Math.pow(2,C);return new Promise((C=>setTimeout((()=>C()),q)))}))}_processResponse(C,q){return Pt(this,void 0,void 0,(function*(){return new Promise(((re,ae)=>Pt(this,void 0,void 0,(function*(){const Ue=C.message.statusCode||0;const lt={statusCode:Ue,result:null,headers:{}};if(Ue===kr.NotFound){re(lt)}function dateTimeDeserializer(C,q){if(typeof q==="string"){const C=new Date(q);if(!isNaN(C.valueOf())){return C}}return q}let Pt;let Wt;try{Wt=yield C.readBody();if(Wt&&Wt.length>0){if(q&&q.deserializeDates){Pt=JSON.parse(Wt,dateTimeDeserializer)}else{Pt=JSON.parse(Wt)}lt.result=Pt}lt.headers=C.message.headers}catch(C){}if(Ue>299){let C;if(Pt&&Pt.message){C=Pt.message}else if(Wt&&Wt.length>0){C=Wt}else{C=`Failed request: (${Ue})`}const q=new HttpClientError(C,Ue);q.result=lt.result;ae(q)}else{re(lt)}}))))}))}}q.HttpClient=HttpClient;const lowercaseKeys=C=>Object.keys(C).reduce(((q,re)=>(q[re.toLowerCase()]=C[re],q)),{})},54988:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.checkBypass=q.getProxyUrl=void 0;function getProxyUrl(C){const q=C.protocol==="https:";if(checkBypass(C)){return undefined}const re=(()=>{if(q){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(re){try{return new DecodedURL(re)}catch(C){if(!re.startsWith("http://")&&!re.startsWith("https://"))return new DecodedURL(`http://${re}`)}}else{return undefined}}q.getProxyUrl=getProxyUrl;function checkBypass(C){if(!C.hostname){return false}const q=C.hostname;if(isLoopbackAddress(q)){return true}const re=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!re){return false}let ae;if(C.port){ae=Number(C.port)}else if(C.protocol==="http:"){ae=80}else if(C.protocol==="https:"){ae=443}const Ue=[C.hostname.toUpperCase()];if(typeof ae==="number"){Ue.push(`${Ue[0]}:${ae}`)}for(const C of re.split(",").map((C=>C.trim().toUpperCase())).filter((C=>C))){if(C==="*"||Ue.some((q=>q===C||q.endsWith(`.${C}`)||C.startsWith(".")&&q.endsWith(`${C}`)))){return true}}return false}q.checkBypass=checkBypass;function isLoopbackAddress(C){const q=C.toLowerCase();return q==="localhost"||q.startsWith("127.")||q.startsWith("[::1]")||q.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(C,q){super(C,q);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},51835:(C,q)=>{Object.defineProperty(q,"__esModule",{value:!0});var re=new Uint8Array(256),ae=new Uint8Array(256),Ue=new Uint32Array(256),lt=new Uint32Array(256),Pt=new Uint32Array(256),Wt=new Uint32Array(256),Ar=new Uint32Array(256),Er=new Uint32Array(256),Ir=new Uint32Array(256),Br=new Uint32Array(256);function a(C){if(C instanceof Uint32Array)return C;if("string"==typeof C){if(C.length%4!=0)for(var q=C.length%4;q<=4;q++)C+="\0x00";var re=new Uint32Array(C.length/4);for(q=0;q>7),Dr[Fr[Ur]^Ur]=Ur;for(;!re[xr];xr^=C||1)kr=(kr=Mr^Mr<<1^Mr<<2^Mr<<3^Mr<<4)>>8^255&kr^99,re[xr]=kr,ae[kr]=xr,Qr=16843009*Fr[q=Fr[C=Fr[xr]]]^65537*q^257*C^16843008*xr,Pr=257*Fr[kr]^16843008*kr,Ue[xr]=Pr=Pr<<24^Pr>>>8,lt[xr]=Pr=Pr<<24^Pr>>>8,Pt[xr]=Pr=Pr<<24^Pr>>>8,Wt[xr]=Pr=Pr<<24^Pr>>>8,Ar[kr]=Qr=Qr<<24^Qr>>>8,Er[kr]=Qr=Qr<<24^Qr>>>8,Ir[kr]=Qr=Qr<<24^Qr>>>8,Br[kr]=Qr=Qr<<24^Qr>>>8,Mr=Dr[Mr]||1}();var kr=function(){function l(C){var q=a(C);if(4!==q.length&&6!==q.length&&8!==q.length)throw new Error("Invalid key size");this.encKey=new Uint32Array(4*q.length+28),this.decKey=new Uint32Array(4*q.length+28),this.encKey.set(q);for(var ae,Ue=1,lt=q.length;lt<4*q.length+28;lt++)ae=this.encKey[lt-1],(lt%q.length==0||8===q.length&<%q.length==4)&&(ae=re[ae>>>24]<<24^re[ae>>16&255]<<16^re[ae>>8&255]<<8^re[255&ae],lt%q.length==0&&(ae=ae<<8^ae>>>24^Ue<<24,Ue=Ue<<1^283*(Ue>>7))),this.encKey[lt]=this.encKey[lt-q.length]^ae;for(var Pt=0;lt;Pt++,lt--)ae=this.encKey[3&Pt?lt:lt-4],this.decKey[Pt]=lt<=4||Pt<4?ae:Ar[re[ae>>>24]]^Er[re[ae>>16&255]]^Ir[re[ae>>8&255]]^Br[re[255&ae]]}return l.prototype.encrypt=function(C){for(var q,ae,Ar,Er=a(C),Ir=new Uint32Array(4),Br=Er[0]^this.encKey[0],kr=Er[1]^this.encKey[1],Pr=Er[2]^this.encKey[2],Qr=Er[3]^this.encKey[3],Fr=this.encKey.length/4-2,Dr=4,xr=0;xr>>24]^lt[kr>>16&255]^Pt[Pr>>8&255]^Wt[255&Qr]^this.encKey[Dr],ae=Ue[kr>>>24]^lt[Pr>>16&255]^Pt[Qr>>8&255]^Wt[255&Br]^this.encKey[Dr+1],Ar=Ue[Pr>>>24]^lt[Qr>>16&255]^Pt[Br>>8&255]^Wt[255&kr]^this.encKey[Dr+2],Qr=Ue[Qr>>>24]^lt[Br>>16&255]^Pt[kr>>8&255]^Wt[255&Pr]^this.encKey[Dr+3],Br=q,kr=ae,Pr=Ar,Dr+=4;for(xr=0;xr<4;xr++)Ir[xr]=re[Br>>>24]<<24^re[kr>>16&255]<<16^re[Pr>>8&255]<<8^re[255&Qr]^this.encKey[Dr++],q=Br,Br=kr,kr=Pr,Pr=Qr,Qr=q;return Ir},l.prototype.decrypt=function(C){for(var q,re,Ue,lt=a(C),Pt=new Uint32Array(4),Wt=lt[0]^this.decKey[0],kr=lt[3]^this.decKey[1],Pr=lt[2]^this.decKey[2],Qr=lt[1]^this.decKey[3],Fr=this.decKey.length/4-2,Dr=4,xr=0;xr>>24]^Er[kr>>16&255]^Ir[Pr>>8&255]^Br[255&Qr]^this.decKey[Dr],re=Ar[kr>>>24]^Er[Pr>>16&255]^Ir[Qr>>8&255]^Br[255&Wt]^this.decKey[Dr+1],Ue=Ar[Pr>>>24]^Er[Qr>>16&255]^Ir[Wt>>8&255]^Br[255&kr]^this.decKey[Dr+2],Qr=Ar[Qr>>>24]^Er[Wt>>16&255]^Ir[kr>>8&255]^Br[255&Pr]^this.decKey[Dr+3],Wt=q,kr=re,Pr=Ue,Dr+=4;for(xr=0;xr<4;xr++)Pt[3&-xr]=ae[Wt>>>24]<<24^ae[kr>>16&255]<<16^ae[Pr>>8&255]<<8^ae[255&Qr]^this.decKey[Dr++],q=Wt,Wt=kr,kr=Pr,Pr=Qr,Qr=q;return Pt},l}(),Pr=function(){function t(C,q,re){void 0===re&&(re=16),this.key=a(C),this.iv=a(q),this.cipher=new kr(C),this.blockSize=re/4}return t.prototype.encrypt=function(C,q){for(var re=a(C),ae=q||new Uint32Array(re.length),Ue=this.iv.subarray(this.blockSize,this.iv.length),lt=this.iv.subarray(0,this.blockSize),Pt=new Uint32Array(this.blockSize),Wt=0;Wt=this.blockSize&&this.incrementCounter(),Ue&&(lt-=Ue,Ue=0)}return this.offset=(this.offset+re.length%4)%4,ae},t.prototype.decrypt=function(C,q){return this.encrypt(C,q)},t.prototype.incrementCounter=function(){for(var C=this.counter.length-1;C>=0&&!(++this.counter[C]<4294967295);C--);},t}();q.CTR=Qr,q.IGE=Pr,q["default"]=kr},37936:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.underline=q.strikethrough=q.spoiler=q.pre=q.mentionUser=q.linkMessage=q.link=q.italic=q.FormattedString=q.fmt=q.customEmoji=q.code=q.bold=q.blockquote=void 0;class FormattedString{constructor(C,q){this.text=C;this.entities=q}toString(){return this.text}}q.FormattedString=FormattedString;const unwrap=C=>{if(C instanceof FormattedString){return C}return new FormattedString(C.toString(),[])};const buildFormatter=(C,...q)=>(re,...ae)=>{const Ue=unwrap(re);const lt=Object.fromEntries(q.map(((C,q)=>[C,ae[q]])));return new FormattedString(Ue.text,[{type:C,offset:0,length:Ue.text.length,...lt},...Ue.entities])};const re=buildFormatter("bold");q.bold=re;const ae=buildFormatter("code");q.code=ae;const Ue=buildFormatter("italic");q.italic=Ue;const lt=buildFormatter("text_link","url");q.link=lt;const Pt=buildFormatter("pre","language");q.pre=Pt;const Wt=buildFormatter("spoiler");q.spoiler=Wt;const Ar=buildFormatter("blockquote");q.blockquote=Ar;const Er=buildFormatter("strikethrough");q.strikethrough=Er;const Ir=buildFormatter("underline");q.underline=Ir;const mentionUser=(C,q)=>lt(C,`tg://user?id=${q}`);q.mentionUser=mentionUser;const customEmoji=(C,q)=>lt(C,`tg://emoji?id=${q}`);q.customEmoji=customEmoji;const linkMessage=(C,q,re)=>{if(q>0){console.warn("linkMessage can only be used for supergroups and channel messages. Refusing to transform into link.");return C}else if(q<-0xe954a50fff||q>-1e12){console.warn("linkMessage is not able to link messages whose chatIds are greater than -1000000000000 or less than -1002147483647 at this moment. Refusing to transform into link.");return C}else{return lt(C,`https://t.me/c/${(q+1e12)*-1}/${re}`)}};q.linkMessage=linkMessage;const fmt=(C,...q)=>{let re="";const ae=[];const Ue=Math.max(C.length,q.length);for(let lt=0;lt({...C,offset:C.offset+re.length}))))}if(Ue!=null)re+=Ue.toString()}}return new FormattedString(re,ae)};q.fmt=fmt},39292:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.hydrateReply=void 0;const ae=re(37936);const buildReplyWithParseMode=(C,q)=>(...re)=>{const[ae,Ue,...lt]=re;return q.reply(ae,{...Ue,parse_mode:C},...lt)};const hydrateReply=async(C,q)=>{C.replyFmt=(q,...re)=>{const[Ue,...lt]=re;const Pt=q instanceof ae.FormattedString?{entities:q.entities}:undefined;return C.reply(q.toString(),{...Ue,...Pt},...lt)};C.replyWithHTML=buildReplyWithParseMode("HTML",C);C.replyWithMarkdown=buildReplyWithParseMode("MarkdownV2",C);C.replyWithMarkdownV1=buildReplyWithParseMode("Markdown",C);C.replyWithMarkdownV2=buildReplyWithParseMode("MarkdownV2",C);C.replyFmtWithPhoto=(q,re,...Ue)=>{const lt=re?.caption?.toString();const Pt=re?.caption instanceof ae.FormattedString?re.caption.entities:re?.caption_entities;return C.replyWithPhoto(q,{...re,caption:lt,caption_entities:Pt},...Ue)};C.replyFmtWithMediaGroup=(q,re,...Ue)=>{const lt=q.map((C=>{const q=C.caption?.toString();const re=C.caption instanceof ae.FormattedString?C.caption.entities:C.caption_entities;return{...C,caption:q,caption_entities:re}}));return C.replyWithMediaGroup(lt,re,...Ue)};C.editFmtMessageMedia=(q,re,...Ue)=>{const lt=q.caption?.toString();const Pt=q.caption instanceof ae.FormattedString?q.caption.entities:q?.caption_entities;return C.editMessageMedia({...q,caption:lt,caption_entities:Pt},re,...Ue)};C.editFmtMessageText=(q,re,...Ue)=>{const lt=q instanceof ae.FormattedString?q.entities:re?.entities;return C.editMessageText(q.toString(),{...re,entities:lt},...Ue)};await q()};q.hydrateReply=hydrateReply},36400:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(37936),q);Ue(re(39292),q);Ue(re(1504),q)},1504:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.parseMode=void 0;const re=new Map([["html","HTML"],["markdown","Markdown"],["markdownv2","MarkdownV2"]]);const buildTransformer=C=>{const q=re.get(C.toLowerCase())??C;if(!re.has(C.toLowerCase())){console.warn(`Could not find parse_mode: ${C}. If this is a valid parse_mode, you should ignore this message.`)}const transformer=(C,re,ae,Ue)=>{if(!ae||"parse_mode"in ae){return C(re,ae,Ue)}switch(re){case"editMessageMedia":if("media"in ae&&!("parse_mode"in ae.media)){ae.media.parse_mode=q}break;case"answerInlineQuery":if("results"in ae){for(const C of ae.results){if("input_message_content"in C&&!("parse_mode"in C.input_message_content)){C.input_message_content.parse_mode=q}else if(!("parse_mode"in C)){C.parse_mode=q}}}break;default:ae={...ae,...{parse_mode:q}}}return C(re,ae,Ue)};return transformer};q.parseMode=buildTransformer},51860:()=>{},98153:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{composePaginateRest:()=>Wt,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>Ar});C.exports=__toCommonJS(lt);var Pt="11.3.1";function normalizePaginatedListResponse(C){if(!C.data){return{...C,data:[]}}const q="total_count"in C.data&&!("url"in C.data);if(!q)return C;const re=C.data.incomplete_results;const ae=C.data.repository_selection;const Ue=C.data.total_count;delete C.data.incomplete_results;delete C.data.repository_selection;delete C.data.total_count;const lt=Object.keys(C.data)[0];const Pt=C.data[lt];C.data=Pt;if(typeof re!=="undefined"){C.data.incomplete_results=re}if(typeof ae!=="undefined"){C.data.repository_selection=ae}C.data.total_count=Ue;return C}function iterator(C,q,re){const ae=typeof q==="function"?q.endpoint(re):C.request.endpoint(q,re);const Ue=typeof q==="function"?q:C.request;const lt=ae.method;const Pt=ae.headers;let Wt=ae.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!Wt)return{done:true};try{const C=await Ue({method:lt,url:Wt,headers:Pt});const q=normalizePaginatedListResponse(C);Wt=((q.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:q}}catch(C){if(C.status!==409)throw C;Wt="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(C,q,re,ae){if(typeof re==="function"){ae=re;re=void 0}return gather(C,[],iterator(C,q,re)[Symbol.asyncIterator](),ae)}function gather(C,q,re,ae){return re.next().then((Ue=>{if(Ue.done){return q}let lt=false;function done(){lt=true}q=q.concat(ae?ae(Ue.value,done):Ue.value.data);if(lt){return q}return gather(C,q,re,ae)}))}var Wt=Object.assign(paginate,{iterator:iterator});var Ar=["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(C){if(typeof C==="string"){return Ar.includes(C)}else{return false}}function paginateRest(C){return{paginate:Object.assign(paginate.bind(null,C),{iterator:iterator.bind(null,C)})}}paginateRest.VERSION=Pt;0&&0},77864:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{createTokenAuth:()=>Er});C.exports=__toCommonJS(lt);var Pt=/^v1\./;var Wt=/^ghs_/;var Ar=/^ghu_/;async function auth(C){const q=C.split(/\./).length===3;const re=Pt.test(C)||Wt.test(C);const ae=Ar.test(C);const Ue=q?"app":re?"installation":ae?"user-to-server":"oauth";return{type:"token",token:C,tokenType:Ue}}function withAuthorizationPrefix(C){if(C.split(/\./).length===3){return`bearer ${C}`}return`token ${C}`}async function hook(C,q,re,ae){const Ue=q.endpoint.merge(re,ae);Ue.headers.authorization=withAuthorizationPrefix(C);return q(Ue)}var Er=function createTokenAuth2(C){if(!C){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof C!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}C=C.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,C),{hook:hook.bind(null,C)})};0&&0},61897:(C,q,re)=>{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{Octokit:()=>xr});C.exports=__toCommonJS(Wt);var Ar=re(33843);var Er=re(52732);var Ir=re(66255);var Br=re(70007);var kr=re(77864);var Pr="5.2.0";var noop=()=>{};var Qr=console.warn.bind(console);var Fr=console.error.bind(console);var Dr=`octokit-core.js/${Pr} ${(0,Ar.getUserAgent)()}`;var xr=class{static{this.VERSION=Pr}static defaults(C){const q=class extends(this){constructor(...q){const re=q[0]||{};if(typeof C==="function"){super(C(re));return}super(Object.assign({},C,re,re.userAgent&&C.userAgent?{userAgent:`${re.userAgent} ${C.userAgent}`}:null))}};return q}static{this.plugins=[]}static plugin(...C){const q=this.plugins;const re=class extends(this){static{this.plugins=q.concat(C.filter((C=>!q.includes(C))))}};return re}constructor(C={}){const q=new Er.Collection;const re={baseUrl:Ir.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},C.request,{hook:q.bind(null,"request")}),mediaType:{previews:[],format:""}};re.headers["user-agent"]=C.userAgent?`${C.userAgent} ${Dr}`:Dr;if(C.baseUrl){re.baseUrl=C.baseUrl}if(C.previews){re.mediaType.previews=C.previews}if(C.timeZone){re.headers["time-zone"]=C.timeZone}this.request=Ir.request.defaults(re);this.graphql=(0,Br.withCustomRequest)(this.request).defaults(re);this.log=Object.assign({debug:noop,info:noop,warn:Qr,error:Fr},C.log);this.hook=q;if(!C.authStrategy){if(!C.auth){this.auth=async()=>({type:"unauthenticated"})}else{const re=(0,kr.createTokenAuth)(C.auth);q.wrap("request",re.hook);this.auth=re}}else{const{authStrategy:re,...ae}=C;const Ue=re(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:ae},C.auth));q.wrap("request",Ue.hook);this.auth=Ue}const ae=this.constructor;for(let q=0;q{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{endpoint:()=>Pr});C.exports=__toCommonJS(Wt);var Ar=re(33843);var Er="9.0.5";var Ir=`octokit-endpoint.js/${Er} ${(0,Ar.getUserAgent)()}`;var Br={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":Ir},mediaType:{format:""}};function lowercaseKeys(C){if(!C){return{}}return Object.keys(C).reduce(((q,re)=>{q[re.toLowerCase()]=C[re];return q}),{})}function isPlainObject(C){if(typeof C!=="object"||C===null)return false;if(Object.prototype.toString.call(C)!=="[object Object]")return false;const q=Object.getPrototypeOf(C);if(q===null)return true;const re=Object.prototype.hasOwnProperty.call(q,"constructor")&&q.constructor;return typeof re==="function"&&re instanceof re&&Function.prototype.call(re)===Function.prototype.call(C)}function mergeDeep(C,q){const re=Object.assign({},C);Object.keys(q).forEach((ae=>{if(isPlainObject(q[ae])){if(!(ae in C))Object.assign(re,{[ae]:q[ae]});else re[ae]=mergeDeep(C[ae],q[ae])}else{Object.assign(re,{[ae]:q[ae]})}}));return re}function removeUndefinedProperties(C){for(const q in C){if(C[q]===void 0){delete C[q]}}return C}function merge(C,q,re){if(typeof q==="string"){let[C,ae]=q.split(" ");re=Object.assign(ae?{method:C,url:ae}:{url:C},re)}else{re=Object.assign({},q)}re.headers=lowercaseKeys(re.headers);removeUndefinedProperties(re);removeUndefinedProperties(re.headers);const ae=mergeDeep(C||{},re);if(re.url==="/graphql"){if(C&&C.mediaType.previews?.length){ae.mediaType.previews=C.mediaType.previews.filter((C=>!ae.mediaType.previews.includes(C))).concat(ae.mediaType.previews)}ae.mediaType.previews=(ae.mediaType.previews||[]).map((C=>C.replace(/-preview/,"")))}return ae}function addQueryParameters(C,q){const re=/\?/.test(C)?"&":"?";const ae=Object.keys(q);if(ae.length===0){return C}return C+re+ae.map((C=>{if(C==="q"){return"q="+q.q.split("+").map(encodeURIComponent).join("+")}return`${C}=${encodeURIComponent(q[C])}`})).join("&")}var kr=/\{[^}]+\}/g;function removeNonChars(C){return C.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(C){const q=C.match(kr);if(!q){return[]}return q.map(removeNonChars).reduce(((C,q)=>C.concat(q)),[])}function omit(C,q){const re={__proto__:null};for(const ae of Object.keys(C)){if(q.indexOf(ae)===-1){re[ae]=C[ae]}}return re}function encodeReserved(C){return C.split(/(%[0-9A-Fa-f]{2})/g).map((function(C){if(!/%[0-9A-Fa-f]/.test(C)){C=encodeURI(C).replace(/%5B/g,"[").replace(/%5D/g,"]")}return C})).join("")}function encodeUnreserved(C){return encodeURIComponent(C).replace(/[!'()*]/g,(function(C){return"%"+C.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(C,q,re){q=C==="+"||C==="#"?encodeReserved(q):encodeUnreserved(q);if(re){return encodeUnreserved(re)+"="+q}else{return q}}function isDefined(C){return C!==void 0&&C!==null}function isKeyOperator(C){return C===";"||C==="&"||C==="?"}function getValues(C,q,re,ae){var Ue=C[re],lt=[];if(isDefined(Ue)&&Ue!==""){if(typeof Ue==="string"||typeof Ue==="number"||typeof Ue==="boolean"){Ue=Ue.toString();if(ae&&ae!=="*"){Ue=Ue.substring(0,parseInt(ae,10))}lt.push(encodeValue(q,Ue,isKeyOperator(q)?re:""))}else{if(ae==="*"){if(Array.isArray(Ue)){Ue.filter(isDefined).forEach((function(C){lt.push(encodeValue(q,C,isKeyOperator(q)?re:""))}))}else{Object.keys(Ue).forEach((function(C){if(isDefined(Ue[C])){lt.push(encodeValue(q,Ue[C],C))}}))}}else{const C=[];if(Array.isArray(Ue)){Ue.filter(isDefined).forEach((function(re){C.push(encodeValue(q,re))}))}else{Object.keys(Ue).forEach((function(re){if(isDefined(Ue[re])){C.push(encodeUnreserved(re));C.push(encodeValue(q,Ue[re].toString()))}}))}if(isKeyOperator(q)){lt.push(encodeUnreserved(re)+"="+C.join(","))}else if(C.length!==0){lt.push(C.join(","))}}}}else{if(q===";"){if(isDefined(Ue)){lt.push(encodeUnreserved(re))}}else if(Ue===""&&(q==="&"||q==="?")){lt.push(encodeUnreserved(re)+"=")}else if(Ue===""){lt.push("")}}return lt}function parseUrl(C){return{expand:expand.bind(null,C)}}function expand(C,q){var re=["+","#",".","/",";","?","&"];C=C.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(C,ae,Ue){if(ae){let C="";const Ue=[];if(re.indexOf(ae.charAt(0))!==-1){C=ae.charAt(0);ae=ae.substr(1)}ae.split(/,/g).forEach((function(re){var ae=/([^:\*]*)(?::(\d+)|(\*))?/.exec(re);Ue.push(getValues(q,C,ae[1],ae[2]||ae[3]))}));if(C&&C!=="+"){var lt=",";if(C==="?"){lt="&"}else if(C!=="#"){lt=C}return(Ue.length!==0?C:"")+Ue.join(lt)}else{return Ue.join(",")}}else{return encodeReserved(Ue)}}));if(C==="/"){return C}else{return C.replace(/\/$/,"")}}function parse(C){let q=C.method.toUpperCase();let re=(C.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let ae=Object.assign({},C.headers);let Ue;let lt=omit(C,["method","baseUrl","url","headers","request","mediaType"]);const Pt=extractUrlVariableNames(re);re=parseUrl(re).expand(lt);if(!/^http/.test(re)){re=C.baseUrl+re}const Wt=Object.keys(C).filter((C=>Pt.includes(C))).concat("baseUrl");const Ar=omit(lt,Wt);const Er=/application\/octet-stream/i.test(ae.accept);if(!Er){if(C.mediaType.format){ae.accept=ae.accept.split(/,/).map((q=>q.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${C.mediaType.format}`))).join(",")}if(re.endsWith("/graphql")){if(C.mediaType.previews?.length){const q=ae.accept.match(/[\w-]+(?=-preview)/g)||[];ae.accept=q.concat(C.mediaType.previews).map((q=>{const re=C.mediaType.format?`.${C.mediaType.format}`:"+json";return`application/vnd.github.${q}-preview${re}`})).join(",")}}}if(["GET","HEAD"].includes(q)){re=addQueryParameters(re,Ar)}else{if("data"in Ar){Ue=Ar.data}else{if(Object.keys(Ar).length){Ue=Ar}}}if(!ae["content-type"]&&typeof Ue!=="undefined"){ae["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(q)&&typeof Ue==="undefined"){Ue=""}return Object.assign({method:q,url:re,headers:ae},typeof Ue!=="undefined"?{body:Ue}:null,C.request?{request:C.request}:null)}function endpointWithDefaults(C,q,re){return parse(merge(C,q,re))}function withDefaults(C,q){const re=merge(C,q);const ae=endpointWithDefaults.bind(null,re);return Object.assign(ae,{DEFAULTS:re,defaults:withDefaults.bind(null,re),merge:merge.bind(null,re),parse:parse})}var Pr=withDefaults(null,Br);0&&0},70007:(C,q,re)=>{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{GraphqlResponseError:()=>Pr,graphql:()=>xr,withCustomRequest:()=>withCustomRequest});C.exports=__toCommonJS(Wt);var Ar=re(66255);var Er=re(33843);var Ir="7.1.0";var Br=re(66255);var kr=re(66255);function _buildMessageForResponseErrors(C){return`Request failed due to following response errors:\n`+C.errors.map((C=>` - ${C.message}`)).join("\n")}var Pr=class extends Error{constructor(C,q,re){super(_buildMessageForResponseErrors(re));this.request=C;this.headers=q;this.response=re;this.name="GraphqlResponseError";this.errors=re.errors;this.data=re.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}};var Qr=["method","baseUrl","url","headers","request","query","mediaType"];var Fr=["query","method","url"];var Dr=/\/api\/v3\/?$/;function graphql(C,q,re){if(re){if(typeof q==="string"&&"query"in re){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const C in re){if(!Fr.includes(C))continue;return Promise.reject(new Error(`[@octokit/graphql] "${C}" cannot be used as variable name`))}}const ae=typeof q==="string"?Object.assign({query:q},re):q;const Ue=Object.keys(ae).reduce(((C,q)=>{if(Qr.includes(q)){C[q]=ae[q];return C}if(!C.variables){C.variables={}}C.variables[q]=ae[q];return C}),{});const lt=ae.baseUrl||C.endpoint.DEFAULTS.baseUrl;if(Dr.test(lt)){Ue.url=lt.replace(Dr,"/api/graphql")}return C(Ue).then((C=>{if(C.data.errors){const q={};for(const re of Object.keys(C.headers)){q[re]=C.headers[re]}throw new Pr(Ue,q,C.data)}return C.data.data}))}function withDefaults(C,q){const re=C.defaults(q);const newApi=(C,q)=>graphql(re,C,q);return Object.assign(newApi,{defaults:withDefaults.bind(null,re),endpoint:re.endpoint})}var xr=withDefaults(Ar.request,{headers:{"user-agent":`octokit-graphql.js/${Ir} ${(0,Er.getUserAgent)()}`},method:"POST",url:"/graphql"});function withCustomRequest(C){return withDefaults(C,{method:"POST",url:"/graphql"})}0&&0},38082:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{composePaginateRest:()=>Wt,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>Ar});C.exports=__toCommonJS(lt);var Pt="9.2.1";function normalizePaginatedListResponse(C){if(!C.data){return{...C,data:[]}}const q="total_count"in C.data&&!("url"in C.data);if(!q)return C;const re=C.data.incomplete_results;const ae=C.data.repository_selection;const Ue=C.data.total_count;delete C.data.incomplete_results;delete C.data.repository_selection;delete C.data.total_count;const lt=Object.keys(C.data)[0];const Pt=C.data[lt];C.data=Pt;if(typeof re!=="undefined"){C.data.incomplete_results=re}if(typeof ae!=="undefined"){C.data.repository_selection=ae}C.data.total_count=Ue;return C}function iterator(C,q,re){const ae=typeof q==="function"?q.endpoint(re):C.request.endpoint(q,re);const Ue=typeof q==="function"?q:C.request;const lt=ae.method;const Pt=ae.headers;let Wt=ae.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!Wt)return{done:true};try{const C=await Ue({method:lt,url:Wt,headers:Pt});const q=normalizePaginatedListResponse(C);Wt=((q.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:q}}catch(C){if(C.status!==409)throw C;Wt="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(C,q,re,ae){if(typeof re==="function"){ae=re;re=void 0}return gather(C,[],iterator(C,q,re)[Symbol.asyncIterator](),ae)}function gather(C,q,re,ae){return re.next().then((Ue=>{if(Ue.done){return q}let lt=false;function done(){lt=true}q=q.concat(ae?ae(Ue.value,done):Ue.value.data);if(lt){return q}return gather(C,q,re,ae)}))}var Wt=Object.assign(paginate,{iterator:iterator});var Ar=["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(C){if(typeof C==="string"){return Ar.includes(C)}else{return false}}function paginateRest(C){return{paginate:Object.assign(paginate.bind(null,C),{iterator:iterator.bind(null,C)})}}paginateRest.VERSION=Pt;0&&0},6966:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{requestLog:()=>requestLog});C.exports=__toCommonJS(lt);var Pt="4.0.1";function requestLog(C){C.hook.wrap("request",((q,re)=>{C.log.debug("request",re);const ae=Date.now();const Ue=C.request.endpoint.parse(re);const lt=Ue.url.replace(re.baseUrl,"");return q(re).then((q=>{C.log.info(`${Ue.method} ${lt} - ${q.status} in ${Date.now()-ae}ms`);return q})).catch((q=>{C.log.info(`${Ue.method} ${lt} - ${q.status} in ${Date.now()-ae}ms`);throw q}))}))}requestLog.VERSION=Pt;0&&0},84935:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});C.exports=__toCommonJS(lt);var Pt="10.4.1";var Wt={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 Ar=Wt;var Er=new Map;for(const[C,q]of Object.entries(Ar)){for(const[re,ae]of Object.entries(q)){const[q,Ue,lt]=ae;const[Pt,Wt]=q.split(/ /);const Ar=Object.assign({method:Pt,url:Wt},Ue);if(!Er.has(C)){Er.set(C,new Map)}Er.get(C).set(re,{scope:C,methodName:re,endpointDefaults:Ar,decorations:lt})}}var Ir={has({scope:C},q){return Er.get(C).has(q)},getOwnPropertyDescriptor(C,q){return{value:this.get(C,q),configurable:true,writable:true,enumerable:true}},defineProperty(C,q,re){Object.defineProperty(C.cache,q,re);return true},deleteProperty(C,q){delete C.cache[q];return true},ownKeys({scope:C}){return[...Er.get(C).keys()]},set(C,q,re){return C.cache[q]=re},get({octokit:C,scope:q,cache:re},ae){if(re[ae]){return re[ae]}const Ue=Er.get(q).get(ae);if(!Ue){return void 0}const{endpointDefaults:lt,decorations:Pt}=Ue;if(Pt){re[ae]=decorate(C,q,ae,lt,Pt)}else{re[ae]=C.request.defaults(lt)}return re[ae]}};function endpointsToMethods(C){const q={};for(const re of Er.keys()){q[re]=new Proxy({octokit:C,scope:re,cache:{}},Ir)}return q}function decorate(C,q,re,ae,Ue){const lt=C.request.defaults(ae);function withDecorations(...ae){let Pt=lt.endpoint.merge(...ae);if(Ue.mapToData){Pt=Object.assign({},Pt,{data:Pt[Ue.mapToData],[Ue.mapToData]:void 0});return lt(Pt)}if(Ue.renamed){const[ae,lt]=Ue.renamed;C.log.warn(`octokit.${q}.${re}() has been renamed to octokit.${ae}.${lt}()`)}if(Ue.deprecated){C.log.warn(Ue.deprecated)}if(Ue.renamedParameters){const Pt=lt.endpoint.merge(...ae);for(const[ae,lt]of Object.entries(Ue.renamedParameters)){if(ae in Pt){C.log.warn(`"${ae}" parameter is deprecated for "octokit.${q}.${re}()". Use "${lt}" instead`);if(!(lt in Pt)){Pt[lt]=Pt[ae]}delete Pt[ae]}}return lt(Pt)}return lt(...ae)}return Object.assign(withDecorations,lt)}function restEndpointMethods(C){const q=endpointsToMethods(C);return{rest:q}}restEndpointMethods.VERSION=Pt;function legacyRestEndpointMethods(C){const q=endpointsToMethods(C);return{...q,rest:q}}legacyRestEndpointMethods.VERSION=Pt;0&&0},66255:(C,q,re)=>{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{request:()=>kr});C.exports=__toCommonJS(Wt);var Ar=re(54471);var Er=re(33843);var Ir="8.4.0";function isPlainObject(C){if(typeof C!=="object"||C===null)return false;if(Object.prototype.toString.call(C)!=="[object Object]")return false;const q=Object.getPrototypeOf(C);if(q===null)return true;const re=Object.prototype.hasOwnProperty.call(q,"constructor")&&q.constructor;return typeof re==="function"&&re instanceof re&&Function.prototype.call(re)===Function.prototype.call(C)}var Br=re(54071);function getBufferResponse(C){return C.arrayBuffer()}function fetchWrapper(C){var q,re,ae,Ue;const lt=C.request&&C.request.log?C.request.log:console;const Pt=((q=C.request)==null?void 0:q.parseSuccessResponseBody)!==false;if(isPlainObject(C.body)||Array.isArray(C.body)){C.body=JSON.stringify(C.body)}let Wt={};let Ar;let Er;let{fetch:Ir}=globalThis;if((re=C.request)==null?void 0:re.fetch){Ir=C.request.fetch}if(!Ir){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 Ir(C.url,{method:C.method,body:C.body,redirect:(ae=C.request)==null?void 0:ae.redirect,headers:C.headers,signal:(Ue=C.request)==null?void 0:Ue.signal,...C.body&&{duplex:"half"}}).then((async q=>{Er=q.url;Ar=q.status;for(const C of q.headers){Wt[C[0]]=C[1]}if("deprecation"in Wt){const q=Wt.link&&Wt.link.match(/<([^>]+)>; rel="deprecation"/);const re=q&&q.pop();lt.warn(`[@octokit/request] "${C.method} ${C.url}" is deprecated. It is scheduled to be removed on ${Wt.sunset}${re?`. See ${re}`:""}`)}if(Ar===204||Ar===205){return}if(C.method==="HEAD"){if(Ar<400){return}throw new Br.RequestError(q.statusText,Ar,{response:{url:Er,status:Ar,headers:Wt,data:void 0},request:C})}if(Ar===304){throw new Br.RequestError("Not modified",Ar,{response:{url:Er,status:Ar,headers:Wt,data:await getResponseData(q)},request:C})}if(Ar>=400){const re=await getResponseData(q);const ae=new Br.RequestError(toErrorMessage(re),Ar,{response:{url:Er,status:Ar,headers:Wt,data:re},request:C});throw ae}return Pt?await getResponseData(q):q.body})).then((C=>({status:Ar,url:Er,headers:Wt,data:C}))).catch((q=>{if(q instanceof Br.RequestError)throw q;else if(q.name==="AbortError")throw q;let re=q.message;if(q.name==="TypeError"&&"cause"in q){if(q.cause instanceof Error){re=q.cause.message}else if(typeof q.cause==="string"){re=q.cause}}throw new Br.RequestError(re,500,{request:C})}))}async function getResponseData(C){const q=C.headers.get("content-type");if(/application\/json/.test(q)){return C.json().catch((()=>C.text())).catch((()=>""))}if(!q||/^text\/|charset=utf-8$/.test(q)){return C.text()}return getBufferResponse(C)}function toErrorMessage(C){if(typeof C==="string")return C;let q;if("documentation_url"in C){q=` - ${C.documentation_url}`}else{q=""}if("message"in C){if(Array.isArray(C.errors)){return`${C.message}: ${C.errors.map(JSON.stringify).join(", ")}${q}`}return`${C.message}${q}`}return`Unknown error: ${JSON.stringify(C)}`}function withDefaults(C,q){const re=C.defaults(q);const newApi=function(C,q){const ae=re.merge(C,q);if(!ae.request||!ae.request.hook){return fetchWrapper(re.parse(ae))}const request2=(C,q)=>fetchWrapper(re.parse(re.merge(C,q)));Object.assign(request2,{endpoint:re,defaults:withDefaults.bind(null,re)});return ae.request.hook(request2,ae)};return Object.assign(newApi,{endpoint:re,defaults:withDefaults.bind(null,re)})}var kr=withDefaults(Ar.endpoint,{headers:{"user-agent":`octokit-request.js/${Ir} ${(0,Er.getUserAgent)()}`}});0&&0},54071:(C,q,re)=>{var ae=Object.create;var Ue=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var Pt=Object.getOwnPropertyNames;var Wt=Object.getPrototypeOf;var Ar=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)Ue(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,ae)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Wt of Pt(q))if(!Ar.call(C,Wt)&&Wt!==re)Ue(C,Wt,{get:()=>q[Wt],enumerable:!(ae=lt(q,Wt))||ae.enumerable})}return C};var __toESM=(C,q,re)=>(re=C!=null?ae(Wt(C)):{},__copyProps(q||!C||!C.__esModule?Ue(re,"default",{value:C,enumerable:true}):re,C));var __toCommonJS=C=>__copyProps(Ue({},"__esModule",{value:true}),C);var Er={};__export(Er,{RequestError:()=>Qr});C.exports=__toCommonJS(Er);var Ir=re(14150);var Br=__toESM(re(55560));var kr=(0,Br.default)((C=>console.warn(C)));var Pr=(0,Br.default)((C=>console.warn(C)));var Qr=class extends Error{constructor(C,q,re){super(C);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=q;let ae;if("headers"in re&&typeof re.headers!=="undefined"){ae=re.headers}if("response"in re){this.response=re.response;ae=re.response.headers}const Ue=Object.assign({},re.request);if(re.request.headers.authorization){Ue.headers=Object.assign({},re.request.headers,{authorization:re.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}Ue.url=Ue.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=Ue;Object.defineProperty(this,"code",{get(){kr(new Ir.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return q}});Object.defineProperty(this,"headers",{get(){Pr(new Ir.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return ae||{}}})}};0&&0},65772:(C,q,re)=>{var ae=Object.defineProperty;var Ue=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var Pt=Object.prototype.hasOwnProperty;var __export=(C,q)=>{for(var re in q)ae(C,re,{get:q[re],enumerable:true})};var __copyProps=(C,q,re,Wt)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let Ar of lt(q))if(!Pt.call(C,Ar)&&Ar!==re)ae(C,Ar,{get:()=>q[Ar],enumerable:!(Wt=Ue(q,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(ae({},"__esModule",{value:true}),C);var Wt={};__export(Wt,{Octokit:()=>Pr});C.exports=__toCommonJS(Wt);var Ar=re(61897);var Er=re(6966);var Ir=re(77198);var Br=re(33779);var kr="20.1.1";var Pr=Ar.Octokit.plugin(Er.requestLog,Br.legacyRestEndpointMethods,Ir.paginateRest).defaults({userAgent:`octokit-rest.js/${kr}`});0&&0},77198:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{composePaginateRest:()=>Wt,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>Ar});C.exports=__toCommonJS(lt);var Pt="11.3.1";function normalizePaginatedListResponse(C){if(!C.data){return{...C,data:[]}}const q="total_count"in C.data&&!("url"in C.data);if(!q)return C;const re=C.data.incomplete_results;const ae=C.data.repository_selection;const Ue=C.data.total_count;delete C.data.incomplete_results;delete C.data.repository_selection;delete C.data.total_count;const lt=Object.keys(C.data)[0];const Pt=C.data[lt];C.data=Pt;if(typeof re!=="undefined"){C.data.incomplete_results=re}if(typeof ae!=="undefined"){C.data.repository_selection=ae}C.data.total_count=Ue;return C}function iterator(C,q,re){const ae=typeof q==="function"?q.endpoint(re):C.request.endpoint(q,re);const Ue=typeof q==="function"?q:C.request;const lt=ae.method;const Pt=ae.headers;let Wt=ae.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!Wt)return{done:true};try{const C=await Ue({method:lt,url:Wt,headers:Pt});const q=normalizePaginatedListResponse(C);Wt=((q.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:q}}catch(C){if(C.status!==409)throw C;Wt="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(C,q,re,ae){if(typeof re==="function"){ae=re;re=void 0}return gather(C,[],iterator(C,q,re)[Symbol.asyncIterator](),ae)}function gather(C,q,re,ae){return re.next().then((Ue=>{if(Ue.done){return q}let lt=false;function done(){lt=true}q=q.concat(ae?ae(Ue.value,done):Ue.value.data);if(lt){return q}return gather(C,q,re,ae)}))}var Wt=Object.assign(paginate,{iterator:iterator});var Ar=["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(C){if(typeof C==="string"){return Ar.includes(C)}else{return false}}function paginateRest(C){return{paginate:Object.assign(paginate.bind(null,C),{iterator:iterator.bind(null,C)})}}paginateRest.VERSION=Pt;0&&0},33779:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});C.exports=__toCommonJS(lt);var Pt="13.2.2";var Wt={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 Ar=Wt;var Er=new Map;for(const[C,q]of Object.entries(Ar)){for(const[re,ae]of Object.entries(q)){const[q,Ue,lt]=ae;const[Pt,Wt]=q.split(/ /);const Ar=Object.assign({method:Pt,url:Wt},Ue);if(!Er.has(C)){Er.set(C,new Map)}Er.get(C).set(re,{scope:C,methodName:re,endpointDefaults:Ar,decorations:lt})}}var Ir={has({scope:C},q){return Er.get(C).has(q)},getOwnPropertyDescriptor(C,q){return{value:this.get(C,q),configurable:true,writable:true,enumerable:true}},defineProperty(C,q,re){Object.defineProperty(C.cache,q,re);return true},deleteProperty(C,q){delete C.cache[q];return true},ownKeys({scope:C}){return[...Er.get(C).keys()]},set(C,q,re){return C.cache[q]=re},get({octokit:C,scope:q,cache:re},ae){if(re[ae]){return re[ae]}const Ue=Er.get(q).get(ae);if(!Ue){return void 0}const{endpointDefaults:lt,decorations:Pt}=Ue;if(Pt){re[ae]=decorate(C,q,ae,lt,Pt)}else{re[ae]=C.request.defaults(lt)}return re[ae]}};function endpointsToMethods(C){const q={};for(const re of Er.keys()){q[re]=new Proxy({octokit:C,scope:re,cache:{}},Ir)}return q}function decorate(C,q,re,ae,Ue){const lt=C.request.defaults(ae);function withDecorations(...ae){let Pt=lt.endpoint.merge(...ae);if(Ue.mapToData){Pt=Object.assign({},Pt,{data:Pt[Ue.mapToData],[Ue.mapToData]:void 0});return lt(Pt)}if(Ue.renamed){const[ae,lt]=Ue.renamed;C.log.warn(`octokit.${q}.${re}() has been renamed to octokit.${ae}.${lt}()`)}if(Ue.deprecated){C.log.warn(Ue.deprecated)}if(Ue.renamedParameters){const Pt=lt.endpoint.merge(...ae);for(const[ae,lt]of Object.entries(Ue.renamedParameters)){if(ae in Pt){C.log.warn(`"${ae}" parameter is deprecated for "octokit.${q}.${re}()". Use "${lt}" instead`);if(!(lt in Pt)){Pt[lt]=Pt[ae]}delete Pt[ae]}}return lt(Pt)}return lt(...ae)}return Object.assign(withDecorations,lt)}function restEndpointMethods(C){const q=endpointsToMethods(C);return{rest:q}}restEndpointMethods.VERSION=Pt;function legacyRestEndpointMethods(C){const q=endpointsToMethods(C);return{...q,rest:q}}legacyRestEndpointMethods.VERSION=Pt;0&&0},75364:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeCompiler=q.Policy=q.TypeCompilerTypeGuardError=q.TypeCompilerUnknownTypeError=q.TypeCheck=void 0;const ae=re(50038);const Ue=re(65507);const lt=re(82129);const Pt=re(26113);const Wt=re(40886);const Ar=re(7210);const Er=re(97034);const Ir=re(51786);const Br=re(73373);const kr=re(82486);const Pr=re(54025);const Qr=re(17479);const Fr=re(70384);class TypeCheck{constructor(C,q,re,Ue){this.schema=C;this.references=q;this.checkFunc=re;this.code=Ue;this.hasTransform=(0,ae.HasTransform)(C,q)}Code(){return this.code}Errors(C){return(0,Ue.Errors)(this.schema,this.references,C)}Check(C){return this.checkFunc(C)}Decode(C){if(!this.checkFunc(C))throw new ae.TransformDecodeCheckError(this.schema,C,this.Errors(C).First());return this.hasTransform?(0,ae.TransformDecode)(this.schema,this.references,C):C}Encode(C){const q=this.hasTransform?(0,ae.TransformEncode)(this.schema,this.references,C):C;if(!this.checkFunc(q))throw new ae.TransformEncodeCheckError(this.schema,C,this.Errors(C).First());return q}}q.TypeCheck=TypeCheck;var Dr;(function(C){function DollarSign(C){return C===36}C.DollarSign=DollarSign;function IsUnderscore(C){return C===95}C.IsUnderscore=IsUnderscore;function IsAlpha(C){return C>=65&&C<=90||C>=97&&C<=122}C.IsAlpha=IsAlpha;function IsNumeric(C){return C>=48&&C<=57}C.IsNumeric=IsNumeric})(Dr||(Dr={}));var xr;(function(C){function IsFirstCharacterNumeric(C){if(C.length===0)return false;return Dr.IsNumeric(C.charCodeAt(0))}function IsAccessor(C){if(IsFirstCharacterNumeric(C))return false;for(let q=0;q= ${C.minItems}`;const lt=CreateExpression(C.items,q,"value");yield`${re}.every((${ae}) => ${lt})`;if((0,Fr.IsSchema)(C.contains)||(0,Qr.IsNumber)(C.minContains)||(0,Qr.IsNumber)(C.maxContains)){const lt=(0,Fr.IsSchema)(C.contains)?C.contains:(0,Pr.Never)();const Pt=CreateExpression(lt,q,"value");const Wt=(0,Qr.IsNumber)(C.minContains)?[`(count >= ${C.minContains})`]:[];const Ar=(0,Qr.IsNumber)(C.maxContains)?[`(count <= ${C.maxContains})`]:[];const Er=`const count = value.reduce((${Ue}, ${ae}) => ${Pt} ? acc + 1 : acc, 0)`;const Ir=[`(count > 0)`,...Wt,...Ar].join(" && ");yield`((${ae}) => { ${Er}; return ${Ir}})(${re})`}if(C.uniqueItems===true){const C=`const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true`;const q=`const set = new Set(); for(const element of value) { ${C} }`;yield`((${ae}) => { ${q} )(${re})`}}function*FromAsyncIterator(C,q,re){yield`(typeof value === 'object' && Symbol.asyncIterator in ${re})`}function*FromBigInt(C,q,re){yield`(typeof ${re} === 'bigint')`;if((0,Qr.IsBigInt)(C.exclusiveMaximum))yield`${re} < BigInt(${C.exclusiveMaximum})`;if((0,Qr.IsBigInt)(C.exclusiveMinimum))yield`${re} > BigInt(${C.exclusiveMinimum})`;if((0,Qr.IsBigInt)(C.maximum))yield`${re} <= BigInt(${C.maximum})`;if((0,Qr.IsBigInt)(C.minimum))yield`${re} >= BigInt(${C.minimum})`;if((0,Qr.IsBigInt)(C.multipleOf))yield`(${re} % BigInt(${C.multipleOf})) === 0`}function*FromBoolean(C,q,re){yield`(typeof ${re} === 'boolean')`}function*FromConstructor(C,q,re){yield*Visit(C.returns,q,`${re}.prototype`)}function*FromDate(C,q,re){yield`(${re} instanceof Date) && Number.isFinite(${re}.getTime())`;if((0,Qr.IsNumber)(C.exclusiveMaximumTimestamp))yield`${re}.getTime() < ${C.exclusiveMaximumTimestamp}`;if((0,Qr.IsNumber)(C.exclusiveMinimumTimestamp))yield`${re}.getTime() > ${C.exclusiveMinimumTimestamp}`;if((0,Qr.IsNumber)(C.maximumTimestamp))yield`${re}.getTime() <= ${C.maximumTimestamp}`;if((0,Qr.IsNumber)(C.minimumTimestamp))yield`${re}.getTime() >= ${C.minimumTimestamp}`;if((0,Qr.IsNumber)(C.multipleOfTimestamp))yield`(${re}.getTime() % ${C.multipleOfTimestamp}) === 0`}function*FromFunction(C,q,re){yield`(typeof ${re} === 'function')`}function*FromInteger(C,q,re){yield`Number.isInteger(${re})`;if((0,Qr.IsNumber)(C.exclusiveMaximum))yield`${re} < ${C.exclusiveMaximum}`;if((0,Qr.IsNumber)(C.exclusiveMinimum))yield`${re} > ${C.exclusiveMinimum}`;if((0,Qr.IsNumber)(C.maximum))yield`${re} <= ${C.maximum}`;if((0,Qr.IsNumber)(C.minimum))yield`${re} >= ${C.minimum}`;if((0,Qr.IsNumber)(C.multipleOf))yield`(${re} % ${C.multipleOf}) === 0`}function*FromIntersect(C,q,re){const ae=C.allOf.map((C=>CreateExpression(C,q,re))).join(" && ");if(C.unevaluatedProperties===false){const q=CreateVariable(`${new RegExp((0,Br.KeyOfPattern)(C))};`);const Ue=`Object.getOwnPropertyNames(${re}).every(key => ${q}.test(key))`;yield`(${ae} && ${Ue})`}else if((0,Fr.IsSchema)(C.unevaluatedProperties)){const Ue=CreateVariable(`${new RegExp((0,Br.KeyOfPattern)(C))};`);const lt=`Object.getOwnPropertyNames(${re}).every(key => ${Ue}.test(key) || ${CreateExpression(C.unevaluatedProperties,q,`${re}[key]`)})`;yield`(${ae} && ${lt})`}else{yield`(${ae})`}}function*FromIterator(C,q,re){yield`(typeof value === 'object' && Symbol.iterator in ${re})`}function*FromLiteral(C,q,re){if(typeof C.const==="number"||typeof C.const==="boolean"){yield`(${re} === ${C.const})`}else{yield`(${re} === '${Ur.Escape(C.const)}')`}}function*FromNever(C,q,re){yield`false`}function*FromNot(C,q,re){const ae=CreateExpression(C.not,q,re);yield`(!${ae})`}function*FromNull(C,q,re){yield`(${re} === null)`}function*FromNumber(C,q,re){yield Nr.IsNumberLike(re);if((0,Qr.IsNumber)(C.exclusiveMaximum))yield`${re} < ${C.exclusiveMaximum}`;if((0,Qr.IsNumber)(C.exclusiveMinimum))yield`${re} > ${C.exclusiveMinimum}`;if((0,Qr.IsNumber)(C.maximum))yield`${re} <= ${C.maximum}`;if((0,Qr.IsNumber)(C.minimum))yield`${re} >= ${C.minimum}`;if((0,Qr.IsNumber)(C.multipleOf))yield`(${re} % ${C.multipleOf}) === 0`}function*FromObject(C,q,re){yield Nr.IsObjectLike(re);if((0,Qr.IsNumber)(C.minProperties))yield`Object.getOwnPropertyNames(${re}).length >= ${C.minProperties}`;if((0,Qr.IsNumber)(C.maxProperties))yield`Object.getOwnPropertyNames(${re}).length <= ${C.maxProperties}`;const ae=Object.getOwnPropertyNames(C.properties);for(const Ue of ae){const ae=xr.Encode(re,Ue);const lt=C.properties[Ue];if(C.required&&C.required.includes(Ue)){yield*Visit(lt,q,ae);if((0,kr.ExtendsUndefinedCheck)(lt)||IsAnyOrUnknown(lt))yield`('${Ue}' in ${re})`}else{const C=CreateExpression(lt,q,ae);yield Nr.IsExactOptionalProperty(re,Ue,C)}}if(C.additionalProperties===false){if(C.required&&C.required.length===ae.length){yield`Object.getOwnPropertyNames(${re}).length === ${ae.length}`}else{const C=`[${ae.map((C=>`'${C}'`)).join(", ")}]`;yield`Object.getOwnPropertyNames(${re}).every(key => ${C}.includes(key))`}}if(typeof C.additionalProperties==="object"){const Ue=CreateExpression(C.additionalProperties,q,`${re}[key]`);const lt=`[${ae.map((C=>`'${C}'`)).join(", ")}]`;yield`(Object.getOwnPropertyNames(${re}).every(key => ${lt}.includes(key) || ${Ue}))`}}function*FromPromise(C,q,re){yield`(typeof value === 'object' && typeof ${re}.then === 'function')`}function*FromRecord(C,q,re){yield Nr.IsRecordLike(re);if((0,Qr.IsNumber)(C.minProperties))yield`Object.getOwnPropertyNames(${re}).length >= ${C.minProperties}`;if((0,Qr.IsNumber)(C.maxProperties))yield`Object.getOwnPropertyNames(${re}).length <= ${C.maxProperties}`;const[ae,Ue]=Object.entries(C.patternProperties)[0];const lt=CreateVariable(`${new RegExp(ae)}`);const Pt=CreateExpression(Ue,q,"value");const Wt=(0,Fr.IsSchema)(C.additionalProperties)?CreateExpression(C.additionalProperties,q,re):C.additionalProperties===false?"false":"true";const Ar=`(${lt}.test(key) ? ${Pt} : ${Wt})`;yield`(Object.entries(${re}).every(([key, value]) => ${Ar}))`}function*FromRef(C,re,ae){const Ue=(0,Wt.Deref)(C,re);if(q.functions.has(C.$ref))return yield`${CreateFunctionName(C.$ref)}(${ae})`;yield*Visit(Ue,re,ae)}function*FromRegExp(C,q,re){const ae=CreateVariable(`${new RegExp(C.source,C.flags)};`);yield`(typeof ${re} === 'string')`;if((0,Qr.IsNumber)(C.maxLength))yield`${re}.length <= ${C.maxLength}`;if((0,Qr.IsNumber)(C.minLength))yield`${re}.length >= ${C.minLength}`;yield`${ae}.test(${re})`}function*FromString(C,q,re){yield`(typeof ${re} === 'string')`;if((0,Qr.IsNumber)(C.maxLength))yield`${re}.length <= ${C.maxLength}`;if((0,Qr.IsNumber)(C.minLength))yield`${re}.length >= ${C.minLength}`;if(C.pattern!==undefined){const q=CreateVariable(`${new RegExp(C.pattern)};`);yield`${q}.test(${re})`}if(C.format!==undefined){yield`format('${C.format}', ${re})`}}function*FromSymbol(C,q,re){yield`(typeof ${re} === 'symbol')`}function*FromTemplateLiteral(C,q,re){yield`(typeof ${re} === 'string')`;const ae=CreateVariable(`${new RegExp(C.pattern)};`);yield`${ae}.test(${re})`}function*FromThis(C,q,re){yield`${CreateFunctionName(C.$ref)}(${re})`}function*FromTuple(C,q,re){yield`Array.isArray(${re})`;if(C.items===undefined)return yield`${re}.length === 0`;yield`(${re}.length === ${C.maxItems})`;for(let ae=0;aeCreateExpression(C,q,re)));yield`(${ae.join(" || ")})`}function*FromUint8Array(C,q,re){yield`${re} instanceof Uint8Array`;if((0,Qr.IsNumber)(C.maxByteLength))yield`(${re}.length <= ${C.maxByteLength})`;if((0,Qr.IsNumber)(C.minByteLength))yield`(${re}.length >= ${C.minByteLength})`}function*FromUnknown(C,q,re){yield"true"}function*FromVoid(C,q,re){yield Nr.IsVoidLike(re)}function*FromKind(C,re,ae){const Ue=q.instances.size;q.instances.set(Ue,C);yield`kind('${C[Er.Kind]}', ${Ue}, ${ae})`}function*Visit(C,re,ae,Ue=true){const lt=(0,Qr.IsString)(C.$id)?[...re,C]:re;const Pt=C;if(Ue&&(0,Qr.IsString)(C.$id)){const Ue=CreateFunctionName(C.$id);if(q.functions.has(Ue)){return yield`${Ue}(${ae})`}else{const lt=CreateFunction(Ue,C,re,"value",false);q.functions.set(Ue,lt);return yield`${Ue}(${ae})`}}switch(Pt[Er.Kind]){case"Any":return yield*FromAny(Pt,lt,ae);case"Array":return yield*FromArray(Pt,lt,ae);case"AsyncIterator":return yield*FromAsyncIterator(Pt,lt,ae);case"BigInt":return yield*FromBigInt(Pt,lt,ae);case"Boolean":return yield*FromBoolean(Pt,lt,ae);case"Constructor":return yield*FromConstructor(Pt,lt,ae);case"Date":return yield*FromDate(Pt,lt,ae);case"Function":return yield*FromFunction(Pt,lt,ae);case"Integer":return yield*FromInteger(Pt,lt,ae);case"Intersect":return yield*FromIntersect(Pt,lt,ae);case"Iterator":return yield*FromIterator(Pt,lt,ae);case"Literal":return yield*FromLiteral(Pt,lt,ae);case"Never":return yield*FromNever(Pt,lt,ae);case"Not":return yield*FromNot(Pt,lt,ae);case"Null":return yield*FromNull(Pt,lt,ae);case"Number":return yield*FromNumber(Pt,lt,ae);case"Object":return yield*FromObject(Pt,lt,ae);case"Promise":return yield*FromPromise(Pt,lt,ae);case"Record":return yield*FromRecord(Pt,lt,ae);case"Ref":return yield*FromRef(Pt,lt,ae);case"RegExp":return yield*FromRegExp(Pt,lt,ae);case"String":return yield*FromString(Pt,lt,ae);case"Symbol":return yield*FromSymbol(Pt,lt,ae);case"TemplateLiteral":return yield*FromTemplateLiteral(Pt,lt,ae);case"This":return yield*FromThis(Pt,lt,ae);case"Tuple":return yield*FromTuple(Pt,lt,ae);case"Undefined":return yield*FromUndefined(Pt,lt,ae);case"Union":return yield*FromUnion(Pt,lt,ae);case"Uint8Array":return yield*FromUint8Array(Pt,lt,ae);case"Unknown":return yield*FromUnknown(Pt,lt,ae);case"Void":return yield*FromVoid(Pt,lt,ae);default:if(!Ir.TypeRegistry.Has(Pt[Er.Kind]))throw new TypeCompilerUnknownTypeError(C);return yield*FromKind(Pt,lt,ae)}}const q={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function CreateExpression(C,q,re,ae=true){return`(${[...Visit(C,q,re,ae)].join(" && ")})`}function CreateFunctionName(C){return`check_${Mr.Encode(C)}`}function CreateVariable(C){const re=`local_${q.variables.size}`;q.variables.set(re,`const ${re} = ${C}`);return re}function CreateFunction(C,q,re,ae,Ue=true){const[lt,Pt]=["\n",C=>"".padStart(C," ")];const Wt=CreateParameter("value","any");const Ar=CreateReturns("boolean");const Er=[...Visit(q,re,ae,Ue)].map((C=>`${Pt(4)}${C}`)).join(` &&${lt}`);return`function ${C}(${Wt})${Ar} {${lt}${Pt(2)}return (${lt}${Er}${lt}${Pt(2)})\n}`}function CreateParameter(C,re){const ae=q.language==="typescript"?`: ${re}`:"";return`${C}${ae}`}function CreateReturns(C){return q.language==="typescript"?`: ${C}`:""}function Build(C,re,ae){const Ue=CreateFunction("check",C,re,"value");const lt=CreateParameter("value","any");const Pt=CreateReturns("boolean");const Wt=[...q.functions.values()];const Ar=[...q.variables.values()];const Er=(0,Qr.IsString)(C.$id)?`return function check(${lt})${Pt} {\n return ${CreateFunctionName(C.$id)}(value)\n}`:`return ${Ue}`;return[...Ar,...Wt,Er].join("\n")}function Code(...C){const re={language:"javascript"};const[ae,Ue,lt]=C.length===2&&(0,Qr.IsArray)(C[1])?[C[0],C[1],re]:C.length===2&&!(0,Qr.IsArray)(C[1])?[C[0],[],C[1]]:C.length===3?[C[0],C[1],C[2]]:C.length===1?[C[0],[],re]:[null,[],re];q.language=lt.language;q.variables.clear();q.functions.clear();q.instances.clear();if(!(0,Fr.IsSchema)(ae))throw new TypeCompilerTypeGuardError(ae);for(const C of Ue)if(!(0,Fr.IsSchema)(C))throw new TypeCompilerTypeGuardError(C);return Build(ae,Ue,lt)}C.Code=Code;function Compile(C,re=[]){const ae=Code(C,re,{language:"javascript"});const Ue=globalThis.Function("kind","format","hash",ae);const lt=new Map(q.instances);function typeRegistryFunction(C,q,re){if(!Ir.TypeRegistry.Has(C)||!lt.has(q))return false;const ae=Ir.TypeRegistry.Get(C);const Ue=lt.get(q);return ae(Ue,re)}function formatRegistryFunction(C,q){if(!Ir.FormatRegistry.Has(C))return false;const re=Ir.FormatRegistry.Get(C);return re(q)}function hashFunction(C){return(0,Ar.Hash)(C)}const Pt=Ue(typeRegistryFunction,formatRegistryFunction,hashFunction);return new TypeCheck(C,re,Pt,ae)}C.Compile=Compile})(Lr||(q.TypeCompiler=Lr={}))},25269:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});q.ValueErrorIterator=q.ValueErrorType=void 0;var lt=re(65507);Object.defineProperty(q,"ValueErrorType",{enumerable:true,get:function(){return lt.ValueErrorType}});Object.defineProperty(q,"ValueErrorIterator",{enumerable:true,get:function(){return lt.ValueErrorIterator}});Ue(re(75364),q)},91660:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Errors=q.ValueErrorIterator=q.ValueErrorsUnknownTypeError=q.ValueErrorType=void 0;const ae=re(82129);const Ue=re(73373);const lt=re(51786);const Pt=re(82486);const Wt=re(84039);const Ar=re(26113);const Er=re(40886);const Ir=re(7210);const Br=re(97034);const kr=re(54025);const Pr=re(17479);var Qr;(function(C){C[C["ArrayContains"]=0]="ArrayContains";C[C["ArrayMaxContains"]=1]="ArrayMaxContains";C[C["ArrayMaxItems"]=2]="ArrayMaxItems";C[C["ArrayMinContains"]=3]="ArrayMinContains";C[C["ArrayMinItems"]=4]="ArrayMinItems";C[C["ArrayUniqueItems"]=5]="ArrayUniqueItems";C[C["Array"]=6]="Array";C[C["AsyncIterator"]=7]="AsyncIterator";C[C["BigIntExclusiveMaximum"]=8]="BigIntExclusiveMaximum";C[C["BigIntExclusiveMinimum"]=9]="BigIntExclusiveMinimum";C[C["BigIntMaximum"]=10]="BigIntMaximum";C[C["BigIntMinimum"]=11]="BigIntMinimum";C[C["BigIntMultipleOf"]=12]="BigIntMultipleOf";C[C["BigInt"]=13]="BigInt";C[C["Boolean"]=14]="Boolean";C[C["DateExclusiveMaximumTimestamp"]=15]="DateExclusiveMaximumTimestamp";C[C["DateExclusiveMinimumTimestamp"]=16]="DateExclusiveMinimumTimestamp";C[C["DateMaximumTimestamp"]=17]="DateMaximumTimestamp";C[C["DateMinimumTimestamp"]=18]="DateMinimumTimestamp";C[C["DateMultipleOfTimestamp"]=19]="DateMultipleOfTimestamp";C[C["Date"]=20]="Date";C[C["Function"]=21]="Function";C[C["IntegerExclusiveMaximum"]=22]="IntegerExclusiveMaximum";C[C["IntegerExclusiveMinimum"]=23]="IntegerExclusiveMinimum";C[C["IntegerMaximum"]=24]="IntegerMaximum";C[C["IntegerMinimum"]=25]="IntegerMinimum";C[C["IntegerMultipleOf"]=26]="IntegerMultipleOf";C[C["Integer"]=27]="Integer";C[C["IntersectUnevaluatedProperties"]=28]="IntersectUnevaluatedProperties";C[C["Intersect"]=29]="Intersect";C[C["Iterator"]=30]="Iterator";C[C["Kind"]=31]="Kind";C[C["Literal"]=32]="Literal";C[C["Never"]=33]="Never";C[C["Not"]=34]="Not";C[C["Null"]=35]="Null";C[C["NumberExclusiveMaximum"]=36]="NumberExclusiveMaximum";C[C["NumberExclusiveMinimum"]=37]="NumberExclusiveMinimum";C[C["NumberMaximum"]=38]="NumberMaximum";C[C["NumberMinimum"]=39]="NumberMinimum";C[C["NumberMultipleOf"]=40]="NumberMultipleOf";C[C["Number"]=41]="Number";C[C["ObjectAdditionalProperties"]=42]="ObjectAdditionalProperties";C[C["ObjectMaxProperties"]=43]="ObjectMaxProperties";C[C["ObjectMinProperties"]=44]="ObjectMinProperties";C[C["ObjectRequiredProperty"]=45]="ObjectRequiredProperty";C[C["Object"]=46]="Object";C[C["Promise"]=47]="Promise";C[C["RegExp"]=48]="RegExp";C[C["StringFormatUnknown"]=49]="StringFormatUnknown";C[C["StringFormat"]=50]="StringFormat";C[C["StringMaxLength"]=51]="StringMaxLength";C[C["StringMinLength"]=52]="StringMinLength";C[C["StringPattern"]=53]="StringPattern";C[C["String"]=54]="String";C[C["Symbol"]=55]="Symbol";C[C["TupleLength"]=56]="TupleLength";C[C["Tuple"]=57]="Tuple";C[C["Uint8ArrayMaxByteLength"]=58]="Uint8ArrayMaxByteLength";C[C["Uint8ArrayMinByteLength"]=59]="Uint8ArrayMinByteLength";C[C["Uint8Array"]=60]="Uint8Array";C[C["Undefined"]=61]="Undefined";C[C["Union"]=62]="Union";C[C["Void"]=63]="Void"})(Qr||(q.ValueErrorType=Qr={}));class ValueErrorsUnknownTypeError extends Ar.TypeBoxError{constructor(C){super("Unknown type");this.schema=C}}q.ValueErrorsUnknownTypeError=ValueErrorsUnknownTypeError;function EscapeKey(C){return C.replace(/~/g,"~0").replace(/\//g,"~1")}function IsDefined(C){return C!==undefined}class ValueErrorIterator{constructor(C){this.iterator=C}[Symbol.iterator](){return this.iterator}First(){const C=this.iterator.next();return C.done?undefined:C.value}}q.ValueErrorIterator=ValueErrorIterator;function Create(C,q,re,ae){return{type:C,schema:q,path:re,value:ae,message:(0,Wt.GetErrorFunction)()({errorType:C,path:re,schema:q,value:ae})}}function*FromAny(C,q,re,ae){}function*FromArray(C,q,re,ae){if(!(0,Pr.IsArray)(ae)){return yield Create(Qr.Array,C,re,ae)}if(IsDefined(C.minItems)&&!(ae.length>=C.minItems)){yield Create(Qr.ArrayMinItems,C,re,ae)}if(IsDefined(C.maxItems)&&!(ae.length<=C.maxItems)){yield Create(Qr.ArrayMaxItems,C,re,ae)}for(let Ue=0;UeVisit(Ue,q,`${re}${lt}`,ae).next().done===true?C+1:C),0);if(lt===0){yield Create(Qr.ArrayContains,C,re,ae)}if((0,Pr.IsNumber)(C.minContains)&<C.maxContains){yield Create(Qr.ArrayMaxContains,C,re,ae)}}function*FromAsyncIterator(C,q,re,ae){if(!(0,Pr.IsAsyncIterator)(ae))yield Create(Qr.AsyncIterator,C,re,ae)}function*FromBigInt(C,q,re,ae){if(!(0,Pr.IsBigInt)(ae))return yield Create(Qr.BigInt,C,re,ae);if(IsDefined(C.exclusiveMaximum)&&!(aeC.exclusiveMinimum)){yield Create(Qr.BigIntExclusiveMinimum,C,re,ae)}if(IsDefined(C.maximum)&&!(ae<=C.maximum)){yield Create(Qr.BigIntMaximum,C,re,ae)}if(IsDefined(C.minimum)&&!(ae>=C.minimum)){yield Create(Qr.BigIntMinimum,C,re,ae)}if(IsDefined(C.multipleOf)&&!(ae%C.multipleOf===BigInt(0))){yield Create(Qr.BigIntMultipleOf,C,re,ae)}}function*FromBoolean(C,q,re,ae){if(!(0,Pr.IsBoolean)(ae))yield Create(Qr.Boolean,C,re,ae)}function*FromConstructor(C,q,re,ae){yield*Visit(C.returns,q,re,ae.prototype)}function*FromDate(C,q,re,ae){if(!(0,Pr.IsDate)(ae))return yield Create(Qr.Date,C,re,ae);if(IsDefined(C.exclusiveMaximumTimestamp)&&!(ae.getTime()C.exclusiveMinimumTimestamp)){yield Create(Qr.DateExclusiveMinimumTimestamp,C,re,ae)}if(IsDefined(C.maximumTimestamp)&&!(ae.getTime()<=C.maximumTimestamp)){yield Create(Qr.DateMaximumTimestamp,C,re,ae)}if(IsDefined(C.minimumTimestamp)&&!(ae.getTime()>=C.minimumTimestamp)){yield Create(Qr.DateMinimumTimestamp,C,re,ae)}if(IsDefined(C.multipleOfTimestamp)&&!(ae.getTime()%C.multipleOfTimestamp===0)){yield Create(Qr.DateMultipleOfTimestamp,C,re,ae)}}function*FromFunction(C,q,re,ae){if(!(0,Pr.IsFunction)(ae))yield Create(Qr.Function,C,re,ae)}function*FromInteger(C,q,re,ae){if(!(0,Pr.IsInteger)(ae))return yield Create(Qr.Integer,C,re,ae);if(IsDefined(C.exclusiveMaximum)&&!(aeC.exclusiveMinimum)){yield Create(Qr.IntegerExclusiveMinimum,C,re,ae)}if(IsDefined(C.maximum)&&!(ae<=C.maximum)){yield Create(Qr.IntegerMaximum,C,re,ae)}if(IsDefined(C.minimum)&&!(ae>=C.minimum)){yield Create(Qr.IntegerMinimum,C,re,ae)}if(IsDefined(C.multipleOf)&&!(ae%C.multipleOf===0)){yield Create(Qr.IntegerMultipleOf,C,re,ae)}}function*FromIntersect(C,q,re,ae){for(const Ue of C.allOf){const lt=Visit(Ue,q,re,ae).next();if(!lt.done){yield Create(Qr.Intersect,C,re,ae);yield lt.value}}if(C.unevaluatedProperties===false){const q=new RegExp((0,Ue.KeyOfPattern)(C));for(const Ue of Object.getOwnPropertyNames(ae)){if(!q.test(Ue)){yield Create(Qr.IntersectUnevaluatedProperties,C,`${re}/${Ue}`,ae)}}}if(typeof C.unevaluatedProperties==="object"){const lt=new RegExp((0,Ue.KeyOfPattern)(C));for(const Ue of Object.getOwnPropertyNames(ae)){if(!lt.test(Ue)){const lt=Visit(C.unevaluatedProperties,q,`${re}/${Ue}`,ae[Ue]).next();if(!lt.done)yield lt.value}}}}function*FromIterator(C,q,re,ae){if(!(0,Pr.IsIterator)(ae))yield Create(Qr.Iterator,C,re,ae)}function*FromLiteral(C,q,re,ae){if(!(ae===C.const))yield Create(Qr.Literal,C,re,ae)}function*FromNever(C,q,re,ae){yield Create(Qr.Never,C,re,ae)}function*FromNot(C,q,re,ae){if(Visit(C.not,q,re,ae).next().done===true)yield Create(Qr.Not,C,re,ae)}function*FromNull(C,q,re,ae){if(!(0,Pr.IsNull)(ae))yield Create(Qr.Null,C,re,ae)}function*FromNumber(C,q,re,Ue){if(!ae.TypeSystemPolicy.IsNumberLike(Ue))return yield Create(Qr.Number,C,re,Ue);if(IsDefined(C.exclusiveMaximum)&&!(UeC.exclusiveMinimum)){yield Create(Qr.NumberExclusiveMinimum,C,re,Ue)}if(IsDefined(C.maximum)&&!(Ue<=C.maximum)){yield Create(Qr.NumberMaximum,C,re,Ue)}if(IsDefined(C.minimum)&&!(Ue>=C.minimum)){yield Create(Qr.NumberMinimum,C,re,Ue)}if(IsDefined(C.multipleOf)&&!(Ue%C.multipleOf===0)){yield Create(Qr.NumberMultipleOf,C,re,Ue)}}function*FromObject(C,q,re,Ue){if(!ae.TypeSystemPolicy.IsObjectLike(Ue))return yield Create(Qr.Object,C,re,Ue);if(IsDefined(C.minProperties)&&!(Object.getOwnPropertyNames(Ue).length>=C.minProperties)){yield Create(Qr.ObjectMinProperties,C,re,Ue)}if(IsDefined(C.maxProperties)&&!(Object.getOwnPropertyNames(Ue).length<=C.maxProperties)){yield Create(Qr.ObjectMaxProperties,C,re,Ue)}const lt=Array.isArray(C.required)?C.required:[];const Wt=Object.getOwnPropertyNames(C.properties);const Ar=Object.getOwnPropertyNames(Ue);for(const q of lt){if(Ar.includes(q))continue;yield Create(Qr.ObjectRequiredProperty,C.properties[q],`${re}/${EscapeKey(q)}`,undefined)}if(C.additionalProperties===false){for(const q of Ar){if(!Wt.includes(q)){yield Create(Qr.ObjectAdditionalProperties,C,`${re}/${EscapeKey(q)}`,Ue[q])}}}if(typeof C.additionalProperties==="object"){for(const ae of Ar){if(Wt.includes(ae))continue;yield*Visit(C.additionalProperties,q,`${re}/${EscapeKey(ae)}`,Ue[ae])}}for(const lt of Wt){const Wt=C.properties[lt];if(C.required&&C.required.includes(lt)){yield*Visit(Wt,q,`${re}/${EscapeKey(lt)}`,Ue[lt]);if((0,Pt.ExtendsUndefinedCheck)(C)&&!(lt in Ue)){yield Create(Qr.ObjectRequiredProperty,Wt,`${re}/${EscapeKey(lt)}`,undefined)}}else{if(ae.TypeSystemPolicy.IsExactOptionalProperty(Ue,lt)){yield*Visit(Wt,q,`${re}/${EscapeKey(lt)}`,Ue[lt])}}}}function*FromPromise(C,q,re,ae){if(!(0,Pr.IsPromise)(ae))yield Create(Qr.Promise,C,re,ae)}function*FromRecord(C,q,re,Ue){if(!ae.TypeSystemPolicy.IsRecordLike(Ue))return yield Create(Qr.Object,C,re,Ue);if(IsDefined(C.minProperties)&&!(Object.getOwnPropertyNames(Ue).length>=C.minProperties)){yield Create(Qr.ObjectMinProperties,C,re,Ue)}if(IsDefined(C.maxProperties)&&!(Object.getOwnPropertyNames(Ue).length<=C.maxProperties)){yield Create(Qr.ObjectMaxProperties,C,re,Ue)}const[lt,Pt]=Object.entries(C.patternProperties)[0];const Wt=new RegExp(lt);for(const[C,ae]of Object.entries(Ue)){if(Wt.test(C))yield*Visit(Pt,q,`${re}/${EscapeKey(C)}`,ae)}if(typeof C.additionalProperties==="object"){for(const[ae,lt]of Object.entries(Ue)){if(!Wt.test(ae))yield*Visit(C.additionalProperties,q,`${re}/${EscapeKey(ae)}`,lt)}}if(C.additionalProperties===false){for(const[q,ae]of Object.entries(Ue)){if(Wt.test(q))continue;return yield Create(Qr.ObjectAdditionalProperties,C,`${re}/${EscapeKey(q)}`,ae)}}}function*FromRef(C,q,re,ae){yield*Visit((0,Er.Deref)(C,q),q,re,ae)}function*FromRegExp(C,q,re,ae){if(!(0,Pr.IsString)(ae))return yield Create(Qr.String,C,re,ae);if(IsDefined(C.minLength)&&!(ae.length>=C.minLength)){yield Create(Qr.StringMinLength,C,re,ae)}if(IsDefined(C.maxLength)&&!(ae.length<=C.maxLength)){yield Create(Qr.StringMaxLength,C,re,ae)}const Ue=new RegExp(C.source,C.flags);if(!Ue.test(ae)){return yield Create(Qr.RegExp,C,re,ae)}}function*FromString(C,q,re,ae){if(!(0,Pr.IsString)(ae))return yield Create(Qr.String,C,re,ae);if(IsDefined(C.minLength)&&!(ae.length>=C.minLength)){yield Create(Qr.StringMinLength,C,re,ae)}if(IsDefined(C.maxLength)&&!(ae.length<=C.maxLength)){yield Create(Qr.StringMaxLength,C,re,ae)}if((0,Pr.IsString)(C.pattern)){const q=new RegExp(C.pattern);if(!q.test(ae)){yield Create(Qr.StringPattern,C,re,ae)}}if((0,Pr.IsString)(C.format)){if(!lt.FormatRegistry.Has(C.format)){yield Create(Qr.StringFormatUnknown,C,re,ae)}else{const q=lt.FormatRegistry.Get(C.format);if(!q(ae)){yield Create(Qr.StringFormat,C,re,ae)}}}}function*FromSymbol(C,q,re,ae){if(!(0,Pr.IsSymbol)(ae))yield Create(Qr.Symbol,C,re,ae)}function*FromTemplateLiteral(C,q,re,ae){if(!(0,Pr.IsString)(ae))return yield Create(Qr.String,C,re,ae);const Ue=new RegExp(C.pattern);if(!Ue.test(ae)){yield Create(Qr.StringPattern,C,re,ae)}}function*FromThis(C,q,re,ae){yield*Visit((0,Er.Deref)(C,q),q,re,ae)}function*FromTuple(C,q,re,ae){if(!(0,Pr.IsArray)(ae))return yield Create(Qr.Tuple,C,re,ae);if(C.items===undefined&&!(ae.length===0)){return yield Create(Qr.TupleLength,C,re,ae)}if(!(ae.length===C.maxItems)){return yield Create(Qr.TupleLength,C,re,ae)}if(!C.items){return}for(let Ue=0;Ue0){yield Create(Qr.Union,C,re,ae)}}function*FromUint8Array(C,q,re,ae){if(!(0,Pr.IsUint8Array)(ae))return yield Create(Qr.Uint8Array,C,re,ae);if(IsDefined(C.maxByteLength)&&!(ae.length<=C.maxByteLength)){yield Create(Qr.Uint8ArrayMaxByteLength,C,re,ae)}if(IsDefined(C.minByteLength)&&!(ae.length>=C.minByteLength)){yield Create(Qr.Uint8ArrayMinByteLength,C,re,ae)}}function*FromUnknown(C,q,re,ae){}function*FromVoid(C,q,re,Ue){if(!ae.TypeSystemPolicy.IsVoidLike(Ue))yield Create(Qr.Void,C,re,Ue)}function*FromKind(C,q,re,ae){const Ue=lt.TypeRegistry.Get(C[Br.Kind]);if(!Ue(C,ae))yield Create(Qr.Kind,C,re,ae)}function*Visit(C,q,re,ae){const Ue=IsDefined(C.$id)?[...q,C]:q;const Pt=C;switch(Pt[Br.Kind]){case"Any":return yield*FromAny(Pt,Ue,re,ae);case"Array":return yield*FromArray(Pt,Ue,re,ae);case"AsyncIterator":return yield*FromAsyncIterator(Pt,Ue,re,ae);case"BigInt":return yield*FromBigInt(Pt,Ue,re,ae);case"Boolean":return yield*FromBoolean(Pt,Ue,re,ae);case"Constructor":return yield*FromConstructor(Pt,Ue,re,ae);case"Date":return yield*FromDate(Pt,Ue,re,ae);case"Function":return yield*FromFunction(Pt,Ue,re,ae);case"Integer":return yield*FromInteger(Pt,Ue,re,ae);case"Intersect":return yield*FromIntersect(Pt,Ue,re,ae);case"Iterator":return yield*FromIterator(Pt,Ue,re,ae);case"Literal":return yield*FromLiteral(Pt,Ue,re,ae);case"Never":return yield*FromNever(Pt,Ue,re,ae);case"Not":return yield*FromNot(Pt,Ue,re,ae);case"Null":return yield*FromNull(Pt,Ue,re,ae);case"Number":return yield*FromNumber(Pt,Ue,re,ae);case"Object":return yield*FromObject(Pt,Ue,re,ae);case"Promise":return yield*FromPromise(Pt,Ue,re,ae);case"Record":return yield*FromRecord(Pt,Ue,re,ae);case"Ref":return yield*FromRef(Pt,Ue,re,ae);case"RegExp":return yield*FromRegExp(Pt,Ue,re,ae);case"String":return yield*FromString(Pt,Ue,re,ae);case"Symbol":return yield*FromSymbol(Pt,Ue,re,ae);case"TemplateLiteral":return yield*FromTemplateLiteral(Pt,Ue,re,ae);case"This":return yield*FromThis(Pt,Ue,re,ae);case"Tuple":return yield*FromTuple(Pt,Ue,re,ae);case"Undefined":return yield*FromUndefined(Pt,Ue,re,ae);case"Union":return yield*FromUnion(Pt,Ue,re,ae);case"Uint8Array":return yield*FromUint8Array(Pt,Ue,re,ae);case"Unknown":return yield*FromUnknown(Pt,Ue,re,ae);case"Void":return yield*FromVoid(Pt,Ue,re,ae);default:if(!lt.TypeRegistry.Has(Pt[Br.Kind]))throw new ValueErrorsUnknownTypeError(C);return yield*FromKind(Pt,Ue,re,ae)}}function Errors(...C){const q=C.length===3?Visit(C[0],C[1],"",C[2]):Visit(C[0],[],"",C[1]);return new ValueErrorIterator(q)}q.Errors=Errors},84039:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.GetErrorFunction=q.SetErrorFunction=q.DefaultErrorFunction=void 0;const ae=re(97034);const Ue=re(91660);function DefaultErrorFunction(C){switch(C.errorType){case Ue.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case Ue.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${C.schema.maxContains} matching values`;case Ue.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${C.schema.minContains} matching values`;case Ue.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${C.schema.maxItems}`;case Ue.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${C.schema.minItems}`;case Ue.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case Ue.ValueErrorType.Array:return"Expected array";case Ue.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case Ue.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${C.schema.exclusiveMaximum}`;case Ue.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${C.schema.exclusiveMinimum}`;case Ue.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${C.schema.maximum}`;case Ue.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${C.schema.minimum}`;case Ue.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${C.schema.multipleOf}`;case Ue.ValueErrorType.BigInt:return"Expected bigint";case Ue.ValueErrorType.Boolean:return"Expected boolean";case Ue.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${C.schema.exclusiveMinimumTimestamp}`;case Ue.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${C.schema.exclusiveMaximumTimestamp}`;case Ue.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${C.schema.minimumTimestamp}`;case Ue.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${C.schema.maximumTimestamp}`;case Ue.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${C.schema.multipleOfTimestamp}`;case Ue.ValueErrorType.Date:return"Expected Date";case Ue.ValueErrorType.Function:return"Expected function";case Ue.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${C.schema.exclusiveMaximum}`;case Ue.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${C.schema.exclusiveMinimum}`;case Ue.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${C.schema.maximum}`;case Ue.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${C.schema.minimum}`;case Ue.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${C.schema.multipleOf}`;case Ue.ValueErrorType.Integer:return"Expected integer";case Ue.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case Ue.ValueErrorType.Intersect:return"Expected all values to match";case Ue.ValueErrorType.Iterator:return"Expected Iterator";case Ue.ValueErrorType.Literal:return`Expected ${typeof C.schema.const==="string"?`'${C.schema.const}'`:C.schema.const}`;case Ue.ValueErrorType.Never:return"Never";case Ue.ValueErrorType.Not:return"Value should not match";case Ue.ValueErrorType.Null:return"Expected null";case Ue.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${C.schema.exclusiveMaximum}`;case Ue.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${C.schema.exclusiveMinimum}`;case Ue.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${C.schema.maximum}`;case Ue.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${C.schema.minimum}`;case Ue.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${C.schema.multipleOf}`;case Ue.ValueErrorType.Number:return"Expected number";case Ue.ValueErrorType.Object:return"Expected object";case Ue.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case Ue.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${C.schema.maxProperties} properties`;case Ue.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${C.schema.minProperties} properties`;case Ue.ValueErrorType.ObjectRequiredProperty:return"Required property";case Ue.ValueErrorType.Promise:return"Expected Promise";case Ue.ValueErrorType.RegExp:return"Expected string to match regular expression";case Ue.ValueErrorType.StringFormatUnknown:return`Unknown format '${C.schema.format}'`;case Ue.ValueErrorType.StringFormat:return`Expected string to match '${C.schema.format}' format`;case Ue.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${C.schema.maxLength}`;case Ue.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${C.schema.minLength}`;case Ue.ValueErrorType.StringPattern:return`Expected string to match '${C.schema.pattern}'`;case Ue.ValueErrorType.String:return"Expected string";case Ue.ValueErrorType.Symbol:return"Expected symbol";case Ue.ValueErrorType.TupleLength:return`Expected tuple to have ${C.schema.maxItems||0} elements`;case Ue.ValueErrorType.Tuple:return"Expected tuple";case Ue.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${C.schema.maxByteLength}`;case Ue.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${C.schema.minByteLength}`;case Ue.ValueErrorType.Uint8Array:return"Expected Uint8Array";case Ue.ValueErrorType.Undefined:return"Expected undefined";case Ue.ValueErrorType.Union:return"Expected union value";case Ue.ValueErrorType.Void:return"Expected void";case Ue.ValueErrorType.Kind:return`Expected kind '${C.schema[ae.Kind]}'`;default:return"Unknown error type"}}q.DefaultErrorFunction=DefaultErrorFunction;let lt=DefaultErrorFunction;function SetErrorFunction(C){lt=C}q.SetErrorFunction=SetErrorFunction;function GetErrorFunction(){return lt}q.GetErrorFunction=GetErrorFunction},65507:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(91660),q);Ue(re(84039),q)},14019:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(91769),q);Ue(re(26113),q);Ue(re(64754),q);Ue(re(57782),q);Ue(re(94354),q);Ue(re(51786),q);Ue(re(12760),q);Ue(re(97034),q);Ue(re(36813),q);Ue(re(17186),q);Ue(re(68092),q);Ue(re(85164),q);Ue(re(13278),q);Ue(re(64515),q);Ue(re(80788),q);Ue(re(19236),q);Ue(re(16939),q);Ue(re(58562),q);Ue(re(49305),q);Ue(re(911),q);Ue(re(98056),q);Ue(re(41153),q);Ue(re(94850),q);Ue(re(69682),q);Ue(re(29857),q);Ue(re(86918),q);Ue(re(26277),q);Ue(re(4949),q);Ue(re(62746),q);Ue(re(35907),q);Ue(re(30568),q);Ue(re(73373),q);Ue(re(98076),q);Ue(re(41094),q);Ue(re(54025),q);Ue(re(1078),q);Ue(re(50468),q);Ue(re(85544),q);Ue(re(62094),q);Ue(re(88932),q);Ue(re(38425),q);Ue(re(30449),q);Ue(re(75726),q);Ue(re(40640),q);Ue(re(70062),q);Ue(re(40675),q);Ue(re(78946),q);Ue(re(30420),q);Ue(re(33107),q);Ue(re(80470),q);Ue(re(26936),q);Ue(re(42744),q);Ue(re(83003),q);Ue(re(32970),q);Ue(re(68954),q);Ue(re(60343),q);Ue(re(23556),q);Ue(re(81688),q);Ue(re(2129),q);Ue(re(26609),q);Ue(re(67575),q);Ue(re(7521),q);Ue(re(45760),q);Ue(re(96231),q);Ue(re(69100),q);Ue(re(51897),q);Ue(re(23339),q);Ue(re(81947),q);Ue(re(68237),q)},82129:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(17755),q);Ue(re(15912),q)},17755:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeSystemPolicy=void 0;const ae=re(17479);var Ue;(function(C){C.ExactOptionalPropertyTypes=false;C.AllowArrayObject=false;C.AllowNaN=false;C.AllowNullVoid=false;function IsExactOptionalProperty(q,re){return C.ExactOptionalPropertyTypes?re in q:q[re]!==undefined}C.IsExactOptionalProperty=IsExactOptionalProperty;function IsObjectLike(q){const re=(0,ae.IsObject)(q);return C.AllowArrayObject?re:re&&!(0,ae.IsArray)(q)}C.IsObjectLike=IsObjectLike;function IsRecordLike(C){return IsObjectLike(C)&&!(C instanceof Date)&&!(C instanceof Uint8Array)}C.IsRecordLike=IsRecordLike;function IsNumberLike(q){return C.AllowNaN?(0,ae.IsNumber)(q):Number.isFinite(q)}C.IsNumberLike=IsNumberLike;function IsVoidLike(q){const re=(0,ae.IsUndefined)(q);return C.AllowNullVoid?re||q===null:re}C.IsVoidLike=IsVoidLike})(Ue||(q.TypeSystemPolicy=Ue={}))},15912:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeSystem=q.TypeSystemDuplicateFormat=q.TypeSystemDuplicateTypeKind=void 0;const ae=re(51786);const Ue=re(23339);const lt=re(97034);const Pt=re(26113);class TypeSystemDuplicateTypeKind extends Pt.TypeBoxError{constructor(C){super(`Duplicate type kind '${C}' detected`)}}q.TypeSystemDuplicateTypeKind=TypeSystemDuplicateTypeKind;class TypeSystemDuplicateFormat extends Pt.TypeBoxError{constructor(C){super(`Duplicate string format '${C}' detected`)}}q.TypeSystemDuplicateFormat=TypeSystemDuplicateFormat;var Wt;(function(C){function Type(C,q){if(ae.TypeRegistry.Has(C))throw new TypeSystemDuplicateTypeKind(C);ae.TypeRegistry.Set(C,q);return(q={})=>(0,Ue.Unsafe)({...q,[lt.Kind]:C})}C.Type=Type;function Format(C,q){if(ae.FormatRegistry.Has(C))throw new TypeSystemDuplicateFormat(C);ae.FormatRegistry.Set(C,q);return C}C.Format=Format})(Wt||(q.TypeSystem=Wt={}))},57815:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Any=void 0;const ae=re(97034);function Any(C={}){return{...C,[ae.Kind]:"Any"}}q.Any=Any},36813:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(57815),q)},45311:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Array=void 0;const ae=re(38100);const Ue=re(97034);function Array(C,q={}){return{...q,[Ue.Kind]:"Array",type:"array",items:(0,ae.CloneType)(C)}}q.Array=Array},17186:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(45311),q)},15007:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.AsyncIterator=void 0;const ae=re(97034);const Ue=re(38100);function AsyncIterator(C,q={}){return{...q,[ae.Kind]:"AsyncIterator",type:"AsyncIterator",items:(0,Ue.CloneType)(C)}}q.AsyncIterator=AsyncIterator},68092:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(15007),q)},68263:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Awaited=void 0;const ae=re(62746);const Ue=re(69100);const lt=re(38100);const Pt=re(96994);function FromRest(C){return C.map((C=>AwaitedResolve(C)))}function FromIntersect(C){return(0,ae.Intersect)(FromRest(C))}function FromUnion(C){return(0,Ue.Union)(FromRest(C))}function FromPromise(C){return AwaitedResolve(C)}function AwaitedResolve(C){return(0,Pt.IsIntersect)(C)?FromIntersect(C.allOf):(0,Pt.IsUnion)(C)?FromUnion(C.anyOf):(0,Pt.IsPromise)(C)?FromPromise(C.item):C}function Awaited(C,q={}){return(0,lt.CloneType)(AwaitedResolve(C),q)}q.Awaited=Awaited},85164:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(68263),q)},9495:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.BigInt=void 0;const ae=re(97034);function BigInt(C={}){return{...C,[ae.Kind]:"BigInt",type:"bigint"}}q.BigInt=BigInt},13278:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(9495),q)},53715:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Boolean=void 0;const ae=re(97034);function Boolean(C={}){return{...C,[ae.Kind]:"Boolean",type:"boolean"}}q.Boolean=Boolean},64515:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(53715),q)},91769:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(38100),q);Ue(re(80387),q)},38100:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.CloneType=q.CloneRest=void 0;const ae=re(80387);function CloneRest(C){return C.map((C=>CloneType(C)))}q.CloneRest=CloneRest;function CloneType(C,q={}){return{...(0,ae.Clone)(C),...q}}q.CloneType=CloneType},80387:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Clone=void 0;const ae=re(13415);function ArrayType(C){return C.map((C=>Visit(C)))}function DateType(C){return new Date(C.getTime())}function Uint8ArrayType(C){return new Uint8Array(C)}function RegExpType(C){return new RegExp(C.source,C.flags)}function ObjectType(C){const q={};for(const re of Object.getOwnPropertyNames(C)){q[re]=Visit(C[re])}for(const re of Object.getOwnPropertySymbols(C)){q[re]=Visit(C[re])}return q}function Visit(C){return ae.IsArray(C)?ArrayType(C):ae.IsDate(C)?DateType(C):ae.IsUint8Array(C)?Uint8ArrayType(C):ae.IsRegExp(C)?RegExpType(C):ae.IsObject(C)?ObjectType(C):C}function Clone(C){return Visit(C)}q.Clone=Clone},67263:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Composite=void 0;const ae=re(62746);const Ue=re(86918);const lt=re(73373);const Pt=re(62094);const Wt=re(12760);const Ar=re(96994);function CompositeKeys(C){const q=[];for(const re of C)q.push(...(0,lt.KeyOfPropertyKeys)(re));return(0,Wt.SetDistinct)(q)}function FilterNever(C){return C.filter((C=>!(0,Ar.IsNever)(C)))}function CompositeProperty(C,q){const re=[];for(const ae of C)re.push(...(0,Ue.IndexFromPropertyKeys)(ae,[q]));return FilterNever(re)}function CompositeProperties(C,q){const re={};for(const Ue of q){re[Ue]=(0,ae.IntersectEvaluated)(CompositeProperty(C,Ue))}return re}function Composite(C,q={}){const re=CompositeKeys(C);const ae=CompositeProperties(C,re);const Ue=(0,Pt.Object)(ae,q);return Ue}q.Composite=Composite},80788:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(67263),q)},54191:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Const=void 0;const ae=re(36813);const Ue=re(13278);const lt=re(49305);const Pt=re(29857);const Wt=re(98076);const Ar=re(50468);const Er=re(62094);const Ir=re(2129);const Br=re(7521);const kr=re(40675);const Pr=re(96231);const Qr=re(45760);const Fr=re(51897);const Dr=re(91769);const xr=re(13415);function FromArray(C){return C.map((C=>FromValue(C,false)))}function FromProperties(C){const q={};for(const re of globalThis.Object.getOwnPropertyNames(C))q[re]=(0,kr.Readonly)(FromValue(C[re],false));return q}function ConditionalReadonly(C,q){return q===true?C:(0,kr.Readonly)(C)}function FromValue(C,q){return(0,xr.IsAsyncIterator)(C)?ConditionalReadonly((0,ae.Any)(),q):(0,xr.IsIterator)(C)?ConditionalReadonly((0,ae.Any)(),q):(0,xr.IsArray)(C)?(0,kr.Readonly)((0,Br.Tuple)(FromArray(C))):(0,xr.IsUint8Array)(C)?(0,Qr.Uint8Array)():(0,xr.IsDate)(C)?(0,lt.Date)():(0,xr.IsObject)(C)?ConditionalReadonly((0,Er.Object)(FromProperties(C)),q):(0,xr.IsFunction)(C)?ConditionalReadonly((0,Pt.Function)([],(0,Fr.Unknown)()),q):(0,xr.IsUndefined)(C)?(0,Pr.Undefined)():(0,xr.IsNull)(C)?(0,Ar.Null)():(0,xr.IsSymbol)(C)?(0,Ir.Symbol)():(0,xr.IsBigInt)(C)?(0,Ue.BigInt)():(0,xr.IsNumber)(C)?(0,Wt.Literal)(C):(0,xr.IsBoolean)(C)?(0,Wt.Literal)(C):(0,xr.IsString)(C)?(0,Wt.Literal)(C):(0,Er.Object)({})}function Const(C,q={}){return(0,Dr.CloneType)(FromValue(C,true),q)}q.Const=Const},19236:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(54191),q)},96127:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ConstructorParameters=void 0;const ae=re(7521);const Ue=re(38100);function ConstructorParameters(C,q={}){return(0,ae.Tuple)((0,Ue.CloneRest)(C.parameters),{...q})}q.ConstructorParameters=ConstructorParameters},58562:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(96127),q)},89035:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Constructor=void 0;const ae=re(38100);const Ue=re(97034);function Constructor(C,q,re){return{...re,[Ue.Kind]:"Constructor",type:"Constructor",parameters:(0,ae.CloneRest)(C),returns:(0,ae.CloneType)(q)}}q.Constructor=Constructor},16939:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(89035),q)},7617:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Date=void 0;const ae=re(97034);function Date(C={}){return{...C,[ae.Kind]:"Date",type:"Date"}}q.Date=Date},49305:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(7617),q)},79911:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Deref=void 0;const ae=re(38100);const Ue=re(83889);const lt=re(13415);const Pt=re(96994);function FromRest(C,q){return C.map((C=>Deref(C,q)))}function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C)){re[ae]=Deref(C[ae],q)}return re}function FromConstructor(C,q){C.parameters=FromRest(C.parameters,q);C.returns=Deref(C.returns,q);return C}function FromFunction(C,q){C.parameters=FromRest(C.parameters,q);C.returns=Deref(C.returns,q);return C}function FromIntersect(C,q){C.allOf=FromRest(C.allOf,q);return C}function FromUnion(C,q){C.anyOf=FromRest(C.anyOf,q);return C}function FromTuple(C,q){if((0,lt.IsUndefined)(C.items))return C;C.items=FromRest(C.items,q);return C}function FromArray(C,q){C.items=Deref(C.items,q);return C}function FromObject(C,q){C.properties=FromProperties(C.properties,q);return C}function FromPromise(C,q){C.item=Deref(C.item,q);return C}function FromAsyncIterator(C,q){C.items=Deref(C.items,q);return C}function FromIterator(C,q){C.items=Deref(C.items,q);return C}function FromRef(C,q){const re=q.find((q=>q.$id===C.$ref));if(re===undefined)throw Error(`Unable to dereference schema with $id ${C.$ref}`);const ae=(0,Ue.Discard)(re,["$id"]);return Deref(ae,q)}function DerefResolve(C,q){return(0,Pt.IsConstructor)(C)?FromConstructor(C,q):(0,Pt.IsFunction)(C)?FromFunction(C,q):(0,Pt.IsIntersect)(C)?FromIntersect(C,q):(0,Pt.IsUnion)(C)?FromUnion(C,q):(0,Pt.IsTuple)(C)?FromTuple(C,q):(0,Pt.IsArray)(C)?FromArray(C,q):(0,Pt.IsObject)(C)?FromObject(C,q):(0,Pt.IsPromise)(C)?FromPromise(C,q):(0,Pt.IsAsyncIterator)(C)?FromAsyncIterator(C,q):(0,Pt.IsIterator)(C)?FromIterator(C,q):(0,Pt.IsRef)(C)?FromRef(C,q):C}function Deref(C,q){return DerefResolve((0,ae.CloneType)(C),(0,ae.CloneRest)(q))}q.Deref=Deref},911:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(79911),q)},8147:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Discard=void 0;function DiscardKey(C,q){const{[q]:re,...ae}=C;return ae}function Discard(C,q){return q.reduce(((C,q)=>DiscardKey(C,q)),C)}q.Discard=Discard},83889:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(8147),q)},77991:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Enum=void 0;const ae=re(98076);const Ue=re(97034);const lt=re(69100);const Pt=re(13415);function Enum(C,q={}){if((0,Pt.IsUndefined)(C))throw new Error("Enum undefined or empty");const re=globalThis.Object.getOwnPropertyNames(C).filter((C=>isNaN(C))).map((q=>C[q]));const Wt=[...new Set(re)];const Ar=Wt.map((C=>(0,ae.Literal)(C)));return(0,lt.Union)(Ar,{...q,[Ue.Hint]:"Enum"})}q.Enum=Enum},98056:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(77991),q)},85523:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeBoxError=void 0;class TypeBoxError extends Error{constructor(C){super(C)}}q.TypeBoxError=TypeBoxError},26113:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85523),q)},92094:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExcludeFromMappedResult=void 0;const ae=re(41094);const Ue=re(63651);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Exclude)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function ExcludeFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.ExcludeFromMappedResult=ExcludeFromMappedResult},9505:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExcludeFromTemplateLiteral=void 0;const ae=re(63651);const Ue=re(26609);function ExcludeFromTemplateLiteral(C,q){return(0,ae.Exclude)((0,Ue.TemplateLiteralToUnion)(C),q)}q.ExcludeFromTemplateLiteral=ExcludeFromTemplateLiteral},63651:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Exclude=void 0;const ae=re(69100);const Ue=re(54025);const lt=re(94850);const Pt=re(38100);const Wt=re(92094);const Ar=re(9505);const Er=re(96994);function ExcludeRest(C,q){const re=C.filter((C=>(0,lt.ExtendsCheck)(C,q)===lt.ExtendsResult.False));return re.length===1?re[0]:(0,ae.Union)(re)}function Exclude(C,q,re={}){if((0,Er.IsTemplateLiteral)(C))return(0,Pt.CloneType)((0,Ar.ExcludeFromTemplateLiteral)(C,q),re);if((0,Er.IsMappedResult)(C))return(0,Pt.CloneType)((0,Wt.ExcludeFromMappedResult)(C,q),re);return(0,Pt.CloneType)((0,Er.IsUnion)(C)?ExcludeRest(C.anyOf,q):(0,lt.ExtendsCheck)(C,q)!==lt.ExtendsResult.False?(0,Ue.Never)():C,re)}q.Exclude=Exclude},41153:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(92094),q);Ue(re(9505),q);Ue(re(63651),q)},18410:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtendsCheck=q.ExtendsResult=q.ExtendsResolverError=void 0;const ae=re(36813);const Ue=re(29857);const lt=re(85544);const Pt=re(81688);const Wt=re(51897);const Ar=re(26609);const Er=re(94354);const Ir=re(97034);const Br=re(26113);const kr=re(64754);class ExtendsResolverError extends Br.TypeBoxError{}q.ExtendsResolverError=ExtendsResolverError;var Pr;(function(C){C[C["Union"]=0]="Union";C[C["True"]=1]="True";C[C["False"]=2]="False"})(Pr||(q.ExtendsResult=Pr={}));function IntoBooleanResult(C){return C===Pr.False?C:Pr.True}function Throw(C){throw new ExtendsResolverError(C)}function IsStructuralRight(C){return kr.TypeGuard.IsNever(C)||kr.TypeGuard.IsIntersect(C)||kr.TypeGuard.IsUnion(C)||kr.TypeGuard.IsUnknown(C)||kr.TypeGuard.IsAny(C)}function StructuralRight(C,q){return kr.TypeGuard.IsNever(q)?FromNeverRight(C,q):kr.TypeGuard.IsIntersect(q)?FromIntersectRight(C,q):kr.TypeGuard.IsUnion(q)?FromUnionRight(C,q):kr.TypeGuard.IsUnknown(q)?FromUnknownRight(C,q):kr.TypeGuard.IsAny(q)?FromAnyRight(C,q):Throw("StructuralRight")}function FromAnyRight(C,q){return Pr.True}function FromAny(C,q){return kr.TypeGuard.IsIntersect(q)?FromIntersectRight(C,q):kr.TypeGuard.IsUnion(q)&&q.anyOf.some((C=>kr.TypeGuard.IsAny(C)||kr.TypeGuard.IsUnknown(C)))?Pr.True:kr.TypeGuard.IsUnion(q)?Pr.Union:kr.TypeGuard.IsUnknown(q)?Pr.True:kr.TypeGuard.IsAny(q)?Pr.True:Pr.Union}function FromArrayRight(C,q){return kr.TypeGuard.IsUnknown(C)?Pr.False:kr.TypeGuard.IsAny(C)?Pr.Union:kr.TypeGuard.IsNever(C)?Pr.True:Pr.False}function FromArray(C,q){return kr.TypeGuard.IsObject(q)&&IsObjectArrayLike(q)?Pr.True:IsStructuralRight(q)?StructuralRight(C,q):!kr.TypeGuard.IsArray(q)?Pr.False:IntoBooleanResult(Visit(C.items,q.items))}function FromAsyncIterator(C,q){return IsStructuralRight(q)?StructuralRight(C,q):!kr.TypeGuard.IsAsyncIterator(q)?Pr.False:IntoBooleanResult(Visit(C.items,q.items))}function FromBigInt(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsBigInt(q)?Pr.True:Pr.False}function FromBooleanRight(C,q){return kr.TypeGuard.IsLiteralBoolean(C)?Pr.True:kr.TypeGuard.IsBoolean(C)?Pr.True:Pr.False}function FromBoolean(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsBoolean(q)?Pr.True:Pr.False}function FromConstructor(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):!kr.TypeGuard.IsConstructor(q)?Pr.False:C.parameters.length>q.parameters.length?Pr.False:!C.parameters.every(((C,re)=>IntoBooleanResult(Visit(q.parameters[re],C))===Pr.True))?Pr.False:IntoBooleanResult(Visit(C.returns,q.returns))}function FromDate(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsDate(q)?Pr.True:Pr.False}function FromFunction(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):!kr.TypeGuard.IsFunction(q)?Pr.False:C.parameters.length>q.parameters.length?Pr.False:!C.parameters.every(((C,re)=>IntoBooleanResult(Visit(q.parameters[re],C))===Pr.True))?Pr.False:IntoBooleanResult(Visit(C.returns,q.returns))}function FromIntegerRight(C,q){return kr.TypeGuard.IsLiteral(C)&&kr.ValueGuard.IsNumber(C.const)?Pr.True:kr.TypeGuard.IsNumber(C)||kr.TypeGuard.IsInteger(C)?Pr.True:Pr.False}function FromInteger(C,q){return kr.TypeGuard.IsInteger(q)||kr.TypeGuard.IsNumber(q)?Pr.True:IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):Pr.False}function FromIntersectRight(C,q){return q.allOf.every((q=>Visit(C,q)===Pr.True))?Pr.True:Pr.False}function FromIntersect(C,q){return C.allOf.some((C=>Visit(C,q)===Pr.True))?Pr.True:Pr.False}function FromIterator(C,q){return IsStructuralRight(q)?StructuralRight(C,q):!kr.TypeGuard.IsIterator(q)?Pr.False:IntoBooleanResult(Visit(C.items,q.items))}function FromLiteral(C,q){return kr.TypeGuard.IsLiteral(q)&&q.const===C.const?Pr.True:IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsString(q)?FromStringRight(C,q):kr.TypeGuard.IsNumber(q)?FromNumberRight(C,q):kr.TypeGuard.IsInteger(q)?FromIntegerRight(C,q):kr.TypeGuard.IsBoolean(q)?FromBooleanRight(C,q):Pr.False}function FromNeverRight(C,q){return Pr.False}function FromNever(C,q){return Pr.True}function UnwrapTNot(C){let[q,re]=[C,0];while(true){if(!kr.TypeGuard.IsNot(q))break;q=q.not;re+=1}return re%2===0?q:(0,Wt.Unknown)()}function FromNot(C,q){return kr.TypeGuard.IsNot(C)?Visit(UnwrapTNot(C),q):kr.TypeGuard.IsNot(q)?Visit(C,UnwrapTNot(q)):Throw("Invalid fallthrough for Not")}function FromNull(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsNull(q)?Pr.True:Pr.False}function FromNumberRight(C,q){return kr.TypeGuard.IsLiteralNumber(C)?Pr.True:kr.TypeGuard.IsNumber(C)||kr.TypeGuard.IsInteger(C)?Pr.True:Pr.False}function FromNumber(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsInteger(q)||kr.TypeGuard.IsNumber(q)?Pr.True:Pr.False}function IsObjectPropertyCount(C,q){return Object.getOwnPropertyNames(C.properties).length===q}function IsObjectStringLike(C){return IsObjectArrayLike(C)}function IsObjectSymbolLike(C){return IsObjectPropertyCount(C,0)||IsObjectPropertyCount(C,1)&&"description"in C.properties&&kr.TypeGuard.IsUnion(C.properties.description)&&C.properties.description.anyOf.length===2&&(kr.TypeGuard.IsString(C.properties.description.anyOf[0])&&kr.TypeGuard.IsUndefined(C.properties.description.anyOf[1])||kr.TypeGuard.IsString(C.properties.description.anyOf[1])&&kr.TypeGuard.IsUndefined(C.properties.description.anyOf[0]))}function IsObjectNumberLike(C){return IsObjectPropertyCount(C,0)}function IsObjectBooleanLike(C){return IsObjectPropertyCount(C,0)}function IsObjectBigIntLike(C){return IsObjectPropertyCount(C,0)}function IsObjectDateLike(C){return IsObjectPropertyCount(C,0)}function IsObjectUint8ArrayLike(C){return IsObjectArrayLike(C)}function IsObjectFunctionLike(C){const q=(0,lt.Number)();return IsObjectPropertyCount(C,0)||IsObjectPropertyCount(C,1)&&"length"in C.properties&&IntoBooleanResult(Visit(C.properties["length"],q))===Pr.True}function IsObjectConstructorLike(C){return IsObjectPropertyCount(C,0)}function IsObjectArrayLike(C){const q=(0,lt.Number)();return IsObjectPropertyCount(C,0)||IsObjectPropertyCount(C,1)&&"length"in C.properties&&IntoBooleanResult(Visit(C.properties["length"],q))===Pr.True}function IsObjectPromiseLike(C){const q=(0,Ue.Function)([(0,ae.Any)()],(0,ae.Any)());return IsObjectPropertyCount(C,0)||IsObjectPropertyCount(C,1)&&"then"in C.properties&&IntoBooleanResult(Visit(C.properties["then"],q))===Pr.True}function Property(C,q){return Visit(C,q)===Pr.False?Pr.False:kr.TypeGuard.IsOptional(C)&&!kr.TypeGuard.IsOptional(q)?Pr.False:Pr.True}function FromObjectRight(C,q){return kr.TypeGuard.IsUnknown(C)?Pr.False:kr.TypeGuard.IsAny(C)?Pr.Union:kr.TypeGuard.IsNever(C)||kr.TypeGuard.IsLiteralString(C)&&IsObjectStringLike(q)||kr.TypeGuard.IsLiteralNumber(C)&&IsObjectNumberLike(q)||kr.TypeGuard.IsLiteralBoolean(C)&&IsObjectBooleanLike(q)||kr.TypeGuard.IsSymbol(C)&&IsObjectSymbolLike(q)||kr.TypeGuard.IsBigInt(C)&&IsObjectBigIntLike(q)||kr.TypeGuard.IsString(C)&&IsObjectStringLike(q)||kr.TypeGuard.IsSymbol(C)&&IsObjectSymbolLike(q)||kr.TypeGuard.IsNumber(C)&&IsObjectNumberLike(q)||kr.TypeGuard.IsInteger(C)&&IsObjectNumberLike(q)||kr.TypeGuard.IsBoolean(C)&&IsObjectBooleanLike(q)||kr.TypeGuard.IsUint8Array(C)&&IsObjectUint8ArrayLike(q)||kr.TypeGuard.IsDate(C)&&IsObjectDateLike(q)||kr.TypeGuard.IsConstructor(C)&&IsObjectConstructorLike(q)||kr.TypeGuard.IsFunction(C)&&IsObjectFunctionLike(q)?Pr.True:kr.TypeGuard.IsRecord(C)&&kr.TypeGuard.IsString(RecordKey(C))?(()=>q[Ir.Hint]==="Record"?Pr.True:Pr.False)():kr.TypeGuard.IsRecord(C)&&kr.TypeGuard.IsNumber(RecordKey(C))?(()=>IsObjectPropertyCount(q,0)?Pr.True:Pr.False)():Pr.False}function FromObject(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):!kr.TypeGuard.IsObject(q)?Pr.False:(()=>{for(const re of Object.getOwnPropertyNames(q.properties)){if(!(re in C.properties)&&!kr.TypeGuard.IsOptional(q.properties[re])){return Pr.False}if(kr.TypeGuard.IsOptional(q.properties[re])){return Pr.True}if(Property(C.properties[re],q.properties[re])===Pr.False){return Pr.False}}return Pr.True})()}function FromPromise(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)&&IsObjectPromiseLike(q)?Pr.True:!kr.TypeGuard.IsPromise(q)?Pr.False:IntoBooleanResult(Visit(C.item,q.item))}function RecordKey(C){return Er.PatternNumberExact in C.patternProperties?(0,lt.Number)():Er.PatternStringExact in C.patternProperties?(0,Pt.String)():Throw("Unknown record key pattern")}function RecordValue(C){return Er.PatternNumberExact in C.patternProperties?C.patternProperties[Er.PatternNumberExact]:Er.PatternStringExact in C.patternProperties?C.patternProperties[Er.PatternStringExact]:Throw("Unable to get record value schema")}function FromRecordRight(C,q){const[re,ae]=[RecordKey(q),RecordValue(q)];return kr.TypeGuard.IsLiteralString(C)&&kr.TypeGuard.IsNumber(re)&&IntoBooleanResult(Visit(C,ae))===Pr.True?Pr.True:kr.TypeGuard.IsUint8Array(C)&&kr.TypeGuard.IsNumber(re)?Visit(C,ae):kr.TypeGuard.IsString(C)&&kr.TypeGuard.IsNumber(re)?Visit(C,ae):kr.TypeGuard.IsArray(C)&&kr.TypeGuard.IsNumber(re)?Visit(C,ae):kr.TypeGuard.IsObject(C)?(()=>{for(const q of Object.getOwnPropertyNames(C.properties)){if(Property(ae,C.properties[q])===Pr.False){return Pr.False}}return Pr.True})():Pr.False}function FromRecord(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):!kr.TypeGuard.IsRecord(q)?Pr.False:Visit(RecordValue(C),RecordValue(q))}function FromRegExp(C,q){const re=kr.TypeGuard.IsRegExp(C)?(0,Pt.String)():C;const ae=kr.TypeGuard.IsRegExp(q)?(0,Pt.String)():q;return Visit(re,ae)}function FromStringRight(C,q){return kr.TypeGuard.IsLiteral(C)&&kr.ValueGuard.IsString(C.const)?Pr.True:kr.TypeGuard.IsString(C)?Pr.True:Pr.False}function FromString(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsString(q)?Pr.True:Pr.False}function FromSymbol(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsSymbol(q)?Pr.True:Pr.False}function FromTemplateLiteral(C,q){return kr.TypeGuard.IsTemplateLiteral(C)?Visit((0,Ar.TemplateLiteralToUnion)(C),q):kr.TypeGuard.IsTemplateLiteral(q)?Visit(C,(0,Ar.TemplateLiteralToUnion)(q)):Throw("Invalid fallthrough for TemplateLiteral")}function IsArrayOfTuple(C,q){return kr.TypeGuard.IsArray(q)&&C.items!==undefined&&C.items.every((C=>Visit(C,q.items)===Pr.True))}function FromTupleRight(C,q){return kr.TypeGuard.IsNever(C)?Pr.True:kr.TypeGuard.IsUnknown(C)?Pr.False:kr.TypeGuard.IsAny(C)?Pr.Union:Pr.False}function FromTuple(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)&&IsObjectArrayLike(q)?Pr.True:kr.TypeGuard.IsArray(q)&&IsArrayOfTuple(C,q)?Pr.True:!kr.TypeGuard.IsTuple(q)?Pr.False:kr.ValueGuard.IsUndefined(C.items)&&!kr.ValueGuard.IsUndefined(q.items)||!kr.ValueGuard.IsUndefined(C.items)&&kr.ValueGuard.IsUndefined(q.items)?Pr.False:kr.ValueGuard.IsUndefined(C.items)&&!kr.ValueGuard.IsUndefined(q.items)?Pr.True:C.items.every(((C,re)=>Visit(C,q.items[re])===Pr.True))?Pr.True:Pr.False}function FromUint8Array(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsUint8Array(q)?Pr.True:Pr.False}function FromUndefined(C,q){return IsStructuralRight(q)?StructuralRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsRecord(q)?FromRecordRight(C,q):kr.TypeGuard.IsVoid(q)?FromVoidRight(C,q):kr.TypeGuard.IsUndefined(q)?Pr.True:Pr.False}function FromUnionRight(C,q){return q.anyOf.some((q=>Visit(C,q)===Pr.True))?Pr.True:Pr.False}function FromUnion(C,q){return C.anyOf.every((C=>Visit(C,q)===Pr.True))?Pr.True:Pr.False}function FromUnknownRight(C,q){return Pr.True}function FromUnknown(C,q){return kr.TypeGuard.IsNever(q)?FromNeverRight(C,q):kr.TypeGuard.IsIntersect(q)?FromIntersectRight(C,q):kr.TypeGuard.IsUnion(q)?FromUnionRight(C,q):kr.TypeGuard.IsAny(q)?FromAnyRight(C,q):kr.TypeGuard.IsString(q)?FromStringRight(C,q):kr.TypeGuard.IsNumber(q)?FromNumberRight(C,q):kr.TypeGuard.IsInteger(q)?FromIntegerRight(C,q):kr.TypeGuard.IsBoolean(q)?FromBooleanRight(C,q):kr.TypeGuard.IsArray(q)?FromArrayRight(C,q):kr.TypeGuard.IsTuple(q)?FromTupleRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsUnknown(q)?Pr.True:Pr.False}function FromVoidRight(C,q){return kr.TypeGuard.IsUndefined(C)?Pr.True:kr.TypeGuard.IsUndefined(C)?Pr.True:Pr.False}function FromVoid(C,q){return kr.TypeGuard.IsIntersect(q)?FromIntersectRight(C,q):kr.TypeGuard.IsUnion(q)?FromUnionRight(C,q):kr.TypeGuard.IsUnknown(q)?FromUnknownRight(C,q):kr.TypeGuard.IsAny(q)?FromAnyRight(C,q):kr.TypeGuard.IsObject(q)?FromObjectRight(C,q):kr.TypeGuard.IsVoid(q)?Pr.True:Pr.False}function Visit(C,q){return kr.TypeGuard.IsTemplateLiteral(C)||kr.TypeGuard.IsTemplateLiteral(q)?FromTemplateLiteral(C,q):kr.TypeGuard.IsRegExp(C)||kr.TypeGuard.IsRegExp(q)?FromRegExp(C,q):kr.TypeGuard.IsNot(C)||kr.TypeGuard.IsNot(q)?FromNot(C,q):kr.TypeGuard.IsAny(C)?FromAny(C,q):kr.TypeGuard.IsArray(C)?FromArray(C,q):kr.TypeGuard.IsBigInt(C)?FromBigInt(C,q):kr.TypeGuard.IsBoolean(C)?FromBoolean(C,q):kr.TypeGuard.IsAsyncIterator(C)?FromAsyncIterator(C,q):kr.TypeGuard.IsConstructor(C)?FromConstructor(C,q):kr.TypeGuard.IsDate(C)?FromDate(C,q):kr.TypeGuard.IsFunction(C)?FromFunction(C,q):kr.TypeGuard.IsInteger(C)?FromInteger(C,q):kr.TypeGuard.IsIntersect(C)?FromIntersect(C,q):kr.TypeGuard.IsIterator(C)?FromIterator(C,q):kr.TypeGuard.IsLiteral(C)?FromLiteral(C,q):kr.TypeGuard.IsNever(C)?FromNever(C,q):kr.TypeGuard.IsNull(C)?FromNull(C,q):kr.TypeGuard.IsNumber(C)?FromNumber(C,q):kr.TypeGuard.IsObject(C)?FromObject(C,q):kr.TypeGuard.IsRecord(C)?FromRecord(C,q):kr.TypeGuard.IsString(C)?FromString(C,q):kr.TypeGuard.IsSymbol(C)?FromSymbol(C,q):kr.TypeGuard.IsTuple(C)?FromTuple(C,q):kr.TypeGuard.IsPromise(C)?FromPromise(C,q):kr.TypeGuard.IsUint8Array(C)?FromUint8Array(C,q):kr.TypeGuard.IsUndefined(C)?FromUndefined(C,q):kr.TypeGuard.IsUnion(C)?FromUnion(C,q):kr.TypeGuard.IsUnknown(C)?FromUnknown(C,q):kr.TypeGuard.IsVoid(C)?FromVoid(C,q):Throw(`Unknown left type operand '${C[Ir.Kind]}'`)}function ExtendsCheck(C,q){return Visit(C,q)}q.ExtendsCheck=ExtendsCheck},83948:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtendsFromMappedKey=void 0;const ae=re(41094);const Ue=re(98076);const lt=re(34263);function FromPropertyKey(C,q,re,ae,Pt){return{[C]:(0,lt.Extends)((0,Ue.Literal)(C),q,re,ae,Pt)}}function FromPropertyKeys(C,q,re,ae,Ue){return C.reduce(((C,lt)=>({...C,...FromPropertyKey(lt,q,re,ae,Ue)})),{})}function FromMappedKey(C,q,re,ae,Ue){return FromPropertyKeys(C.keys,q,re,ae,Ue)}function ExtendsFromMappedKey(C,q,re,Ue,lt){const Pt=FromMappedKey(C,q,re,Ue,lt);return(0,ae.MappedResult)(Pt)}q.ExtendsFromMappedKey=ExtendsFromMappedKey},80338:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtendsFromMappedResult=void 0;const ae=re(41094);const Ue=re(34263);function FromProperties(C,q,re,ae,lt){const Pt={};for(const Wt of globalThis.Object.getOwnPropertyNames(C))Pt[Wt]=(0,Ue.Extends)(C[Wt],q,re,ae,lt);return Pt}function FromMappedResult(C,q,re,ae,Ue){return FromProperties(C.properties,q,re,ae,Ue)}function ExtendsFromMappedResult(C,q,re,Ue,lt){const Pt=FromMappedResult(C,q,re,Ue,lt);return(0,ae.MappedResult)(Pt)}q.ExtendsFromMappedResult=ExtendsFromMappedResult},82486:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtendsUndefinedCheck=void 0;const ae=re(97034);function Intersect(C){return C.allOf.every((C=>ExtendsUndefinedCheck(C)))}function Union(C){return C.anyOf.some((C=>ExtendsUndefinedCheck(C)))}function Not(C){return!ExtendsUndefinedCheck(C.not)}function ExtendsUndefinedCheck(C){return C[ae.Kind]==="Intersect"?Intersect(C):C[ae.Kind]==="Union"?Union(C):C[ae.Kind]==="Not"?Not(C):C[ae.Kind]==="Undefined"?true:false}q.ExtendsUndefinedCheck=ExtendsUndefinedCheck},34263:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Extends=void 0;const ae=re(69100);const Ue=re(18410);const lt=re(38100);const Pt=re(83948);const Wt=re(80338);const Ar=re(96994);function ExtendsResolve(C,q,re,lt){const Pt=(0,Ue.ExtendsCheck)(C,q);return Pt===Ue.ExtendsResult.Union?(0,ae.Union)([re,lt]):Pt===Ue.ExtendsResult.True?re:lt}function Extends(C,q,re,ae,Ue={}){return(0,Ar.IsMappedResult)(C)?(0,Wt.ExtendsFromMappedResult)(C,q,re,ae,Ue):(0,Ar.IsMappedKey)(C)?(0,lt.CloneType)((0,Pt.ExtendsFromMappedKey)(C,q,re,ae,Ue)):(0,lt.CloneType)(ExtendsResolve(C,q,re,ae),Ue)}q.Extends=Extends},94850:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(18410),q);Ue(re(83948),q);Ue(re(80338),q);Ue(re(82486),q);Ue(re(34263),q)},70826:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtractFromMappedResult=void 0;const ae=re(41094);const Ue=re(4847);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Extract)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function ExtractFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.ExtractFromMappedResult=ExtractFromMappedResult},50253:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ExtractFromTemplateLiteral=void 0;const ae=re(4847);const Ue=re(26609);function ExtractFromTemplateLiteral(C,q){return(0,ae.Extract)((0,Ue.TemplateLiteralToUnion)(C),q)}q.ExtractFromTemplateLiteral=ExtractFromTemplateLiteral},4847:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Extract=void 0;const ae=re(69100);const Ue=re(54025);const lt=re(94850);const Pt=re(38100);const Wt=re(70826);const Ar=re(50253);const Er=re(96994);function ExtractRest(C,q){const re=C.filter((C=>(0,lt.ExtendsCheck)(C,q)!==lt.ExtendsResult.False));return re.length===1?re[0]:(0,ae.Union)(re)}function Extract(C,q,re={}){if((0,Er.IsTemplateLiteral)(C))return(0,Pt.CloneType)((0,Ar.ExtractFromTemplateLiteral)(C,q),re);if((0,Er.IsMappedResult)(C))return(0,Pt.CloneType)((0,Wt.ExtractFromMappedResult)(C,q),re);return(0,Pt.CloneType)((0,Er.IsUnion)(C)?ExtractRest(C.anyOf,q):(0,lt.ExtendsCheck)(C,q)!==lt.ExtendsResult.False?C:(0,Ue.Never)(),re)}q.Extract=Extract},69682:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(70826),q);Ue(re(50253),q);Ue(re(4847),q)},93649:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Function=void 0;const ae=re(38100);const Ue=re(97034);function Function(C,q,re){return{...re,[Ue.Kind]:"Function",type:"Function",parameters:(0,ae.CloneRest)(C),returns:(0,ae.CloneType)(q)}}q.Function=Function},29857:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(93649),q)},64754:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ValueGuard=q.TypeGuard=q.KindGuard=void 0;q.KindGuard=re(96994);q.TypeGuard=re(70384);q.ValueGuard=re(13415)},96994:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsSchema=q.IsKind=q.IsVoid=q.IsUnsafe=q.IsUnknown=q.IsUint8Array=q.IsUnion=q.IsUndefined=q.IsTuple=q.IsTransform=q.IsThis=q.IsTemplateLiteral=q.IsSymbol=q.IsString=q.IsRegExp=q.IsRef=q.IsRecursive=q.IsRecord=q.IsPromise=q.IsObject=q.IsNumber=q.IsNull=q.IsNot=q.IsNever=q.IsMappedResult=q.IsMappedKey=q.IsLiteral=q.IsLiteralBoolean=q.IsLiteralNumber=q.IsLiteralString=q.IsKindOf=q.IsIterator=q.IsIntersect=q.IsProperties=q.IsInteger=q.IsFunction=q.IsDate=q.IsConstructor=q.IsBoolean=q.IsBigInt=q.IsAsyncIterator=q.IsArray=q.IsAny=q.IsOptional=q.IsReadonly=void 0;const ae=re(13415);const Ue=re(97034);function IsReadonly(C){return ae.IsObject(C)&&C[Ue.ReadonlyKind]==="Readonly"}q.IsReadonly=IsReadonly;function IsOptional(C){return ae.IsObject(C)&&C[Ue.OptionalKind]==="Optional"}q.IsOptional=IsOptional;function IsAny(C){return IsKindOf(C,"Any")}q.IsAny=IsAny;function IsArray(C){return IsKindOf(C,"Array")}q.IsArray=IsArray;function IsAsyncIterator(C){return IsKindOf(C,"AsyncIterator")}q.IsAsyncIterator=IsAsyncIterator;function IsBigInt(C){return IsKindOf(C,"BigInt")}q.IsBigInt=IsBigInt;function IsBoolean(C){return IsKindOf(C,"Boolean")}q.IsBoolean=IsBoolean;function IsConstructor(C){return IsKindOf(C,"Constructor")}q.IsConstructor=IsConstructor;function IsDate(C){return IsKindOf(C,"Date")}q.IsDate=IsDate;function IsFunction(C){return IsKindOf(C,"Function")}q.IsFunction=IsFunction;function IsInteger(C){return IsKindOf(C,"Integer")}q.IsInteger=IsInteger;function IsProperties(C){return ae.IsObject(C)}q.IsProperties=IsProperties;function IsIntersect(C){return IsKindOf(C,"Intersect")}q.IsIntersect=IsIntersect;function IsIterator(C){return IsKindOf(C,"Iterator")}q.IsIterator=IsIterator;function IsKindOf(C,q){return ae.IsObject(C)&&Ue.Kind in C&&C[Ue.Kind]===q}q.IsKindOf=IsKindOf;function IsLiteralString(C){return IsLiteral(C)&&ae.IsString(C.const)}q.IsLiteralString=IsLiteralString;function IsLiteralNumber(C){return IsLiteral(C)&&ae.IsNumber(C.const)}q.IsLiteralNumber=IsLiteralNumber;function IsLiteralBoolean(C){return IsLiteral(C)&&ae.IsBoolean(C.const)}q.IsLiteralBoolean=IsLiteralBoolean;function IsLiteral(C){return IsKindOf(C,"Literal")}q.IsLiteral=IsLiteral;function IsMappedKey(C){return IsKindOf(C,"MappedKey")}q.IsMappedKey=IsMappedKey;function IsMappedResult(C){return IsKindOf(C,"MappedResult")}q.IsMappedResult=IsMappedResult;function IsNever(C){return IsKindOf(C,"Never")}q.IsNever=IsNever;function IsNot(C){return IsKindOf(C,"Not")}q.IsNot=IsNot;function IsNull(C){return IsKindOf(C,"Null")}q.IsNull=IsNull;function IsNumber(C){return IsKindOf(C,"Number")}q.IsNumber=IsNumber;function IsObject(C){return IsKindOf(C,"Object")}q.IsObject=IsObject;function IsPromise(C){return IsKindOf(C,"Promise")}q.IsPromise=IsPromise;function IsRecord(C){return IsKindOf(C,"Record")}q.IsRecord=IsRecord;function IsRecursive(C){return ae.IsObject(C)&&Ue.Hint in C&&C[Ue.Hint]==="Recursive"}q.IsRecursive=IsRecursive;function IsRef(C){return IsKindOf(C,"Ref")}q.IsRef=IsRef;function IsRegExp(C){return IsKindOf(C,"RegExp")}q.IsRegExp=IsRegExp;function IsString(C){return IsKindOf(C,"String")}q.IsString=IsString;function IsSymbol(C){return IsKindOf(C,"Symbol")}q.IsSymbol=IsSymbol;function IsTemplateLiteral(C){return IsKindOf(C,"TemplateLiteral")}q.IsTemplateLiteral=IsTemplateLiteral;function IsThis(C){return IsKindOf(C,"This")}q.IsThis=IsThis;function IsTransform(C){return ae.IsObject(C)&&Ue.TransformKind in C}q.IsTransform=IsTransform;function IsTuple(C){return IsKindOf(C,"Tuple")}q.IsTuple=IsTuple;function IsUndefined(C){return IsKindOf(C,"Undefined")}q.IsUndefined=IsUndefined;function IsUnion(C){return IsKindOf(C,"Union")}q.IsUnion=IsUnion;function IsUint8Array(C){return IsKindOf(C,"Uint8Array")}q.IsUint8Array=IsUint8Array;function IsUnknown(C){return IsKindOf(C,"Unknown")}q.IsUnknown=IsUnknown;function IsUnsafe(C){return IsKindOf(C,"Unsafe")}q.IsUnsafe=IsUnsafe;function IsVoid(C){return IsKindOf(C,"Void")}q.IsVoid=IsVoid;function IsKind(C){return ae.IsObject(C)&&Ue.Kind in C&&ae.IsString(C[Ue.Kind])}q.IsKind=IsKind;function IsSchema(C){return IsAny(C)||IsArray(C)||IsBoolean(C)||IsBigInt(C)||IsAsyncIterator(C)||IsConstructor(C)||IsDate(C)||IsFunction(C)||IsInteger(C)||IsIntersect(C)||IsIterator(C)||IsLiteral(C)||IsMappedKey(C)||IsMappedResult(C)||IsNever(C)||IsNot(C)||IsNull(C)||IsNumber(C)||IsObject(C)||IsPromise(C)||IsRecord(C)||IsRef(C)||IsRegExp(C)||IsString(C)||IsSymbol(C)||IsTemplateLiteral(C)||IsThis(C)||IsTuple(C)||IsUndefined(C)||IsUnion(C)||IsUint8Array(C)||IsUnknown(C)||IsUnsafe(C)||IsVoid(C)||IsKind(C)}q.IsSchema=IsSchema},70384:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsSchema=q.IsKind=q.IsVoid=q.IsUnsafe=q.IsUnknown=q.IsUint8Array=q.IsUnion=q.IsUnionLiteral=q.IsUndefined=q.IsTuple=q.IsTransform=q.IsThis=q.IsTemplateLiteral=q.IsSymbol=q.IsString=q.IsRegExp=q.IsRef=q.IsRecursive=q.IsRecord=q.IsPromise=q.IsObject=q.IsNumber=q.IsNull=q.IsNot=q.IsNever=q.IsMappedResult=q.IsMappedKey=q.IsLiteralValue=q.IsLiteral=q.IsLiteralBoolean=q.IsLiteralNumber=q.IsLiteralString=q.IsKindOf=q.IsIterator=q.IsIntersect=q.IsProperties=q.IsInteger=q.IsFunction=q.IsDate=q.IsConstructor=q.IsBoolean=q.IsBigInt=q.IsAsyncIterator=q.IsArray=q.IsAny=q.IsOptional=q.IsReadonly=q.TypeGuardUnknownTypeError=void 0;const ae=re(13415);const Ue=re(97034);const lt=re(26113);class TypeGuardUnknownTypeError extends lt.TypeBoxError{}q.TypeGuardUnknownTypeError=TypeGuardUnknownTypeError;const Pt=["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(C){try{new RegExp(C);return true}catch{return false}}function IsControlCharacterFree(C){if(!ae.IsString(C))return false;for(let q=0;q=7&&re<=13||re===27||re===127){return false}}return true}function IsAdditionalProperties(C){return IsOptionalBoolean(C)||IsSchema(C)}function IsOptionalBigInt(C){return ae.IsUndefined(C)||ae.IsBigInt(C)}function IsOptionalNumber(C){return ae.IsUndefined(C)||ae.IsNumber(C)}function IsOptionalBoolean(C){return ae.IsUndefined(C)||ae.IsBoolean(C)}function IsOptionalString(C){return ae.IsUndefined(C)||ae.IsString(C)}function IsOptionalPattern(C){return ae.IsUndefined(C)||ae.IsString(C)&&IsControlCharacterFree(C)&&IsPattern(C)}function IsOptionalFormat(C){return ae.IsUndefined(C)||ae.IsString(C)&&IsControlCharacterFree(C)}function IsOptionalSchema(C){return ae.IsUndefined(C)||IsSchema(C)}function IsReadonly(C){return ae.IsObject(C)&&C[Ue.ReadonlyKind]==="Readonly"}q.IsReadonly=IsReadonly;function IsOptional(C){return ae.IsObject(C)&&C[Ue.OptionalKind]==="Optional"}q.IsOptional=IsOptional;function IsAny(C){return IsKindOf(C,"Any")&&IsOptionalString(C.$id)}q.IsAny=IsAny;function IsArray(C){return IsKindOf(C,"Array")&&C.type==="array"&&IsOptionalString(C.$id)&&IsSchema(C.items)&&IsOptionalNumber(C.minItems)&&IsOptionalNumber(C.maxItems)&&IsOptionalBoolean(C.uniqueItems)&&IsOptionalSchema(C.contains)&&IsOptionalNumber(C.minContains)&&IsOptionalNumber(C.maxContains)}q.IsArray=IsArray;function IsAsyncIterator(C){return IsKindOf(C,"AsyncIterator")&&C.type==="AsyncIterator"&&IsOptionalString(C.$id)&&IsSchema(C.items)}q.IsAsyncIterator=IsAsyncIterator;function IsBigInt(C){return IsKindOf(C,"BigInt")&&C.type==="bigint"&&IsOptionalString(C.$id)&&IsOptionalBigInt(C.exclusiveMaximum)&&IsOptionalBigInt(C.exclusiveMinimum)&&IsOptionalBigInt(C.maximum)&&IsOptionalBigInt(C.minimum)&&IsOptionalBigInt(C.multipleOf)}q.IsBigInt=IsBigInt;function IsBoolean(C){return IsKindOf(C,"Boolean")&&C.type==="boolean"&&IsOptionalString(C.$id)}q.IsBoolean=IsBoolean;function IsConstructor(C){return IsKindOf(C,"Constructor")&&C.type==="Constructor"&&IsOptionalString(C.$id)&&ae.IsArray(C.parameters)&&C.parameters.every((C=>IsSchema(C)))&&IsSchema(C.returns)}q.IsConstructor=IsConstructor;function IsDate(C){return IsKindOf(C,"Date")&&C.type==="Date"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.exclusiveMaximumTimestamp)&&IsOptionalNumber(C.exclusiveMinimumTimestamp)&&IsOptionalNumber(C.maximumTimestamp)&&IsOptionalNumber(C.minimumTimestamp)&&IsOptionalNumber(C.multipleOfTimestamp)}q.IsDate=IsDate;function IsFunction(C){return IsKindOf(C,"Function")&&C.type==="Function"&&IsOptionalString(C.$id)&&ae.IsArray(C.parameters)&&C.parameters.every((C=>IsSchema(C)))&&IsSchema(C.returns)}q.IsFunction=IsFunction;function IsInteger(C){return IsKindOf(C,"Integer")&&C.type==="integer"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.exclusiveMaximum)&&IsOptionalNumber(C.exclusiveMinimum)&&IsOptionalNumber(C.maximum)&&IsOptionalNumber(C.minimum)&&IsOptionalNumber(C.multipleOf)}q.IsInteger=IsInteger;function IsProperties(C){return ae.IsObject(C)&&Object.entries(C).every((([C,q])=>IsControlCharacterFree(C)&&IsSchema(q)))}q.IsProperties=IsProperties;function IsIntersect(C){return IsKindOf(C,"Intersect")&&(ae.IsString(C.type)&&C.type!=="object"?false:true)&&ae.IsArray(C.allOf)&&C.allOf.every((C=>IsSchema(C)&&!IsTransform(C)))&&IsOptionalString(C.type)&&(IsOptionalBoolean(C.unevaluatedProperties)||IsOptionalSchema(C.unevaluatedProperties))&&IsOptionalString(C.$id)}q.IsIntersect=IsIntersect;function IsIterator(C){return IsKindOf(C,"Iterator")&&C.type==="Iterator"&&IsOptionalString(C.$id)&&IsSchema(C.items)}q.IsIterator=IsIterator;function IsKindOf(C,q){return ae.IsObject(C)&&Ue.Kind in C&&C[Ue.Kind]===q}q.IsKindOf=IsKindOf;function IsLiteralString(C){return IsLiteral(C)&&ae.IsString(C.const)}q.IsLiteralString=IsLiteralString;function IsLiteralNumber(C){return IsLiteral(C)&&ae.IsNumber(C.const)}q.IsLiteralNumber=IsLiteralNumber;function IsLiteralBoolean(C){return IsLiteral(C)&&ae.IsBoolean(C.const)}q.IsLiteralBoolean=IsLiteralBoolean;function IsLiteral(C){return IsKindOf(C,"Literal")&&IsOptionalString(C.$id)&&IsLiteralValue(C.const)}q.IsLiteral=IsLiteral;function IsLiteralValue(C){return ae.IsBoolean(C)||ae.IsNumber(C)||ae.IsString(C)}q.IsLiteralValue=IsLiteralValue;function IsMappedKey(C){return IsKindOf(C,"MappedKey")&&ae.IsArray(C.keys)&&C.keys.every((C=>ae.IsNumber(C)||ae.IsString(C)))}q.IsMappedKey=IsMappedKey;function IsMappedResult(C){return IsKindOf(C,"MappedResult")&&IsProperties(C.properties)}q.IsMappedResult=IsMappedResult;function IsNever(C){return IsKindOf(C,"Never")&&ae.IsObject(C.not)&&Object.getOwnPropertyNames(C.not).length===0}q.IsNever=IsNever;function IsNot(C){return IsKindOf(C,"Not")&&IsSchema(C.not)}q.IsNot=IsNot;function IsNull(C){return IsKindOf(C,"Null")&&C.type==="null"&&IsOptionalString(C.$id)}q.IsNull=IsNull;function IsNumber(C){return IsKindOf(C,"Number")&&C.type==="number"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.exclusiveMaximum)&&IsOptionalNumber(C.exclusiveMinimum)&&IsOptionalNumber(C.maximum)&&IsOptionalNumber(C.minimum)&&IsOptionalNumber(C.multipleOf)}q.IsNumber=IsNumber;function IsObject(C){return IsKindOf(C,"Object")&&C.type==="object"&&IsOptionalString(C.$id)&&IsProperties(C.properties)&&IsAdditionalProperties(C.additionalProperties)&&IsOptionalNumber(C.minProperties)&&IsOptionalNumber(C.maxProperties)}q.IsObject=IsObject;function IsPromise(C){return IsKindOf(C,"Promise")&&C.type==="Promise"&&IsOptionalString(C.$id)&&IsSchema(C.item)}q.IsPromise=IsPromise;function IsRecord(C){return IsKindOf(C,"Record")&&C.type==="object"&&IsOptionalString(C.$id)&&IsAdditionalProperties(C.additionalProperties)&&ae.IsObject(C.patternProperties)&&(C=>{const q=Object.getOwnPropertyNames(C.patternProperties);return q.length===1&&IsPattern(q[0])&&ae.IsObject(C.patternProperties)&&IsSchema(C.patternProperties[q[0]])})(C)}q.IsRecord=IsRecord;function IsRecursive(C){return ae.IsObject(C)&&Ue.Hint in C&&C[Ue.Hint]==="Recursive"}q.IsRecursive=IsRecursive;function IsRef(C){return IsKindOf(C,"Ref")&&IsOptionalString(C.$id)&&ae.IsString(C.$ref)}q.IsRef=IsRef;function IsRegExp(C){return IsKindOf(C,"RegExp")&&IsOptionalString(C.$id)&&ae.IsString(C.source)&&ae.IsString(C.flags)&&IsOptionalNumber(C.maxLength)&&IsOptionalNumber(C.minLength)}q.IsRegExp=IsRegExp;function IsString(C){return IsKindOf(C,"String")&&C.type==="string"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.minLength)&&IsOptionalNumber(C.maxLength)&&IsOptionalPattern(C.pattern)&&IsOptionalFormat(C.format)}q.IsString=IsString;function IsSymbol(C){return IsKindOf(C,"Symbol")&&C.type==="symbol"&&IsOptionalString(C.$id)}q.IsSymbol=IsSymbol;function IsTemplateLiteral(C){return IsKindOf(C,"TemplateLiteral")&&C.type==="string"&&ae.IsString(C.pattern)&&C.pattern[0]==="^"&&C.pattern[C.pattern.length-1]==="$"}q.IsTemplateLiteral=IsTemplateLiteral;function IsThis(C){return IsKindOf(C,"This")&&IsOptionalString(C.$id)&&ae.IsString(C.$ref)}q.IsThis=IsThis;function IsTransform(C){return ae.IsObject(C)&&Ue.TransformKind in C}q.IsTransform=IsTransform;function IsTuple(C){return IsKindOf(C,"Tuple")&&C.type==="array"&&IsOptionalString(C.$id)&&ae.IsNumber(C.minItems)&&ae.IsNumber(C.maxItems)&&C.minItems===C.maxItems&&(ae.IsUndefined(C.items)&&ae.IsUndefined(C.additionalItems)&&C.minItems===0||ae.IsArray(C.items)&&C.items.every((C=>IsSchema(C))))}q.IsTuple=IsTuple;function IsUndefined(C){return IsKindOf(C,"Undefined")&&C.type==="undefined"&&IsOptionalString(C.$id)}q.IsUndefined=IsUndefined;function IsUnionLiteral(C){return IsUnion(C)&&C.anyOf.every((C=>IsLiteralString(C)||IsLiteralNumber(C)))}q.IsUnionLiteral=IsUnionLiteral;function IsUnion(C){return IsKindOf(C,"Union")&&IsOptionalString(C.$id)&&ae.IsObject(C)&&ae.IsArray(C.anyOf)&&C.anyOf.every((C=>IsSchema(C)))}q.IsUnion=IsUnion;function IsUint8Array(C){return IsKindOf(C,"Uint8Array")&&C.type==="Uint8Array"&&IsOptionalString(C.$id)&&IsOptionalNumber(C.minByteLength)&&IsOptionalNumber(C.maxByteLength)}q.IsUint8Array=IsUint8Array;function IsUnknown(C){return IsKindOf(C,"Unknown")&&IsOptionalString(C.$id)}q.IsUnknown=IsUnknown;function IsUnsafe(C){return IsKindOf(C,"Unsafe")}q.IsUnsafe=IsUnsafe;function IsVoid(C){return IsKindOf(C,"Void")&&C.type==="void"&&IsOptionalString(C.$id)}q.IsVoid=IsVoid;function IsKind(C){return ae.IsObject(C)&&Ue.Kind in C&&ae.IsString(C[Ue.Kind])&&!Pt.includes(C[Ue.Kind])}q.IsKind=IsKind;function IsSchema(C){return ae.IsObject(C)&&(IsAny(C)||IsArray(C)||IsBoolean(C)||IsBigInt(C)||IsAsyncIterator(C)||IsConstructor(C)||IsDate(C)||IsFunction(C)||IsInteger(C)||IsIntersect(C)||IsIterator(C)||IsLiteral(C)||IsMappedKey(C)||IsMappedResult(C)||IsNever(C)||IsNot(C)||IsNull(C)||IsNumber(C)||IsObject(C)||IsPromise(C)||IsRecord(C)||IsRef(C)||IsRegExp(C)||IsString(C)||IsSymbol(C)||IsTemplateLiteral(C)||IsThis(C)||IsTuple(C)||IsUndefined(C)||IsUnion(C)||IsUint8Array(C)||IsUnknown(C)||IsUnsafe(C)||IsVoid(C)||IsKind(C))}q.IsSchema=IsSchema},13415:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsUndefined=q.IsUint8Array=q.IsSymbol=q.IsString=q.IsRegExp=q.IsObject=q.IsNumber=q.IsNull=q.IsIterator=q.IsFunction=q.IsDate=q.IsBoolean=q.IsBigInt=q.IsArray=q.IsAsyncIterator=void 0;function IsAsyncIterator(C){return IsObject(C)&&!IsArray(C)&&!IsUint8Array(C)&&Symbol.asyncIterator in C}q.IsAsyncIterator=IsAsyncIterator;function IsArray(C){return Array.isArray(C)}q.IsArray=IsArray;function IsBigInt(C){return typeof C==="bigint"}q.IsBigInt=IsBigInt;function IsBoolean(C){return typeof C==="boolean"}q.IsBoolean=IsBoolean;function IsDate(C){return C instanceof globalThis.Date}q.IsDate=IsDate;function IsFunction(C){return typeof C==="function"}q.IsFunction=IsFunction;function IsIterator(C){return IsObject(C)&&!IsArray(C)&&!IsUint8Array(C)&&Symbol.iterator in C}q.IsIterator=IsIterator;function IsNull(C){return C===null}q.IsNull=IsNull;function IsNumber(C){return typeof C==="number"}q.IsNumber=IsNumber;function IsObject(C){return typeof C==="object"&&C!==null}q.IsObject=IsObject;function IsRegExp(C){return C instanceof globalThis.RegExp}q.IsRegExp=IsRegExp;function IsString(C){return typeof C==="string"}q.IsString=IsString;function IsSymbol(C){return typeof C==="symbol"}q.IsSymbol=IsSymbol;function IsUint8Array(C){return C instanceof globalThis.Uint8Array}q.IsUint8Array=IsUint8Array;function IsUndefined(C){return C===undefined}q.IsUndefined=IsUndefined},87943:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Increment=void 0;function Increment(C){return(parseInt(C)+1).toString()}q.Increment=Increment},57782:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(87943),q)},86918:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(66904),q);Ue(re(80494),q);Ue(re(65774),q);Ue(re(11795),q)},66904:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IndexFromMappedKey=void 0;const ae=re(11795);const Ue=re(41094);function MappedIndexPropertyKey(C,q,re){return{[q]:(0,ae.Index)(C,[q],re)}}function MappedIndexPropertyKeys(C,q,re){return q.reduce(((q,ae)=>({...q,...MappedIndexPropertyKey(C,ae,re)})),{})}function MappedIndexProperties(C,q,re){return MappedIndexPropertyKeys(C,q.keys,re)}function IndexFromMappedKey(C,q,re){const ae=MappedIndexProperties(C,q,re);return(0,Ue.MappedResult)(ae)}q.IndexFromMappedKey=IndexFromMappedKey},80494:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IndexFromMappedResult=void 0;const ae=re(41094);const Ue=re(65774);const lt=re(86918);function FromProperties(C,q,re){const ae={};for(const Pt of Object.getOwnPropertyNames(q)){ae[Pt]=(0,lt.Index)(C,(0,Ue.IndexPropertyKeys)(q[Pt]),re)}return ae}function FromMappedResult(C,q,re){return FromProperties(C,q.properties,re)}function IndexFromMappedResult(C,q,re){const Ue=FromMappedResult(C,q,re);return(0,ae.MappedResult)(Ue)}q.IndexFromMappedResult=IndexFromMappedResult},65774:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IndexPropertyKeys=void 0;const ae=re(26609);const Ue=re(96994);function FromTemplateLiteral(C){const q=(0,ae.TemplateLiteralGenerate)(C);return q.map((C=>C.toString()))}function FromUnion(C){const q=[];for(const re of C)q.push(...IndexPropertyKeys(re));return q}function FromLiteral(C){return[C.toString()]}function IndexPropertyKeys(C){return[...new Set((0,Ue.IsTemplateLiteral)(C)?FromTemplateLiteral(C):(0,Ue.IsUnion)(C)?FromUnion(C.anyOf):(0,Ue.IsLiteral)(C)?FromLiteral(C.const):(0,Ue.IsNumber)(C)?["[number]"]:(0,Ue.IsInteger)(C)?["[number]"]:[])]}q.IndexPropertyKeys=IndexPropertyKeys},11795:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Index=q.IndexFromPropertyKeys=q.IndexFromPropertyKey=void 0;const ae=re(54025);const Ue=re(62746);const lt=re(69100);const Pt=re(38100);const Wt=re(65774);const Ar=re(66904);const Er=re(80494);const Ir=re(96994);function FromRest(C,q){return C.map((C=>IndexFromPropertyKey(C,q)))}function FromIntersectRest(C){return C.filter((C=>!(0,Ir.IsNever)(C)))}function FromIntersect(C,q){return(0,Ue.IntersectEvaluated)(FromIntersectRest(FromRest(C,q)))}function FromUnionRest(C){return C.some((C=>(0,Ir.IsNever)(C)))?[]:C}function FromUnion(C,q){return(0,lt.UnionEvaluated)(FromUnionRest(FromRest(C,q)))}function FromTuple(C,q){return q in C?C[q]:q==="[number]"?(0,lt.UnionEvaluated)(C):(0,ae.Never)()}function FromArray(C,q){return q==="[number]"?C:(0,ae.Never)()}function FromProperty(C,q){return q in C?C[q]:(0,ae.Never)()}function IndexFromPropertyKey(C,q){return(0,Ir.IsIntersect)(C)?FromIntersect(C.allOf,q):(0,Ir.IsUnion)(C)?FromUnion(C.anyOf,q):(0,Ir.IsTuple)(C)?FromTuple(C.items??[],q):(0,Ir.IsArray)(C)?FromArray(C.items,q):(0,Ir.IsObject)(C)?FromProperty(C.properties,q):(0,ae.Never)()}q.IndexFromPropertyKey=IndexFromPropertyKey;function IndexFromPropertyKeys(C,q){return q.map((q=>IndexFromPropertyKey(C,q)))}q.IndexFromPropertyKeys=IndexFromPropertyKeys;function FromSchema(C,q){return(0,lt.UnionEvaluated)(IndexFromPropertyKeys(C,q))}function Index(C,q,re={}){return(0,Ir.IsMappedResult)(q)?(0,Pt.CloneType)((0,Er.IndexFromMappedResult)(C,q,re)):(0,Ir.IsMappedKey)(q)?(0,Pt.CloneType)((0,Ar.IndexFromMappedKey)(C,q,re)):(0,Ir.IsSchema)(q)?(0,Pt.CloneType)(FromSchema(C,(0,Wt.IndexPropertyKeys)(q)),re):(0,Pt.CloneType)(FromSchema(C,q),re)}q.Index=Index},26277:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(79659),q)},79659:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.InstanceType=void 0;const ae=re(38100);function InstanceType(C,q={}){return(0,ae.CloneType)(C.returns,q)}q.InstanceType=InstanceType},4949:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(76295),q)},76295:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Integer=void 0;const ae=re(97034);function Integer(C={}){return{...C,[ae.Kind]:"Integer",type:"integer"}}q.Integer=Integer},62746:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(89995),q);Ue(re(35212),q);Ue(re(26015),q)},57604:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IntersectCreate=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(96994);function IntersectCreate(C,q){const re=C.every((C=>(0,lt.IsObject)(C)));const Pt=(0,lt.IsSchema)(q.unevaluatedProperties)?{unevaluatedProperties:(0,Ue.CloneType)(q.unevaluatedProperties)}:{};return q.unevaluatedProperties===false||(0,lt.IsSchema)(q.unevaluatedProperties)||re?{...q,...Pt,[ae.Kind]:"Intersect",type:"object",allOf:(0,Ue.CloneRest)(C)}:{...q,...Pt,[ae.Kind]:"Intersect",allOf:(0,Ue.CloneRest)(C)}}q.IntersectCreate=IntersectCreate},89995:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IntersectEvaluated=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(54025);const Wt=re(38425);const Ar=re(57604);const Er=re(96994);function IsIntersectOptional(C){return C.every((C=>(0,Er.IsOptional)(C)))}function RemoveOptionalFromType(C){return(0,lt.Discard)(C,[ae.OptionalKind])}function RemoveOptionalFromRest(C){return C.map((C=>(0,Er.IsOptional)(C)?RemoveOptionalFromType(C):C))}function ResolveIntersect(C,q){return IsIntersectOptional(C)?(0,Wt.Optional)((0,Ar.IntersectCreate)(RemoveOptionalFromRest(C),q)):(0,Ar.IntersectCreate)(RemoveOptionalFromRest(C),q)}function IntersectEvaluated(C,q={}){if(C.length===0)return(0,Pt.Never)(q);if(C.length===1)return(0,Ue.CloneType)(C[0],q);if(C.some((C=>(0,Er.IsTransform)(C))))throw new Error("Cannot intersect transform types");return ResolveIntersect(C,q)}q.IntersectEvaluated=IntersectEvaluated},35212:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});const ae=re(97034)},26015:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Intersect=void 0;const ae=re(38100);const Ue=re(54025);const lt=re(57604);const Pt=re(96994);function Intersect(C,q={}){if(C.length===0)return(0,Ue.Never)(q);if(C.length===1)return(0,ae.CloneType)(C[0],q);if(C.some((C=>(0,Pt.IsTransform)(C))))throw new Error("Cannot intersect transform types");return(0,lt.IntersectCreate)(C,q)}q.Intersect=Intersect},15400:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Capitalize=void 0;const ae=re(39015);function Capitalize(C,q={}){return(0,ae.Intrinsic)(C,"Capitalize",q)}q.Capitalize=Capitalize},30568:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(15400),q);Ue(re(71804),q);Ue(re(39015),q);Ue(re(13161),q);Ue(re(57019),q);Ue(re(80968),q)},71804:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IntrinsicFromMappedKey=void 0;const ae=re(41094);const Ue=re(39015);const lt=re(98076);function MappedIntrinsicPropertyKey(C,q,re){return{[C]:(0,Ue.Intrinsic)((0,lt.Literal)(C),q,re)}}function MappedIntrinsicPropertyKeys(C,q,re){return C.reduce(((C,ae)=>({...C,...MappedIntrinsicPropertyKey(ae,q,re)})),{})}function MappedIntrinsicProperties(C,q,re){return MappedIntrinsicPropertyKeys(C["keys"],q,re)}function IntrinsicFromMappedKey(C,q,re){const Ue=MappedIntrinsicProperties(C,q,re);return(0,ae.MappedResult)(Ue)}q.IntrinsicFromMappedKey=IntrinsicFromMappedKey},39015:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Intrinsic=void 0;const ae=re(26609);const Ue=re(71804);const lt=re(98076);const Pt=re(69100);const Wt=re(96994);function ApplyUncapitalize(C){const[q,re]=[C.slice(0,1),C.slice(1)];return[q.toLowerCase(),re].join("")}function ApplyCapitalize(C){const[q,re]=[C.slice(0,1),C.slice(1)];return[q.toUpperCase(),re].join("")}function ApplyUppercase(C){return C.toUpperCase()}function ApplyLowercase(C){return C.toLowerCase()}function FromTemplateLiteral(C,q,re){const Ue=(0,ae.TemplateLiteralParseExact)(C.pattern);const Wt=(0,ae.IsTemplateLiteralExpressionFinite)(Ue);if(!Wt)return{...C,pattern:FromLiteralValue(C.pattern,q)};const Ar=[...(0,ae.TemplateLiteralExpressionGenerate)(Ue)];const Er=Ar.map((C=>(0,lt.Literal)(C)));const Ir=FromRest(Er,q);const Br=(0,Pt.Union)(Ir);return(0,ae.TemplateLiteral)([Br],re)}function FromLiteralValue(C,q){return typeof C==="string"?q==="Uncapitalize"?ApplyUncapitalize(C):q==="Capitalize"?ApplyCapitalize(C):q==="Uppercase"?ApplyUppercase(C):q==="Lowercase"?ApplyLowercase(C):C:C.toString()}function FromRest(C,q){return C.map((C=>Intrinsic(C,q)))}function Intrinsic(C,q,re={}){return(0,Wt.IsMappedKey)(C)?(0,Ue.IntrinsicFromMappedKey)(C,q,re):(0,Wt.IsTemplateLiteral)(C)?FromTemplateLiteral(C,q,C):(0,Wt.IsUnion)(C)?(0,Pt.Union)(FromRest(C.anyOf,q),re):(0,Wt.IsLiteral)(C)?(0,lt.Literal)(FromLiteralValue(C.const,q),re):C}q.Intrinsic=Intrinsic},13161:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Lowercase=void 0;const ae=re(39015);function Lowercase(C,q={}){return(0,ae.Intrinsic)(C,"Lowercase",q)}q.Lowercase=Lowercase},57019:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Uncapitalize=void 0;const ae=re(39015);function Uncapitalize(C,q={}){return(0,ae.Intrinsic)(C,"Uncapitalize",q)}q.Uncapitalize=Uncapitalize},80968:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Uppercase=void 0;const ae=re(39015);function Uppercase(C,q={}){return(0,ae.Intrinsic)(C,"Uppercase",q)}q.Uppercase=Uppercase},35907:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(78493),q)},78493:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Iterator=void 0;const ae=re(38100);const Ue=re(97034);function Iterator(C,q={}){return{...q,[Ue.Kind]:"Iterator",type:"Iterator",items:(0,ae.CloneType)(C)}}q.Iterator=Iterator},73373:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(19642),q);Ue(re(740),q);Ue(re(33930),q);Ue(re(36895),q)},19642:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.KeyOfFromMappedResult=void 0;const ae=re(41094);const Ue=re(36895);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.KeyOf)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function KeyOfFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.KeyOfFromMappedResult=KeyOfFromMappedResult},740:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.KeyOfPropertyEntries=void 0;const ae=re(11795);const Ue=re(33930);function KeyOfPropertyEntries(C){const q=(0,Ue.KeyOfPropertyKeys)(C);const re=(0,ae.IndexFromPropertyKeys)(C,q);return q.map(((C,ae)=>[q[ae],re[ae]]))}q.KeyOfPropertyEntries=KeyOfPropertyEntries},33930:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.KeyOfPattern=q.KeyOfPropertyKeys=void 0;const ae=re(12760);const Ue=re(96994);function FromRest(C){const q=[];for(const re of C)q.push(KeyOfPropertyKeys(re));return q}function FromIntersect(C){const q=FromRest(C);const re=(0,ae.SetUnionMany)(q);return re}function FromUnion(C){const q=FromRest(C);const re=(0,ae.SetIntersectMany)(q);return re}function FromTuple(C){return C.map(((C,q)=>q.toString()))}function FromArray(C){return["[number]"]}function FromProperties(C){return globalThis.Object.getOwnPropertyNames(C)}function FromPatternProperties(C){if(!lt)return[];const q=globalThis.Object.getOwnPropertyNames(C);return q.map((C=>C[0]==="^"&&C[C.length-1]==="$"?C.slice(1,C.length-1):C))}function KeyOfPropertyKeys(C){return(0,Ue.IsIntersect)(C)?FromIntersect(C.allOf):(0,Ue.IsUnion)(C)?FromUnion(C.anyOf):(0,Ue.IsTuple)(C)?FromTuple(C.items??[]):(0,Ue.IsArray)(C)?FromArray(C.items):(0,Ue.IsObject)(C)?FromProperties(C.properties):(0,Ue.IsRecord)(C)?FromPatternProperties(C.patternProperties):[]}q.KeyOfPropertyKeys=KeyOfPropertyKeys;let lt=false;function KeyOfPattern(C){lt=true;const q=KeyOfPropertyKeys(C);lt=false;const re=q.map((C=>`(${C})`));return`^(${re.join("|")})$`}q.KeyOfPattern=KeyOfPattern},36895:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.KeyOf=q.KeyOfPropertyKeysToRest=void 0;const ae=re(98076);const Ue=re(85544);const lt=re(33930);const Pt=re(69100);const Wt=re(38100);const Ar=re(19642);const Er=re(96994);function KeyOfPropertyKeysToRest(C){return C.map((C=>C==="[number]"?(0,Ue.Number)():(0,ae.Literal)(C)))}q.KeyOfPropertyKeysToRest=KeyOfPropertyKeysToRest;function KeyOf(C,q={}){if((0,Er.IsMappedResult)(C)){return(0,Ar.KeyOfFromMappedResult)(C,q)}else{const re=(0,lt.KeyOfPropertyKeys)(C);const ae=KeyOfPropertyKeysToRest(re);const Ue=(0,Pt.UnionEvaluated)(ae);return(0,Wt.CloneType)(Ue,q)}}q.KeyOf=KeyOf},98076:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(31591),q)},31591:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Literal=void 0;const ae=re(97034);function Literal(C,q={}){return{...q,[ae.Kind]:"Literal",const:C,type:typeof C}}q.Literal=Literal},41094:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(35613),q);Ue(re(67517),q);Ue(re(90467),q)},35613:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.MappedKey=void 0;const ae=re(97034);function MappedKey(C){return{[ae.Kind]:"MappedKey",keys:C}}q.MappedKey=MappedKey},67517:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.MappedResult=void 0;const ae=re(97034);function MappedResult(C){return{[ae.Kind]:"MappedResult",properties:C}}q.MappedResult=MappedResult},90467:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Mapped=q.MappedFunctionReturnType=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(17186);const Wt=re(68092);const Ar=re(16939);const Er=re(29857);const Ir=re(86918);const Br=re(62746);const kr=re(35907);const Pr=re(98076);const Qr=re(62094);const Fr=re(38425);const Dr=re(70062);const xr=re(40675);const Mr=re(7521);const Ur=re(69100);const Nr=re(12760);const Lr=re(67517);const jr=re(96994);function FromMappedResult(C,q){return C in q?FromSchemaType(C,q[C]):(0,Lr.MappedResult)(q)}function MappedKeyToKnownMappedResultProperties(C){return{[C]:(0,Pr.Literal)(C)}}function MappedKeyToUnknownMappedResultProperties(C){const q={};for(const re of C)q[re]=(0,Pr.Literal)(re);return q}function MappedKeyToMappedResultProperties(C,q){return(0,Nr.SetIncludes)(q,C)?MappedKeyToKnownMappedResultProperties(C):MappedKeyToUnknownMappedResultProperties(q)}function FromMappedKey(C,q){const re=MappedKeyToMappedResultProperties(C,q);return FromMappedResult(C,re)}function FromRest(C,q){return q.map((q=>FromSchemaType(C,q)))}function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(q))re[ae]=FromSchemaType(C,q[ae]);return re}function FromSchemaType(C,q){return(0,jr.IsOptional)(q)?(0,Fr.Optional)(FromSchemaType(C,(0,lt.Discard)(q,[ae.OptionalKind]))):(0,jr.IsReadonly)(q)?(0,xr.Readonly)(FromSchemaType(C,(0,lt.Discard)(q,[ae.ReadonlyKind]))):(0,jr.IsMappedResult)(q)?FromMappedResult(C,q.properties):(0,jr.IsMappedKey)(q)?FromMappedKey(C,q.keys):(0,jr.IsConstructor)(q)?(0,Ar.Constructor)(FromRest(C,q.parameters),FromSchemaType(C,q.returns)):(0,jr.IsFunction)(q)?(0,Er.Function)(FromRest(C,q.parameters),FromSchemaType(C,q.returns)):(0,jr.IsAsyncIterator)(q)?(0,Wt.AsyncIterator)(FromSchemaType(C,q.items)):(0,jr.IsIterator)(q)?(0,kr.Iterator)(FromSchemaType(C,q.items)):(0,jr.IsIntersect)(q)?(0,Br.Intersect)(FromRest(C,q.allOf)):(0,jr.IsUnion)(q)?(0,Ur.Union)(FromRest(C,q.anyOf)):(0,jr.IsTuple)(q)?(0,Mr.Tuple)(FromRest(C,q.items??[])):(0,jr.IsObject)(q)?(0,Qr.Object)(FromProperties(C,q.properties)):(0,jr.IsArray)(q)?(0,Pt.Array)(FromSchemaType(C,q.items)):(0,jr.IsPromise)(q)?(0,Dr.Promise)(FromSchemaType(C,q.item)):q}function MappedFunctionReturnType(C,q){const re={};for(const ae of C)re[ae]=FromSchemaType(ae,q);return re}q.MappedFunctionReturnType=MappedFunctionReturnType;function Mapped(C,q,re={}){const lt=(0,jr.IsSchema)(C)?(0,Ir.IndexPropertyKeys)(C):C;const Pt=q({[ae.Kind]:"MappedKey",keys:lt});const Wt=MappedFunctionReturnType(lt,Pt);return(0,Ue.CloneType)((0,Qr.Object)(Wt),re)}q.Mapped=Mapped},54025:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(29867),q)},29867:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Never=void 0;const ae=re(97034);function Never(C={}){return{...C,[ae.Kind]:"Never",not:{}}}q.Never=Never},1078:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(8559),q)},8559:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Not=void 0;const ae=re(38100);const Ue=re(97034);function Not(C,q){return{...q,[Ue.Kind]:"Not",not:(0,ae.CloneType)(C)}}q.Not=Not},50468:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(3007),q)},3007:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Null=void 0;const ae=re(97034);function Null(C={}){return{...C,[ae.Kind]:"Null",type:"null"}}q.Null=Null},85544:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(14151),q)},14151:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Number=void 0;const ae=re(97034);function Number(C={}){return{...C,[ae.Kind]:"Number",type:"number"}}q.Number=Number},62094:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(14211),q)},14211:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Object=void 0;const ae=re(38100);const Ue=re(97034);const lt=re(96994);function _Object(C,q={}){const re=globalThis.Object.getOwnPropertyNames(C);const Pt=re.filter((q=>(0,lt.IsOptional)(C[q])));const Wt=re.filter((C=>!Pt.includes(C)));const Ar=(0,lt.IsSchema)(q.additionalProperties)?{additionalProperties:(0,ae.CloneType)(q.additionalProperties)}:{};const Er={};for(const q of re)Er[q]=(0,ae.CloneType)(C[q]);return Wt.length>0?{...q,...Ar,[Ue.Kind]:"Object",type:"object",properties:Er,required:Wt}:{...q,...Ar,[Ue.Kind]:"Object",type:"object",properties:Er}}q.Object=_Object},88932:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(99308),q);Ue(re(39602),q);Ue(re(33143),q)},99308:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.OmitFromMappedKey=void 0;const ae=re(41094);const Ue=re(33143);function FromPropertyKey(C,q,re){return{[q]:(0,Ue.Omit)(C,[q],re)}}function FromPropertyKeys(C,q,re){return q.reduce(((q,ae)=>({...q,...FromPropertyKey(C,ae,re)})),{})}function FromMappedKey(C,q,re){return FromPropertyKeys(C,q.keys,re)}function OmitFromMappedKey(C,q,re){const Ue=FromMappedKey(C,q,re);return(0,ae.MappedResult)(Ue)}q.OmitFromMappedKey=OmitFromMappedKey},39602:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.OmitFromMappedResult=void 0;const ae=re(41094);const Ue=re(33143);function FromProperties(C,q,re){const ae={};for(const lt of globalThis.Object.getOwnPropertyNames(C))ae[lt]=(0,Ue.Omit)(C[lt],q,re);return ae}function FromMappedResult(C,q,re){return FromProperties(C.properties,q,re)}function OmitFromMappedResult(C,q,re){const Ue=FromMappedResult(C,q,re);return(0,ae.MappedResult)(Ue)}q.OmitFromMappedResult=OmitFromMappedResult},33143:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Omit=void 0;const ae=re(62746);const Ue=re(69100);const lt=re(62094);const Pt=re(86918);const Wt=re(83889);const Ar=re(97034);const Er=re(38100);const Ir=re(99308);const Br=re(39602);const kr=re(96994);function FromIntersect(C,q){return C.map((C=>OmitResolve(C,q)))}function FromUnion(C,q){return C.map((C=>OmitResolve(C,q)))}function FromProperty(C,q){const{[q]:re,...ae}=C;return ae}function FromProperties(C,q){return q.reduce(((C,q)=>FromProperty(C,q)),C)}function OmitResolve(C,q){return(0,kr.IsIntersect)(C)?(0,ae.Intersect)(FromIntersect(C.allOf,q)):(0,kr.IsUnion)(C)?(0,Ue.Union)(FromUnion(C.anyOf,q)):(0,kr.IsObject)(C)?(0,lt.Object)(FromProperties(C.properties,q)):(0,lt.Object)({})}function Omit(C,q,re={}){if((0,kr.IsMappedKey)(q))return(0,Ir.OmitFromMappedKey)(C,q,re);if((0,kr.IsMappedResult)(C))return(0,Br.OmitFromMappedResult)(C,q,re);const ae=(0,kr.IsSchema)(q)?(0,Pt.IndexPropertyKeys)(q):q;const Ue=(0,Wt.Discard)(C,[Ar.TransformKind,"$id","required"]);const lt=(0,Er.CloneType)(OmitResolve(C,ae),re);return{...Ue,...lt}}q.Omit=Omit},38425:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(63984),q);Ue(re(15405),q)},63984:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.OptionalFromMappedResult=void 0;const ae=re(41094);const Ue=re(15405);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Optional)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function OptionalFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.OptionalFromMappedResult=OptionalFromMappedResult},15405:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Optional=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(63984);const Wt=re(96994);function RemoveOptional(C){return(0,lt.Discard)((0,Ue.CloneType)(C),[ae.OptionalKind])}function AddOptional(C){return{...(0,Ue.CloneType)(C),[ae.OptionalKind]:"Optional"}}function OptionalWithFlag(C,q){return q===false?RemoveOptional(C):AddOptional(C)}function Optional(C,q){const re=q??true;return(0,Wt.IsMappedResult)(C)?(0,Pt.OptionalFromMappedResult)(C,re):OptionalWithFlag(C,re)}q.Optional=Optional},30449:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(92853),q)},92853:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Parameters=void 0;const ae=re(7521);const Ue=re(38100);function Parameters(C,q={}){return(0,ae.Tuple)((0,Ue.CloneRest)(C.parameters),{...q})}q.Parameters=Parameters},75726:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(16438),q);Ue(re(34523),q)},16438:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.PartialFromMappedResult=void 0;const ae=re(41094);const Ue=re(34523);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Partial)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function PartialFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.PartialFromMappedResult=PartialFromMappedResult},34523:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Partial=void 0;const ae=re(38425);const Ue=re(62094);const lt=re(62746);const Pt=re(69100);const Wt=re(83889);const Ar=re(97034);const Er=re(38100);const Ir=re(16438);const Br=re(96994);function FromRest(C){return C.map((C=>PartialResolve(C)))}function FromProperties(C){const q={};for(const re of globalThis.Object.getOwnPropertyNames(C))q[re]=(0,ae.Optional)(C[re]);return q}function PartialResolve(C){return(0,Br.IsIntersect)(C)?(0,lt.Intersect)(FromRest(C.allOf)):(0,Br.IsUnion)(C)?(0,Pt.Union)(FromRest(C.anyOf)):(0,Br.IsObject)(C)?(0,Ue.Object)(FromProperties(C.properties)):(0,Ue.Object)({})}function Partial(C,q={}){if((0,Br.IsMappedResult)(C))return(0,Ir.PartialFromMappedResult)(C,q);const re=(0,Wt.Discard)(C,[Ar.TransformKind,"$id","required"]);const ae=(0,Er.CloneType)(PartialResolve(C),q);return{...re,...ae}}q.Partial=Partial},94354:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(74327),q)},74327:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.PatternStringExact=q.PatternNumberExact=q.PatternBooleanExact=q.PatternString=q.PatternNumber=q.PatternBoolean=void 0;q.PatternBoolean="(true|false)";q.PatternNumber="(0|[1-9][0-9]*)";q.PatternString="(.*)";q.PatternBooleanExact=`^${q.PatternBoolean}$`;q.PatternNumberExact=`^${q.PatternNumber}$`;q.PatternStringExact=`^${q.PatternString}$`},40640:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(72748),q);Ue(re(4882),q);Ue(re(65911),q)},72748:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.PickFromMappedKey=void 0;const ae=re(41094);const Ue=re(65911);function FromPropertyKey(C,q,re){return{[q]:(0,Ue.Pick)(C,[q],re)}}function FromPropertyKeys(C,q,re){return q.reduce(((q,ae)=>({...q,...FromPropertyKey(C,ae,re)})),{})}function FromMappedKey(C,q,re){return FromPropertyKeys(C,q.keys,re)}function PickFromMappedKey(C,q,re){const Ue=FromMappedKey(C,q,re);return(0,ae.MappedResult)(Ue)}q.PickFromMappedKey=PickFromMappedKey},4882:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.PickFromMappedResult=void 0;const ae=re(41094);const Ue=re(65911);function FromProperties(C,q,re){const ae={};for(const lt of globalThis.Object.getOwnPropertyNames(C))ae[lt]=(0,Ue.Pick)(C[lt],q,re);return ae}function FromMappedResult(C,q,re){return FromProperties(C.properties,q,re)}function PickFromMappedResult(C,q,re){const Ue=FromMappedResult(C,q,re);return(0,ae.MappedResult)(Ue)}q.PickFromMappedResult=PickFromMappedResult},65911:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Pick=void 0;const ae=re(62746);const Ue=re(69100);const lt=re(62094);const Pt=re(86918);const Wt=re(83889);const Ar=re(97034);const Er=re(38100);const Ir=re(72748);const Br=re(4882);const kr=re(96994);function FromIntersect(C,q){return C.map((C=>PickResolve(C,q)))}function FromUnion(C,q){return C.map((C=>PickResolve(C,q)))}function FromProperties(C,q){const re={};for(const ae of q)if(ae in C)re[ae]=C[ae];return re}function PickResolve(C,q){return(0,kr.IsIntersect)(C)?(0,ae.Intersect)(FromIntersect(C.allOf,q)):(0,kr.IsUnion)(C)?(0,Ue.Union)(FromUnion(C.anyOf,q)):(0,kr.IsObject)(C)?(0,lt.Object)(FromProperties(C.properties,q)):(0,lt.Object)({})}function Pick(C,q,re={}){if((0,kr.IsMappedKey)(q))return(0,Ir.PickFromMappedKey)(C,q,re);if((0,kr.IsMappedResult)(C))return(0,Br.PickFromMappedResult)(C,q,re);const ae=(0,kr.IsSchema)(q)?(0,Pt.IndexPropertyKeys)(q):q;const Ue=(0,Wt.Discard)(C,[Ar.TransformKind,"$id","required"]);const lt=(0,Er.CloneType)(PickResolve(C,ae),re);return{...Ue,...lt}}q.Pick=Pick},70062:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(35675),q)},35675:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Promise=void 0;const ae=re(38100);const Ue=re(97034);function Promise(C,q={}){return{...q,[Ue.Kind]:"Promise",type:"Promise",item:(0,ae.CloneType)(C)}}q.Promise=Promise},78946:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(84127),q)},84127:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ReadonlyOptional=void 0;const ae=re(40675);const Ue=re(38425);function ReadonlyOptional(C){return(0,ae.Readonly)((0,Ue.Optional)(C))}q.ReadonlyOptional=ReadonlyOptional},40675:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(94180),q);Ue(re(90401),q)},94180:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ReadonlyFromMappedResult=void 0;const ae=re(41094);const Ue=re(90401);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Readonly)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function ReadonlyFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.ReadonlyFromMappedResult=ReadonlyFromMappedResult},90401:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Readonly=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(94180);const Wt=re(96994);function RemoveReadonly(C){return(0,lt.Discard)((0,Ue.CloneType)(C),[ae.ReadonlyKind])}function AddReadonly(C){return{...(0,Ue.CloneType)(C),[ae.ReadonlyKind]:"Readonly"}}function ReadonlyWithFlag(C,q){return q===false?RemoveReadonly(C):AddReadonly(C)}function Readonly(C,q){const re=q??true;return(0,Wt.IsMappedResult)(C)?(0,Pt.ReadonlyFromMappedResult)(C,re):ReadonlyWithFlag(C,re)}q.Readonly=Readonly},30420:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(98167),q)},98167:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Record=void 0;const ae=re(62094);const Ue=re(54025);const lt=re(69100);const Pt=re(26609);const Wt=re(94354);const Ar=re(86918);const Er=re(97034);const Ir=re(38100);const Br=re(13415);const kr=re(96994);function RecordCreateFromPattern(C,q,re){return{...re,[Er.Kind]:"Record",type:"object",patternProperties:{[C]:(0,Ir.CloneType)(q)}}}function RecordCreateFromKeys(C,q,re){const Ue={};for(const re of C)Ue[re]=(0,Ir.CloneType)(q);return(0,ae.Object)(Ue,{...re,[Er.Hint]:"Record"})}function FromTemplateLiteralKey(C,q,re){return(0,Pt.IsTemplateLiteralFinite)(C)?RecordCreateFromKeys((0,Ar.IndexPropertyKeys)(C),q,re):RecordCreateFromPattern(C.pattern,q,re)}function FromUnionKey(C,q,re){return RecordCreateFromKeys((0,Ar.IndexPropertyKeys)((0,lt.Union)(C)),q,re)}function FromLiteralKey(C,q,re){return RecordCreateFromKeys([C.toString()],q,re)}function FromRegExpKey(C,q,re){return RecordCreateFromPattern(C.source,q,re)}function FromStringKey(C,q,re){const ae=(0,Br.IsUndefined)(C.pattern)?Wt.PatternStringExact:C.pattern;return RecordCreateFromPattern(ae,q,re)}function FromIntegerKey(C,q,re){return RecordCreateFromPattern(Wt.PatternNumberExact,q,re)}function FromNumberKey(C,q,re){return RecordCreateFromPattern(Wt.PatternNumberExact,q,re)}function Record(C,q,re={}){return(0,kr.IsUnion)(C)?FromUnionKey(C.anyOf,q,re):(0,kr.IsTemplateLiteral)(C)?FromTemplateLiteralKey(C,q,re):(0,kr.IsLiteral)(C)?FromLiteralKey(C.const,q,re):(0,kr.IsInteger)(C)?FromIntegerKey(C,q,re):(0,kr.IsNumber)(C)?FromNumberKey(C,q,re):(0,kr.IsRegExp)(C)?FromRegExpKey(C,q,re):(0,kr.IsString)(C)?FromStringKey(C,q,re):(0,Ue.Never)(re)}q.Record=Record},33107:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(13475),q)},13475:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Recursive=void 0;const ae=re(38100);const Ue=re(13415);const lt=re(97034);let Pt=0;function Recursive(C,q={}){if((0,Ue.IsUndefined)(q.$id))q.$id=`T${Pt++}`;const re=C({[lt.Kind]:"This",$ref:`${q.$id}`});re.$id=q.$id;return(0,ae.CloneType)({...q,[lt.Hint]:"Recursive",...re})}q.Recursive=Recursive},80470:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(27735),q)},27735:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Ref=void 0;const ae=re(97034);const Ue=re(13415);function Ref(C,q={}){if((0,Ue.IsString)(C))return{...q,[ae.Kind]:"Ref",$ref:C};if((0,Ue.IsUndefined)(C.$id))throw new Error("Reference target type must specify an $id");return{...q,[ae.Kind]:"Ref",$ref:C.$id}}q.Ref=Ref},26936:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(99383),q)},99383:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.RegExp=void 0;const ae=re(13415);const Ue=re(97034);function RegExp(C,q={}){const re=(0,ae.IsString)(C)?new globalThis.RegExp(C):C;return{...q,[Ue.Kind]:"RegExp",type:"RegExp",source:re.source,flags:re.flags}}q.RegExp=RegExp},56315:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Get=q.Set=q.Has=q.Delete=q.Clear=q.Entries=void 0;const re=new Map;function Entries(){return new Map(re)}q.Entries=Entries;function Clear(){return re.clear()}q.Clear=Clear;function Delete(C){return re.delete(C)}q.Delete=Delete;function Has(C){return re.has(C)}q.Has=Has;function Set(C,q){re.set(C,q)}q.Set=Set;function Get(C){return re.get(C)}q.Get=Get},51786:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TypeRegistry=q.FormatRegistry=void 0;q.FormatRegistry=re(56315);q.TypeRegistry=re(1912)},1912:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Get=q.Set=q.Has=q.Delete=q.Clear=q.Entries=void 0;const re=new Map;function Entries(){return new Map(re)}q.Entries=Entries;function Clear(){return re.clear()}q.Clear=Clear;function Delete(C){return re.delete(C)}q.Delete=Delete;function Has(C){return re.has(C)}q.Has=Has;function Set(C,q){re.set(C,q)}q.Set=Set;function Get(C){return re.get(C)}q.Get=Get},42744:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(24722),q);Ue(re(78775),q)},24722:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.RequiredFromMappedResult=void 0;const ae=re(41094);const Ue=re(78775);function FromProperties(C,q){const re={};for(const ae of globalThis.Object.getOwnPropertyNames(C))re[ae]=(0,Ue.Required)(C[ae],q);return re}function FromMappedResult(C,q){return FromProperties(C.properties,q)}function RequiredFromMappedResult(C,q){const re=FromMappedResult(C,q);return(0,ae.MappedResult)(re)}q.RequiredFromMappedResult=RequiredFromMappedResult},78775:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Required=void 0;const ae=re(62746);const Ue=re(69100);const lt=re(62094);const Pt=re(97034);const Wt=re(38100);const Ar=re(83889);const Er=re(24722);const Ir=re(96994);function FromRest(C){return C.map((C=>RequiredResolve(C)))}function FromProperties(C){const q={};for(const re of globalThis.Object.getOwnPropertyNames(C))q[re]=(0,Ar.Discard)(C[re],[Pt.OptionalKind]);return q}function RequiredResolve(C){return(0,Ir.IsIntersect)(C)?(0,ae.Intersect)(FromRest(C.allOf)):(0,Ir.IsUnion)(C)?(0,Ue.Union)(FromRest(C.anyOf)):(0,Ir.IsObject)(C)?(0,lt.Object)(FromProperties(C.properties)):(0,lt.Object)({})}function Required(C,q={}){if((0,Ir.IsMappedResult)(C)){return(0,Er.RequiredFromMappedResult)(C,q)}else{const re=(0,Ar.Discard)(C,[Pt.TransformKind,"$id","required"]);const ae=(0,Wt.CloneType)(RequiredResolve(C),q);return{...re,...ae}}}q.Required=Required},83003:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(48881),q)},48881:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Rest=void 0;const ae=re(38100);const Ue=re(96994);function RestResolve(C){return(0,Ue.IsIntersect)(C)?(0,ae.CloneRest)(C.allOf):(0,Ue.IsUnion)(C)?(0,ae.CloneRest)(C.anyOf):(0,Ue.IsTuple)(C)?(0,ae.CloneRest)(C.items??[]):[]}function Rest(C){return(0,ae.CloneRest)(RestResolve(C))}q.Rest=Rest},32970:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(11243),q)},11243:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ReturnType=void 0;const ae=re(38100);function ReturnType(C,q={}){return(0,ae.CloneType)(C.returns,q)}q.ReturnType=ReturnType},13523:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},68954:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(13523),q);Ue(re(53283),q)},53283:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});const ae=re(97034)},12760:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85944),q)},85944:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.SetUnionMany=q.SetIntersectMany=q.SetComplement=q.SetUnion=q.SetIntersect=q.SetDistinct=q.SetIsSubset=q.SetIncludes=void 0;function SetIncludes(C,q){return C.includes(q)}q.SetIncludes=SetIncludes;function SetIsSubset(C,q){return C.every((C=>SetIncludes(q,C)))}q.SetIsSubset=SetIsSubset;function SetDistinct(C){return[...new Set(C)]}q.SetDistinct=SetDistinct;function SetIntersect(C,q){return C.filter((C=>q.includes(C)))}q.SetIntersect=SetIntersect;function SetUnion(C,q){return[...C,...q]}q.SetUnion=SetUnion;function SetComplement(C,q){return C.filter((C=>!q.includes(C)))}q.SetComplement=SetComplement;function SetIntersectManyResolve(C,q){return C.reduce(((C,q)=>SetIntersect(C,q)),q)}function SetIntersectMany(C){return C.length===1?C[0]:C.length>1?SetIntersectManyResolve(C.slice(1),C[0]):[]}q.SetIntersectMany=SetIntersectMany;function SetUnionMany(C){const q=[];for(const re of C)q.push(...re);return q}q.SetUnionMany=SetUnionMany},60343:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(917),q)},917:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},23556:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(69295),q)},69295:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Strict=void 0;function Strict(C){return JSON.parse(JSON.stringify(C))}q.Strict=Strict},81688:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(14695),q)},14695:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.String=void 0;const ae=re(97034);function String(C={}){return{...C,[ae.Kind]:"String",type:"string"}}q.String=String},2129:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(86445),q)},86445:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Symbol=void 0;const ae=re(97034);function Symbol(C){return{...C,[ae.Kind]:"Symbol",type:"symbol"}}q.Symbol=Symbol},97034:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(22311),q)},22311:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Kind=q.Hint=q.OptionalKind=q.ReadonlyKind=q.TransformKind=void 0;q.TransformKind=Symbol.for("TypeBox.Transform");q.ReadonlyKind=Symbol.for("TypeBox.Readonly");q.OptionalKind=Symbol.for("TypeBox.Optional");q.Hint=Symbol.for("TypeBox.Hint");q.Kind=Symbol.for("TypeBox.Kind")},75930:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsTemplateLiteralFinite=q.IsTemplateLiteralExpressionFinite=q.TemplateLiteralFiniteError=void 0;const ae=re(75430);const Ue=re(26113);class TemplateLiteralFiniteError extends Ue.TypeBoxError{}q.TemplateLiteralFiniteError=TemplateLiteralFiniteError;function IsNumberExpression(C){return C.type==="or"&&C.expr.length===2&&C.expr[0].type==="const"&&C.expr[0].const==="0"&&C.expr[1].type==="const"&&C.expr[1].const==="[1-9][0-9]*"}function IsBooleanExpression(C){return C.type==="or"&&C.expr.length===2&&C.expr[0].type==="const"&&C.expr[0].const==="true"&&C.expr[1].type==="const"&&C.expr[1].const==="false"}function IsStringExpression(C){return C.type==="const"&&C.const===".*"}function IsTemplateLiteralExpressionFinite(C){return IsNumberExpression(C)||IsStringExpression(C)?false:IsBooleanExpression(C)?true:C.type==="and"?C.expr.every((C=>IsTemplateLiteralExpressionFinite(C))):C.type==="or"?C.expr.every((C=>IsTemplateLiteralExpressionFinite(C))):C.type==="const"?true:(()=>{throw new TemplateLiteralFiniteError(`Unknown expression type`)})()}q.IsTemplateLiteralExpressionFinite=IsTemplateLiteralExpressionFinite;function IsTemplateLiteralFinite(C){const q=(0,ae.TemplateLiteralParseExact)(C.pattern);return IsTemplateLiteralExpressionFinite(q)}q.IsTemplateLiteralFinite=IsTemplateLiteralFinite},85670:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralGenerate=q.TemplateLiteralExpressionGenerate=q.TemplateLiteralGenerateError=void 0;const ae=re(75930);const Ue=re(75430);const lt=re(26113);class TemplateLiteralGenerateError extends lt.TypeBoxError{}q.TemplateLiteralGenerateError=TemplateLiteralGenerateError;function*GenerateReduce(C){if(C.length===1)return yield*C[0];for(const q of C[0]){for(const re of GenerateReduce(C.slice(1))){yield`${q}${re}`}}}function*GenerateAnd(C){return yield*GenerateReduce(C.expr.map((C=>[...TemplateLiteralExpressionGenerate(C)])))}function*GenerateOr(C){for(const q of C.expr)yield*TemplateLiteralExpressionGenerate(q)}function*GenerateConst(C){return yield C.const}function*TemplateLiteralExpressionGenerate(C){return C.type==="and"?yield*GenerateAnd(C):C.type==="or"?yield*GenerateOr(C):C.type==="const"?yield*GenerateConst(C):(()=>{throw new TemplateLiteralGenerateError("Unknown expression")})()}q.TemplateLiteralExpressionGenerate=TemplateLiteralExpressionGenerate;function TemplateLiteralGenerate(C){const q=(0,Ue.TemplateLiteralParseExact)(C.pattern);return(0,ae.IsTemplateLiteralExpressionFinite)(q)?[...TemplateLiteralExpressionGenerate(q)]:[]}q.TemplateLiteralGenerate=TemplateLiteralGenerate},26609:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(75930),q);Ue(re(85670),q);Ue(re(98094),q);Ue(re(75430),q);Ue(re(85855),q);Ue(re(27522),q);Ue(re(4181),q)},75430:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralParseExact=q.TemplateLiteralParse=q.TemplateLiteralParserError=void 0;const ae=re(26113);class TemplateLiteralParserError extends ae.TypeBoxError{}q.TemplateLiteralParserError=TemplateLiteralParserError;function Unescape(C){return C.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function IsNonEscaped(C,q,re){return C[q]===re&&C.charCodeAt(q-1)!==92}function IsOpenParen(C,q){return IsNonEscaped(C,q,"(")}function IsCloseParen(C,q){return IsNonEscaped(C,q,")")}function IsSeparator(C,q){return IsNonEscaped(C,q,"|")}function IsGroup(C){if(!(IsOpenParen(C,0)&&IsCloseParen(C,C.length-1)))return false;let q=0;for(let re=0;re0)ae.push(TemplateLiteralParse(q));re=Ue+1}}const Ue=C.slice(re);if(Ue.length>0)ae.push(TemplateLiteralParse(Ue));if(ae.length===0)return{type:"const",const:""};if(ae.length===1)return ae[0];return{type:"or",expr:ae}}function And(C){function Group(C,q){if(!IsOpenParen(C,q))throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);let re=0;for(let ae=q;ae0)q.push(TemplateLiteralParse(lt));re=Ue-1}}return q.length===0?{type:"const",const:""}:q.length===1?q[0]:{type:"and",expr:q}}function TemplateLiteralParse(C){return IsGroup(C)?TemplateLiteralParse(InGroup(C)):IsPrecedenceOr(C)?Or(C):IsPrecedenceAnd(C)?And(C):{type:"const",const:Unescape(C)}}q.TemplateLiteralParse=TemplateLiteralParse;function TemplateLiteralParseExact(C){return TemplateLiteralParse(C.slice(1,C.length-1))}q.TemplateLiteralParseExact=TemplateLiteralParseExact},85855:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralPattern=q.TemplateLiteralPatternError=void 0;const ae=re(94354);const Ue=re(97034);const lt=re(26113);const Pt=re(96994);class TemplateLiteralPatternError extends lt.TypeBoxError{}q.TemplateLiteralPatternError=TemplateLiteralPatternError;function Escape(C){return C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Visit(C,q){return(0,Pt.IsTemplateLiteral)(C)?C.pattern.slice(1,C.pattern.length-1):(0,Pt.IsUnion)(C)?`(${C.anyOf.map((C=>Visit(C,q))).join("|")})`:(0,Pt.IsNumber)(C)?`${q}${ae.PatternNumber}`:(0,Pt.IsInteger)(C)?`${q}${ae.PatternNumber}`:(0,Pt.IsBigInt)(C)?`${q}${ae.PatternNumber}`:(0,Pt.IsString)(C)?`${q}${ae.PatternString}`:(0,Pt.IsLiteral)(C)?`${q}${Escape(C.const.toString())}`:(0,Pt.IsBoolean)(C)?`${q}${ae.PatternBoolean}`:(()=>{throw new TemplateLiteralPatternError(`Unexpected Kind '${C[Ue.Kind]}'`)})()}function TemplateLiteralPattern(C){return`^${C.map((C=>Visit(C,""))).join("")}$`}q.TemplateLiteralPattern=TemplateLiteralPattern},98094:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralSyntax=void 0;const ae=re(98076);const Ue=re(64515);const lt=re(13278);const Pt=re(85544);const Wt=re(81688);const Ar=re(69100);const Er=re(54025);function*FromUnion(C){const q=C.trim().replace(/"|'/g,"");return q==="boolean"?yield(0,Ue.Boolean)():q==="number"?yield(0,Pt.Number)():q==="bigint"?yield(0,lt.BigInt)():q==="string"?yield(0,Wt.String)():yield(()=>{const C=q.split("|").map((C=>(0,ae.Literal)(C.trim())));return C.length===0?(0,Er.Never)():C.length===1?C[0]:(0,Ar.UnionEvaluated)(C)})()}function*FromTerminal(C){if(C[1]!=="{"){const q=(0,ae.Literal)("$");const re=FromSyntax(C.slice(1));return yield*[q,...re]}for(let q=2;q{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteral=void 0;const ae=re(98094);const Ue=re(85855);const lt=re(13415);const Pt=re(97034);function TemplateLiteral(C,q={}){const re=(0,lt.IsString)(C)?(0,Ue.TemplateLiteralPattern)((0,ae.TemplateLiteralSyntax)(C)):(0,Ue.TemplateLiteralPattern)(C);return{...q,[Pt.Kind]:"TemplateLiteral",type:"string",pattern:re}}q.TemplateLiteral=TemplateLiteral},27522:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TemplateLiteralToUnion=void 0;const ae=re(69100);const Ue=re(98076);const lt=re(85670);function TemplateLiteralToUnion(C){const q=(0,lt.TemplateLiteralGenerate)(C);const re=q.map((C=>(0,Ue.Literal)(C)));return(0,ae.UnionEvaluated)(re)}q.TemplateLiteralToUnion=TemplateLiteralToUnion},67575:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(79399),q)},79399:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Transform=q.TransformEncodeBuilder=q.TransformDecodeBuilder=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(96994);class TransformDecodeBuilder{constructor(C){this.schema=C}Decode(C){return new TransformEncodeBuilder(this.schema,C)}}q.TransformDecodeBuilder=TransformDecodeBuilder;class TransformEncodeBuilder{constructor(C,q){this.schema=C;this.decode=q}EncodeTransform(C,q){const Encode=re=>q[ae.TransformKind].Encode(C(re));const Decode=C=>this.decode(q[ae.TransformKind].Decode(C));const re={Encode:Encode,Decode:Decode};return{...q,[ae.TransformKind]:re}}EncodeSchema(C,q){const re={Decode:this.decode,Encode:C};return{...q,[ae.TransformKind]:re}}Encode(C){const q=(0,Ue.CloneType)(this.schema);return(0,lt.IsTransform)(q)?this.EncodeTransform(C,q):this.EncodeSchema(C,q)}}q.TransformEncodeBuilder=TransformEncodeBuilder;function Transform(C){return new TransformDecodeBuilder(C)}q.Transform=Transform},7521:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(65667),q)},65667:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Tuple=void 0;const ae=re(38100);const Ue=re(97034);function Tuple(C,q={}){const[re,lt,Pt]=[false,C.length,C.length];return C.length>0?{...q,[Ue.Kind]:"Tuple",type:"array",items:(0,ae.CloneRest)(C),additionalItems:re,minItems:lt,maxItems:Pt}:{...q,[Ue.Kind]:"Tuple",type:"array",minItems:lt,maxItems:Pt}}q.Tuple=Tuple},68237:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Type=q.JavaScriptTypeBuilder=q.JsonTypeBuilder=void 0;var ae=re(86959);Object.defineProperty(q,"JsonTypeBuilder",{enumerable:true,get:function(){return ae.JsonTypeBuilder}});const Ue=re(17505);const lt=re(18158);Object.defineProperty(q,"JavaScriptTypeBuilder",{enumerable:true,get:function(){return lt.JavaScriptTypeBuilder}});const Pt=Ue;q.Type=Pt},18158:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.JavaScriptTypeBuilder=void 0;const ae=re(86959);const Ue=re(68092);const lt=re(85164);const Pt=re(13278);const Wt=re(16939);const Ar=re(58562);const Er=re(49305);const Ir=re(29857);const Br=re(26277);const kr=re(35907);const Pr=re(30449);const Qr=re(70062);const Fr=re(26936);const Dr=re(32970);const xr=re(2129);const Mr=re(45760);const Ur=re(96231);const Nr=re(81947);class JavaScriptTypeBuilder extends ae.JsonTypeBuilder{AsyncIterator(C,q={}){return(0,Ue.AsyncIterator)(C,q)}Awaited(C,q={}){return(0,lt.Awaited)(C,q)}BigInt(C={}){return(0,Pt.BigInt)(C)}ConstructorParameters(C,q={}){return(0,Ar.ConstructorParameters)(C,q)}Constructor(C,q,re){return(0,Wt.Constructor)(C,q,re)}Date(C={}){return(0,Er.Date)(C)}Function(C,q,re){return(0,Ir.Function)(C,q,re)}InstanceType(C,q={}){return(0,Br.InstanceType)(C,q)}Iterator(C,q={}){return(0,kr.Iterator)(C,q)}Parameters(C,q={}){return(0,Pr.Parameters)(C,q)}Promise(C,q={}){return(0,Qr.Promise)(C,q)}RegExp(C,q={}){return(0,Fr.RegExp)(C,q)}ReturnType(C,q={}){return(0,Dr.ReturnType)(C,q)}Symbol(C){return(0,xr.Symbol)(C)}Undefined(C={}){return(0,Ur.Undefined)(C)}Uint8Array(C={}){return(0,Mr.Uint8Array)(C)}Void(C={}){return(0,Nr.Void)(C)}}q.JavaScriptTypeBuilder=JavaScriptTypeBuilder},86959:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.JsonTypeBuilder=void 0;const ae=re(36813);const Ue=re(17186);const lt=re(64515);const Pt=re(80788);const Wt=re(19236);const Ar=re(911);const Er=re(98056);const Ir=re(41153);const Br=re(94850);const kr=re(69682);const Pr=re(86918);const Qr=re(4949);const Fr=re(62746);const Dr=re(30568);const xr=re(73373);const Mr=re(98076);const Ur=re(41094);const Nr=re(54025);const Lr=re(1078);const jr=re(50468);const Gr=re(85544);const Vr=re(62094);const Hr=re(88932);const Wr=re(38425);const $r=re(75726);const Kr=re(40640);const zr=re(40675);const Jr=re(78946);const Yr=re(30420);const Xr=re(33107);const Zr=re(80470);const en=re(42744);const tn=re(83003);const rn=re(23556);const nn=re(81688);const sn=re(26609);const an=re(67575);const cn=re(7521);const ln=re(69100);const un=re(51897);const dn=re(23339);class JsonTypeBuilder{Strict(C){return(0,rn.Strict)(C)}ReadonlyOptional(C){return(0,Jr.ReadonlyOptional)(C)}Readonly(C,q){return(0,zr.Readonly)(C,q??true)}Optional(C,q){return(0,Wr.Optional)(C,q??true)}Any(C={}){return(0,ae.Any)(C)}Array(C,q={}){return(0,Ue.Array)(C,q)}Boolean(C={}){return(0,lt.Boolean)(C)}Capitalize(C,q={}){return(0,Dr.Capitalize)(C,q)}Composite(C,q){return(0,Pt.Composite)(C,q)}Const(C,q={}){return(0,Wt.Const)(C,q)}Deref(C,q){return(0,Ar.Deref)(C,q)}Enum(C,q={}){return(0,Er.Enum)(C,q)}Exclude(C,q,re={}){return(0,Ir.Exclude)(C,q,re)}Extends(C,q,re,ae,Ue={}){return(0,Br.Extends)(C,q,re,ae,Ue)}Extract(C,q,re={}){return(0,kr.Extract)(C,q,re)}Index(C,q,re={}){return(0,Pr.Index)(C,q,re)}Integer(C={}){return(0,Qr.Integer)(C)}Intersect(C,q={}){return(0,Fr.Intersect)(C,q)}KeyOf(C,q={}){return(0,xr.KeyOf)(C,q)}Literal(C,q={}){return(0,Mr.Literal)(C,q)}Lowercase(C,q={}){return(0,Dr.Lowercase)(C,q)}Mapped(C,q,re={}){return(0,Ur.Mapped)(C,q,re)}Never(C={}){return(0,Nr.Never)(C)}Not(C,q){return(0,Lr.Not)(C,q)}Null(C={}){return(0,jr.Null)(C)}Number(C={}){return(0,Gr.Number)(C)}Object(C,q={}){return(0,Vr.Object)(C,q)}Omit(C,q,re={}){return(0,Hr.Omit)(C,q,re)}Partial(C,q={}){return(0,$r.Partial)(C,q)}Pick(C,q,re={}){return(0,Kr.Pick)(C,q,re)}Record(C,q,re={}){return(0,Yr.Record)(C,q,re)}Recursive(C,q={}){return(0,Xr.Recursive)(C,q)}Ref(C,q={}){return(0,Zr.Ref)(C,q)}Required(C,q={}){return(0,en.Required)(C,q)}Rest(C){return(0,tn.Rest)(C)}String(C={}){return(0,nn.String)(C)}TemplateLiteral(C,q={}){return(0,sn.TemplateLiteral)(C,q)}Transform(C){return(0,an.Transform)(C)}Tuple(C,q={}){return(0,cn.Tuple)(C,q)}Uncapitalize(C,q={}){return(0,Dr.Uncapitalize)(C,q)}Union(C,q={}){return(0,ln.Union)(C,q)}Unknown(C={}){return(0,un.Unknown)(C)}Unsafe(C={}){return(0,dn.Unsafe)(C)}Uppercase(C,q={}){return(0,Dr.Uppercase)(C,q)}}q.JsonTypeBuilder=JsonTypeBuilder},17505:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Strict=q.ReturnType=q.Rest=q.Required=q.RegExp=q.Ref=q.Recursive=q.Record=q.ReadonlyOptional=q.Readonly=q.Promise=q.Pick=q.Partial=q.Parameters=q.Optional=q.Omit=q.Object=q.Number=q.Null=q.Not=q.Never=q.Mapped=q.Literal=q.KeyOf=q.Iterator=q.Uppercase=q.Lowercase=q.Uncapitalize=q.Capitalize=q.Intersect=q.Integer=q.InstanceType=q.Index=q.Function=q.Extract=q.Extends=q.Exclude=q.Enum=q.Deref=q.Date=q.ConstructorParameters=q.Constructor=q.Const=q.Composite=q.Boolean=q.BigInt=q.Awaited=q.AsyncIterator=q.Array=q.Any=void 0;q.Void=q.Unsafe=q.Unknown=q.Union=q.Undefined=q.Uint8Array=q.Tuple=q.Transform=q.TemplateLiteral=q.Symbol=q.String=void 0;var ae=re(36813);Object.defineProperty(q,"Any",{enumerable:true,get:function(){return ae.Any}});var Ue=re(17186);Object.defineProperty(q,"Array",{enumerable:true,get:function(){return Ue.Array}});var lt=re(68092);Object.defineProperty(q,"AsyncIterator",{enumerable:true,get:function(){return lt.AsyncIterator}});var Pt=re(85164);Object.defineProperty(q,"Awaited",{enumerable:true,get:function(){return Pt.Awaited}});var Wt=re(13278);Object.defineProperty(q,"BigInt",{enumerable:true,get:function(){return Wt.BigInt}});var Ar=re(64515);Object.defineProperty(q,"Boolean",{enumerable:true,get:function(){return Ar.Boolean}});var Er=re(80788);Object.defineProperty(q,"Composite",{enumerable:true,get:function(){return Er.Composite}});var Ir=re(19236);Object.defineProperty(q,"Const",{enumerable:true,get:function(){return Ir.Const}});var Br=re(16939);Object.defineProperty(q,"Constructor",{enumerable:true,get:function(){return Br.Constructor}});var kr=re(58562);Object.defineProperty(q,"ConstructorParameters",{enumerable:true,get:function(){return kr.ConstructorParameters}});var Pr=re(49305);Object.defineProperty(q,"Date",{enumerable:true,get:function(){return Pr.Date}});var Qr=re(911);Object.defineProperty(q,"Deref",{enumerable:true,get:function(){return Qr.Deref}});var Fr=re(98056);Object.defineProperty(q,"Enum",{enumerable:true,get:function(){return Fr.Enum}});var Dr=re(41153);Object.defineProperty(q,"Exclude",{enumerable:true,get:function(){return Dr.Exclude}});var xr=re(94850);Object.defineProperty(q,"Extends",{enumerable:true,get:function(){return xr.Extends}});var Mr=re(69682);Object.defineProperty(q,"Extract",{enumerable:true,get:function(){return Mr.Extract}});var Ur=re(29857);Object.defineProperty(q,"Function",{enumerable:true,get:function(){return Ur.Function}});var Nr=re(86918);Object.defineProperty(q,"Index",{enumerable:true,get:function(){return Nr.Index}});var Lr=re(26277);Object.defineProperty(q,"InstanceType",{enumerable:true,get:function(){return Lr.InstanceType}});var jr=re(4949);Object.defineProperty(q,"Integer",{enumerable:true,get:function(){return jr.Integer}});var Gr=re(62746);Object.defineProperty(q,"Intersect",{enumerable:true,get:function(){return Gr.Intersect}});var Vr=re(30568);Object.defineProperty(q,"Capitalize",{enumerable:true,get:function(){return Vr.Capitalize}});Object.defineProperty(q,"Uncapitalize",{enumerable:true,get:function(){return Vr.Uncapitalize}});Object.defineProperty(q,"Lowercase",{enumerable:true,get:function(){return Vr.Lowercase}});Object.defineProperty(q,"Uppercase",{enumerable:true,get:function(){return Vr.Uppercase}});var Hr=re(35907);Object.defineProperty(q,"Iterator",{enumerable:true,get:function(){return Hr.Iterator}});var Wr=re(73373);Object.defineProperty(q,"KeyOf",{enumerable:true,get:function(){return Wr.KeyOf}});var $r=re(98076);Object.defineProperty(q,"Literal",{enumerable:true,get:function(){return $r.Literal}});var Kr=re(41094);Object.defineProperty(q,"Mapped",{enumerable:true,get:function(){return Kr.Mapped}});var zr=re(54025);Object.defineProperty(q,"Never",{enumerable:true,get:function(){return zr.Never}});var Jr=re(1078);Object.defineProperty(q,"Not",{enumerable:true,get:function(){return Jr.Not}});var Yr=re(50468);Object.defineProperty(q,"Null",{enumerable:true,get:function(){return Yr.Null}});var Xr=re(85544);Object.defineProperty(q,"Number",{enumerable:true,get:function(){return Xr.Number}});var Zr=re(62094);Object.defineProperty(q,"Object",{enumerable:true,get:function(){return Zr.Object}});var en=re(88932);Object.defineProperty(q,"Omit",{enumerable:true,get:function(){return en.Omit}});var tn=re(38425);Object.defineProperty(q,"Optional",{enumerable:true,get:function(){return tn.Optional}});var rn=re(30449);Object.defineProperty(q,"Parameters",{enumerable:true,get:function(){return rn.Parameters}});var nn=re(75726);Object.defineProperty(q,"Partial",{enumerable:true,get:function(){return nn.Partial}});var sn=re(40640);Object.defineProperty(q,"Pick",{enumerable:true,get:function(){return sn.Pick}});var an=re(70062);Object.defineProperty(q,"Promise",{enumerable:true,get:function(){return an.Promise}});var cn=re(40675);Object.defineProperty(q,"Readonly",{enumerable:true,get:function(){return cn.Readonly}});var ln=re(78946);Object.defineProperty(q,"ReadonlyOptional",{enumerable:true,get:function(){return ln.ReadonlyOptional}});var un=re(30420);Object.defineProperty(q,"Record",{enumerable:true,get:function(){return un.Record}});var dn=re(33107);Object.defineProperty(q,"Recursive",{enumerable:true,get:function(){return dn.Recursive}});var pn=re(80470);Object.defineProperty(q,"Ref",{enumerable:true,get:function(){return pn.Ref}});var fn=re(26936);Object.defineProperty(q,"RegExp",{enumerable:true,get:function(){return fn.RegExp}});var hn=re(42744);Object.defineProperty(q,"Required",{enumerable:true,get:function(){return hn.Required}});var gn=re(83003);Object.defineProperty(q,"Rest",{enumerable:true,get:function(){return gn.Rest}});var An=re(32970);Object.defineProperty(q,"ReturnType",{enumerable:true,get:function(){return An.ReturnType}});var mn=re(23556);Object.defineProperty(q,"Strict",{enumerable:true,get:function(){return mn.Strict}});var _n=re(81688);Object.defineProperty(q,"String",{enumerable:true,get:function(){return _n.String}});var yn=re(2129);Object.defineProperty(q,"Symbol",{enumerable:true,get:function(){return yn.Symbol}});var bn=re(26609);Object.defineProperty(q,"TemplateLiteral",{enumerable:true,get:function(){return bn.TemplateLiteral}});var En=re(67575);Object.defineProperty(q,"Transform",{enumerable:true,get:function(){return En.Transform}});var vn=re(7521);Object.defineProperty(q,"Tuple",{enumerable:true,get:function(){return vn.Tuple}});var In=re(45760);Object.defineProperty(q,"Uint8Array",{enumerable:true,get:function(){return In.Uint8Array}});var wn=re(96231);Object.defineProperty(q,"Undefined",{enumerable:true,get:function(){return wn.Undefined}});var Cn=re(69100);Object.defineProperty(q,"Union",{enumerable:true,get:function(){return Cn.Union}});var Sn=re(51897);Object.defineProperty(q,"Unknown",{enumerable:true,get:function(){return Sn.Unknown}});var Bn=re(23339);Object.defineProperty(q,"Unsafe",{enumerable:true,get:function(){return Bn.Unsafe}});var Tn=re(81947);Object.defineProperty(q,"Void",{enumerable:true,get:function(){return Tn.Void}})},45760:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(2039),q)},2039:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Uint8Array=void 0;const ae=re(97034);function Uint8Array(C={}){return{...C,[ae.Kind]:"Uint8Array",type:"Uint8Array"}}q.Uint8Array=Uint8Array},96231:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(20479),q)},20479:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Undefined=void 0;const ae=re(97034);function Undefined(C={}){return{...C,[ae.Kind]:"Undefined",type:"undefined"}}q.Undefined=Undefined},69100:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(24083),q);Ue(re(75396),q);Ue(re(28519),q)},98252:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.UnionCreate=void 0;const ae=re(38100);const Ue=re(97034);function UnionCreate(C,q){return{...q,[Ue.Kind]:"Union",anyOf:(0,ae.CloneRest)(C)}}q.UnionCreate=UnionCreate},24083:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.UnionEvaluated=void 0;const ae=re(97034);const Ue=re(38100);const lt=re(83889);const Pt=re(54025);const Wt=re(38425);const Ar=re(98252);const Er=re(96994);function IsUnionOptional(C){return C.some((C=>(0,Er.IsOptional)(C)))}function RemoveOptionalFromRest(C){return C.map((C=>(0,Er.IsOptional)(C)?RemoveOptionalFromType(C):C))}function RemoveOptionalFromType(C){return(0,lt.Discard)(C,[ae.OptionalKind])}function ResolveUnion(C,q){return IsUnionOptional(C)?(0,Wt.Optional)((0,Ar.UnionCreate)(RemoveOptionalFromRest(C),q)):(0,Ar.UnionCreate)(RemoveOptionalFromRest(C),q)}function UnionEvaluated(C,q={}){return C.length===0?(0,Pt.Never)(q):C.length===1?(0,Ue.CloneType)(C[0],q):ResolveUnion(C,q)}q.UnionEvaluated=UnionEvaluated},75396:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});const ae=re(97034)},28519:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Union=void 0;const ae=re(54025);const Ue=re(38100);const lt=re(98252);function Union(C,q={}){return C.length===0?(0,ae.Never)(q):C.length===1?(0,Ue.CloneType)(C[0],q):(0,lt.UnionCreate)(C,q)}q.Union=Union},51897:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(66303),q)},66303:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Unknown=void 0;const ae=re(97034);function Unknown(C={}){return{...C,[ae.Kind]:"Unknown"}}q.Unknown=Unknown},23339:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(1361),q)},1361:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Unsafe=void 0;const ae=re(97034);function Unsafe(C={}){return{...C,[ae.Kind]:C[ae.Kind]??"Unsafe"}}q.Unsafe=Unsafe},81947:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(14093),q)},14093:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Void=void 0;const ae=re(97034);function Void(C={}){return{...C,[ae.Kind]:"Void",type:"void"}}q.Void=Void},85874:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Cast=q.ValueCastError=void 0;const ae=re(17479);const Ue=re(26113);const lt=re(97034);const Pt=re(18050);const Wt=re(33742);const Ar=re(21683);const Er=re(40886);class ValueCastError extends Ue.TypeBoxError{constructor(C,q){super(q);this.schema=C}}q.ValueCastError=ValueCastError;function ScoreUnion(C,q,re){if(C[lt.Kind]==="Object"&&typeof re==="object"&&!(0,ae.IsNull)(re)){const ae=C;const Ue=Object.getOwnPropertyNames(re);const Pt=Object.entries(ae.properties);const[Ar,Er]=[1/Pt.length,Pt.length];return Pt.reduce(((C,[ae,Pt])=>{const Ir=Pt[lt.Kind]==="Literal"&&Pt.const===re[ae]?Er:0;const Br=(0,Wt.Check)(Pt,q,re[ae])?Ar:0;const kr=Ue.includes(ae)?Ar:0;return C+(Ir+Br+kr)}),0)}else{return(0,Wt.Check)(C,q,re)?1:0}}function SelectUnion(C,q,re){const ae=C.anyOf.map((C=>(0,Er.Deref)(C,q)));let[Ue,lt]=[ae[0],0];for(const C of ae){const ae=ScoreUnion(C,q,re);if(ae>lt){Ue=C;lt=ae}}return Ue}function CastUnion(C,q,re){if("default"in C){return typeof re==="function"?C.default:(0,Ar.Clone)(C.default)}else{const ae=SelectUnion(C,q,re);return Cast(ae,q,re)}}function DefaultClone(C,q,re){return(0,Wt.Check)(C,q,re)?(0,Ar.Clone)(re):(0,Pt.Create)(C,q)}function Default(C,q,re){return(0,Wt.Check)(C,q,re)?re:(0,Pt.Create)(C,q)}function FromArray(C,q,re){if((0,Wt.Check)(C,q,re))return(0,Ar.Clone)(re);const Ue=(0,ae.IsArray)(re)?(0,Ar.Clone)(re):(0,Pt.Create)(C,q);const lt=(0,ae.IsNumber)(C.minItems)&&Ue.lengthnull))]:Ue;const Er=(0,ae.IsNumber)(C.maxItems)&<.length>C.maxItems?lt.slice(0,C.maxItems):lt;const Ir=Er.map((re=>Visit(C.items,q,re)));if(C.uniqueItems!==true)return Ir;const Br=[...new Set(Ir)];if(!(0,Wt.Check)(C,q,Br))throw new ValueCastError(C,"Array cast produced invalid data due to uniqueItems constraint");return Br}function FromConstructor(C,q,re){if((0,Wt.Check)(C,q,re))return(0,Pt.Create)(C,q);const ae=new Set(C.returns.required||[]);const result=function(){};for(const[Ue,lt]of Object.entries(C.returns.properties)){if(!ae.has(Ue)&&re.prototype[Ue]===undefined)continue;result.prototype[Ue]=Visit(lt,q,re.prototype[Ue])}return result}function FromIntersect(C,q,re){const Ue=(0,Pt.Create)(C,q);const lt=(0,ae.IsStandardObject)(Ue)&&(0,ae.IsStandardObject)(re)?{...Ue,...re}:re;return(0,Wt.Check)(C,q,lt)?lt:(0,Pt.Create)(C,q)}function FromNever(C,q,re){throw new ValueCastError(C,"Never types cannot be cast")}function FromObject(C,q,re){if((0,Wt.Check)(C,q,re))return re;if(re===null||typeof re!=="object")return(0,Pt.Create)(C,q);const ae=new Set(C.required||[]);const Ue={};for(const[lt,Pt]of Object.entries(C.properties)){if(!ae.has(lt)&&re[lt]===undefined)continue;Ue[lt]=Visit(Pt,q,re[lt])}if(typeof C.additionalProperties==="object"){const ae=Object.getOwnPropertyNames(C.properties);for(const lt of Object.getOwnPropertyNames(re)){if(ae.includes(lt))continue;Ue[lt]=Visit(C.additionalProperties,q,re[lt])}}return Ue}function FromRecord(C,q,re){if((0,Wt.Check)(C,q,re))return(0,Ar.Clone)(re);if(re===null||typeof re!=="object"||Array.isArray(re)||re instanceof Date)return(0,Pt.Create)(C,q);const ae=Object.getOwnPropertyNames(C.patternProperties)[0];const Ue=C.patternProperties[ae];const lt={};for(const[C,ae]of Object.entries(re)){lt[C]=Visit(Ue,q,ae)}return lt}function FromRef(C,q,re){return Visit((0,Er.Deref)(C,q),q,re)}function FromThis(C,q,re){return Visit((0,Er.Deref)(C,q),q,re)}function FromTuple(C,q,re){if((0,Wt.Check)(C,q,re))return(0,Ar.Clone)(re);if(!(0,ae.IsArray)(re))return(0,Pt.Create)(C,q);if(C.items===undefined)return[];return C.items.map(((C,ae)=>Visit(C,q,re[ae])))}function FromUnion(C,q,re){return(0,Wt.Check)(C,q,re)?(0,Ar.Clone)(re):CastUnion(C,q,re)}function Visit(C,q,re){const Ue=(0,ae.IsString)(C.$id)?[...q,C]:q;const Pt=C;switch(C[lt.Kind]){case"Array":return FromArray(Pt,Ue,re);case"Constructor":return FromConstructor(Pt,Ue,re);case"Intersect":return FromIntersect(Pt,Ue,re);case"Never":return FromNever(Pt,Ue,re);case"Object":return FromObject(Pt,Ue,re);case"Record":return FromRecord(Pt,Ue,re);case"Ref":return FromRef(Pt,Ue,re);case"This":return FromThis(Pt,Ue,re);case"Tuple":return FromTuple(Pt,Ue,re);case"Union":return FromUnion(Pt,Ue,re);case"Date":case"Symbol":case"Uint8Array":return DefaultClone(C,q,re);default:return Default(Pt,Ue,re)}}function Cast(...C){return C.length===3?Visit(C[0],C[1],C[2]):Visit(C[0],[],C[1])}q.Cast=Cast},46097:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85874),q)},85410:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Check=q.ValueCheckUnknownTypeError=void 0;const ae=re(82129);const Ue=re(40886);const lt=re(7210);const Pt=re(97034);const Wt=re(73373);const Ar=re(94850);const Er=re(51786);const Ir=re(26113);const Br=re(54025);const kr=re(17479);const Pr=re(70384);class ValueCheckUnknownTypeError extends Ir.TypeBoxError{constructor(C){super(`Unknown type`);this.schema=C}}q.ValueCheckUnknownTypeError=ValueCheckUnknownTypeError;function IsAnyOrUnknown(C){return C[Pt.Kind]==="Any"||C[Pt.Kind]==="Unknown"}function IsDefined(C){return C!==undefined}function FromAny(C,q,re){return true}function FromArray(C,q,re){if(!(0,kr.IsArray)(re))return false;if(IsDefined(C.minItems)&&!(re.length>=C.minItems)){return false}if(IsDefined(C.maxItems)&&!(re.length<=C.maxItems)){return false}if(!re.every((re=>Visit(C.items,q,re)))){return false}if(C.uniqueItems===true&&!function(){const C=new Set;for(const q of re){const re=(0,lt.Hash)(q);if(C.has(re)){return false}else{C.add(re)}}return true}()){return false}if(!(IsDefined(C.contains)||(0,kr.IsNumber)(C.minContains)||(0,kr.IsNumber)(C.maxContains))){return true}const ae=IsDefined(C.contains)?C.contains:(0,Br.Never)();const Ue=re.reduce(((C,re)=>Visit(ae,q,re)?C+1:C),0);if(Ue===0){return false}if((0,kr.IsNumber)(C.minContains)&&UeC.maxContains){return false}return true}function FromAsyncIterator(C,q,re){return(0,kr.IsAsyncIterator)(re)}function FromBigInt(C,q,re){if(!(0,kr.IsBigInt)(re))return false;if(IsDefined(C.exclusiveMaximum)&&!(reC.exclusiveMinimum)){return false}if(IsDefined(C.maximum)&&!(re<=C.maximum)){return false}if(IsDefined(C.minimum)&&!(re>=C.minimum)){return false}if(IsDefined(C.multipleOf)&&!(re%C.multipleOf===BigInt(0))){return false}return true}function FromBoolean(C,q,re){return(0,kr.IsBoolean)(re)}function FromConstructor(C,q,re){return Visit(C.returns,q,re.prototype)}function FromDate(C,q,re){if(!(0,kr.IsDate)(re))return false;if(IsDefined(C.exclusiveMaximumTimestamp)&&!(re.getTime()C.exclusiveMinimumTimestamp)){return false}if(IsDefined(C.maximumTimestamp)&&!(re.getTime()<=C.maximumTimestamp)){return false}if(IsDefined(C.minimumTimestamp)&&!(re.getTime()>=C.minimumTimestamp)){return false}if(IsDefined(C.multipleOfTimestamp)&&!(re.getTime()%C.multipleOfTimestamp===0)){return false}return true}function FromFunction(C,q,re){return(0,kr.IsFunction)(re)}function FromInteger(C,q,re){if(!(0,kr.IsInteger)(re)){return false}if(IsDefined(C.exclusiveMaximum)&&!(reC.exclusiveMinimum)){return false}if(IsDefined(C.maximum)&&!(re<=C.maximum)){return false}if(IsDefined(C.minimum)&&!(re>=C.minimum)){return false}if(IsDefined(C.multipleOf)&&!(re%C.multipleOf===0)){return false}return true}function FromIntersect(C,q,re){const ae=C.allOf.every((C=>Visit(C,q,re)));if(C.unevaluatedProperties===false){const q=new RegExp((0,Wt.KeyOfPattern)(C));const Ue=Object.getOwnPropertyNames(re).every((C=>q.test(C)));return ae&&Ue}else if((0,Pr.IsSchema)(C.unevaluatedProperties)){const Ue=new RegExp((0,Wt.KeyOfPattern)(C));const lt=Object.getOwnPropertyNames(re).every((ae=>Ue.test(ae)||Visit(C.unevaluatedProperties,q,re[ae])));return ae&<}else{return ae}}function FromIterator(C,q,re){return(0,kr.IsIterator)(re)}function FromLiteral(C,q,re){return re===C.const}function FromNever(C,q,re){return false}function FromNot(C,q,re){return!Visit(C.not,q,re)}function FromNull(C,q,re){return(0,kr.IsNull)(re)}function FromNumber(C,q,re){if(!ae.TypeSystemPolicy.IsNumberLike(re))return false;if(IsDefined(C.exclusiveMaximum)&&!(reC.exclusiveMinimum)){return false}if(IsDefined(C.minimum)&&!(re>=C.minimum)){return false}if(IsDefined(C.maximum)&&!(re<=C.maximum)){return false}if(IsDefined(C.multipleOf)&&!(re%C.multipleOf===0)){return false}return true}function FromObject(C,q,re){if(!ae.TypeSystemPolicy.IsObjectLike(re))return false;if(IsDefined(C.minProperties)&&!(Object.getOwnPropertyNames(re).length>=C.minProperties)){return false}if(IsDefined(C.maxProperties)&&!(Object.getOwnPropertyNames(re).length<=C.maxProperties)){return false}const Ue=Object.getOwnPropertyNames(C.properties);for(const lt of Ue){const Ue=C.properties[lt];if(C.required&&C.required.includes(lt)){if(!Visit(Ue,q,re[lt])){return false}if(((0,Ar.ExtendsUndefinedCheck)(Ue)||IsAnyOrUnknown(Ue))&&!(lt in re)){return false}}else{if(ae.TypeSystemPolicy.IsExactOptionalProperty(re,lt)&&!Visit(Ue,q,re[lt])){return false}}}if(C.additionalProperties===false){const q=Object.getOwnPropertyNames(re);if(C.required&&C.required.length===Ue.length&&q.length===Ue.length){return true}else{return q.every((C=>Ue.includes(C)))}}else if(typeof C.additionalProperties==="object"){const ae=Object.getOwnPropertyNames(re);return ae.every((ae=>Ue.includes(ae)||Visit(C.additionalProperties,q,re[ae])))}else{return true}}function FromPromise(C,q,re){return(0,kr.IsPromise)(re)}function FromRecord(C,q,re){if(!ae.TypeSystemPolicy.IsRecordLike(re)){return false}if(IsDefined(C.minProperties)&&!(Object.getOwnPropertyNames(re).length>=C.minProperties)){return false}if(IsDefined(C.maxProperties)&&!(Object.getOwnPropertyNames(re).length<=C.maxProperties)){return false}const[Ue,lt]=Object.entries(C.patternProperties)[0];const Pt=new RegExp(Ue);const Wt=Object.entries(re).every((([C,re])=>Pt.test(C)?Visit(lt,q,re):true));const Ar=typeof C.additionalProperties==="object"?Object.entries(re).every((([re,ae])=>!Pt.test(re)?Visit(C.additionalProperties,q,ae):true)):true;const Er=C.additionalProperties===false?Object.getOwnPropertyNames(re).every((C=>Pt.test(C))):true;return Wt&&Ar&&Er}function FromRef(C,q,re){return Visit((0,Ue.Deref)(C,q),q,re)}function FromRegExp(C,q,re){const ae=new RegExp(C.source,C.flags);if(IsDefined(C.minLength)){if(!(re.length>=C.minLength))return false}if(IsDefined(C.maxLength)){if(!(re.length<=C.maxLength))return false}return ae.test(re)}function FromString(C,q,re){if(!(0,kr.IsString)(re)){return false}if(IsDefined(C.minLength)){if(!(re.length>=C.minLength))return false}if(IsDefined(C.maxLength)){if(!(re.length<=C.maxLength))return false}if(IsDefined(C.pattern)){const q=new RegExp(C.pattern);if(!q.test(re))return false}if(IsDefined(C.format)){if(!Er.FormatRegistry.Has(C.format))return false;const q=Er.FormatRegistry.Get(C.format);return q(re)}return true}function FromSymbol(C,q,re){return(0,kr.IsSymbol)(re)}function FromTemplateLiteral(C,q,re){return(0,kr.IsString)(re)&&new RegExp(C.pattern).test(re)}function FromThis(C,q,re){return Visit((0,Ue.Deref)(C,q),q,re)}function FromTuple(C,q,re){if(!(0,kr.IsArray)(re)){return false}if(C.items===undefined&&!(re.length===0)){return false}if(!(re.length===C.maxItems)){return false}if(!C.items){return true}for(let ae=0;aeVisit(C,q,re)))}function FromUint8Array(C,q,re){if(!(0,kr.IsUint8Array)(re)){return false}if(IsDefined(C.maxByteLength)&&!(re.length<=C.maxByteLength)){return false}if(IsDefined(C.minByteLength)&&!(re.length>=C.minByteLength)){return false}return true}function FromUnknown(C,q,re){return true}function FromVoid(C,q,re){return ae.TypeSystemPolicy.IsVoidLike(re)}function FromKind(C,q,re){if(!Er.TypeRegistry.Has(C[Pt.Kind]))return false;const ae=Er.TypeRegistry.Get(C[Pt.Kind]);return ae(C,re)}function Visit(C,q,re){const ae=IsDefined(C.$id)?[...q,C]:q;const Ue=C;switch(Ue[Pt.Kind]){case"Any":return FromAny(Ue,ae,re);case"Array":return FromArray(Ue,ae,re);case"AsyncIterator":return FromAsyncIterator(Ue,ae,re);case"BigInt":return FromBigInt(Ue,ae,re);case"Boolean":return FromBoolean(Ue,ae,re);case"Constructor":return FromConstructor(Ue,ae,re);case"Date":return FromDate(Ue,ae,re);case"Function":return FromFunction(Ue,ae,re);case"Integer":return FromInteger(Ue,ae,re);case"Intersect":return FromIntersect(Ue,ae,re);case"Iterator":return FromIterator(Ue,ae,re);case"Literal":return FromLiteral(Ue,ae,re);case"Never":return FromNever(Ue,ae,re);case"Not":return FromNot(Ue,ae,re);case"Null":return FromNull(Ue,ae,re);case"Number":return FromNumber(Ue,ae,re);case"Object":return FromObject(Ue,ae,re);case"Promise":return FromPromise(Ue,ae,re);case"Record":return FromRecord(Ue,ae,re);case"Ref":return FromRef(Ue,ae,re);case"RegExp":return FromRegExp(Ue,ae,re);case"String":return FromString(Ue,ae,re);case"Symbol":return FromSymbol(Ue,ae,re);case"TemplateLiteral":return FromTemplateLiteral(Ue,ae,re);case"This":return FromThis(Ue,ae,re);case"Tuple":return FromTuple(Ue,ae,re);case"Undefined":return FromUndefined(Ue,ae,re);case"Union":return FromUnion(Ue,ae,re);case"Uint8Array":return FromUint8Array(Ue,ae,re);case"Unknown":return FromUnknown(Ue,ae,re);case"Void":return FromVoid(Ue,ae,re);default:if(!Er.TypeRegistry.Has(Ue[Pt.Kind]))throw new ValueCheckUnknownTypeError(Ue);return FromKind(Ue,ae,re)}}function Check(...C){return C.length===3?Visit(C[0],C[1],C[2]):Visit(C[0],[],C[1])}q.Check=Check},33742:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85410),q)},40338:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Clean=void 0;const ae=re(73373);const Ue=re(33742);const lt=re(21683);const Pt=re(40886);const Wt=re(97034);const Ar=re(17479);const Er=re(70384);function IsCheckable(C){return(0,Er.IsSchema)(C)&&C[Wt.Kind]!=="Unsafe"}function FromArray(C,q,re){if(!(0,Ar.IsArray)(re))return re;return re.map((re=>Visit(C.items,q,re)))}function FromIntersect(C,q,re){const Pt=C.unevaluatedProperties;const Wt=C.allOf.map((C=>Visit(C,q,(0,lt.Clone)(re))));const Ir=Wt.reduce(((C,q)=>(0,Ar.IsObject)(q)?{...C,...q}:q),{});if(!(0,Ar.IsObject)(re)||!(0,Ar.IsObject)(Ir)||!(0,Er.IsSchema)(Pt))return Ir;const Br=(0,ae.KeyOfPropertyKeys)(C);for(const C of Object.getOwnPropertyNames(re)){if(Br.includes(C))continue;if((0,Ue.Check)(Pt,q,re[C])){Ir[C]=Visit(Pt,q,re[C])}}return Ir}function FromObject(C,q,re){if(!(0,Ar.IsObject)(re)||(0,Ar.IsArray)(re))return re;const ae=C.additionalProperties;for(const lt of Object.getOwnPropertyNames(re)){if(lt in C.properties){re[lt]=Visit(C.properties[lt],q,re[lt]);continue}if((0,Er.IsSchema)(ae)&&(0,Ue.Check)(ae,q,re[lt])){re[lt]=Visit(ae,q,re[lt]);continue}delete re[lt]}return re}function FromRecord(C,q,re){if(!(0,Ar.IsObject)(re))return re;const ae=C.additionalProperties;const lt=Object.getOwnPropertyNames(re);const[Pt,Wt]=Object.entries(C.patternProperties)[0];const Ir=new RegExp(Pt);for(const C of lt){if(Ir.test(C)){re[C]=Visit(Wt,q,re[C]);continue}if((0,Er.IsSchema)(ae)&&(0,Ue.Check)(ae,q,re[C])){re[C]=Visit(ae,q,re[C]);continue}delete re[C]}return re}function FromRef(C,q,re){return Visit((0,Pt.Deref)(C,q),q,re)}function FromThis(C,q,re){return Visit((0,Pt.Deref)(C,q),q,re)}function FromTuple(C,q,re){if(!(0,Ar.IsArray)(re))return re;if((0,Ar.IsUndefined)(C.items))return[];const ae=Math.min(re.length,C.items.length);for(let Ue=0;Ueae?re.slice(0,ae):re}function FromUnion(C,q,re){for(const ae of C.anyOf){if(IsCheckable(ae)&&(0,Ue.Check)(ae,q,re)){return Visit(ae,q,re)}}return re}function Visit(C,q,re){const ae=(0,Ar.IsString)(C.$id)?[...q,C]:q;const Ue=C;switch(Ue[Wt.Kind]){case"Array":return FromArray(Ue,ae,re);case"Intersect":return FromIntersect(Ue,ae,re);case"Object":return FromObject(Ue,ae,re);case"Record":return FromRecord(Ue,ae,re);case"Ref":return FromRef(Ue,ae,re);case"This":return FromThis(Ue,ae,re);case"Tuple":return FromTuple(Ue,ae,re);case"Union":return FromUnion(Ue,ae,re);default:return re}}function Clean(...C){return C.length===3?Visit(C[0],C[1],C[2]):Visit(C[0],[],C[1])}q.Clean=Clean},6115:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(40338),q)},13366:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Clone=void 0;const ae=re(17479);function ObjectType(C){const q={};for(const re of Object.getOwnPropertyNames(C)){q[re]=Clone(C[re])}for(const re of Object.getOwnPropertySymbols(C)){q[re]=Clone(C[re])}return q}function ArrayType(C){return C.map((C=>Clone(C)))}function TypedArrayType(C){return C.slice()}function DateType(C){return new Date(C.toISOString())}function ValueType(C){return C}function Clone(C){if((0,ae.IsArray)(C))return ArrayType(C);if((0,ae.IsDate)(C))return DateType(C);if((0,ae.IsStandardObject)(C))return ObjectType(C);if((0,ae.IsTypedArray)(C))return TypedArrayType(C);if((0,ae.IsValueType)(C))return ValueType(C);throw new Error("ValueClone: Unable to clone value")}q.Clone=Clone},21683:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(13366),q)},68594:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Convert=void 0;const ae=re(21683);const Ue=re(33742);const lt=re(40886);const Pt=re(97034);const Wt=re(17479);function IsStringNumeric(C){return(0,Wt.IsString)(C)&&!isNaN(C)&&!isNaN(parseFloat(C))}function IsValueToString(C){return(0,Wt.IsBigInt)(C)||(0,Wt.IsBoolean)(C)||(0,Wt.IsNumber)(C)}function IsValueTrue(C){return C===true||(0,Wt.IsNumber)(C)&&C===1||(0,Wt.IsBigInt)(C)&&C===BigInt("1")||(0,Wt.IsString)(C)&&(C.toLowerCase()==="true"||C==="1")}function IsValueFalse(C){return C===false||(0,Wt.IsNumber)(C)&&(C===0||Object.is(C,-0))||(0,Wt.IsBigInt)(C)&&C===BigInt("0")||(0,Wt.IsString)(C)&&(C.toLowerCase()==="false"||C==="0"||C==="-0")}function IsTimeStringWithTimeZone(C){return(0,Wt.IsString)(C)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(C)}function IsTimeStringWithoutTimeZone(C){return(0,Wt.IsString)(C)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(C)}function IsDateTimeStringWithTimeZone(C){return(0,Wt.IsString)(C)&&/^\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(C)}function IsDateTimeStringWithoutTimeZone(C){return(0,Wt.IsString)(C)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(C)}function IsDateString(C){return(0,Wt.IsString)(C)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(C)}function TryConvertLiteralString(C,q){const re=TryConvertString(C);return re===q?re:C}function TryConvertLiteralNumber(C,q){const re=TryConvertNumber(C);return re===q?re:C}function TryConvertLiteralBoolean(C,q){const re=TryConvertBoolean(C);return re===q?re:C}function TryConvertLiteral(C,q){return(0,Wt.IsString)(C.const)?TryConvertLiteralString(q,C.const):(0,Wt.IsNumber)(C.const)?TryConvertLiteralNumber(q,C.const):(0,Wt.IsBoolean)(C.const)?TryConvertLiteralBoolean(q,C.const):(0,ae.Clone)(q)}function TryConvertBoolean(C){return IsValueTrue(C)?true:IsValueFalse(C)?false:C}function TryConvertBigInt(C){return IsStringNumeric(C)?BigInt(parseInt(C)):(0,Wt.IsNumber)(C)?BigInt(C|0):IsValueFalse(C)?BigInt(0):IsValueTrue(C)?BigInt(1):C}function TryConvertString(C){return IsValueToString(C)?C.toString():(0,Wt.IsSymbol)(C)&&C.description!==undefined?C.description.toString():C}function TryConvertNumber(C){return IsStringNumeric(C)?parseFloat(C):IsValueTrue(C)?1:IsValueFalse(C)?0:C}function TryConvertInteger(C){return IsStringNumeric(C)?parseInt(C):(0,Wt.IsNumber)(C)?C|0:IsValueTrue(C)?1:IsValueFalse(C)?0:C}function TryConvertNull(C){return(0,Wt.IsString)(C)&&C.toLowerCase()==="null"?null:C}function TryConvertUndefined(C){return(0,Wt.IsString)(C)&&C==="undefined"?undefined:C}function TryConvertDate(C){return(0,Wt.IsDate)(C)?C:(0,Wt.IsNumber)(C)?new Date(C):IsValueTrue(C)?new Date(1):IsValueFalse(C)?new Date(0):IsStringNumeric(C)?new Date(parseInt(C)):IsTimeStringWithoutTimeZone(C)?new Date(`1970-01-01T${C}.000Z`):IsTimeStringWithTimeZone(C)?new Date(`1970-01-01T${C}`):IsDateTimeStringWithoutTimeZone(C)?new Date(`${C}.000Z`):IsDateTimeStringWithTimeZone(C)?new Date(C):IsDateString(C)?new Date(`${C}T00:00:00.000Z`):C}function Default(C){return C}function FromArray(C,q,re){const ae=(0,Wt.IsArray)(re)?re:[re];return ae.map((re=>Visit(C.items,q,re)))}function FromBigInt(C,q,re){return TryConvertBigInt(re)}function FromBoolean(C,q,re){return TryConvertBoolean(re)}function FromDate(C,q,re){return TryConvertDate(re)}function FromInteger(C,q,re){return TryConvertInteger(re)}function FromIntersect(C,q,re){return C.allOf.reduce(((C,re)=>Visit(re,q,C)),re)}function FromLiteral(C,q,re){return TryConvertLiteral(C,re)}function FromNull(C,q,re){return TryConvertNull(re)}function FromNumber(C,q,re){return TryConvertNumber(re)}function FromObject(C,q,re){const ae=(0,Wt.IsObject)(re);if(!ae)return re;const Ue={};for(const ae of Object.keys(re)){Ue[ae]=(0,Wt.HasPropertyKey)(C.properties,ae)?Visit(C.properties[ae],q,re[ae]):re[ae]}return Ue}function FromRecord(C,q,re){const ae=Object.getOwnPropertyNames(C.patternProperties)[0];const Ue=C.patternProperties[ae];const lt={};for(const[C,ae]of Object.entries(re)){lt[C]=Visit(Ue,q,ae)}return lt}function FromRef(C,q,re){return Visit((0,lt.Deref)(C,q),q,re)}function FromString(C,q,re){return TryConvertString(re)}function FromSymbol(C,q,re){return(0,Wt.IsString)(re)||(0,Wt.IsNumber)(re)?Symbol(re):re}function FromThis(C,q,re){return Visit((0,lt.Deref)(C,q),q,re)}function FromTuple(C,q,re){const ae=(0,Wt.IsArray)(re)&&!(0,Wt.IsUndefined)(C.items);if(!ae)return re;return re.map(((re,ae)=>ae{Object.defineProperty(q,"__esModule",{value:true});q.Create=q.ValueCreateError=void 0;const ae=re(17479);const Ue=re(33742);const lt=re(21683);const Pt=re(40886);const Wt=re(26609);const Ar=re(94354);const Er=re(51786);const Ir=re(97034);const Br=re(26113);class ValueCreateError extends Br.TypeBoxError{constructor(C,q){super(q);this.schema=C}}q.ValueCreateError=ValueCreateError;function FromDefault(C){return typeof C==="function"?C:(0,lt.Clone)(C)}function FromAny(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return{}}}function FromArray(C,q){if(C.uniqueItems===true&&!(0,ae.HasPropertyKey)(C,"default")){throw new ValueCreateError(C,"Array with the uniqueItems constraint requires a default value")}else if("contains"in C&&!(0,ae.HasPropertyKey)(C,"default")){throw new ValueCreateError(C,"Array with the contains constraint requires a default value")}else if("default"in C){return FromDefault(C.default)}else if(C.minItems!==undefined){return Array.from({length:C.minItems}).map((re=>Visit(C.items,q)))}else{return[]}}function FromAsyncIterator(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return async function*(){}()}}function FromBigInt(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return BigInt(0)}}function FromBoolean(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return false}}function FromConstructor(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{const re=Visit(C.returns,q);if(typeof re==="object"&&!Array.isArray(re)){return class{constructor(){for(const[C,q]of Object.entries(re)){const re=this;re[C]=q}}}}else{return class{}}}}function FromDate(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minimumTimestamp!==undefined){return new Date(C.minimumTimestamp)}else{return new Date}}function FromFunction(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return()=>Visit(C.returns,q)}}function FromInteger(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minimum!==undefined){return C.minimum}else{return 0}}function FromIntersect(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{const re=C.allOf.reduce(((C,re)=>{const ae=Visit(re,q);return typeof ae==="object"?{...C,...ae}:ae}),{});if(!(0,Ue.Check)(C,q,re))throw new ValueCreateError(C,"Intersect produced invalid value. Consider using a default value.");return re}}function FromIterator(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return function*(){}()}}function FromLiteral(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return C.const}}function FromNever(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{throw new ValueCreateError(C,"Never types cannot be created. Consider using a default value.")}}function FromNot(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{throw new ValueCreateError(C,"Not types must have a default value")}}function FromNull(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return null}}function FromNumber(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minimum!==undefined){return C.minimum}else{return 0}}function FromObject(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{const re=new Set(C.required);const ae={};for(const[Ue,lt]of Object.entries(C.properties)){if(!re.has(Ue))continue;ae[Ue]=Visit(lt,q)}return ae}}function FromPromise(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return Promise.resolve(Visit(C.item,q))}}function FromRecord(C,q){const[re,Ue]=Object.entries(C.patternProperties)[0];if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(!(re===Ar.PatternStringExact||re===Ar.PatternNumberExact)){const C=re.slice(1,re.length-1).split("|");const ae={};for(const re of C)ae[re]=Visit(Ue,q);return ae}else{return{}}}function FromRef(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return Visit((0,Pt.Deref)(C,q),q)}}function FromRegExp(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{throw new ValueCreateError(C,"RegExp types cannot be created. Consider using a default value.")}}function FromString(C,q){if(C.pattern!==undefined){if(!(0,ae.HasPropertyKey)(C,"default")){throw new ValueCreateError(C,"String types with patterns must specify a default value")}else{return FromDefault(C.default)}}else if(C.format!==undefined){if(!(0,ae.HasPropertyKey)(C,"default")){throw new ValueCreateError(C,"String types with formats must specify a default value")}else{return FromDefault(C.default)}}else{if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minLength!==undefined){return Array.from({length:C.minLength}).map((()=>" ")).join("")}else{return""}}}function FromSymbol(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if("value"in C){return Symbol.for(C.value)}else{return Symbol()}}function FromTemplateLiteral(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}if(!(0,Wt.IsTemplateLiteralFinite)(C))throw new ValueCreateError(C,"Can only create template literals that produce a finite variants. Consider using a default value.");const re=(0,Wt.TemplateLiteralGenerate)(C);return re[0]}function FromThis(C,q){if(Pr++>kr)throw new ValueCreateError(C,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return Visit((0,Pt.Deref)(C,q),q)}}function FromTuple(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}if(C.items===undefined){return[]}else{return Array.from({length:C.minItems}).map(((re,ae)=>Visit(C.items[ae],q)))}}function FromUndefined(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return undefined}}function FromUnion(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.anyOf.length===0){throw new Error("ValueCreate.Union: Cannot create Union with zero variants")}else{return Visit(C.anyOf[0],q)}}function FromUint8Array(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else if(C.minByteLength!==undefined){return new Uint8Array(C.minByteLength)}else{return new Uint8Array(0)}}function FromUnknown(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return{}}}function FromVoid(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{return void 0}}function FromKind(C,q){if((0,ae.HasPropertyKey)(C,"default")){return FromDefault(C.default)}else{throw new Error("User defined types must specify a default value")}}function Visit(C,q){const re=(0,ae.IsString)(C.$id)?[...q,C]:q;const Ue=C;switch(Ue[Ir.Kind]){case"Any":return FromAny(Ue,re);case"Array":return FromArray(Ue,re);case"AsyncIterator":return FromAsyncIterator(Ue,re);case"BigInt":return FromBigInt(Ue,re);case"Boolean":return FromBoolean(Ue,re);case"Constructor":return FromConstructor(Ue,re);case"Date":return FromDate(Ue,re);case"Function":return FromFunction(Ue,re);case"Integer":return FromInteger(Ue,re);case"Intersect":return FromIntersect(Ue,re);case"Iterator":return FromIterator(Ue,re);case"Literal":return FromLiteral(Ue,re);case"Never":return FromNever(Ue,re);case"Not":return FromNot(Ue,re);case"Null":return FromNull(Ue,re);case"Number":return FromNumber(Ue,re);case"Object":return FromObject(Ue,re);case"Promise":return FromPromise(Ue,re);case"Record":return FromRecord(Ue,re);case"Ref":return FromRef(Ue,re);case"RegExp":return FromRegExp(Ue,re);case"String":return FromString(Ue,re);case"Symbol":return FromSymbol(Ue,re);case"TemplateLiteral":return FromTemplateLiteral(Ue,re);case"This":return FromThis(Ue,re);case"Tuple":return FromTuple(Ue,re);case"Undefined":return FromUndefined(Ue,re);case"Union":return FromUnion(Ue,re);case"Uint8Array":return FromUint8Array(Ue,re);case"Unknown":return FromUnknown(Ue,re);case"Void":return FromVoid(Ue,re);default:if(!Er.TypeRegistry.Has(Ue[Ir.Kind]))throw new ValueCreateError(Ue,"Unknown type");return FromKind(Ue,re)}}const kr=512;let Pr=0;function Create(...C){Pr=0;return C.length===2?Visit(C[0],C[1]):Visit(C[0],[])}q.Create=Create},18050:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(51744),q)},28766:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Default=void 0;const ae=re(33742);const Ue=re(21683);const lt=re(40886);const Pt=re(97034);const Wt=re(17479);const Ar=re(70384);function ValueOrDefault(C,q){return q===undefined&&"default"in C?(0,Ue.Clone)(C.default):q}function IsCheckable(C){return(0,Ar.IsSchema)(C)&&C[Pt.Kind]!=="Unsafe"}function IsDefaultSchema(C){return(0,Ar.IsSchema)(C)&&"default"in C}function FromArray(C,q,re){const ae=ValueOrDefault(C,re);if(!(0,Wt.IsArray)(ae))return ae;for(let re=0;re{const Ue=Visit(re,q,ae);return(0,Wt.IsObject)(Ue)?{...C,...Ue}:Ue}),{})}function FromObject(C,q,re){const ae=ValueOrDefault(C,re);if(!(0,Wt.IsObject)(ae))return ae;const Ue=C.additionalProperties;const lt=Object.getOwnPropertyNames(C.properties);for(const re of lt){if(!IsDefaultSchema(C.properties[re]))continue;ae[re]=Visit(C.properties[re],q,ae[re])}if(!IsDefaultSchema(Ue))return ae;for(const C of Object.getOwnPropertyNames(ae)){if(lt.includes(C))continue;ae[C]=Visit(Ue,q,ae[C])}return ae}function FromRecord(C,q,re){const ae=ValueOrDefault(C,re);if(!(0,Wt.IsObject)(ae))return ae;const Ue=C.additionalProperties;const[lt,Pt]=Object.entries(C.patternProperties)[0];const Ar=new RegExp(lt);for(const C of Object.getOwnPropertyNames(ae)){if(!(Ar.test(C)&&IsDefaultSchema(Pt)))continue;ae[C]=Visit(Pt,q,ae[C])}if(!IsDefaultSchema(Ue))return ae;for(const C of Object.getOwnPropertyNames(ae)){if(Ar.test(C))continue;ae[C]=Visit(Ue,q,ae[C])}return ae}function FromRef(C,q,re){return Visit((0,lt.Deref)(C,q),q,ValueOrDefault(C,re))}function FromThis(C,q,re){return Visit((0,lt.Deref)(C,q),q,re)}function FromTuple(C,q,re){const ae=ValueOrDefault(C,re);if(!(0,Wt.IsArray)(ae)||(0,Wt.IsUndefined)(C.items))return ae;const[Ue,lt]=[C.items,Math.max(C.items.length,ae.length)];for(let C=0;C{Object.defineProperty(q,"__esModule",{value:true});q.Patch=q.Diff=q.ValueDeltaSymbolError=q.ValueDeltaError=q.Edit=q.Delete=q.Update=q.Insert=void 0;const ae=re(17479);const Ue=re(23079);const lt=re(21683);const Pt=re(26113);const Wt=re(98076);const Ar=re(62094);const Er=re(81688);const Ir=re(51897);const Br=re(69100);q.Insert=(0,Ar.Object)({type:(0,Wt.Literal)("insert"),path:(0,Er.String)(),value:(0,Ir.Unknown)()});q.Update=(0,Ar.Object)({type:(0,Wt.Literal)("update"),path:(0,Er.String)(),value:(0,Ir.Unknown)()});q.Delete=(0,Ar.Object)({type:(0,Wt.Literal)("delete"),path:(0,Er.String)()});q.Edit=(0,Br.Union)([q.Insert,q.Update,q.Delete]);class ValueDeltaError extends Pt.TypeBoxError{constructor(C,q){super(q);this.value=C}}q.ValueDeltaError=ValueDeltaError;class ValueDeltaSymbolError extends ValueDeltaError{constructor(C){super(C,"Cannot diff objects with symbol keys");this.value=C}}q.ValueDeltaSymbolError=ValueDeltaSymbolError;function CreateUpdate(C,q){return{type:"update",path:C,value:q}}function CreateInsert(C,q){return{type:"insert",path:C,value:q}}function CreateDelete(C){return{type:"delete",path:C}}function*ObjectType(C,q,re){if(!(0,ae.IsStandardObject)(re))return yield CreateUpdate(C,re);const Ue=[...globalThis.Object.keys(q),...globalThis.Object.getOwnPropertySymbols(q)];const lt=[...globalThis.Object.keys(re),...globalThis.Object.getOwnPropertySymbols(re)];for(const q of Ue){if((0,ae.IsSymbol)(q))throw new ValueDeltaSymbolError(q);if((0,ae.IsUndefined)(re[q])&<.includes(q))yield CreateUpdate(`${C}/${globalThis.String(q)}`,undefined)}for(const Ue of lt){if((0,ae.IsUndefined)(q[Ue])||(0,ae.IsUndefined)(re[Ue]))continue;if((0,ae.IsSymbol)(Ue))throw new ValueDeltaSymbolError(Ue);yield*Visit(`${C}/${globalThis.String(Ue)}`,q[Ue],re[Ue])}for(const Ue of lt){if((0,ae.IsSymbol)(Ue))throw new ValueDeltaSymbolError(Ue);if((0,ae.IsUndefined)(q[Ue]))yield CreateInsert(`${C}/${globalThis.String(Ue)}`,re[Ue])}for(const q of Ue.reverse()){if((0,ae.IsSymbol)(q))throw new ValueDeltaSymbolError(q);if((0,ae.IsUndefined)(re[q])&&!lt.includes(q))yield CreateDelete(`${C}/${globalThis.String(q)}`)}}function*ArrayType(C,q,re){if(!(0,ae.IsArray)(re))return yield CreateUpdate(C,re);for(let ae=0;ae=0;ae--){if(ae0&&C[0].path===""&&C[0].type==="update"}function IsIdentity(C){return C.length===0}function Patch(C,q){if(IsRootUpdate(q)){return(0,lt.Clone)(q[0].value)}if(IsIdentity(q)){return(0,lt.Clone)(C)}const re=(0,lt.Clone)(C);for(const C of q){switch(C.type){case"insert":{Ue.ValuePointer.Set(re,C.path,C.value);break}case"update":{Ue.ValuePointer.Set(re,C.path,C.value);break}case"delete":{Ue.ValuePointer.Delete(re,C.path);break}}}return re}q.Patch=Patch},8124:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(67126),q)},85298:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Deref=q.TypeDereferenceError=void 0;const ae=re(26113);const Ue=re(97034);class TypeDereferenceError extends ae.TypeBoxError{constructor(C){super(`Unable to dereference schema with $id '${C.$id}'`);this.schema=C}}q.TypeDereferenceError=TypeDereferenceError;function Resolve(C,q){const re=q.find((q=>q.$id===C.$ref));if(re===undefined)throw new TypeDereferenceError(C);return Deref(re,q)}function Deref(C,q){return C[Ue.Kind]==="This"||C[Ue.Kind]==="Ref"?Resolve(C,q):C}q.Deref=Deref},40886:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(85298),q)},60586:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Equal=void 0;const ae=re(17479);function ObjectType(C,q){if(!(0,ae.IsStandardObject)(q))return false;const re=[...Object.keys(C),...Object.getOwnPropertySymbols(C)];const Ue=[...Object.keys(q),...Object.getOwnPropertySymbols(q)];if(re.length!==Ue.length)return false;return re.every((re=>Equal(C[re],q[re])))}function DateType(C,q){return(0,ae.IsDate)(q)&&C.getTime()===q.getTime()}function ArrayType(C,q){if(!(0,ae.IsArray)(q)||C.length!==q.length)return false;return C.every(((C,re)=>Equal(C,q[re])))}function TypedArrayType(C,q){if(!(0,ae.IsTypedArray)(q)||C.length!==q.length||Object.getPrototypeOf(C).constructor.name!==Object.getPrototypeOf(q).constructor.name)return false;return C.every(((C,re)=>Equal(C,q[re])))}function ValueType(C,q){return C===q}function Equal(C,q){if((0,ae.IsStandardObject)(C))return ObjectType(C,q);if((0,ae.IsDate)(C))return DateType(C,q);if((0,ae.IsTypedArray)(C))return TypedArrayType(C,q);if((0,ae.IsArray)(C))return ArrayType(C,q);if((0,ae.IsValueType)(C))return ValueType(C,q);throw new Error("ValueEquals: Unable to compare value")}q.Equal=Equal},46186:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(60586),q)},1850:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.IsValueType=q.IsSymbol=q.IsFunction=q.IsString=q.IsBigInt=q.IsInteger=q.IsNumber=q.IsBoolean=q.IsNull=q.IsUndefined=q.IsArray=q.IsObject=q.HasPropertyKey=q.IsBigUint64Array=q.IsBigInt64Array=q.IsFloat64Array=q.IsFloat32Array=q.IsUint32Array=q.IsInt32Array=q.IsUint16Array=q.IsInt16Array=q.IsUint8ClampedArray=q.IsUint8Array=q.IsInt8Array=q.IsTypedArray=q.IsRegExp=q.IsSet=q.IsMap=q.IsDate=q.IsPromise=q.IsInstanceObject=q.IsStandardObject=q.IsIterator=q.IsAsyncIterator=void 0;function IsAsyncIterator(C){return IsObject(C)&&Symbol.asyncIterator in C}q.IsAsyncIterator=IsAsyncIterator;function IsIterator(C){return IsObject(C)&&Symbol.iterator in C}q.IsIterator=IsIterator;function IsStandardObject(C){return IsObject(C)&&(Object.getPrototypeOf(C)===Object.prototype||Object.getPrototypeOf(C)===null)}q.IsStandardObject=IsStandardObject;function IsInstanceObject(C){return IsObject(C)&&!IsArray(C)&&IsFunction(C.constructor)&&C.constructor.name!=="Object"}q.IsInstanceObject=IsInstanceObject;function IsPromise(C){return C instanceof Promise}q.IsPromise=IsPromise;function IsDate(C){return C instanceof Date&&Number.isFinite(C.getTime())}q.IsDate=IsDate;function IsMap(C){return C instanceof globalThis.Map}q.IsMap=IsMap;function IsSet(C){return C instanceof globalThis.Set}q.IsSet=IsSet;function IsRegExp(C){return C instanceof globalThis.RegExp}q.IsRegExp=IsRegExp;function IsTypedArray(C){return ArrayBuffer.isView(C)}q.IsTypedArray=IsTypedArray;function IsInt8Array(C){return C instanceof globalThis.Int8Array}q.IsInt8Array=IsInt8Array;function IsUint8Array(C){return C instanceof globalThis.Uint8Array}q.IsUint8Array=IsUint8Array;function IsUint8ClampedArray(C){return C instanceof globalThis.Uint8ClampedArray}q.IsUint8ClampedArray=IsUint8ClampedArray;function IsInt16Array(C){return C instanceof globalThis.Int16Array}q.IsInt16Array=IsInt16Array;function IsUint16Array(C){return C instanceof globalThis.Uint16Array}q.IsUint16Array=IsUint16Array;function IsInt32Array(C){return C instanceof globalThis.Int32Array}q.IsInt32Array=IsInt32Array;function IsUint32Array(C){return C instanceof globalThis.Uint32Array}q.IsUint32Array=IsUint32Array;function IsFloat32Array(C){return C instanceof globalThis.Float32Array}q.IsFloat32Array=IsFloat32Array;function IsFloat64Array(C){return C instanceof globalThis.Float64Array}q.IsFloat64Array=IsFloat64Array;function IsBigInt64Array(C){return C instanceof globalThis.BigInt64Array}q.IsBigInt64Array=IsBigInt64Array;function IsBigUint64Array(C){return C instanceof globalThis.BigUint64Array}q.IsBigUint64Array=IsBigUint64Array;function HasPropertyKey(C,q){return q in C}q.HasPropertyKey=HasPropertyKey;function IsObject(C){return C!==null&&typeof C==="object"}q.IsObject=IsObject;function IsArray(C){return Array.isArray(C)&&!ArrayBuffer.isView(C)}q.IsArray=IsArray;function IsUndefined(C){return C===undefined}q.IsUndefined=IsUndefined;function IsNull(C){return C===null}q.IsNull=IsNull;function IsBoolean(C){return typeof C==="boolean"}q.IsBoolean=IsBoolean;function IsNumber(C){return typeof C==="number"}q.IsNumber=IsNumber;function IsInteger(C){return Number.isInteger(C)}q.IsInteger=IsInteger;function IsBigInt(C){return typeof C==="bigint"}q.IsBigInt=IsBigInt;function IsString(C){return typeof C==="string"}q.IsString=IsString;function IsFunction(C){return typeof C==="function"}q.IsFunction=IsFunction;function IsSymbol(C){return typeof C==="symbol"}q.IsSymbol=IsSymbol;function IsValueType(C){return IsBigInt(C)||IsBoolean(C)||IsNull(C)||IsNumber(C)||IsString(C)||IsSymbol(C)||IsUndefined(C)}q.IsValueType=IsValueType},17479:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(1850),q)},83760:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Hash=q.ValueHashError=void 0;const ae=re(17479);const Ue=re(26113);class ValueHashError extends Ue.TypeBoxError{constructor(C){super(`Unable to hash value`);this.value=C}}q.ValueHashError=ValueHashError;var lt;(function(C){C[C["Undefined"]=0]="Undefined";C[C["Null"]=1]="Null";C[C["Boolean"]=2]="Boolean";C[C["Number"]=3]="Number";C[C["String"]=4]="String";C[C["Object"]=5]="Object";C[C["Array"]=6]="Array";C[C["Date"]=7]="Date";C[C["Uint8Array"]=8]="Uint8Array";C[C["Symbol"]=9]="Symbol";C[C["BigInt"]=10]="BigInt"})(lt||(lt={}));let Pt=BigInt("14695981039346656037");const[Wt,Ar]=[BigInt("1099511628211"),BigInt("2")**BigInt("64")];const Er=Array.from({length:256}).map(((C,q)=>BigInt(q)));const Ir=new Float64Array(1);const Br=new DataView(Ir.buffer);const kr=new Uint8Array(Ir.buffer);function*NumberToBytes(C){const q=C===0?1:Math.ceil(Math.floor(Math.log2(C)+1)/8);for(let re=0;re>8*(q-1-re)&255}}function ArrayType(C){FNV1A64(lt.Array);for(const q of C){Visit(q)}}function BooleanType(C){FNV1A64(lt.Boolean);FNV1A64(C?1:0)}function BigIntType(C){FNV1A64(lt.BigInt);Br.setBigInt64(0,C);for(const C of kr){FNV1A64(C)}}function DateType(C){FNV1A64(lt.Date);Visit(C.getTime())}function NullType(C){FNV1A64(lt.Null)}function NumberType(C){FNV1A64(lt.Number);Br.setFloat64(0,C);for(const C of kr){FNV1A64(C)}}function ObjectType(C){FNV1A64(lt.Object);for(const q of globalThis.Object.getOwnPropertyNames(C).sort()){Visit(q);Visit(C[q])}}function StringType(C){FNV1A64(lt.String);for(let q=0;q{Object.defineProperty(q,"__esModule",{value:true});q.Mutate=q.ValueMutateError=void 0;const ae=re(17479);const Ue=re(23079);const lt=re(21683);const Pt=re(26113);class ValueMutateError extends Pt.TypeBoxError{constructor(C){super(C)}}q.ValueMutateError=ValueMutateError;function ObjectType(C,q,re,Pt){if(!(0,ae.IsStandardObject)(re)){Ue.ValuePointer.Set(C,q,(0,lt.Clone)(Pt))}else{const ae=Object.getOwnPropertyNames(re);const Ue=Object.getOwnPropertyNames(Pt);for(const C of ae){if(!Ue.includes(C)){delete re[C]}}for(const C of Ue){if(!ae.includes(C)){re[C]=null}}for(const ae of Ue){Visit(C,`${q}/${ae}`,re[ae],Pt[ae])}}}function ArrayType(C,q,re,Pt){if(!(0,ae.IsArray)(re)){Ue.ValuePointer.Set(C,q,(0,lt.Clone)(Pt))}else{for(let ae=0;ae{Object.defineProperty(q,"__esModule",{value:true});q.ValuePointer=void 0;q.ValuePointer=re(65630)},65630:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Get=q.Has=q.Delete=q.Set=q.Format=q.ValuePointerRootDeleteError=q.ValuePointerRootSetError=void 0;const ae=re(26113);class ValuePointerRootSetError extends ae.TypeBoxError{constructor(C,q,re){super("Cannot set root value");this.value=C;this.path=q;this.update=re}}q.ValuePointerRootSetError=ValuePointerRootSetError;class ValuePointerRootDeleteError extends ae.TypeBoxError{constructor(C,q){super("Cannot delete root value");this.value=C;this.path=q}}q.ValuePointerRootDeleteError=ValuePointerRootDeleteError;function Escape(C){return C.indexOf("~")===-1?C:C.replace(/~1/g,"/").replace(/~0/g,"~")}function*Format(C){if(C==="")return;let[q,re]=[0,0];for(let ae=0;ae{Object.defineProperty(q,"__esModule",{value:true});q.TransformDecode=q.TransformDecodeError=q.TransformDecodeCheckError=void 0;const ae=re(97034);const Ue=re(26113);const lt=re(73373);const Pt=re(40886);const Wt=re(33742);const Ar=re(17479);const Er=re(70384);class TransformDecodeCheckError extends Ue.TypeBoxError{constructor(C,q,re){super(`Unable to decode value as it does not match the expected schema`);this.schema=C;this.value=q;this.error=re}}q.TransformDecodeCheckError=TransformDecodeCheckError;class TransformDecodeError extends Ue.TypeBoxError{constructor(C,q,re,ae){super(ae instanceof Error?ae.message:"Unknown error");this.schema=C;this.path=q;this.value=re;this.error=ae}}q.TransformDecodeError=TransformDecodeError;function Default(C,q,re){try{return(0,Er.IsTransform)(C)?C[ae.TransformKind].Decode(re):re}catch(ae){throw new TransformDecodeError(C,q,re,ae)}}function FromArray(C,q,re,ae){return(0,Ar.IsArray)(ae)?Default(C,re,ae.map(((ae,Ue)=>Visit(C.items,q,`${re}/${Ue}`,ae)))):Default(C,re,ae)}function FromIntersect(C,q,re,ae){if(!(0,Ar.IsStandardObject)(ae)||(0,Ar.IsValueType)(ae))return Default(C,re,ae);const Ue=(0,lt.KeyOfPropertyEntries)(C);const Pt=Ue.map((C=>C[0]));const Wt={...ae};for(const[C,ae]of Ue)if(C in Wt){Wt[C]=Visit(ae,q,`${re}/${C}`,Wt[C])}if(!(0,Er.IsTransform)(C.unevaluatedProperties)){return Default(C,re,Wt)}const Ir=Object.getOwnPropertyNames(Wt);const Br=C.unevaluatedProperties;const kr={...Wt};for(const C of Ir)if(!Pt.includes(C)){kr[C]=Default(Br,`${re}/${C}`,kr[C])}return Default(C,re,kr)}function FromNot(C,q,re,ae){return Default(C,re,Visit(C.not,q,re,ae))}function FromObject(C,q,re,ae){if(!(0,Ar.IsStandardObject)(ae))return Default(C,re,ae);const Ue=(0,lt.KeyOfPropertyKeys)(C);const Pt={...ae};for(const ae of Ue)if(ae in Pt){Pt[ae]=Visit(C.properties[ae],q,`${re}/${ae}`,Pt[ae])}if(!(0,Er.IsSchema)(C.additionalProperties)){return Default(C,re,Pt)}const Wt=Object.getOwnPropertyNames(Pt);const Ir=C.additionalProperties;const Br={...Pt};for(const C of Wt)if(!Ue.includes(C)){Br[C]=Default(Ir,`${re}/${C}`,Br[C])}return Default(C,re,Br)}function FromRecord(C,q,re,ae){if(!(0,Ar.IsStandardObject)(ae))return Default(C,re,ae);const Ue=Object.getOwnPropertyNames(C.patternProperties)[0];const lt=new RegExp(Ue);const Pt={...ae};for(const Wt of Object.getOwnPropertyNames(ae))if(lt.test(Wt)){Pt[Wt]=Visit(C.patternProperties[Ue],q,`${re}/${Wt}`,Pt[Wt])}if(!(0,Er.IsSchema)(C.additionalProperties)){return Default(C,re,Pt)}const Wt=Object.getOwnPropertyNames(Pt);const Ir=C.additionalProperties;const Br={...Pt};for(const C of Wt)if(!lt.test(C)){Br[C]=Default(Ir,`${re}/${C}`,Br[C])}return Default(C,re,Br)}function FromRef(C,q,re,ae){const Ue=(0,Pt.Deref)(C,q);return Default(C,re,Visit(Ue,q,re,ae))}function FromThis(C,q,re,ae){const Ue=(0,Pt.Deref)(C,q);return Default(C,re,Visit(Ue,q,re,ae))}function FromTuple(C,q,re,ae){return(0,Ar.IsArray)(ae)&&(0,Ar.IsArray)(C.items)?Default(C,re,C.items.map(((C,Ue)=>Visit(C,q,`${re}/${Ue}`,ae[Ue])))):Default(C,re,ae)}function FromUnion(C,q,re,ae){for(const Ue of C.anyOf){if(!(0,Wt.Check)(Ue,q,ae))continue;const lt=Visit(Ue,q,re,ae);return Default(C,re,lt)}return Default(C,re,ae)}function Visit(C,q,re,Ue){const lt=typeof C.$id==="string"?[...q,C]:q;const Pt=C;switch(C[ae.Kind]){case"Array":return FromArray(Pt,lt,re,Ue);case"Intersect":return FromIntersect(Pt,lt,re,Ue);case"Not":return FromNot(Pt,lt,re,Ue);case"Object":return FromObject(Pt,lt,re,Ue);case"Record":return FromRecord(Pt,lt,re,Ue);case"Ref":return FromRef(Pt,lt,re,Ue);case"Symbol":return Default(Pt,re,Ue);case"This":return FromThis(Pt,lt,re,Ue);case"Tuple":return FromTuple(Pt,lt,re,Ue);case"Union":return FromUnion(Pt,lt,re,Ue);default:return Default(Pt,re,Ue)}}function TransformDecode(C,q,re){return Visit(C,q,"",re)}q.TransformDecode=TransformDecode},33598:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TransformEncode=q.TransformEncodeError=q.TransformEncodeCheckError=void 0;const ae=re(97034);const Ue=re(26113);const lt=re(73373);const Pt=re(40886);const Wt=re(33742);const Ar=re(17479);const Er=re(70384);class TransformEncodeCheckError extends Ue.TypeBoxError{constructor(C,q,re){super(`The encoded value does not match the expected schema`);this.schema=C;this.value=q;this.error=re}}q.TransformEncodeCheckError=TransformEncodeCheckError;class TransformEncodeError extends Ue.TypeBoxError{constructor(C,q,re,ae){super(`${ae instanceof Error?ae.message:"Unknown error"}`);this.schema=C;this.path=q;this.value=re;this.error=ae}}q.TransformEncodeError=TransformEncodeError;function Default(C,q,re){try{return(0,Er.IsTransform)(C)?C[ae.TransformKind].Encode(re):re}catch(ae){throw new TransformEncodeError(C,q,re,ae)}}function FromArray(C,q,re,ae){const Ue=Default(C,re,ae);return(0,Ar.IsArray)(Ue)?Ue.map(((ae,Ue)=>Visit(C.items,q,`${re}/${Ue}`,ae))):Ue}function FromIntersect(C,q,re,ae){const Ue=Default(C,re,ae);if(!(0,Ar.IsStandardObject)(ae)||(0,Ar.IsValueType)(ae))return Ue;const Pt=(0,lt.KeyOfPropertyEntries)(C);const Wt=Pt.map((C=>C[0]));const Ir={...Ue};for(const[C,ae]of Pt)if(C in Ir){Ir[C]=Visit(ae,q,`${re}/${C}`,Ir[C])}if(!(0,Er.IsTransform)(C.unevaluatedProperties)){return Default(C,re,Ir)}const Br=Object.getOwnPropertyNames(Ir);const kr=C.unevaluatedProperties;const Pr={...Ir};for(const C of Br)if(!Wt.includes(C)){Pr[C]=Default(kr,`${re}/${C}`,Pr[C])}return Pr}function FromNot(C,q,re,ae){return Default(C.not,re,Default(C,re,ae))}function FromObject(C,q,re,ae){const Ue=Default(C,re,ae);if(!(0,Ar.IsStandardObject)(Ue))return Ue;const Pt=(0,lt.KeyOfPropertyKeys)(C);const Wt={...Ue};for(const ae of Pt)if(ae in Wt){Wt[ae]=Visit(C.properties[ae],q,`${re}/${ae}`,Wt[ae])}if(!(0,Er.IsSchema)(C.additionalProperties)){return Wt}const Ir=Object.getOwnPropertyNames(Wt);const Br=C.additionalProperties;const kr={...Wt};for(const C of Ir)if(!Pt.includes(C)){kr[C]=Default(Br,`${re}/${C}`,kr[C])}return kr}function FromRecord(C,q,re,ae){const Ue=Default(C,re,ae);if(!(0,Ar.IsStandardObject)(ae))return Ue;const lt=Object.getOwnPropertyNames(C.patternProperties)[0];const Pt=new RegExp(lt);const Wt={...Ue};for(const Ue of Object.getOwnPropertyNames(ae))if(Pt.test(Ue)){Wt[Ue]=Visit(C.patternProperties[lt],q,`${re}/${Ue}`,Wt[Ue])}if(!(0,Er.IsSchema)(C.additionalProperties)){return Default(C,re,Wt)}const Ir=Object.getOwnPropertyNames(Wt);const Br=C.additionalProperties;const kr={...Wt};for(const C of Ir)if(!Pt.test(C)){kr[C]=Default(Br,`${re}/${C}`,kr[C])}return kr}function FromRef(C,q,re,ae){const Ue=(0,Pt.Deref)(C,q);const lt=Visit(Ue,q,re,ae);return Default(C,re,lt)}function FromThis(C,q,re,ae){const Ue=(0,Pt.Deref)(C,q);const lt=Visit(Ue,q,re,ae);return Default(C,re,lt)}function FromTuple(C,q,re,ae){const Ue=Default(C,re,ae);return(0,Ar.IsArray)(C.items)?C.items.map(((C,ae)=>Visit(C,q,`${re}/${ae}`,Ue[ae]))):[]}function FromUnion(C,q,re,ae){for(const Ue of C.anyOf){if(!(0,Wt.Check)(Ue,q,ae))continue;const lt=Visit(Ue,q,re,ae);return Default(C,re,lt)}for(const Ue of C.anyOf){const lt=Visit(Ue,q,re,ae);if(!(0,Wt.Check)(C,q,lt))continue;return Default(C,re,lt)}return Default(C,re,ae)}function Visit(C,q,re,Ue){const lt=typeof C.$id==="string"?[...q,C]:q;const Pt=C;switch(C[ae.Kind]){case"Array":return FromArray(Pt,lt,re,Ue);case"Intersect":return FromIntersect(Pt,lt,re,Ue);case"Not":return FromNot(Pt,lt,re,Ue);case"Object":return FromObject(Pt,lt,re,Ue);case"Record":return FromRecord(Pt,lt,re,Ue);case"Ref":return FromRef(Pt,lt,re,Ue);case"This":return FromThis(Pt,lt,re,Ue);case"Tuple":return FromTuple(Pt,lt,re,Ue);case"Union":return FromUnion(Pt,lt,re,Ue);default:return Default(Pt,re,Ue)}}function TransformEncode(C,q,re){return Visit(C,q,"",re)}q.TransformEncode=TransformEncode},51542:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.HasTransform=void 0;const ae=re(40886);const Ue=re(97034);const lt=re(70384);const Pt=re(17479);function FromArray(C,q){return(0,lt.IsTransform)(C)||Visit(C.items,q)}function FromAsyncIterator(C,q){return(0,lt.IsTransform)(C)||Visit(C.items,q)}function FromConstructor(C,q){return(0,lt.IsTransform)(C)||Visit(C.returns,q)||C.parameters.some((C=>Visit(C,q)))}function FromFunction(C,q){return(0,lt.IsTransform)(C)||Visit(C.returns,q)||C.parameters.some((C=>Visit(C,q)))}function FromIntersect(C,q){return(0,lt.IsTransform)(C)||(0,lt.IsTransform)(C.unevaluatedProperties)||C.allOf.some((C=>Visit(C,q)))}function FromIterator(C,q){return(0,lt.IsTransform)(C)||Visit(C.items,q)}function FromNot(C,q){return(0,lt.IsTransform)(C)||Visit(C.not,q)}function FromObject(C,q){return(0,lt.IsTransform)(C)||Object.values(C.properties).some((C=>Visit(C,q)))||(0,lt.IsSchema)(C.additionalProperties)&&Visit(C.additionalProperties,q)}function FromPromise(C,q){return(0,lt.IsTransform)(C)||Visit(C.item,q)}function FromRecord(C,q){const re=Object.getOwnPropertyNames(C.patternProperties)[0];const ae=C.patternProperties[re];return(0,lt.IsTransform)(C)||Visit(ae,q)||(0,lt.IsSchema)(C.additionalProperties)&&(0,lt.IsTransform)(C.additionalProperties)}function FromRef(C,q){if((0,lt.IsTransform)(C))return true;return Visit((0,ae.Deref)(C,q),q)}function FromThis(C,q){if((0,lt.IsTransform)(C))return true;return Visit((0,ae.Deref)(C,q),q)}function FromTuple(C,q){return(0,lt.IsTransform)(C)||!(0,Pt.IsUndefined)(C.items)&&C.items.some((C=>Visit(C,q)))}function FromUnion(C,q){return(0,lt.IsTransform)(C)||C.anyOf.some((C=>Visit(C,q)))}function Visit(C,q){const re=(0,Pt.IsString)(C.$id)?[...q,C]:q;const ae=C;if(C.$id&&Wt.has(C.$id))return false;if(C.$id)Wt.add(C.$id);switch(C[Ue.Kind]){case"Array":return FromArray(ae,re);case"AsyncIterator":return FromAsyncIterator(ae,re);case"Constructor":return FromConstructor(ae,re);case"Function":return FromFunction(ae,re);case"Intersect":return FromIntersect(ae,re);case"Iterator":return FromIterator(ae,re);case"Not":return FromNot(ae,re);case"Object":return FromObject(ae,re);case"Promise":return FromPromise(ae,re);case"Record":return FromRecord(ae,re);case"Ref":return FromRef(ae,re);case"This":return FromThis(ae,re);case"Tuple":return FromTuple(ae,re);case"Union":return FromUnion(ae,re);default:return(0,lt.IsTransform)(C)}}const Wt=new Set;function HasTransform(C,q){Wt.clear();return Visit(C,q)}q.HasTransform=HasTransform},50038:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(37354),q);Ue(re(33598),q);Ue(re(51542),q)},22079:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Value=void 0;q.Value=re(50854)},50854:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Mutate=q.Patch=q.Hash=q.Diff=q.Equal=q.Errors=q.Encode=q.Default=q.Decode=q.Clone=q.Convert=q.Clean=q.Check=q.Create=q.Cast=void 0;const ae=re(50038);const Ue=re(36068);const lt=re(7210);const Pt=re(46186);const Wt=re(46097);const Ar=re(21683);const Er=re(41241);const Ir=re(18050);const Br=re(6115);const kr=re(33742);const Pr=re(97659);const Qr=re(8124);const Fr=re(65507);function Cast(...C){return Wt.Cast.apply(Wt.Cast,C)}q.Cast=Cast;function Create(...C){return Ir.Create.apply(Ir.Create,C)}q.Create=Create;function Check(...C){return kr.Check.apply(kr.Check,C)}q.Check=Check;function Clean(...C){return Br.Clean.apply(Br.Clean,C)}q.Clean=Clean;function Convert(...C){return Er.Convert.apply(Er.Convert,C)}q.Convert=Convert;function Clone(C){return(0,Ar.Clone)(C)}q.Clone=Clone;function Decode(...C){const[q,re,Ue]=C.length===3?[C[0],C[1],C[2]]:[C[0],[],C[1]];if(!Check(q,re,Ue))throw new ae.TransformDecodeCheckError(q,Ue,Errors(q,re,Ue).First());return(0,ae.HasTransform)(q,re)?(0,ae.TransformDecode)(q,re,Ue):Ue}q.Decode=Decode;function Default(...C){return Pr.Default.apply(Pr.Default,C)}q.Default=Default;function Encode(...C){const[q,re,Ue]=C.length===3?[C[0],C[1],C[2]]:[C[0],[],C[1]];const lt=(0,ae.HasTransform)(q,re)?(0,ae.TransformEncode)(q,re,Ue):Ue;if(!Check(q,re,lt))throw new ae.TransformEncodeCheckError(q,lt,Errors(q,re,lt).First());return lt}q.Encode=Encode;function Errors(...C){return Fr.Errors.apply(Fr.Errors,C)}q.Errors=Errors;function Equal(C,q){return(0,Pt.Equal)(C,q)}q.Equal=Equal;function Diff(C,q){return(0,Qr.Diff)(C,q)}q.Diff=Diff;function Hash(C){return(0,lt.Hash)(C)}q.Hash=Hash;function Patch(C,q){return(0,Qr.Patch)(C,q)}q.Patch=Patch;function Mutate(C,q){(0,Ue.Mutate)(C,q)}q.Mutate=Mutate},68789:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(52165));const lt=Ue.default;q["default"]=lt},62495:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(16623));const lt=Ue.default;q["default"]=lt},52165:function(C,q,re){var ae=this&&this.__rest||function(C,q){var re={};for(var ae in C)if(Object.prototype.hasOwnProperty.call(C,ae)&&q.indexOf(ae)<0)re[ae]=C[ae];if(C!=null&&typeof Object.getOwnPropertySymbols==="function")for(var Ue=0,ae=Object.getOwnPropertySymbols(C);Ue0){Pr.forEach((C=>{const q=parseInt(C.split(";")[0].split("=")[1].substring(0,1));const re=JSON.parse(C.split(";")[1].split("=")[1]);Pt[`${re}Page`]=q}));Pt.total=parseInt(kr)}return{data:Object.assign(Object.assign({},Br),Pt),error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{users:[]},error:C}}throw C}}async getUserById(C){try{return await(0,Ue._request)(this.fetch,"GET",`${this.url}/admin/users/${C}`,{headers:this.headers,xform:Ue._userResponse})}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null},error:C}}throw C}}async updateUserById(C,q){try{return await(0,Ue._request)(this.fetch,"PUT",`${this.url}/admin/users/${C}`,{body:q,headers:this.headers,xform:Ue._userResponse})}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null},error:C}}throw C}}async deleteUser(C,q=false){try{return await(0,Ue._request)(this.fetch,"DELETE",`${this.url}/admin/users/${C}`,{headers:this.headers,body:{should_soft_delete:q},xform:Ue._userResponse})}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null},error:C}}throw C}}async _listFactors(C){try{const{data:q,error:re}=await(0,Ue._request)(this.fetch,"GET",`${this.url}/admin/users/${C.userId}/factors`,{headers:this.headers,xform:C=>({data:{factors:C},error:null})});return{data:q,error:re}}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async _deleteFactor(C){try{const q=await(0,Ue._request)(this.fetch,"DELETE",`${this.url}/admin/users/${C.userId}/factors/${C.id}`,{headers:this.headers});return{data:q,error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}}q["default"]=GoTrueAdminApi},16623:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(52165));const lt=re(26705);const Pt=re(73981);const Wt=re(92356);const Ar=re(30601);const Er=re(21735);const Ir=re(80512);const Br=re(41920);const kr=re(28932);(0,Ir.polyfillGlobalThis)();const Pr={url:lt.GOTRUE_URL,storageKey:lt.STORAGE_KEY,autoRefreshToken:true,persistSession:true,detectSessionInUrl:true,headers:lt.DEFAULT_HEADERS,flowType:"implicit",debug:false,hasCustomAuthorizationHeader:false};const Qr=30*1e3;const Fr=3;async function lockNoOp(C,q,re){return await re()}class GoTrueClient{constructor(C){var q,re;this.memoryStorage=null;this.stateChangeEmitters=new Map;this.autoRefreshTicker=null;this.visibilityChangedCallback=null;this.refreshingDeferred=null;this.initializePromise=null;this.detectSessionInUrl=true;this.hasCustomAuthorizationHeader=false;this.suppressGetSessionWarning=false;this.lockAcquired=false;this.pendingInLock=[];this.broadcastChannel=null;this.logger=console.log;this.instanceID=GoTrueClient.nextInstanceID;GoTrueClient.nextInstanceID+=1;if(this.instanceID>0&&(0,Ar.isBrowser)()){console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.")}const ae=Object.assign(Object.assign({},Pr),C);this.logDebugMessages=!!ae.debug;if(typeof ae.debug==="function"){this.logger=ae.debug}this.persistSession=ae.persistSession;this.storageKey=ae.storageKey;this.autoRefreshToken=ae.autoRefreshToken;this.admin=new Ue.default({url:ae.url,headers:ae.headers,fetch:ae.fetch});this.url=ae.url;this.headers=ae.headers;this.fetch=(0,Ar.resolveFetch)(ae.fetch);this.lock=ae.lock||lockNoOp;this.detectSessionInUrl=ae.detectSessionInUrl;this.flowType=ae.flowType;this.hasCustomAuthorizationHeader=ae.hasCustomAuthorizationHeader;if(ae.lock){this.lock=ae.lock}else if((0,Ar.isBrowser)()&&((q=globalThis===null||globalThis===void 0?void 0:globalThis.navigator)===null||q===void 0?void 0:q.locks)){this.lock=kr.navigatorLock}else{this.lock=lockNoOp}this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)};if(this.persistSession){if(ae.storage){this.storage=ae.storage}else{if((0,Ar.supportsLocalStorage)()){this.storage=Er.localStorageAdapter}else{this.memoryStorage={};this.storage=(0,Er.memoryLocalStorageAdapter)(this.memoryStorage)}}}else{this.memoryStorage={};this.storage=(0,Er.memoryLocalStorageAdapter)(this.memoryStorage)}if((0,Ar.isBrowser)()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(C){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",C)}(re=this.broadcastChannel)===null||re===void 0?void 0:re.addEventListener("message",(async C=>{this._debug("received broadcast notification from other tab or client",C);await this._notifyAllSubscribers(C.data.event,C.data.session,false)}))}this.initialize()}_debug(...C){if(this.logDebugMessages){this.logger(`GoTrueClient@${this.instanceID} (${Br.version}) ${(new Date).toISOString()}`,...C)}return this}async initialize(){if(this.initializePromise){return await this.initializePromise}this.initializePromise=(async()=>await this._acquireLock(-1,(async()=>await this._initialize())))();return await this.initializePromise}async _initialize(){try{const C=(0,Ar.isBrowser)()?await this._isPKCEFlow():false;this._debug("#_initialize()","begin","is PKCE flow",C);if(C||this.detectSessionInUrl&&this._isImplicitGrantFlow()){const{data:q,error:re}=await this._getSessionFromURL(C);if(re){this._debug("#_initialize()","error detecting session from URL",re);if((re===null||re===void 0?void 0:re.code)==="identity_already_exists"){return{error:re}}await this._removeSession();return{error:re}}const{session:ae,redirectType:Ue}=q;this._debug("#_initialize()","detected session in URL",ae,"redirect type",Ue);await this._saveSession(ae);setTimeout((async()=>{if(Ue==="recovery"){await this._notifyAllSubscribers("PASSWORD_RECOVERY",ae)}else{await this._notifyAllSubscribers("SIGNED_IN",ae)}}),0);return{error:null}}await this._recoverAndRefresh();return{error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{error:C}}return{error:new Pt.AuthUnknownError("Unexpected error during initialization",C)}}finally{await this._handleVisibilityChange();this._debug("#_initialize()","end")}}async signInAnonymously(C){var q,re,ae;try{const Ue=await(0,Wt._request)(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(re=(q=C===null||C===void 0?void 0:C.options)===null||q===void 0?void 0:q.data)!==null&&re!==void 0?re:{},gotrue_meta_security:{captcha_token:(ae=C===null||C===void 0?void 0:C.options)===null||ae===void 0?void 0:ae.captchaToken}},xform:Wt._sessionResponse});const{data:lt,error:Pt}=Ue;if(Pt||!lt){return{data:{user:null,session:null},error:Pt}}const Ar=lt.session;const Er=lt.user;if(lt.session){await this._saveSession(lt.session);await this._notifyAllSubscribers("SIGNED_IN",Ar)}return{data:{user:Er,session:Ar},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signUp(C){var q,re,ae;try{let Ue;if("email"in C){const{email:re,password:ae,options:lt}=C;let Pt=null;let Er=null;if(this.flowType==="pkce"){[Pt,Er]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey)}Ue=await(0,Wt._request)(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:lt===null||lt===void 0?void 0:lt.emailRedirectTo,body:{email:re,password:ae,data:(q=lt===null||lt===void 0?void 0:lt.data)!==null&&q!==void 0?q:{},gotrue_meta_security:{captcha_token:lt===null||lt===void 0?void 0:lt.captchaToken},code_challenge:Pt,code_challenge_method:Er},xform:Wt._sessionResponse})}else if("phone"in C){const{phone:q,password:lt,options:Pt}=C;Ue=await(0,Wt._request)(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:q,password:lt,data:(re=Pt===null||Pt===void 0?void 0:Pt.data)!==null&&re!==void 0?re:{},channel:(ae=Pt===null||Pt===void 0?void 0:Pt.channel)!==null&&ae!==void 0?ae:"sms",gotrue_meta_security:{captcha_token:Pt===null||Pt===void 0?void 0:Pt.captchaToken}},xform:Wt._sessionResponse})}else{throw new Pt.AuthInvalidCredentialsError("You must provide either an email or phone number and a password")}const{data:lt,error:Er}=Ue;if(Er||!lt){return{data:{user:null,session:null},error:Er}}const Ir=lt.session;const Br=lt.user;if(lt.session){await this._saveSession(lt.session);await this._notifyAllSubscribers("SIGNED_IN",Ir)}return{data:{user:Br,session:Ir},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signInWithPassword(C){try{let q;if("email"in C){const{email:re,password:ae,options:Ue}=C;q=await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:re,password:ae,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken}},xform:Wt._sessionResponsePassword})}else if("phone"in C){const{phone:re,password:ae,options:Ue}=C;q=await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:re,password:ae,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken}},xform:Wt._sessionResponsePassword})}else{throw new Pt.AuthInvalidCredentialsError("You must provide either an email or phone number and a password")}const{data:re,error:ae}=q;if(ae){return{data:{user:null,session:null},error:ae}}else if(!re||!re.session||!re.user){return{data:{user:null,session:null},error:new Pt.AuthInvalidTokenResponseError}}if(re.session){await this._saveSession(re.session);await this._notifyAllSubscribers("SIGNED_IN",re.session)}return{data:Object.assign({user:re.user,session:re.session},re.weak_password?{weakPassword:re.weak_password}:null),error:ae}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signInWithOAuth(C){var q,re,ae,Ue;return await this._handleProviderSignIn(C.provider,{redirectTo:(q=C.options)===null||q===void 0?void 0:q.redirectTo,scopes:(re=C.options)===null||re===void 0?void 0:re.scopes,queryParams:(ae=C.options)===null||ae===void 0?void 0:ae.queryParams,skipBrowserRedirect:(Ue=C.options)===null||Ue===void 0?void 0:Ue.skipBrowserRedirect})}async exchangeCodeForSession(C){await this.initializePromise;return this._acquireLock(-1,(async()=>this._exchangeCodeForSession(C)))}async _exchangeCodeForSession(C){const q=await(0,Ar.getItemAsync)(this.storage,`${this.storageKey}-code-verifier`);const[re,ae]=(q!==null&&q!==void 0?q:"").split("/");try{const{data:q,error:Ue}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:C,code_verifier:re},xform:Wt._sessionResponse});await(0,Ar.removeItemAsync)(this.storage,`${this.storageKey}-code-verifier`);if(Ue){throw Ue}if(!q||!q.session||!q.user){return{data:{user:null,session:null,redirectType:null},error:new Pt.AuthInvalidTokenResponseError}}if(q.session){await this._saveSession(q.session);await this._notifyAllSubscribers("SIGNED_IN",q.session)}return{data:Object.assign(Object.assign({},q),{redirectType:ae!==null&&ae!==void 0?ae:null}),error:Ue}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null,redirectType:null},error:C}}throw C}}async signInWithIdToken(C){try{const{options:q,provider:re,token:ae,access_token:Ue,nonce:lt}=C;const Ar=await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:re,id_token:ae,access_token:Ue,nonce:lt,gotrue_meta_security:{captcha_token:q===null||q===void 0?void 0:q.captchaToken}},xform:Wt._sessionResponse});const{data:Er,error:Ir}=Ar;if(Ir){return{data:{user:null,session:null},error:Ir}}else if(!Er||!Er.session||!Er.user){return{data:{user:null,session:null},error:new Pt.AuthInvalidTokenResponseError}}if(Er.session){await this._saveSession(Er.session);await this._notifyAllSubscribers("SIGNED_IN",Er.session)}return{data:Er,error:Ir}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signInWithOtp(C){var q,re,ae,Ue,lt;try{if("email"in C){const{email:ae,options:Ue}=C;let lt=null;let Pt=null;if(this.flowType==="pkce"){[lt,Pt]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey)}const{error:Er}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:ae,data:(q=Ue===null||Ue===void 0?void 0:Ue.data)!==null&&q!==void 0?q:{},create_user:(re=Ue===null||Ue===void 0?void 0:Ue.shouldCreateUser)!==null&&re!==void 0?re:true,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken},code_challenge:lt,code_challenge_method:Pt},redirectTo:Ue===null||Ue===void 0?void 0:Ue.emailRedirectTo});return{data:{user:null,session:null},error:Er}}if("phone"in C){const{phone:q,options:re}=C;const{data:Pt,error:Ar}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:q,data:(ae=re===null||re===void 0?void 0:re.data)!==null&&ae!==void 0?ae:{},create_user:(Ue=re===null||re===void 0?void 0:re.shouldCreateUser)!==null&&Ue!==void 0?Ue:true,gotrue_meta_security:{captcha_token:re===null||re===void 0?void 0:re.captchaToken},channel:(lt=re===null||re===void 0?void 0:re.channel)!==null&<!==void 0?lt:"sms"}});return{data:{user:null,session:null,messageId:Pt===null||Pt===void 0?void 0:Pt.message_id},error:Ar}}throw new Pt.AuthInvalidCredentialsError("You must provide either an email or phone number.")}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async verifyOtp(C){var q,re;try{let ae=undefined;let Ue=undefined;if("options"in C){ae=(q=C.options)===null||q===void 0?void 0:q.redirectTo;Ue=(re=C.options)===null||re===void 0?void 0:re.captchaToken}const{data:lt,error:Pt}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},C),{gotrue_meta_security:{captcha_token:Ue}}),redirectTo:ae,xform:Wt._sessionResponse});if(Pt){throw Pt}if(!lt){throw new Error("An error occurred on token verification.")}const Ar=lt.session;const Er=lt.user;if(Ar===null||Ar===void 0?void 0:Ar.access_token){await this._saveSession(Ar);await this._notifyAllSubscribers(C.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",Ar)}return{data:{user:Er,session:Ar},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async signInWithSSO(C){var q,re,ae;try{let Ue=null;let lt=null;if(this.flowType==="pkce"){[Ue,lt]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey)}return await(0,Wt._request)(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in C?{provider_id:C.providerId}:null),"domain"in C?{domain:C.domain}:null),{redirect_to:(re=(q=C.options)===null||q===void 0?void 0:q.redirectTo)!==null&&re!==void 0?re:undefined}),((ae=C===null||C===void 0?void 0:C.options)===null||ae===void 0?void 0:ae.captchaToken)?{gotrue_meta_security:{captcha_token:C.options.captchaToken}}:null),{skip_http_redirect:true,code_challenge:Ue,code_challenge_method:lt}),headers:this.headers,xform:Wt._ssoResponse})}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async reauthenticate(){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._reauthenticate()))}async _reauthenticate(){try{return await this._useSession((async C=>{const{data:{session:q},error:re}=C;if(re)throw re;if(!q)throw new Pt.AuthSessionMissingError;const{error:ae}=await(0,Wt._request)(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:q.access_token});return{data:{user:null,session:null},error:ae}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async resend(C){try{const q=`${this.url}/resend`;if("email"in C){const{email:re,type:ae,options:Ue}=C;const{error:lt}=await(0,Wt._request)(this.fetch,"POST",q,{headers:this.headers,body:{email:re,type:ae,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken}},redirectTo:Ue===null||Ue===void 0?void 0:Ue.emailRedirectTo});return{data:{user:null,session:null},error:lt}}else if("phone"in C){const{phone:re,type:ae,options:Ue}=C;const{data:lt,error:Pt}=await(0,Wt._request)(this.fetch,"POST",q,{headers:this.headers,body:{phone:re,type:ae,gotrue_meta_security:{captcha_token:Ue===null||Ue===void 0?void 0:Ue.captchaToken}}});return{data:{user:null,session:null,messageId:lt===null||lt===void 0?void 0:lt.message_id},error:Pt}}throw new Pt.AuthInvalidCredentialsError("You must provide either an email or phone number and a type")}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async getSession(){await this.initializePromise;const C=await this._acquireLock(-1,(async()=>this._useSession((async C=>C))));return C}async _acquireLock(C,q){this._debug("#_acquireLock","begin",C);try{if(this.lockAcquired){const C=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve();const re=(async()=>{await C;return await q()})();this.pendingInLock.push((async()=>{try{await re}catch(C){}})());return re}return await this.lock(`lock:${this.storageKey}`,C,(async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=true;const C=q();this.pendingInLock.push((async()=>{try{await C}catch(C){}})());await C;while(this.pendingInLock.length){const C=[...this.pendingInLock];await Promise.all(C);this.pendingInLock.splice(0,C.length)}return await C}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey);this.lockAcquired=false}}))}finally{this._debug("#_acquireLock","end")}}async _useSession(C){this._debug("#_useSession","begin");try{const q=await this.__loadSession();return await C(q)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin");if(!this.lockAcquired){this._debug("#__loadSession()","used outside of an acquired lock!",(new Error).stack)}try{let C=null;const q=await(0,Ar.getItemAsync)(this.storage,this.storageKey);this._debug("#getSession()","session from storage",q);if(q!==null){if(this._isValidSession(q)){C=q}else{this._debug("#getSession()","session from storage is not valid");await this._removeSession()}}if(!C){return{data:{session:null},error:null}}const re=C.expires_at?C.expires_at<=Date.now()/1e3:false;this._debug("#__loadSession()",`session has${re?"":" not"} expired`,"expires_at",C.expires_at);if(!re){if(this.storage.isServer){let q=this.suppressGetSessionWarning;const re=new Proxy(C,{get:(C,re,ae)=>{if(!q&&re==="user"){console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and many not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server.");q=true;this.suppressGetSessionWarning=true}return Reflect.get(C,re,ae)}});C=re}return{data:{session:C},error:null}}const{session:ae,error:Ue}=await this._callRefreshToken(C.refresh_token);if(Ue){return{data:{session:null},error:Ue}}return{data:{session:ae},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(C){if(C){return await this._getUser(C)}await this.initializePromise;const q=await this._acquireLock(-1,(async()=>await this._getUser()));return q}async _getUser(C){try{if(C){return await(0,Wt._request)(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:C,xform:Wt._userResponse})}return await this._useSession((async C=>{var q,re,ae;const{data:Ue,error:lt}=C;if(lt){throw lt}if(!((q=Ue.session)===null||q===void 0?void 0:q.access_token)&&!this.hasCustomAuthorizationHeader){return{data:{user:null},error:new Pt.AuthSessionMissingError}}return await(0,Wt._request)(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(ae=(re=Ue.session)===null||re===void 0?void 0:re.access_token)!==null&&ae!==void 0?ae:undefined,xform:Wt._userResponse})}))}catch(C){if((0,Pt.isAuthError)(C)){if((0,Pt.isAuthSessionMissingError)(C)){await this._removeSession();await(0,Ar.removeItemAsync)(this.storage,`${this.storageKey}-code-verifier`)}return{data:{user:null},error:C}}throw C}}async updateUser(C,q={}){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._updateUser(C,q)))}async _updateUser(C,q={}){try{return await this._useSession((async re=>{const{data:ae,error:Ue}=re;if(Ue){throw Ue}if(!ae.session){throw new Pt.AuthSessionMissingError}const lt=ae.session;let Er=null;let Ir=null;if(this.flowType==="pkce"&&C.email!=null){[Er,Ir]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey)}const{data:Br,error:kr}=await(0,Wt._request)(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:q===null||q===void 0?void 0:q.emailRedirectTo,body:Object.assign(Object.assign({},C),{code_challenge:Er,code_challenge_method:Ir}),jwt:lt.access_token,xform:Wt._userResponse});if(kr)throw kr;lt.user=Br.user;await this._saveSession(lt);await this._notifyAllSubscribers("USER_UPDATED",lt);return{data:{user:lt.user},error:null}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null},error:C}}throw C}}_decodeJWT(C){return(0,Ar.decodeJWTPayload)(C)}async setSession(C){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._setSession(C)))}async _setSession(C){try{if(!C.access_token||!C.refresh_token){throw new Pt.AuthSessionMissingError}const q=Date.now()/1e3;let re=q;let ae=true;let Ue=null;const lt=(0,Ar.decodeJWTPayload)(C.access_token);if(lt.exp){re=lt.exp;ae=re<=q}if(ae){const{session:q,error:re}=await this._callRefreshToken(C.refresh_token);if(re){return{data:{user:null,session:null},error:re}}if(!q){return{data:{user:null,session:null},error:null}}Ue=q}else{const{data:ae,error:lt}=await this._getUser(C.access_token);if(lt){throw lt}Ue={access_token:C.access_token,refresh_token:C.refresh_token,user:ae.user,token_type:"bearer",expires_in:re-q,expires_at:re};await this._saveSession(Ue);await this._notifyAllSubscribers("SIGNED_IN",Ue)}return{data:{user:Ue.user,session:Ue},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{session:null,user:null},error:C}}throw C}}async refreshSession(C){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._refreshSession(C)))}async _refreshSession(C){try{return await this._useSession((async q=>{var re;if(!C){const{data:ae,error:Ue}=q;if(Ue){throw Ue}C=(re=ae.session)!==null&&re!==void 0?re:undefined}if(!(C===null||C===void 0?void 0:C.refresh_token)){throw new Pt.AuthSessionMissingError}const{session:ae,error:Ue}=await this._callRefreshToken(C.refresh_token);if(Ue){return{data:{user:null,session:null},error:Ue}}if(!ae){return{data:{user:null,session:null},error:null}}return{data:{user:ae.user,session:ae},error:null}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:{user:null,session:null},error:C}}throw C}}async _getSessionFromURL(C){try{if(!(0,Ar.isBrowser)())throw new Pt.AuthImplicitGrantRedirectError("No browser detected.");if(this.flowType==="implicit"&&!this._isImplicitGrantFlow()){throw new Pt.AuthImplicitGrantRedirectError("Not a valid implicit grant flow url.")}else if(this.flowType=="pkce"&&!C){throw new Pt.AuthPKCEGrantCodeExchangeError("Not a valid PKCE flow url.")}const q=(0,Ar.parseParametersFromURL)(window.location.href);if(C){if(!q.code)throw new Pt.AuthPKCEGrantCodeExchangeError("No code detected.");const{data:C,error:re}=await this._exchangeCodeForSession(q.code);if(re)throw re;const ae=new URL(window.location.href);ae.searchParams.delete("code");window.history.replaceState(window.history.state,"",ae.toString());return{data:{session:C.session,redirectType:null},error:null}}if(q.error||q.error_description||q.error_code){throw new Pt.AuthImplicitGrantRedirectError(q.error_description||"Error in URL with unspecified error_description",{error:q.error||"unspecified_error",code:q.error_code||"unspecified_code"})}const{provider_token:re,provider_refresh_token:ae,access_token:Ue,refresh_token:lt,expires_in:Wt,expires_at:Er,token_type:Ir}=q;if(!Ue||!Wt||!lt||!Ir){throw new Pt.AuthImplicitGrantRedirectError("No session defined in URL")}const Br=Math.round(Date.now()/1e3);const kr=parseInt(Wt);let Pr=Br+kr;if(Er){Pr=parseInt(Er)}const Fr=Pr-Br;if(Fr*1e3<=Qr){console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${Fr}s, should have been closer to ${kr}s`)}const Dr=Pr-kr;if(Br-Dr>=120){console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",Dr,Pr,Br)}else if(Br-Dr<0){console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",Dr,Pr,Br)}const{data:xr,error:Mr}=await this._getUser(Ue);if(Mr)throw Mr;const Ur={provider_token:re,provider_refresh_token:ae,access_token:Ue,expires_in:kr,expires_at:Pr,refresh_token:lt,token_type:Ir,user:xr.user};window.location.hash="";this._debug("#_getSessionFromURL()","clearing window.location.hash");return{data:{session:Ur,redirectType:q.type},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:{session:null,redirectType:null},error:C}}throw C}}_isImplicitGrantFlow(){const C=(0,Ar.parseParametersFromURL)(window.location.href);return!!((0,Ar.isBrowser)()&&(C.access_token||C.error_description))}async _isPKCEFlow(){const C=(0,Ar.parseParametersFromURL)(window.location.href);const q=await(0,Ar.getItemAsync)(this.storage,`${this.storageKey}-code-verifier`);return!!(C.code&&q)}async signOut(C={scope:"global"}){await this.initializePromise;return await this._acquireLock(-1,(async()=>await this._signOut(C)))}async _signOut({scope:C}={scope:"global"}){return await this._useSession((async q=>{var re;const{data:ae,error:Ue}=q;if(Ue){return{error:Ue}}const lt=(re=ae.session)===null||re===void 0?void 0:re.access_token;if(lt){const{error:q}=await this.admin.signOut(lt,C);if(q){if(!((0,Pt.isAuthApiError)(q)&&(q.status===404||q.status===401||q.status===403))){return{error:q}}}}if(C!=="others"){await this._removeSession();await(0,Ar.removeItemAsync)(this.storage,`${this.storageKey}-code-verifier`)}return{error:null}}))}onAuthStateChange(C){const q=(0,Ar.uuid)();const re={id:q,callback:C,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",q);this.stateChangeEmitters.delete(q)}};this._debug("#onAuthStateChange()","registered callback with id",q);this.stateChangeEmitters.set(q,re);(async()=>{await this.initializePromise;await this._acquireLock(-1,(async()=>{this._emitInitialSession(q)}))})();return{data:{subscription:re}}}async _emitInitialSession(C){return await this._useSession((async q=>{var re,ae;try{const{data:{session:ae},error:Ue}=q;if(Ue)throw Ue;await((re=this.stateChangeEmitters.get(C))===null||re===void 0?void 0:re.callback("INITIAL_SESSION",ae));this._debug("INITIAL_SESSION","callback id",C,"session",ae)}catch(q){await((ae=this.stateChangeEmitters.get(C))===null||ae===void 0?void 0:ae.callback("INITIAL_SESSION",null));this._debug("INITIAL_SESSION","callback id",C,"error",q);console.error(q)}}))}async resetPasswordForEmail(C,q={}){let re=null;let ae=null;if(this.flowType==="pkce"){[re,ae]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey,true)}try{return await(0,Wt._request)(this.fetch,"POST",`${this.url}/recover`,{body:{email:C,code_challenge:re,code_challenge_method:ae,gotrue_meta_security:{captcha_token:q.captchaToken}},headers:this.headers,redirectTo:q.redirectTo})}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async getUserIdentities(){var C;try{const{data:q,error:re}=await this.getUser();if(re)throw re;return{data:{identities:(C=q.user.identities)!==null&&C!==void 0?C:[]},error:null}}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async linkIdentity(C){var q;try{const{data:re,error:ae}=await this._useSession((async q=>{var re,ae,Ue,lt,Pt;const{data:Ar,error:Er}=q;if(Er)throw Er;const Ir=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,C.provider,{redirectTo:(re=C.options)===null||re===void 0?void 0:re.redirectTo,scopes:(ae=C.options)===null||ae===void 0?void 0:ae.scopes,queryParams:(Ue=C.options)===null||Ue===void 0?void 0:Ue.queryParams,skipBrowserRedirect:true});return await(0,Wt._request)(this.fetch,"GET",Ir,{headers:this.headers,jwt:(Pt=(lt=Ar.session)===null||lt===void 0?void 0:lt.access_token)!==null&&Pt!==void 0?Pt:undefined})}));if(ae)throw ae;if((0,Ar.isBrowser)()&&!((q=C.options)===null||q===void 0?void 0:q.skipBrowserRedirect)){window.location.assign(re===null||re===void 0?void 0:re.url)}return{data:{provider:C.provider,url:re===null||re===void 0?void 0:re.url},error:null}}catch(q){if((0,Pt.isAuthError)(q)){return{data:{provider:C.provider,url:null},error:q}}throw q}}async unlinkIdentity(C){try{return await this._useSession((async q=>{var re,ae;const{data:Ue,error:lt}=q;if(lt){throw lt}return await(0,Wt._request)(this.fetch,"DELETE",`${this.url}/user/identities/${C.identity_id}`,{headers:this.headers,jwt:(ae=(re=Ue.session)===null||re===void 0?void 0:re.access_token)!==null&&ae!==void 0?ae:undefined})}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async _refreshAccessToken(C){const q=`#_refreshAccessToken(${C.substring(0,5)}...)`;this._debug(q,"begin");try{const re=Date.now();return await(0,Ar.retryable)((async re=>{if(re>0){await(0,Ar.sleep)(200*Math.pow(2,re-1))}this._debug(q,"refreshing attempt",re);return await(0,Wt._request)(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:C},headers:this.headers,xform:Wt._sessionResponse})}),((C,q)=>{const ae=200*Math.pow(2,C);return q&&(0,Pt.isAuthRetryableFetchError)(q)&&Date.now()+ae-re{try{await re.callback(C,q)}catch(C){ae.push(C)}}));await Promise.all(Ue);if(ae.length>0){for(let C=0;Cthis._autoRefreshTokenTick()),Qr);this.autoRefreshTicker=C;if(C&&typeof C==="object"&&typeof C.unref==="function"){C.unref()}else if(typeof Deno!=="undefined"&&typeof Deno.unrefTimer==="function"){Deno.unrefTimer(C)}setTimeout((async()=>{await this.initializePromise;await this._autoRefreshTokenTick()}),0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const C=this.autoRefreshTicker;this.autoRefreshTicker=null;if(C){clearInterval(C)}}async startAutoRefresh(){this._removeVisibilityChangedCallback();await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback();await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,(async()=>{try{const C=Date.now();try{return await this._useSession((async q=>{const{data:{session:re}}=q;if(!re||!re.refresh_token||!re.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const ae=Math.floor((re.expires_at*1e3-C)/Qr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${ae} ticks, a tick lasts ${Qr}ms, refresh threshold is ${Fr} ticks`);if(ae<=Fr){await this._callRefreshToken(re.refresh_token)}}))}catch(C){console.error("Auto refresh tick failed with error. This is likely a transient error.",C)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}))}catch(C){if(C.isAcquireTimeout||C instanceof kr.LockAcquireTimeoutError){this._debug("auto refresh token tick lock not available")}else{throw C}}}async _handleVisibilityChange(){this._debug("#_handleVisibilityChange()");if(!(0,Ar.isBrowser)()||!(window===null||window===void 0?void 0:window.addEventListener)){if(this.autoRefreshToken){this.startAutoRefresh()}return false}try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(false);window===null||window===void 0?void 0:window.addEventListener("visibilitychange",this.visibilityChangedCallback);await this._onVisibilityChanged(true)}catch(C){console.error("_handleVisibilityChange",C)}}async _onVisibilityChanged(C){const q=`#_onVisibilityChanged(${C})`;this._debug(q,"visibilityState",document.visibilityState);if(document.visibilityState==="visible"){if(this.autoRefreshToken){this._startAutoRefresh()}if(!C){await this.initializePromise;await this._acquireLock(-1,(async()=>{if(document.visibilityState!=="visible"){this._debug(q,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))}}else if(document.visibilityState==="hidden"){if(this.autoRefreshToken){this._stopAutoRefresh()}}}async _getUrlForProvider(C,q,re){const ae=[`provider=${encodeURIComponent(q)}`];if(re===null||re===void 0?void 0:re.redirectTo){ae.push(`redirect_to=${encodeURIComponent(re.redirectTo)}`)}if(re===null||re===void 0?void 0:re.scopes){ae.push(`scopes=${encodeURIComponent(re.scopes)}`)}if(this.flowType==="pkce"){const[C,q]=await(0,Ar.getCodeChallengeAndMethod)(this.storage,this.storageKey);const re=new URLSearchParams({code_challenge:`${encodeURIComponent(C)}`,code_challenge_method:`${encodeURIComponent(q)}`});ae.push(re.toString())}if(re===null||re===void 0?void 0:re.queryParams){const C=new URLSearchParams(re.queryParams);ae.push(C.toString())}if(re===null||re===void 0?void 0:re.skipBrowserRedirect){ae.push(`skip_http_redirect=${re.skipBrowserRedirect}`)}return`${C}?${ae.join("&")}`}async _unenroll(C){try{return await this._useSession((async q=>{var re;const{data:ae,error:Ue}=q;if(Ue){return{data:null,error:Ue}}return await(0,Wt._request)(this.fetch,"DELETE",`${this.url}/factors/${C.factorId}`,{headers:this.headers,jwt:(re=ae===null||ae===void 0?void 0:ae.session)===null||re===void 0?void 0:re.access_token})}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async _enroll(C){try{return await this._useSession((async q=>{var re,ae;const{data:Ue,error:lt}=q;if(lt){return{data:null,error:lt}}const Pt=Object.assign({friendly_name:C.friendlyName,factor_type:C.factorType},C.factorType==="phone"?{phone:C.phone}:{issuer:C.issuer});const{data:Ar,error:Er}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/factors`,{body:Pt,headers:this.headers,jwt:(re=Ue===null||Ue===void 0?void 0:Ue.session)===null||re===void 0?void 0:re.access_token});if(Er){return{data:null,error:Er}}if(C.factorType==="totp"&&((ae=Ar===null||Ar===void 0?void 0:Ar.totp)===null||ae===void 0?void 0:ae.qr_code)){Ar.totp.qr_code=`data:image/svg+xml;utf-8,${Ar.totp.qr_code}`}return{data:Ar,error:null}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}async _verify(C){return this._acquireLock(-1,(async()=>{try{return await this._useSession((async q=>{var re;const{data:ae,error:Ue}=q;if(Ue){return{data:null,error:Ue}}const{data:lt,error:Pt}=await(0,Wt._request)(this.fetch,"POST",`${this.url}/factors/${C.factorId}/verify`,{body:{code:C.code,challenge_id:C.challengeId},headers:this.headers,jwt:(re=ae===null||ae===void 0?void 0:ae.session)===null||re===void 0?void 0:re.access_token});if(Pt){return{data:null,error:Pt}}await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+lt.expires_in},lt));await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",lt);return{data:lt,error:Pt}}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}))}async _challenge(C){return this._acquireLock(-1,(async()=>{try{return await this._useSession((async q=>{var re;const{data:ae,error:Ue}=q;if(Ue){return{data:null,error:Ue}}return await(0,Wt._request)(this.fetch,"POST",`${this.url}/factors/${C.factorId}/challenge`,{body:{channel:C.channel},headers:this.headers,jwt:(re=ae===null||ae===void 0?void 0:ae.session)===null||re===void 0?void 0:re.access_token})}))}catch(C){if((0,Pt.isAuthError)(C)){return{data:null,error:C}}throw C}}))}async _challengeAndVerify(C){const{data:q,error:re}=await this._challenge({factorId:C.factorId});if(re){return{data:null,error:re}}return await this._verify({factorId:C.factorId,challengeId:q.id,code:C.code})}async _listFactors(){const{data:{user:C},error:q}=await this.getUser();if(q){return{data:null,error:q}}const re=(C===null||C===void 0?void 0:C.factors)||[];const ae=re.filter((C=>C.factor_type==="totp"&&C.status==="verified"));const Ue=re.filter((C=>C.factor_type==="phone"&&C.status==="verified"));return{data:{all:re,totp:ae,phone:Ue},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,(async()=>await this._useSession((async C=>{var q,re;const{data:{session:ae},error:Ue}=C;if(Ue){return{data:null,error:Ue}}if(!ae){return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null}}const lt=this._decodeJWT(ae.access_token);let Pt=null;if(lt.aal){Pt=lt.aal}let Wt=Pt;const Ar=(re=(q=ae.user.factors)===null||q===void 0?void 0:q.filter((C=>C.status==="verified")))!==null&&re!==void 0?re:[];if(Ar.length>0){Wt="aal2"}const Er=lt.amr||[];return{data:{currentLevel:Pt,nextLevel:Wt,currentAuthenticationMethods:Er},error:null}}))))}}q["default"]=GoTrueClient;GoTrueClient.nextInstanceID=0},31904:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};var lt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.lockInternals=q.NavigatorLockAcquireTimeoutError=q.navigatorLock=q.AuthClient=q.AuthAdminApi=q.GoTrueClient=q.GoTrueAdminApi=void 0;const Pt=lt(re(52165));q.GoTrueAdminApi=Pt.default;const Wt=lt(re(16623));q.GoTrueClient=Wt.default;const Ar=lt(re(68789));q.AuthAdminApi=Ar.default;const Er=lt(re(62495));q.AuthClient=Er.default;Ue(re(53737),q);Ue(re(73981),q);var Ir=re(28932);Object.defineProperty(q,"navigatorLock",{enumerable:true,get:function(){return Ir.navigatorLock}});Object.defineProperty(q,"NavigatorLockAcquireTimeoutError",{enumerable:true,get:function(){return Ir.NavigatorLockAcquireTimeoutError}});Object.defineProperty(q,"lockInternals",{enumerable:true,get:function(){return Ir.internals}})},26705:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.API_VERSIONS=q.API_VERSION_HEADER_NAME=q.NETWORK_FAILURE=q.EXPIRY_MARGIN=q.DEFAULT_HEADERS=q.AUDIENCE=q.STORAGE_KEY=q.GOTRUE_URL=void 0;const ae=re(41920);q.GOTRUE_URL="http://localhost:9999";q.STORAGE_KEY="supabase.auth.token";q.AUDIENCE="";q.DEFAULT_HEADERS={"X-Client-Info":`gotrue-js/${ae.version}`};q.EXPIRY_MARGIN=10;q.NETWORK_FAILURE={MAX_RETRIES:10,RETRY_INTERVAL:2};q.API_VERSION_HEADER_NAME="X-Supabase-Api-Version";q.API_VERSIONS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}}},73981:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.isAuthWeakPasswordError=q.AuthWeakPasswordError=q.isAuthRetryableFetchError=q.AuthRetryableFetchError=q.AuthPKCEGrantCodeExchangeError=q.AuthImplicitGrantRedirectError=q.AuthInvalidCredentialsError=q.AuthInvalidTokenResponseError=q.isAuthSessionMissingError=q.AuthSessionMissingError=q.CustomAuthError=q.AuthUnknownError=q.isAuthApiError=q.AuthApiError=q.isAuthError=q.AuthError=void 0;class AuthError extends Error{constructor(C,q,re){super(C);this.__isAuthError=true;this.name="AuthError";this.status=q;this.code=re}}q.AuthError=AuthError;function isAuthError(C){return typeof C==="object"&&C!==null&&"__isAuthError"in C}q.isAuthError=isAuthError;class AuthApiError extends AuthError{constructor(C,q,re){super(C,q,re);this.name="AuthApiError";this.status=q;this.code=re}}q.AuthApiError=AuthApiError;function isAuthApiError(C){return isAuthError(C)&&C.name==="AuthApiError"}q.isAuthApiError=isAuthApiError;class AuthUnknownError extends AuthError{constructor(C,q){super(C);this.name="AuthUnknownError";this.originalError=q}}q.AuthUnknownError=AuthUnknownError;class CustomAuthError extends AuthError{constructor(C,q,re,ae){super(C,re,ae);this.name=q;this.status=re}}q.CustomAuthError=CustomAuthError;class AuthSessionMissingError extends CustomAuthError{constructor(){super("Auth session missing!","AuthSessionMissingError",400,undefined)}}q.AuthSessionMissingError=AuthSessionMissingError;function isAuthSessionMissingError(C){return isAuthError(C)&&C.name==="AuthSessionMissingError"}q.isAuthSessionMissingError=isAuthSessionMissingError;class AuthInvalidTokenResponseError extends CustomAuthError{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,undefined)}}q.AuthInvalidTokenResponseError=AuthInvalidTokenResponseError;class AuthInvalidCredentialsError extends CustomAuthError{constructor(C){super(C,"AuthInvalidCredentialsError",400,undefined)}}q.AuthInvalidCredentialsError=AuthInvalidCredentialsError;class AuthImplicitGrantRedirectError extends CustomAuthError{constructor(C,q=null){super(C,"AuthImplicitGrantRedirectError",500,undefined);this.details=null;this.details=q}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}q.AuthImplicitGrantRedirectError=AuthImplicitGrantRedirectError;class AuthPKCEGrantCodeExchangeError extends CustomAuthError{constructor(C,q=null){super(C,"AuthPKCEGrantCodeExchangeError",500,undefined);this.details=null;this.details=q}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}q.AuthPKCEGrantCodeExchangeError=AuthPKCEGrantCodeExchangeError;class AuthRetryableFetchError extends CustomAuthError{constructor(C,q){super(C,"AuthRetryableFetchError",q,undefined)}}q.AuthRetryableFetchError=AuthRetryableFetchError;function isAuthRetryableFetchError(C){return isAuthError(C)&&C.name==="AuthRetryableFetchError"}q.isAuthRetryableFetchError=isAuthRetryableFetchError;class AuthWeakPasswordError extends CustomAuthError{constructor(C,q,re){super(C,"AuthWeakPasswordError",q,"weak_password");this.reasons=re}}q.AuthWeakPasswordError=AuthWeakPasswordError;function isAuthWeakPasswordError(C){return isAuthError(C)&&C.name==="AuthWeakPasswordError"}q.isAuthWeakPasswordError=isAuthWeakPasswordError},92356:function(C,q,re){var ae=this&&this.__rest||function(C,q){var re={};for(var ae in C)if(Object.prototype.hasOwnProperty.call(C,ae)&&q.indexOf(ae)<0)re[ae]=C[ae];if(C!=null&&typeof Object.getOwnPropertySymbols==="function")for(var Ue=0,ae=Object.getOwnPropertySymbols(C);UeC.msg||C.message||C.error_description||C.error||JSON.stringify(C);const Wt=[502,503,504];async function handleError(C){var q;if(!(0,lt.looksLikeFetchResponse)(C)){throw new Pt.AuthRetryableFetchError(_getErrorMessage(C),0)}if(Wt.includes(C.status)){throw new Pt.AuthRetryableFetchError(_getErrorMessage(C),C.status)}let re;try{re=await C.json()}catch(C){throw new Pt.AuthUnknownError(_getErrorMessage(C),C)}let ae=undefined;const Ar=(0,lt.parseResponseAPIVersion)(C);if(Ar&&Ar.getTime()>=Ue.API_VERSIONS["2024-01-01"].timestamp&&typeof re==="object"&&re&&typeof re.code==="string"){ae=re.code}else if(typeof re==="object"&&re&&typeof re.error_code==="string"){ae=re.error_code}if(!ae){if(typeof re==="object"&&re&&typeof re.weak_password==="object"&&re.weak_password&&Array.isArray(re.weak_password.reasons)&&re.weak_password.reasons.length&&re.weak_password.reasons.reduce(((C,q)=>C&&typeof q==="string"),true)){throw new Pt.AuthWeakPasswordError(_getErrorMessage(re),C.status,re.weak_password.reasons)}}else if(ae==="weak_password"){throw new Pt.AuthWeakPasswordError(_getErrorMessage(re),C.status,((q=re.weak_password)===null||q===void 0?void 0:q.reasons)||[])}else if(ae==="session_not_found"){throw new Pt.AuthSessionMissingError}throw new Pt.AuthApiError(_getErrorMessage(re),C.status||500,ae)}q.handleError=handleError;const _getRequestParams=(C,q,re,ae)=>{const Ue={method:C,headers:(q===null||q===void 0?void 0:q.headers)||{}};if(C==="GET"){return Ue}Ue.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},q===null||q===void 0?void 0:q.headers);Ue.body=JSON.stringify(ae);return Object.assign(Object.assign({},Ue),re)};async function _request(C,q,re,ae){var lt;const Pt=Object.assign({},ae===null||ae===void 0?void 0:ae.headers);if(!Pt[Ue.API_VERSION_HEADER_NAME]){Pt[Ue.API_VERSION_HEADER_NAME]=Ue.API_VERSIONS["2024-01-01"].name}if(ae===null||ae===void 0?void 0:ae.jwt){Pt["Authorization"]=`Bearer ${ae.jwt}`}const Wt=(lt=ae===null||ae===void 0?void 0:ae.query)!==null&<!==void 0?lt:{};if(ae===null||ae===void 0?void 0:ae.redirectTo){Wt["redirect_to"]=ae.redirectTo}const Ar=Object.keys(Wt).length?"?"+new URLSearchParams(Wt).toString():"";const Er=await _handleRequest(C,q,re+Ar,{headers:Pt,noResolveJson:ae===null||ae===void 0?void 0:ae.noResolveJson},{},ae===null||ae===void 0?void 0:ae.body);return(ae===null||ae===void 0?void 0:ae.xform)?ae===null||ae===void 0?void 0:ae.xform(Er):{data:Object.assign({},Er),error:null}}q._request=_request;async function _handleRequest(C,q,re,ae,Ue,lt){const Wt=_getRequestParams(q,ae,Ue,lt);let Ar;try{Ar=await C(re,Object.assign({},Wt))}catch(C){console.error(C);throw new Pt.AuthRetryableFetchError(_getErrorMessage(C),0)}if(!Ar.ok){await handleError(Ar)}if(ae===null||ae===void 0?void 0:ae.noResolveJson){return Ar}try{return await Ar.json()}catch(C){await handleError(C)}}function _sessionResponse(C){var q;let re=null;if(hasSession(C)){re=Object.assign({},C);if(!C.expires_at){re.expires_at=(0,lt.expiresAt)(C.expires_in)}}const ae=(q=C.user)!==null&&q!==void 0?q:C;return{data:{session:re,user:ae},error:null}}q._sessionResponse=_sessionResponse;function _sessionResponsePassword(C){const q=_sessionResponse(C);if(!q.error&&C.weak_password&&typeof C.weak_password==="object"&&Array.isArray(C.weak_password.reasons)&&C.weak_password.reasons.length&&C.weak_password.message&&typeof C.weak_password.message==="string"&&C.weak_password.reasons.reduce(((C,q)=>C&&typeof q==="string"),true)){q.data.weak_password=C.weak_password}return q}q._sessionResponsePassword=_sessionResponsePassword;function _userResponse(C){var q;const re=(q=C.user)!==null&&q!==void 0?q:C;return{data:{user:re},error:null}}q._userResponse=_userResponse;function _ssoResponse(C){return{data:C,error:null}}q._ssoResponse=_ssoResponse;function _generateLinkResponse(C){const{action_link:q,email_otp:re,hashed_token:Ue,redirect_to:lt,verification_type:Pt}=C,Wt=ae(C,["action_link","email_otp","hashed_token","redirect_to","verification_type"]);const Ar={action_link:q,email_otp:re,hashed_token:Ue,redirect_to:lt,verification_type:Pt};const Er=Object.assign({},Wt);return{data:{properties:Ar,user:Er},error:null}}q._generateLinkResponse=_generateLinkResponse;function _noResolveJsonResponse(C){return C}q._noResolveJsonResponse=_noResolveJsonResponse;function hasSession(C){return C.access_token&&C.refresh_token&&C.expires_in}},30601:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.parseResponseAPIVersion=q.getCodeChallengeAndMethod=q.generatePKCEChallenge=q.generatePKCEVerifier=q.retryable=q.sleep=q.decodeJWTPayload=q.Deferred=q.decodeBase64URL=q.removeItemAsync=q.getItemAsync=q.setItemAsync=q.looksLikeFetchResponse=q.resolveFetch=q.parseParametersFromURL=q.supportsLocalStorage=q.isBrowser=q.uuid=q.expiresAt=void 0;const Pt=re(26705);function expiresAt(C){const q=Math.round(Date.now()/1e3);return q+C}q.expiresAt=expiresAt;function uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(C){const q=Math.random()*16|0,re=C=="x"?q:q&3|8;return re.toString(16)}))}q.uuid=uuid;const isBrowser=()=>typeof document!=="undefined";q.isBrowser=isBrowser;const Wt={tested:false,writable:false};const supportsLocalStorage=()=>{if(!(0,q.isBrowser)()){return false}try{if(typeof globalThis.localStorage!=="object"){return false}}catch(C){return false}if(Wt.tested){return Wt.writable}const C=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(C,C);globalThis.localStorage.removeItem(C);Wt.tested=true;Wt.writable=true}catch(C){Wt.tested=true;Wt.writable=false}return Wt.writable};q.supportsLocalStorage=supportsLocalStorage;function parseParametersFromURL(C){const q={};const re=new URL(C);if(re.hash&&re.hash[0]==="#"){try{const C=new URLSearchParams(re.hash.substring(1));C.forEach(((C,re)=>{q[re]=C}))}catch(C){}}re.searchParams.forEach(((C,re)=>{q[re]=C}));return q}q.parseParametersFromURL=parseParametersFromURL;const resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=(...C)=>Promise.resolve().then((()=>lt(re(83318)))).then((({default:q})=>q(...C)))}else{q=fetch}return(...C)=>q(...C)};q.resolveFetch=resolveFetch;const looksLikeFetchResponse=C=>typeof C==="object"&&C!==null&&"status"in C&&"ok"in C&&"json"in C&&typeof C.json==="function";q.looksLikeFetchResponse=looksLikeFetchResponse;const setItemAsync=async(C,q,re)=>{await C.setItem(q,JSON.stringify(re))};q.setItemAsync=setItemAsync;const getItemAsync=async(C,q)=>{const re=await C.getItem(q);if(!re){return null}try{return JSON.parse(re)}catch(C){return re}};q.getItemAsync=getItemAsync;const removeItemAsync=async(C,q)=>{await C.removeItem(q)};q.removeItemAsync=removeItemAsync;function decodeBase64URL(C){const q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let re="";let ae,Ue,lt;let Pt,Wt,Ar,Er;let Ir=0;C=C.replace("-","+").replace("_","/");while(Ir>4;Ue=(Wt&15)<<4|Ar>>2;lt=(Ar&3)<<6|Er;re=re+String.fromCharCode(ae);if(Ar!=64&&Ue!=0){re=re+String.fromCharCode(Ue)}if(Er!=64&<!=0){re=re+String.fromCharCode(lt)}}return re}q.decodeBase64URL=decodeBase64URL;class Deferred{constructor(){this.promise=new Deferred.promiseConstructor(((C,q)=>{this.resolve=C;this.reject=q}))}}q.Deferred=Deferred;Deferred.promiseConstructor=Promise;function decodeJWTPayload(C){const q=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i;const re=C.split(".");if(re.length!==3){throw new Error("JWT is not valid: not a JWT structure")}if(!q.test(re[1])){throw new Error("JWT is not valid: payload is not in base64url format")}const ae=re[1];return JSON.parse(decodeBase64URL(ae))}q.decodeJWTPayload=decodeJWTPayload;async function sleep(C){return await new Promise((q=>{setTimeout((()=>q(null)),C)}))}q.sleep=sleep;function retryable(C,q){const re=new Promise(((re,ae)=>{(async()=>{for(let Ue=0;UeString.fromCharCode(C))).join("")}function base64urlencode(C){return btoa(C).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function generatePKCEChallenge(C){const q=typeof crypto!=="undefined"&&typeof crypto.subtle!=="undefined"&&typeof TextEncoder!=="undefined";if(!q){console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256.");return C}const re=await sha256(C);return base64urlencode(re)}q.generatePKCEChallenge=generatePKCEChallenge;async function getCodeChallengeAndMethod(C,re,ae=false){const Ue=generatePKCEVerifier();let lt=Ue;if(ae){lt+="/PASSWORD_RECOVERY"}await(0,q.setItemAsync)(C,`${re}-code-verifier`,lt);const Pt=await generatePKCEChallenge(Ue);const Wt=Ue===Pt?"plain":"s256";return[Pt,Wt]}q.getCodeChallengeAndMethod=getCodeChallengeAndMethod;const Ar=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function parseResponseAPIVersion(C){const q=C.headers.get(Pt.API_VERSION_HEADER_NAME);if(!q){return null}if(!q.match(Ar)){return null}try{const C=new Date(`${q}T00:00:00.0Z`);return C}catch(C){return null}}q.parseResponseAPIVersion=parseResponseAPIVersion},21735:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.memoryLocalStorageAdapter=q.localStorageAdapter=void 0;const ae=re(30601);q.localStorageAdapter={getItem:C=>{if(!(0,ae.supportsLocalStorage)()){return null}return globalThis.localStorage.getItem(C)},setItem:(C,q)=>{if(!(0,ae.supportsLocalStorage)()){return}globalThis.localStorage.setItem(C,q)},removeItem:C=>{if(!(0,ae.supportsLocalStorage)()){return}globalThis.localStorage.removeItem(C)}};function memoryLocalStorageAdapter(C={}){return{getItem:q=>C[q]||null,setItem:(q,re)=>{C[q]=re},removeItem:q=>{delete C[q]}}}q.memoryLocalStorageAdapter=memoryLocalStorageAdapter},28932:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.navigatorLock=q.NavigatorLockAcquireTimeoutError=q.LockAcquireTimeoutError=q.internals=void 0;const ae=re(30601);q.internals={debug:!!(globalThis&&(0,ae.supportsLocalStorage)()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class LockAcquireTimeoutError extends Error{constructor(C){super(C);this.isAcquireTimeout=true}}q.LockAcquireTimeoutError=LockAcquireTimeoutError;class NavigatorLockAcquireTimeoutError extends LockAcquireTimeoutError{}q.NavigatorLockAcquireTimeoutError=NavigatorLockAcquireTimeoutError;async function navigatorLock(C,re,ae){if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: acquire lock",C,re)}const Ue=new globalThis.AbortController;if(re>0){setTimeout((()=>{Ue.abort();if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock acquire timed out",C)}}),re)}return await globalThis.navigator.locks.request(C,re===0?{mode:"exclusive",ifAvailable:true}:{mode:"exclusive",signal:Ue.signal},(async Ue=>{if(Ue){if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: acquired",C,Ue.name)}try{return await ae()}finally{if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: released",C,Ue.name)}}}else{if(re===0){if(q.internals.debug){console.log("@supabase/gotrue-js: navigatorLock: not immediately available",C)}throw new NavigatorLockAcquireTimeoutError(`Acquiring an exclusive Navigator LockManager lock "${C}" immediately failed`)}else{if(q.internals.debug){try{const C=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(C,null," "))}catch(C){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",C)}}console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request");return await ae()}}}))}q.navigatorLock=navigatorLock},80512:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.polyfillGlobalThis=void 0;function polyfillGlobalThis(){if(typeof globalThis==="object")return;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:true});__magic__.globalThis=__magic__;delete Object.prototype.__magic__}catch(C){if(typeof self!=="undefined"){self.globalThis=self}}}q.polyfillGlobalThis=polyfillGlobalThis},53737:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},41920:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="2.65.1"},39149:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.FunctionsClient=void 0;const Ue=re(44495);const lt=re(70842);class FunctionsClient{constructor(C,{headers:q={},customFetch:re,region:ae=lt.FunctionRegion.Any}={}){this.url=C;this.headers=q;this.region=ae;this.fetch=(0,Ue.resolveFetch)(re)}setAuth(C){this.headers.Authorization=`Bearer ${C}`}invoke(C,q={}){var re;return ae(this,void 0,void 0,(function*(){try{const{headers:ae,method:Ue,body:Pt}=q;let Wt={};let{region:Ar}=q;if(!Ar){Ar=this.region}if(Ar&&Ar!=="any"){Wt["x-region"]=Ar}let Er;if(Pt&&(ae&&!Object.prototype.hasOwnProperty.call(ae,"Content-Type")||!ae)){if(typeof Blob!=="undefined"&&Pt instanceof Blob||Pt instanceof ArrayBuffer){Wt["Content-Type"]="application/octet-stream";Er=Pt}else if(typeof Pt==="string"){Wt["Content-Type"]="text/plain";Er=Pt}else if(typeof FormData!=="undefined"&&Pt instanceof FormData){Er=Pt}else{Wt["Content-Type"]="application/json";Er=JSON.stringify(Pt)}}const Ir=yield this.fetch(`${this.url}/${C}`,{method:Ue||"POST",headers:Object.assign(Object.assign(Object.assign({},Wt),this.headers),ae),body:Er}).catch((C=>{throw new lt.FunctionsFetchError(C)}));const Br=Ir.headers.get("x-relay-error");if(Br&&Br==="true"){throw new lt.FunctionsRelayError(Ir)}if(!Ir.ok){throw new lt.FunctionsHttpError(Ir)}let kr=((re=Ir.headers.get("Content-Type"))!==null&&re!==void 0?re:"text/plain").split(";")[0].trim();let Pr;if(kr==="application/json"){Pr=yield Ir.json()}else if(kr==="application/octet-stream"){Pr=yield Ir.blob()}else if(kr==="text/event-stream"){Pr=Ir}else if(kr==="multipart/form-data"){Pr=yield Ir.formData()}else{Pr=yield Ir.text()}return{data:Pr,error:null}}catch(C){return{data:null,error:C}}}))}}q.FunctionsClient=FunctionsClient},44495:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.resolveFetch=void 0;const resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=(...C)=>Promise.resolve().then((()=>lt(re(83318)))).then((({default:q})=>q(...C)))}else{q=fetch}return(...C)=>q(...C)};q.resolveFetch=resolveFetch},70459:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.FunctionRegion=q.FunctionsRelayError=q.FunctionsHttpError=q.FunctionsFetchError=q.FunctionsError=q.FunctionsClient=void 0;var ae=re(39149);Object.defineProperty(q,"FunctionsClient",{enumerable:true,get:function(){return ae.FunctionsClient}});var Ue=re(70842);Object.defineProperty(q,"FunctionsError",{enumerable:true,get:function(){return Ue.FunctionsError}});Object.defineProperty(q,"FunctionsFetchError",{enumerable:true,get:function(){return Ue.FunctionsFetchError}});Object.defineProperty(q,"FunctionsHttpError",{enumerable:true,get:function(){return Ue.FunctionsHttpError}});Object.defineProperty(q,"FunctionsRelayError",{enumerable:true,get:function(){return Ue.FunctionsRelayError}});Object.defineProperty(q,"FunctionRegion",{enumerable:true,get:function(){return Ue.FunctionRegion}})},70842:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.FunctionRegion=q.FunctionsHttpError=q.FunctionsRelayError=q.FunctionsFetchError=q.FunctionsError=void 0;class FunctionsError extends Error{constructor(C,q="FunctionsError",re){super(C);this.name=q;this.context=re}}q.FunctionsError=FunctionsError;class FunctionsFetchError extends FunctionsError{constructor(C){super("Failed to send a request to the Edge Function","FunctionsFetchError",C)}}q.FunctionsFetchError=FunctionsFetchError;class FunctionsRelayError extends FunctionsError{constructor(C){super("Relay Error invoking the Edge Function","FunctionsRelayError",C)}}q.FunctionsRelayError=FunctionsRelayError;class FunctionsHttpError extends FunctionsError{constructor(C){super("Edge Function returned a non-2xx status code","FunctionsHttpError",C)}}q.FunctionsHttpError=FunctionsHttpError;var re;(function(C){C["Any"]="any";C["ApNortheast1"]="ap-northeast-1";C["ApNortheast2"]="ap-northeast-2";C["ApSouth1"]="ap-south-1";C["ApSoutheast1"]="ap-southeast-1";C["ApSoutheast2"]="ap-southeast-2";C["CaCentral1"]="ca-central-1";C["EuCentral1"]="eu-central-1";C["EuWest1"]="eu-west-1";C["EuWest2"]="eu-west-2";C["EuWest3"]="eu-west-3";C["SaEast1"]="sa-east-1";C["UsEast1"]="us-east-1";C["UsWest1"]="us-west-1";C["UsWest2"]="us-west-2"})(re=q.FunctionRegion||(q.FunctionRegion={}))},83318:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});function _interopDefault(C){return C&&typeof C==="object"&&"default"in C?C["default"]:C}var ae=_interopDefault(re(2203));var Ue=_interopDefault(re(58611));var lt=_interopDefault(re(87016));var Pt=_interopDefault(re(62686));var Wt=_interopDefault(re(65692));var Ar=_interopDefault(re(43106));const Er=ae.Readable;const Ir=Symbol("buffer");const Br=Symbol("type");class Blob{constructor(){this[Br]="";const C=arguments[0];const q=arguments[1];const re=[];let ae=0;if(C){const q=C;const Ue=Number(q.length);for(let C=0;C1&&arguments[1]!==undefined?arguments[1]:{},Ue=re.size;let lt=Ue===undefined?0:Ue;var Pt=re.timeout;let Wt=Pt===undefined?0:Pt;if(C==null){C=null}else if(isURLSearchParams(C)){C=Buffer.from(C.toString())}else if(isBlob(C));else if(Buffer.isBuffer(C));else if(Object.prototype.toString.call(C)==="[object ArrayBuffer]"){C=Buffer.from(C)}else if(ArrayBuffer.isView(C)){C=Buffer.from(C.buffer,C.byteOffset,C.byteLength)}else if(C instanceof ae);else{C=Buffer.from(String(C))}this[Pr]={body:C,disturbed:false,error:null};this.size=lt;this.timeout=Wt;if(C instanceof ae){C.on("error",(function(C){const re=C.name==="AbortError"?C:new FetchError(`Invalid response body while trying to fetch ${q.url}: ${C.message}`,"system",C);q[Pr].error=re}))}}Body.prototype={get body(){return this[Pr].body},get bodyUsed(){return this[Pr].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(C){return C.buffer.slice(C.byteOffset,C.byteOffset+C.byteLength)}))},blob(){let C=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(q){return Object.assign(new Blob([],{type:C.toLowerCase()}),{[Ir]:q})}))},json(){var C=this;return consumeBody.call(this).then((function(q){try{return JSON.parse(q.toString())}catch(q){return Body.Promise.reject(new FetchError(`invalid json response body at ${C.url} reason: ${q.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(C){return C.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var C=this;return consumeBody.call(this).then((function(q){return convertBody(q,C.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(C){for(const q of Object.getOwnPropertyNames(Body.prototype)){if(!(q in C)){const re=Object.getOwnPropertyDescriptor(Body.prototype,q);Object.defineProperty(C,q,re)}}};function consumeBody(){var C=this;if(this[Pr].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[Pr].disturbed=true;if(this[Pr].error){return Body.Promise.reject(this[Pr].error)}let q=this.body;if(q===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(q)){q=q.stream()}if(Buffer.isBuffer(q)){return Body.Promise.resolve(q)}if(!(q instanceof ae)){return Body.Promise.resolve(Buffer.alloc(0))}let re=[];let Ue=0;let lt=false;return new Body.Promise((function(ae,Pt){let Wt;if(C.timeout){Wt=setTimeout((function(){lt=true;Pt(new FetchError(`Response timeout while trying to fetch ${C.url} (over ${C.timeout}ms)`,"body-timeout"))}),C.timeout)}q.on("error",(function(q){if(q.name==="AbortError"){lt=true;Pt(q)}else{Pt(new FetchError(`Invalid response body while trying to fetch ${C.url}: ${q.message}`,"system",q))}}));q.on("data",(function(q){if(lt||q===null){return}if(C.size&&Ue+q.length>C.size){lt=true;Pt(new FetchError(`content size at ${C.url} over limit: ${C.size}`,"max-size"));return}Ue+=q.length;re.push(q)}));q.on("end",(function(){if(lt){return}clearTimeout(Wt);try{ae(Buffer.concat(re,Ue))}catch(q){Pt(new FetchError(`Could not create Buffer from response body for ${C.url}: ${q.message}`,"system",q))}}))}))}function convertBody(C,q){{throw new Error("The package `encoding` must be installed to use the textConverted() function")}const re=q.get("content-type");let ae="utf-8";let Ue,lt;if(re){Ue=/charset=([^;]*)/i.exec(re)}lt=C.slice(0,1024).toString();if(!Ue&<){Ue=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[xr]=Object.create(null);if(C instanceof Headers){const q=C.raw();const re=Object.keys(q);for(const C of re){for(const re of q[C]){this.append(C,re)}}return}if(C==null);else if(typeof C==="object"){const q=C[Symbol.iterator];if(q!=null){if(typeof q!=="function"){throw new TypeError("Header pairs must be iterable")}const re=[];for(const q of C){if(typeof q!=="object"||typeof q[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}re.push(Array.from(q))}for(const C of re){if(C.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(C[0],C[1])}}else{for(const q of Object.keys(C)){const re=C[q];this.append(q,re)}}}else{throw new TypeError("Provided initializer must be an object")}}get(C){C=`${C}`;validateName(C);const q=find(this[xr],C);if(q===undefined){return null}return this[xr][q].join(", ")}forEach(C){let q=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let re=getHeaders(this);let ae=0;while(ae1&&arguments[1]!==undefined?arguments[1]:"key+value";const re=Object.keys(C[xr]).sort();return re.map(q==="key"?function(C){return C.toLowerCase()}:q==="value"?function(q){return C[xr][q].join(", ")}:function(q){return[q.toLowerCase(),C[xr][q].join(", ")]})}const Mr=Symbol("internal");function createHeadersIterator(C,q){const re=Object.create(Ur);re[Mr]={target:C,kind:q,index:0};return re}const Ur=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==Ur){throw new TypeError("Value of `this` is not a HeadersIterator")}var C=this[Mr];const q=C.target,re=C.kind,ae=C.index;const Ue=getHeaders(q,re);const lt=Ue.length;if(ae>=lt){return{value:undefined,done:true}}this[Mr].index=ae+1;return{value:Ue[ae],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(Ur,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(C){const q=Object.assign({__proto__:null},C[xr]);const re=find(C[xr],"Host");if(re!==undefined){q[re]=q[re][0]}return q}function createHeadersLenient(C){const q=new Headers;for(const re of Object.keys(C)){if(Fr.test(re)){continue}if(Array.isArray(C[re])){for(const ae of C[re]){if(Dr.test(ae)){continue}if(q[xr][re]===undefined){q[xr][re]=[ae]}else{q[xr][re].push(ae)}}}else if(!Dr.test(C[re])){q[xr][re]=[C[re]]}}return q}const Nr=Symbol("Response internals");const Lr=Ue.STATUS_CODES;class Response{constructor(){let C=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let q=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,C,q);const re=q.status||200;const ae=new Headers(q.headers);if(C!=null&&!ae.has("Content-Type")){const q=extractContentType(C);if(q){ae.append("Content-Type",q)}}this[Nr]={url:q.url,status:re,statusText:q.statusText||Lr[re],headers:ae,counter:q.counter}}get url(){return this[Nr].url||""}get status(){return this[Nr].status}get ok(){return this[Nr].status>=200&&this[Nr].status<300}get redirected(){return this[Nr].counter>0}get statusText(){return this[Nr].statusText}get headers(){return this[Nr].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const jr=Symbol("Request internals");const Gr=lt.URL||Pt.URL;const Vr=lt.parse;const Hr=lt.format;function parseURL(C){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(C)){C=new Gr(C).toString()}return Vr(C)}const Wr="destroy"in ae.Readable.prototype;function isRequest(C){return typeof C==="object"&&typeof C[jr]==="object"}function isAbortSignal(C){const q=C&&typeof C==="object"&&Object.getPrototypeOf(C);return!!(q&&q.constructor.name==="AbortSignal")}class Request{constructor(C){let q=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let re;if(!isRequest(C)){if(C&&C.href){re=parseURL(C.href)}else{re=parseURL(`${C}`)}C={}}else{re=parseURL(C.url)}let ae=q.method||C.method||"GET";ae=ae.toUpperCase();if((q.body!=null||isRequest(C)&&C.body!==null)&&(ae==="GET"||ae==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let Ue=q.body!=null?q.body:isRequest(C)&&C.body!==null?clone(C):null;Body.call(this,Ue,{timeout:q.timeout||C.timeout||0,size:q.size||C.size||0});const lt=new Headers(q.headers||C.headers||{});if(Ue!=null&&!lt.has("Content-Type")){const C=extractContentType(Ue);if(C){lt.append("Content-Type",C)}}let Pt=isRequest(C)?C.signal:null;if("signal"in q)Pt=q.signal;if(Pt!=null&&!isAbortSignal(Pt)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[jr]={method:ae,redirect:q.redirect||C.redirect||"follow",headers:lt,parsedURL:re,signal:Pt};this.follow=q.follow!==undefined?q.follow:C.follow!==undefined?C.follow:20;this.compress=q.compress!==undefined?q.compress:C.compress!==undefined?C.compress:true;this.counter=q.counter||C.counter||0;this.agent=q.agent||C.agent}get method(){return this[jr].method}get url(){return Hr(this[jr].parsedURL)}get headers(){return this[jr].headers}get redirect(){return this[jr].redirect}get signal(){return this[jr].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(C){const q=C[jr].parsedURL;const re=new Headers(C[jr].headers);if(!re.has("Accept")){re.set("Accept","*/*")}if(!q.protocol||!q.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(q.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(C.signal&&C.body instanceof ae.Readable&&!Wr){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let Ue=null;if(C.body==null&&/^(POST|PUT)$/i.test(C.method)){Ue="0"}if(C.body!=null){const q=getTotalBytes(C);if(typeof q==="number"){Ue=String(q)}}if(Ue){re.set("Content-Length",Ue)}if(!re.has("User-Agent")){re.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(C.compress&&!re.has("Accept-Encoding")){re.set("Accept-Encoding","gzip,deflate")}let lt=C.agent;if(typeof lt==="function"){lt=lt(q)}if(!re.has("Connection")&&!lt){re.set("Connection","close")}return Object.assign({},q,{method:C.method,headers:exportNodeCompatibleHeaders(re),agent:lt})}function AbortError(C){Error.call(this,C);this.type="aborted";this.message=C;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const $r=lt.URL||Pt.URL;const Kr=ae.PassThrough;const zr=function isDomainOrSubdomain(C,q){const re=new $r(q).hostname;const ae=new $r(C).hostname;return re===ae||re[re.length-ae.length-1]==="."&&re.endsWith(ae)};const Jr=function isSameProtocol(C,q){const re=new $r(q).protocol;const ae=new $r(C).protocol;return re===ae};function fetch(C,q){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(re,lt){const Pt=new Request(C,q);const Er=getNodeRequestOptions(Pt);const Ir=(Er.protocol==="https:"?Wt:Ue).request;const Br=Pt.signal;let kr=null;const Pr=function abort(){let C=new AbortError("The user aborted a request.");lt(C);if(Pt.body&&Pt.body instanceof ae.Readable){destroyStream(Pt.body,C)}if(!kr||!kr.body)return;kr.body.emit("error",C)};if(Br&&Br.aborted){Pr();return}const Qr=function abortAndFinalize(){Pr();finalize()};const Fr=Ir(Er);let Dr;if(Br){Br.addEventListener("abort",Qr)}function finalize(){Fr.abort();if(Br)Br.removeEventListener("abort",Qr);clearTimeout(Dr)}if(Pt.timeout){Fr.once("socket",(function(C){Dr=setTimeout((function(){lt(new FetchError(`network timeout at: ${Pt.url}`,"request-timeout"));finalize()}),Pt.timeout)}))}Fr.on("error",(function(C){lt(new FetchError(`request to ${Pt.url} failed, reason: ${C.message}`,"system",C));if(kr&&kr.body){destroyStream(kr.body,C)}finalize()}));fixResponseChunkedTransferBadEnding(Fr,(function(C){if(Br&&Br.aborted){return}if(kr&&kr.body){destroyStream(kr.body,C)}}));if(parseInt(process.version.substring(1))<14){Fr.on("socket",(function(C){C.addListener("close",(function(q){const re=C.listenerCount("data")>0;if(kr&&re&&!q&&!(Br&&Br.aborted)){const C=new Error("Premature close");C.code="ERR_STREAM_PREMATURE_CLOSE";kr.body.emit("error",C)}}))}))}Fr.on("response",(function(C){clearTimeout(Dr);const q=createHeadersLenient(C.headers);if(fetch.isRedirect(C.statusCode)){const ae=q.get("Location");let Ue=null;try{Ue=ae===null?null:new $r(ae,Pt.url).toString()}catch(C){if(Pt.redirect!=="manual"){lt(new FetchError(`uri requested responds with an invalid redirect URL: ${ae}`,"invalid-redirect"));finalize();return}}switch(Pt.redirect){case"error":lt(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${Pt.url}`,"no-redirect"));finalize();return;case"manual":if(Ue!==null){try{q.set("Location",Ue)}catch(C){lt(C)}}break;case"follow":if(Ue===null){break}if(Pt.counter>=Pt.follow){lt(new FetchError(`maximum redirect reached at: ${Pt.url}`,"max-redirect"));finalize();return}const ae={headers:new Headers(Pt.headers),follow:Pt.follow,counter:Pt.counter+1,agent:Pt.agent,compress:Pt.compress,method:Pt.method,body:Pt.body,signal:Pt.signal,timeout:Pt.timeout,size:Pt.size};if(!zr(Pt.url,Ue)||!Jr(Pt.url,Ue)){for(const C of["authorization","www-authenticate","cookie","cookie2"]){ae.headers.delete(C)}}if(C.statusCode!==303&&Pt.body&&getTotalBytes(Pt)===null){lt(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(C.statusCode===303||(C.statusCode===301||C.statusCode===302)&&Pt.method==="POST"){ae.method="GET";ae.body=undefined;ae.headers.delete("content-length")}re(fetch(new Request(Ue,ae)));finalize();return}}C.once("end",(function(){if(Br)Br.removeEventListener("abort",Qr)}));let ae=C.pipe(new Kr);const Ue={url:Pt.url,status:C.statusCode,statusText:C.statusMessage,headers:q,size:Pt.size,timeout:Pt.timeout,counter:Pt.counter};const Wt=q.get("Content-Encoding");if(!Pt.compress||Pt.method==="HEAD"||Wt===null||C.statusCode===204||C.statusCode===304){kr=new Response(ae,Ue);re(kr);return}const Er={flush:Ar.Z_SYNC_FLUSH,finishFlush:Ar.Z_SYNC_FLUSH};if(Wt=="gzip"||Wt=="x-gzip"){ae=ae.pipe(Ar.createGunzip(Er));kr=new Response(ae,Ue);re(kr);return}if(Wt=="deflate"||Wt=="x-deflate"){const q=C.pipe(new Kr);q.once("data",(function(C){if((C[0]&15)===8){ae=ae.pipe(Ar.createInflate())}else{ae=ae.pipe(Ar.createInflateRaw())}kr=new Response(ae,Ue);re(kr)}));q.on("end",(function(){if(!kr){kr=new Response(ae,Ue);re(kr)}}));return}if(Wt=="br"&&typeof Ar.createBrotliDecompress==="function"){ae=ae.pipe(Ar.createBrotliDecompress());kr=new Response(ae,Ue);re(kr);return}kr=new Response(ae,Ue);re(kr)}));writeToStream(Fr,Pt)}))}function fixResponseChunkedTransferBadEnding(C,q){let re;C.on("socket",(function(C){re=C}));C.on("response",(function(C){const ae=C.headers;if(ae["transfer-encoding"]==="chunked"&&!ae["content-length"]){C.once("close",(function(C){const ae=re&&re.listenerCount("data")>0;if(ae&&!C){const C=new Error("Premature close");C.code="ERR_STREAM_PREMATURE_CLOSE";q(C)}}))}}))}function destroyStream(C,q){if(C.destroy){C.destroy(q)}else{C.emit("error",q);C.end()}}fetch.isRedirect=function(C){return C===301||C===302||C===303||C===307||C===308};fetch.Promise=global.Promise;C.exports=q=fetch;Object.defineProperty(q,"__esModule",{value:true});q["default"]=q;q.Headers=Headers;q.Request=Request;q.Response=Response;q.FetchError=FetchError},88850:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(83318));const lt=ae(re(57631));class PostgrestBuilder{constructor(C){this.shouldThrowOnError=false;this.method=C.method;this.url=C.url;this.headers=C.headers;this.schema=C.schema;this.body=C.body;this.shouldThrowOnError=C.shouldThrowOnError;this.signal=C.signal;this.isMaybeSingle=C.isMaybeSingle;if(C.fetch){this.fetch=C.fetch}else if(typeof fetch==="undefined"){this.fetch=Ue.default}else{this.fetch=fetch}}throwOnError(){this.shouldThrowOnError=true;return this}setHeader(C,q){this.headers=Object.assign({},this.headers);this.headers[C]=q;return this}then(C,q){if(this.schema===undefined){}else if(["GET","HEAD"].includes(this.method)){this.headers["Accept-Profile"]=this.schema}else{this.headers["Content-Profile"]=this.schema}if(this.method!=="GET"&&this.method!=="HEAD"){this.headers["Content-Type"]="application/json"}const re=this.fetch;let ae=re(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then((async C=>{var q,re,ae;let Ue=null;let Pt=null;let Wt=null;let Ar=C.status;let Er=C.statusText;if(C.ok){if(this.method!=="HEAD"){const q=await C.text();if(q===""){}else if(this.headers["Accept"]==="text/csv"){Pt=q}else if(this.headers["Accept"]&&this.headers["Accept"].includes("application/vnd.pgrst.plan+text")){Pt=q}else{Pt=JSON.parse(q)}}const ae=(q=this.headers["Prefer"])===null||q===void 0?void 0:q.match(/count=(exact|planned|estimated)/);const lt=(re=C.headers.get("content-range"))===null||re===void 0?void 0:re.split("/");if(ae&<&<.length>1){Wt=parseInt(lt[1])}if(this.isMaybeSingle&&this.method==="GET"&&Array.isArray(Pt)){if(Pt.length>1){Ue={code:"PGRST116",details:`Results contain ${Pt.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"};Pt=null;Wt=null;Ar=406;Er="Not Acceptable"}else if(Pt.length===1){Pt=Pt[0]}else{Pt=null}}}else{const q=await C.text();try{Ue=JSON.parse(q);if(Array.isArray(Ue)&&C.status===404){Pt=[];Ue=null;Ar=200;Er="OK"}}catch(re){if(C.status===404&&q===""){Ar=204;Er="No Content"}else{Ue={message:q}}}if(Ue&&this.isMaybeSingle&&((ae=Ue===null||Ue===void 0?void 0:Ue.details)===null||ae===void 0?void 0:ae.includes("0 rows"))){Ue=null;Ar=200;Er="OK"}if(Ue&&this.shouldThrowOnError){throw new lt.default(Ue)}}const Ir={error:Ue,data:Pt,count:Wt,status:Ar,statusText:Er};return Ir}));if(!this.shouldThrowOnError){ae=ae.catch((C=>{var q,re,ae;return{error:{message:`${(q=C===null||C===void 0?void 0:C.name)!==null&&q!==void 0?q:"FetchError"}: ${C===null||C===void 0?void 0:C.message}`,details:`${(re=C===null||C===void 0?void 0:C.stack)!==null&&re!==void 0?re:""}`,hint:"",code:`${(ae=C===null||C===void 0?void 0:C.code)!==null&&ae!==void 0?ae:""}`},data:null,count:null,status:0,statusText:""}}))}return ae.then(C,q)}}q["default"]=PostgrestBuilder},20526:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(74846));const lt=ae(re(88868));const Pt=re(73541);class PostgrestClient{constructor(C,{headers:q={},schema:re,fetch:ae}={}){this.url=C;this.headers=Object.assign(Object.assign({},Pt.DEFAULT_HEADERS),q);this.schemaName=re;this.fetch=ae}from(C){const q=new URL(`${this.url}/${C}`);return new Ue.default(q,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(C){return new PostgrestClient(this.url,{headers:this.headers,schema:C,fetch:this.fetch})}rpc(C,q={},{head:re=false,get:ae=false,count:Ue}={}){let Pt;const Wt=new URL(`${this.url}/rpc/${C}`);let Ar;if(re||ae){Pt=re?"HEAD":"GET";Object.entries(q).filter((([C,q])=>q!==undefined)).map((([C,q])=>[C,Array.isArray(q)?`{${q.join(",")}}`:`${q}`])).forEach((([C,q])=>{Wt.searchParams.append(C,q)}))}else{Pt="POST";Ar=q}const Er=Object.assign({},this.headers);if(Ue){Er["Prefer"]=`count=${Ue}`}return new lt.default({method:Pt,url:Wt,headers:Er,schema:this.schemaName,body:Ar,fetch:this.fetch,allowEmpty:false})}}q["default"]=PostgrestClient},57631:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});class PostgrestError extends Error{constructor(C){super(C.message);this.name="PostgrestError";this.details=C.details;this.hint=C.hint;this.code=C.code}}q["default"]=PostgrestError},88868:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(62122));class PostgrestFilterBuilder extends Ue.default{eq(C,q){this.url.searchParams.append(C,`eq.${q}`);return this}neq(C,q){this.url.searchParams.append(C,`neq.${q}`);return this}gt(C,q){this.url.searchParams.append(C,`gt.${q}`);return this}gte(C,q){this.url.searchParams.append(C,`gte.${q}`);return this}lt(C,q){this.url.searchParams.append(C,`lt.${q}`);return this}lte(C,q){this.url.searchParams.append(C,`lte.${q}`);return this}like(C,q){this.url.searchParams.append(C,`like.${q}`);return this}likeAllOf(C,q){this.url.searchParams.append(C,`like(all).{${q.join(",")}}`);return this}likeAnyOf(C,q){this.url.searchParams.append(C,`like(any).{${q.join(",")}}`);return this}ilike(C,q){this.url.searchParams.append(C,`ilike.${q}`);return this}ilikeAllOf(C,q){this.url.searchParams.append(C,`ilike(all).{${q.join(",")}}`);return this}ilikeAnyOf(C,q){this.url.searchParams.append(C,`ilike(any).{${q.join(",")}}`);return this}is(C,q){this.url.searchParams.append(C,`is.${q}`);return this}in(C,q){const re=Array.from(new Set(q)).map((C=>{if(typeof C==="string"&&new RegExp("[,()]").test(C))return`"${C}"`;else return`${C}`})).join(",");this.url.searchParams.append(C,`in.(${re})`);return this}contains(C,q){if(typeof q==="string"){this.url.searchParams.append(C,`cs.${q}`)}else if(Array.isArray(q)){this.url.searchParams.append(C,`cs.{${q.join(",")}}`)}else{this.url.searchParams.append(C,`cs.${JSON.stringify(q)}`)}return this}containedBy(C,q){if(typeof q==="string"){this.url.searchParams.append(C,`cd.${q}`)}else if(Array.isArray(q)){this.url.searchParams.append(C,`cd.{${q.join(",")}}`)}else{this.url.searchParams.append(C,`cd.${JSON.stringify(q)}`)}return this}rangeGt(C,q){this.url.searchParams.append(C,`sr.${q}`);return this}rangeGte(C,q){this.url.searchParams.append(C,`nxl.${q}`);return this}rangeLt(C,q){this.url.searchParams.append(C,`sl.${q}`);return this}rangeLte(C,q){this.url.searchParams.append(C,`nxr.${q}`);return this}rangeAdjacent(C,q){this.url.searchParams.append(C,`adj.${q}`);return this}overlaps(C,q){if(typeof q==="string"){this.url.searchParams.append(C,`ov.${q}`)}else{this.url.searchParams.append(C,`ov.{${q.join(",")}}`)}return this}textSearch(C,q,{config:re,type:ae}={}){let Ue="";if(ae==="plain"){Ue="pl"}else if(ae==="phrase"){Ue="ph"}else if(ae==="websearch"){Ue="w"}const lt=re===undefined?"":`(${re})`;this.url.searchParams.append(C,`${Ue}fts${lt}.${q}`);return this}match(C){Object.entries(C).forEach((([C,q])=>{this.url.searchParams.append(C,`eq.${q}`)}));return this}not(C,q,re){this.url.searchParams.append(C,`not.${q}.${re}`);return this}or(C,{foreignTable:q,referencedTable:re=q}={}){const ae=re?`${re}.or`:"or";this.url.searchParams.append(ae,`(${C})`);return this}filter(C,q,re){this.url.searchParams.append(C,`${q}.${re}`);return this}}q["default"]=PostgrestFilterBuilder},74846:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(88868));class PostgrestQueryBuilder{constructor(C,{headers:q={},schema:re,fetch:ae}){this.url=C;this.headers=q;this.schema=re;this.fetch=ae}select(C,{head:q=false,count:re}={}){const ae=q?"HEAD":"GET";let lt=false;const Pt=(C!==null&&C!==void 0?C:"*").split("").map((C=>{if(/\s/.test(C)&&!lt){return""}if(C==='"'){lt=!lt}return C})).join("");this.url.searchParams.set("select",Pt);if(re){this.headers["Prefer"]=`count=${re}`}return new Ue.default({method:ae,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:false})}insert(C,{count:q,defaultToNull:re=true}={}){const ae="POST";const lt=[];if(this.headers["Prefer"]){lt.push(this.headers["Prefer"])}if(q){lt.push(`count=${q}`)}if(!re){lt.push("missing=default")}this.headers["Prefer"]=lt.join(",");if(Array.isArray(C)){const q=C.reduce(((C,q)=>C.concat(Object.keys(q))),[]);if(q.length>0){const C=[...new Set(q)].map((C=>`"${C}"`));this.url.searchParams.set("columns",C.join(","))}}return new Ue.default({method:ae,url:this.url,headers:this.headers,schema:this.schema,body:C,fetch:this.fetch,allowEmpty:false})}upsert(C,{onConflict:q,ignoreDuplicates:re=false,count:ae,defaultToNull:lt=true}={}){const Pt="POST";const Wt=[`resolution=${re?"ignore":"merge"}-duplicates`];if(q!==undefined)this.url.searchParams.set("on_conflict",q);if(this.headers["Prefer"]){Wt.push(this.headers["Prefer"])}if(ae){Wt.push(`count=${ae}`)}if(!lt){Wt.push("missing=default")}this.headers["Prefer"]=Wt.join(",");if(Array.isArray(C)){const q=C.reduce(((C,q)=>C.concat(Object.keys(q))),[]);if(q.length>0){const C=[...new Set(q)].map((C=>`"${C}"`));this.url.searchParams.set("columns",C.join(","))}}return new Ue.default({method:Pt,url:this.url,headers:this.headers,schema:this.schema,body:C,fetch:this.fetch,allowEmpty:false})}update(C,{count:q}={}){const re="PATCH";const ae=[];if(this.headers["Prefer"]){ae.push(this.headers["Prefer"])}if(q){ae.push(`count=${q}`)}this.headers["Prefer"]=ae.join(",");return new Ue.default({method:re,url:this.url,headers:this.headers,schema:this.schema,body:C,fetch:this.fetch,allowEmpty:false})}delete({count:C}={}){const q="DELETE";const re=[];if(C){re.push(`count=${C}`)}if(this.headers["Prefer"]){re.unshift(this.headers["Prefer"])}this.headers["Prefer"]=re.join(",");return new Ue.default({method:q,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:false})}}q["default"]=PostgrestQueryBuilder},62122:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Ue=ae(re(88850));class PostgrestTransformBuilder extends Ue.default{select(C){let q=false;const re=(C!==null&&C!==void 0?C:"*").split("").map((C=>{if(/\s/.test(C)&&!q){return""}if(C==='"'){q=!q}return C})).join("");this.url.searchParams.set("select",re);if(this.headers["Prefer"]){this.headers["Prefer"]+=","}this.headers["Prefer"]+="return=representation";return this}order(C,{ascending:q=true,nullsFirst:re,foreignTable:ae,referencedTable:Ue=ae}={}){const lt=Ue?`${Ue}.order`:"order";const Pt=this.url.searchParams.get(lt);this.url.searchParams.set(lt,`${Pt?`${Pt},`:""}${C}.${q?"asc":"desc"}${re===undefined?"":re?".nullsfirst":".nullslast"}`);return this}limit(C,{foreignTable:q,referencedTable:re=q}={}){const ae=typeof re==="undefined"?"limit":`${re}.limit`;this.url.searchParams.set(ae,`${C}`);return this}range(C,q,{foreignTable:re,referencedTable:ae=re}={}){const Ue=typeof ae==="undefined"?"offset":`${ae}.offset`;const lt=typeof ae==="undefined"?"limit":`${ae}.limit`;this.url.searchParams.set(Ue,`${C}`);this.url.searchParams.set(lt,`${q-C+1}`);return this}abortSignal(C){this.signal=C;return this}single(){this.headers["Accept"]="application/vnd.pgrst.object+json";return this}maybeSingle(){if(this.method==="GET"){this.headers["Accept"]="application/json"}else{this.headers["Accept"]="application/vnd.pgrst.object+json"}this.isMaybeSingle=true;return this}csv(){this.headers["Accept"]="text/csv";return this}geojson(){this.headers["Accept"]="application/geo+json";return this}explain({analyze:C=false,verbose:q=false,settings:re=false,buffers:ae=false,wal:Ue=false,format:lt="text"}={}){var Pt;const Wt=[C?"analyze":null,q?"verbose":null,re?"settings":null,ae?"buffers":null,Ue?"wal":null].filter(Boolean).join("|");const Ar=(Pt=this.headers["Accept"])!==null&&Pt!==void 0?Pt:"application/json";this.headers["Accept"]=`application/vnd.pgrst.plan+${lt}; for="${Ar}"; options=${Wt};`;if(lt==="json")return this;else return this}rollback(){var C;if(((C=this.headers["Prefer"])!==null&&C!==void 0?C:"").trim().length>0){this.headers["Prefer"]+=",tx=rollback"}else{this.headers["Prefer"]="tx=rollback"}return this}returns(){return this}}q["default"]=PostgrestTransformBuilder},73541:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.DEFAULT_HEADERS=void 0;const ae=re(41404);q.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${ae.version}`}},93360:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.PostgrestError=q.PostgrestBuilder=q.PostgrestTransformBuilder=q.PostgrestFilterBuilder=q.PostgrestQueryBuilder=q.PostgrestClient=void 0;const Ue=ae(re(20526));q.PostgrestClient=Ue.default;const lt=ae(re(74846));q.PostgrestQueryBuilder=lt.default;const Pt=ae(re(88868));q.PostgrestFilterBuilder=Pt.default;const Wt=ae(re(62122));q.PostgrestTransformBuilder=Wt.default;const Ar=ae(re(88850));q.PostgrestBuilder=Ar.default;const Er=ae(re(57631));q.PostgrestError=Er.default;q["default"]={PostgrestClient:Ue.default,PostgrestQueryBuilder:lt.default,PostgrestFilterBuilder:Pt.default,PostgrestTransformBuilder:Wt.default,PostgrestBuilder:Ar.default,PostgrestError:Er.default}},41404:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="0.0.0-automated"},38093:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.REALTIME_CHANNEL_STATES=q.REALTIME_SUBSCRIBE_STATES=q.REALTIME_LISTEN_TYPES=q.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT=void 0;const Wt=re(29680);const Ar=Pt(re(49333));const Er=Pt(re(99920));const Ir=Pt(re(98493));const Br=lt(re(93429));const kr=re(93429);var Pr;(function(C){C["ALL"]="*";C["INSERT"]="INSERT";C["UPDATE"]="UPDATE";C["DELETE"]="DELETE"})(Pr=q.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT||(q.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT={}));var Qr;(function(C){C["BROADCAST"]="broadcast";C["PRESENCE"]="presence";C["POSTGRES_CHANGES"]="postgres_changes";C["SYSTEM"]="system"})(Qr=q.REALTIME_LISTEN_TYPES||(q.REALTIME_LISTEN_TYPES={}));var Fr;(function(C){C["SUBSCRIBED"]="SUBSCRIBED";C["TIMED_OUT"]="TIMED_OUT";C["CLOSED"]="CLOSED";C["CHANNEL_ERROR"]="CHANNEL_ERROR"})(Fr=q.REALTIME_SUBSCRIBE_STATES||(q.REALTIME_SUBSCRIBE_STATES={}));q.REALTIME_CHANNEL_STATES=Wt.CHANNEL_STATES;class RealtimeChannel{constructor(C,q={config:{}},re){this.topic=C;this.params=q;this.socket=re;this.bindings={};this.state=Wt.CHANNEL_STATES.closed;this.joinedOnce=false;this.pushBuffer=[];this.subTopic=C.replace(/^realtime:/i,"");this.params.config=Object.assign({broadcast:{ack:false,self:false},presence:{key:""},private:false},q.config);this.timeout=this.socket.timeout;this.joinPush=new Ar.default(this,Wt.CHANNEL_EVENTS.join,this.params,this.timeout);this.rejoinTimer=new Er.default((()=>this._rejoinUntilConnected()),this.socket.reconnectAfterMs);this.joinPush.receive("ok",(()=>{this.state=Wt.CHANNEL_STATES.joined;this.rejoinTimer.reset();this.pushBuffer.forEach((C=>C.send()));this.pushBuffer=[]}));this._onClose((()=>{this.rejoinTimer.reset();this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`);this.state=Wt.CHANNEL_STATES.closed;this.socket._remove(this)}));this._onError((C=>{if(this._isLeaving()||this._isClosed()){return}this.socket.log("channel",`error ${this.topic}`,C);this.state=Wt.CHANNEL_STATES.errored;this.rejoinTimer.scheduleTimeout()}));this.joinPush.receive("timeout",(()=>{if(!this._isJoining()){return}this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout);this.state=Wt.CHANNEL_STATES.errored;this.rejoinTimer.scheduleTimeout()}));this._on(Wt.CHANNEL_EVENTS.reply,{},((C,q)=>{this._trigger(this._replyEventName(q),C)}));this.presence=new Ir.default(this);this.broadcastEndpointURL=(0,kr.httpEndpointURL)(this.socket.endPoint)+"/api/broadcast";this.private=this.params.config.private||false}subscribe(C,q=this.timeout){var re,ae;if(!this.socket.isConnected()){this.socket.connect()}if(this.joinedOnce){throw`tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance`}else{const{config:{broadcast:Ue,presence:lt,private:Pt}}=this.params;this._onError((q=>C&&C("CHANNEL_ERROR",q)));this._onClose((()=>C&&C("CLOSED")));const Wt={};const Ar={broadcast:Ue,presence:lt,postgres_changes:(ae=(re=this.bindings.postgres_changes)===null||re===void 0?void 0:re.map((C=>C.filter)))!==null&&ae!==void 0?ae:[],private:Pt};if(this.socket.accessToken){Wt.access_token=this.socket.accessToken}this.updateJoinPayload(Object.assign({config:Ar},Wt));this.joinedOnce=true;this._rejoin(q);this.joinPush.receive("ok",(({postgres_changes:q})=>{var re;this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken);if(q===undefined){C&&C("SUBSCRIBED");return}else{const ae=this.bindings.postgres_changes;const Ue=(re=ae===null||ae===void 0?void 0:ae.length)!==null&&re!==void 0?re:0;const lt=[];for(let re=0;re{C&&C("CHANNEL_ERROR",new Error(JSON.stringify(Object.values(q).join(", ")||"error")));return})).receive("timeout",(()=>{C&&C("TIMED_OUT");return}))}return this}presenceState(){return this.presence.state}async track(C,q={}){return await this.send({type:"presence",event:"track",payload:C},q.timeout||this.timeout)}async untrack(C={}){return await this.send({type:"presence",event:"untrack"},C)}on(C,q,re){return this._on(C,q,re)}async send(C,q={}){var re,ae;if(!this._canPush()&&C.type==="broadcast"){const{event:Ue,payload:lt}=C;const Pt={method:"POST",headers:{Authorization:this.socket.accessToken?`Bearer ${this.socket.accessToken}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:Ue,payload:lt,private:this.private}]})};try{const C=await this._fetchWithTimeout(this.broadcastEndpointURL,Pt,(re=q.timeout)!==null&&re!==void 0?re:this.timeout);await((ae=C.body)===null||ae===void 0?void 0:ae.cancel());return C.ok?"ok":"error"}catch(C){if(C.name==="AbortError"){return"timed out"}else{return"error"}}}else{return new Promise((re=>{var ae,Ue,lt;const Pt=this._push(C.type,C,q.timeout||this.timeout);if(C.type==="broadcast"&&!((lt=(Ue=(ae=this.params)===null||ae===void 0?void 0:ae.config)===null||Ue===void 0?void 0:Ue.broadcast)===null||lt===void 0?void 0:lt.ack)){re("ok")}Pt.receive("ok",(()=>re("ok")));Pt.receive("error",(()=>re("error")));Pt.receive("timeout",(()=>re("timed out")))}))}}updateJoinPayload(C){this.joinPush.updatePayload(C)}unsubscribe(C=this.timeout){this.state=Wt.CHANNEL_STATES.leaving;const onClose=()=>{this.socket.log("channel",`leave ${this.topic}`);this._trigger(Wt.CHANNEL_EVENTS.close,"leave",this._joinRef())};this.rejoinTimer.reset();this.joinPush.destroy();return new Promise((q=>{const re=new Ar.default(this,Wt.CHANNEL_EVENTS.leave,{},C);re.receive("ok",(()=>{onClose();q("ok")})).receive("timeout",(()=>{onClose();q("timed out")})).receive("error",(()=>{q("error")}));re.send();if(!this._canPush()){re.trigger("ok",{})}}))}async _fetchWithTimeout(C,q,re){const ae=new AbortController;const Ue=setTimeout((()=>ae.abort()),re);const lt=await this.socket.fetch(C,Object.assign(Object.assign({},q),{signal:ae.signal}));clearTimeout(Ue);return lt}_push(C,q,re=this.timeout){if(!this.joinedOnce){throw`tried to push '${C}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`}let ae=new Ar.default(this,C,q,re);if(this._canPush()){ae.send()}else{ae.startTimeout();this.pushBuffer.push(ae)}return ae}_onMessage(C,q,re){return q}_isMember(C){return this.topic===C}_joinRef(){return this.joinPush.ref}_trigger(C,q,re){var ae,Ue;const lt=C.toLocaleLowerCase();const{close:Pt,error:Ar,leave:Er,join:Ir}=Wt.CHANNEL_EVENTS;const Br=[Pt,Ar,Er,Ir];if(re&&Br.indexOf(lt)>=0&&re!==this._joinRef()){return}let kr=this._onMessage(lt,q,re);if(q&&!kr){throw"channel onMessage callbacks must return the payload, modified or unmodified"}if(["insert","update","delete"].includes(lt)){(ae=this.bindings.postgres_changes)===null||ae===void 0?void 0:ae.filter((C=>{var q,re,ae;return((q=C.filter)===null||q===void 0?void 0:q.event)==="*"||((ae=(re=C.filter)===null||re===void 0?void 0:re.event)===null||ae===void 0?void 0:ae.toLocaleLowerCase())===lt})).map((C=>C.callback(kr,re)))}else{(Ue=this.bindings[lt])===null||Ue===void 0?void 0:Ue.filter((C=>{var re,ae,Ue,Pt,Wt,Ar;if(["broadcast","presence","postgres_changes"].includes(lt)){if("id"in C){const lt=C.id;const Pt=(re=C.filter)===null||re===void 0?void 0:re.event;return lt&&((ae=q.ids)===null||ae===void 0?void 0:ae.includes(lt))&&(Pt==="*"||(Pt===null||Pt===void 0?void 0:Pt.toLocaleLowerCase())===((Ue=q.data)===null||Ue===void 0?void 0:Ue.type.toLocaleLowerCase()))}else{const re=(Wt=(Pt=C===null||C===void 0?void 0:C.filter)===null||Pt===void 0?void 0:Pt.event)===null||Wt===void 0?void 0:Wt.toLocaleLowerCase();return re==="*"||re===((Ar=q===null||q===void 0?void 0:q.event)===null||Ar===void 0?void 0:Ar.toLocaleLowerCase())}}else{return C.type.toLocaleLowerCase()===lt}})).map((C=>{if(typeof kr==="object"&&"ids"in kr){const C=kr.data;const{schema:q,table:re,commit_timestamp:ae,type:Ue,errors:lt}=C;const Pt={schema:q,table:re,commit_timestamp:ae,eventType:Ue,new:{},old:{},errors:lt};kr=Object.assign(Object.assign({},Pt),this._getPayloadRecords(C))}C.callback(kr,re)}))}}_isClosed(){return this.state===Wt.CHANNEL_STATES.closed}_isJoined(){return this.state===Wt.CHANNEL_STATES.joined}_isJoining(){return this.state===Wt.CHANNEL_STATES.joining}_isLeaving(){return this.state===Wt.CHANNEL_STATES.leaving}_replyEventName(C){return`chan_reply_${C}`}_on(C,q,re){const ae=C.toLocaleLowerCase();const Ue={type:ae,filter:q,callback:re};if(this.bindings[ae]){this.bindings[ae].push(Ue)}else{this.bindings[ae]=[Ue]}return this}_off(C,q){const re=C.toLocaleLowerCase();this.bindings[re]=this.bindings[re].filter((C=>{var ae;return!(((ae=C.type)===null||ae===void 0?void 0:ae.toLocaleLowerCase())===re&&RealtimeChannel.isEqual(C.filter,q))}));return this}static isEqual(C,q){if(Object.keys(C).length!==Object.keys(q).length){return false}for(const re in C){if(C[re]!==q[re]){return false}}return true}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout();if(this.socket.isConnected()){this._rejoin()}}_onClose(C){this._on(Wt.CHANNEL_EVENTS.close,{},C)}_onError(C){this._on(Wt.CHANNEL_EVENTS.error,{},(q=>C(q)))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(C=this.timeout){if(this._isLeaving()){return}this.socket._leaveOpenTopic(this.topic);this.state=Wt.CHANNEL_STATES.joining;this.joinPush.resend(C)}_getPayloadRecords(C){const q={new:{},old:{}};if(C.type==="INSERT"||C.type==="UPDATE"){q.new=Br.convertChangeData(C.columns,C.record)}if(C.type==="UPDATE"||C.type==="DELETE"){q.old=Br.convertChangeData(C.columns,C.old_record)}return q}}q["default"]=RealtimeChannel},73955:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});const Wt=re(29680);const Ar=Pt(re(72049));const Er=Pt(re(99920));const Ir=re(93429);const Br=Pt(re(38093));const noop=()=>{};const kr=typeof WebSocket!=="undefined";const Pr=`\n addEventListener("message", (e) => {\n if (e.data.event === "start") {\n setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);\n }\n });`;class RealtimeClient{constructor(C,q){var ae;this.accessToken=null;this.apiKey=null;this.channels=[];this.endPoint="";this.httpEndpoint="";this.headers=Wt.DEFAULT_HEADERS;this.params={};this.timeout=Wt.DEFAULT_TIMEOUT;this.heartbeatIntervalMs=3e4;this.heartbeatTimer=undefined;this.pendingHeartbeatRef=null;this.ref=0;this.logger=noop;this.conn=null;this.sendBuffer=[];this.serializer=new Ar.default;this.stateChangeCallbacks={open:[],close:[],error:[],message:[]};this._resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=(...C)=>Promise.resolve().then((()=>lt(re(83318)))).then((({default:q})=>q(...C)))}else{q=fetch}return(...C)=>q(...C)};this.endPoint=`${C}/${Wt.TRANSPORTS.websocket}`;this.httpEndpoint=(0,Ir.httpEndpointURL)(C);if(q===null||q===void 0?void 0:q.transport){this.transport=q.transport}else{this.transport=null}if(q===null||q===void 0?void 0:q.params)this.params=q.params;if(q===null||q===void 0?void 0:q.headers)this.headers=Object.assign(Object.assign({},this.headers),q.headers);if(q===null||q===void 0?void 0:q.timeout)this.timeout=q.timeout;if(q===null||q===void 0?void 0:q.logger)this.logger=q.logger;if(q===null||q===void 0?void 0:q.heartbeatIntervalMs)this.heartbeatIntervalMs=q.heartbeatIntervalMs;const Ue=(ae=q===null||q===void 0?void 0:q.params)===null||ae===void 0?void 0:ae.apikey;if(Ue){this.accessToken=Ue;this.apiKey=Ue}this.reconnectAfterMs=(q===null||q===void 0?void 0:q.reconnectAfterMs)?q.reconnectAfterMs:C=>[1e3,2e3,5e3,1e4][C-1]||1e4;this.encode=(q===null||q===void 0?void 0:q.encode)?q.encode:(C,q)=>q(JSON.stringify(C));this.decode=(q===null||q===void 0?void 0:q.decode)?q.decode:this.serializer.decode.bind(this.serializer);this.reconnectTimer=new Er.default((async()=>{this.disconnect();this.connect()}),this.reconnectAfterMs);this.fetch=this._resolveFetch(q===null||q===void 0?void 0:q.fetch);if(q===null||q===void 0?void 0:q.worker){if(typeof window!=="undefined"&&!window.Worker){throw new Error("Web Worker is not supported")}this.worker=(q===null||q===void 0?void 0:q.worker)||false;this.workerUrl=q===null||q===void 0?void 0:q.workerUrl}}connect(){if(this.conn){return}if(this.transport){this.conn=new this.transport(this._endPointURL(),undefined,{headers:this.headers});return}if(kr){this.conn=new WebSocket(this._endPointURL());this.setupConnection();return}this.conn=new WSWebSocketDummy(this._endPointURL(),undefined,{close:()=>{this.conn=null}});Promise.resolve().then((()=>lt(re(11354)))).then((({default:C})=>{this.conn=new C(this._endPointURL(),undefined,{headers:this.headers});this.setupConnection()}))}disconnect(C,q){if(this.conn){this.conn.onclose=function(){};if(C){this.conn.close(C,q!==null&&q!==void 0?q:"")}else{this.conn.close()}this.conn=null;this.heartbeatTimer&&clearInterval(this.heartbeatTimer);this.reconnectTimer.reset()}}getChannels(){return this.channels}async removeChannel(C){const q=await C.unsubscribe();if(this.channels.length===0){this.disconnect()}return q}async removeAllChannels(){const C=await Promise.all(this.channels.map((C=>C.unsubscribe())));this.disconnect();return C}log(C,q,re){this.logger(C,q,re)}connectionState(){switch(this.conn&&this.conn.readyState){case Wt.SOCKET_STATES.connecting:return Wt.CONNECTION_STATE.Connecting;case Wt.SOCKET_STATES.open:return Wt.CONNECTION_STATE.Open;case Wt.SOCKET_STATES.closing:return Wt.CONNECTION_STATE.Closing;default:return Wt.CONNECTION_STATE.Closed}}isConnected(){return this.connectionState()===Wt.CONNECTION_STATE.Open}channel(C,q={config:{}}){const re=new Br.default(`realtime:${C}`,q,this);this.channels.push(re);return re}push(C){const{topic:q,event:re,payload:ae,ref:Ue}=C;const callback=()=>{this.encode(C,(C=>{var q;(q=this.conn)===null||q===void 0?void 0:q.send(C)}))};this.log("push",`${q} ${re} (${Ue})`,ae);if(this.isConnected()){callback()}else{this.sendBuffer.push(callback)}}setAuth(C){if(C){let q=null;try{q=JSON.parse(atob(C.split(".")[1]))}catch(C){}if(q&&q.exp){let C=Math.floor(Date.now()/1e3);let re=C-q.exp<0;if(!re){this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${q.exp}`);return}}}this.accessToken=C;this.channels.forEach((q=>{C&&q.updateJoinPayload({access_token:C});if(q.joinedOnce&&q._isJoined()){q._push(Wt.CHANNEL_EVENTS.access_token,{access_token:C})}}))}_makeRef(){let C=this.ref+1;if(C===this.ref){this.ref=0}else{this.ref=C}return this.ref.toString()}_leaveOpenTopic(C){let q=this.channels.find((q=>q.topic===C&&(q._isJoined()||q._isJoining())));if(q){this.log("transport",`leaving duplicate topic "${C}"`);q.unsubscribe()}}_remove(C){this.channels=this.channels.filter((q=>q._joinRef()!==C._joinRef()))}setupConnection(){if(this.conn){this.conn.binaryType="arraybuffer";this.conn.onopen=()=>this._onConnOpen();this.conn.onerror=C=>this._onConnError(C);this.conn.onmessage=C=>this._onConnMessage(C);this.conn.onclose=C=>this._onConnClose(C)}}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:Wt.VSN}))}_onConnMessage(C){this.decode(C.data,(C=>{let{topic:q,event:re,payload:ae,ref:Ue}=C;if(Ue&&Ue===this.pendingHeartbeatRef||re===(ae===null||ae===void 0?void 0:ae.type)){this.pendingHeartbeatRef=null}this.log("receive",`${ae.status||""} ${q} ${re} ${Ue&&"("+Ue+")"||""}`,ae);this.channels.filter((C=>C._isMember(q))).forEach((C=>C._trigger(re,ae,Ue)));this.stateChangeCallbacks.message.forEach((q=>q(C)))}))}async _onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`);this._flushSendBuffer();this.reconnectTimer.reset();if(!this.worker){this.heartbeatTimer&&clearInterval(this.heartbeatTimer);this.heartbeatTimer=setInterval((()=>this._sendHeartbeat()),this.heartbeatIntervalMs)}else{if(this.workerUrl){this.log("worker",`starting worker for from ${this.workerUrl}`)}else{this.log("worker",`starting default worker`)}const C=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(C);this.workerRef.onerror=C=>{this.log("worker","worker error",C.message);this.workerRef.terminate()};this.workerRef.onmessage=C=>{if(C.data.event==="keepAlive"){this._sendHeartbeat()}};this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach((C=>C()))}_onConnClose(C){this.log("transport","close",C);this._triggerChanError();this.heartbeatTimer&&clearInterval(this.heartbeatTimer);this.reconnectTimer.scheduleTimeout();this.stateChangeCallbacks.close.forEach((q=>q(C)))}_onConnError(C){this.log("transport",C.message);this._triggerChanError();this.stateChangeCallbacks.error.forEach((q=>q(C)))}_triggerChanError(){this.channels.forEach((C=>C._trigger(Wt.CHANNEL_EVENTS.error)))}_appendParams(C,q){if(Object.keys(q).length===0){return C}const re=C.match(/\?/)?"&":"?";const ae=new URLSearchParams(q);return`${C}${re}${ae}`}_flushSendBuffer(){if(this.isConnected()&&this.sendBuffer.length>0){this.sendBuffer.forEach((C=>C()));this.sendBuffer=[]}}_sendHeartbeat(){var C;if(!this.isConnected()){return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null;this.log("transport","heartbeat timeout. Attempting to re-establish connection");(C=this.conn)===null||C===void 0?void 0:C.close(Wt.WS_CLOSE_NORMAL,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});this.setAuth(this.accessToken)}_workerObjectUrl(C){let q;if(C){q=C}else{const C=new Blob([Pr],{type:"application/javascript"});q=URL.createObjectURL(C)}return q}}q["default"]=RealtimeClient;class WSWebSocketDummy{constructor(C,q,re){this.binaryType="arraybuffer";this.onclose=()=>{};this.onerror=()=>{};this.onmessage=()=>{};this.onopen=()=>{};this.readyState=Wt.SOCKET_STATES.connecting;this.send=()=>{};this.url=null;this.url=C;this.close=re.close}}},98493:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.REALTIME_PRESENCE_LISTEN_EVENTS=void 0;var re;(function(C){C["SYNC"]="sync";C["JOIN"]="join";C["LEAVE"]="leave"})(re=q.REALTIME_PRESENCE_LISTEN_EVENTS||(q.REALTIME_PRESENCE_LISTEN_EVENTS={}));class RealtimePresence{constructor(C,q){this.channel=C;this.state={};this.pendingDiffs=[];this.joinRef=null;this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const re=(q===null||q===void 0?void 0:q.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(re.state,{},(C=>{const{onJoin:q,onLeave:re,onSync:ae}=this.caller;this.joinRef=this.channel._joinRef();this.state=RealtimePresence.syncState(this.state,C,q,re);this.pendingDiffs.forEach((C=>{this.state=RealtimePresence.syncDiff(this.state,C,q,re)}));this.pendingDiffs=[];ae()}));this.channel._on(re.diff,{},(C=>{const{onJoin:q,onLeave:re,onSync:ae}=this.caller;if(this.inPendingSyncState()){this.pendingDiffs.push(C)}else{this.state=RealtimePresence.syncDiff(this.state,C,q,re);ae()}}));this.onJoin(((C,q,re)=>{this.channel._trigger("presence",{event:"join",key:C,currentPresences:q,newPresences:re})}));this.onLeave(((C,q,re)=>{this.channel._trigger("presence",{event:"leave",key:C,currentPresences:q,leftPresences:re})}));this.onSync((()=>{this.channel._trigger("presence",{event:"sync"})}))}static syncState(C,q,re,ae){const Ue=this.cloneDeep(C);const lt=this.transformState(q);const Pt={};const Wt={};this.map(Ue,((C,q)=>{if(!lt[C]){Wt[C]=q}}));this.map(lt,((C,q)=>{const re=Ue[C];if(re){const ae=q.map((C=>C.presence_ref));const Ue=re.map((C=>C.presence_ref));const lt=q.filter((C=>Ue.indexOf(C.presence_ref)<0));const Ar=re.filter((C=>ae.indexOf(C.presence_ref)<0));if(lt.length>0){Pt[C]=lt}if(Ar.length>0){Wt[C]=Ar}}else{Pt[C]=q}}));return this.syncDiff(Ue,{joins:Pt,leaves:Wt},re,ae)}static syncDiff(C,q,re,ae){const{joins:Ue,leaves:lt}={joins:this.transformState(q.joins),leaves:this.transformState(q.leaves)};if(!re){re=()=>{}}if(!ae){ae=()=>{}}this.map(Ue,((q,ae)=>{var Ue;const lt=(Ue=C[q])!==null&&Ue!==void 0?Ue:[];C[q]=this.cloneDeep(ae);if(lt.length>0){const re=C[q].map((C=>C.presence_ref));const ae=lt.filter((C=>re.indexOf(C.presence_ref)<0));C[q].unshift(...ae)}re(q,lt,ae)}));this.map(lt,((q,re)=>{let Ue=C[q];if(!Ue)return;const lt=re.map((C=>C.presence_ref));Ue=Ue.filter((C=>lt.indexOf(C.presence_ref)<0));C[q]=Ue;ae(q,Ue,re);if(Ue.length===0)delete C[q]}));return C}static map(C,q){return Object.getOwnPropertyNames(C).map((re=>q(re,C[re])))}static transformState(C){C=this.cloneDeep(C);return Object.getOwnPropertyNames(C).reduce(((q,re)=>{const ae=C[re];if("metas"in ae){q[re]=ae.metas.map((C=>{C["presence_ref"]=C["phx_ref"];delete C["phx_ref"];delete C["phx_ref_prev"];return C}))}else{q[re]=ae}return q}),{})}static cloneDeep(C){return JSON.parse(JSON.stringify(C))}onJoin(C){this.caller.onJoin=C}onLeave(C){this.caller.onLeave=C}onSync(C){this.caller.onSync=C}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}q["default"]=RealtimePresence},36209:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.REALTIME_CHANNEL_STATES=q.REALTIME_SUBSCRIBE_STATES=q.REALTIME_PRESENCE_LISTEN_EVENTS=q.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT=q.REALTIME_LISTEN_TYPES=q.RealtimeClient=q.RealtimeChannel=q.RealtimePresence=void 0;const Wt=Pt(re(73955));q.RealtimeClient=Wt.default;const Ar=lt(re(38093));q.RealtimeChannel=Ar.default;Object.defineProperty(q,"REALTIME_LISTEN_TYPES",{enumerable:true,get:function(){return Ar.REALTIME_LISTEN_TYPES}});Object.defineProperty(q,"REALTIME_POSTGRES_CHANGES_LISTEN_EVENT",{enumerable:true,get:function(){return Ar.REALTIME_POSTGRES_CHANGES_LISTEN_EVENT}});Object.defineProperty(q,"REALTIME_SUBSCRIBE_STATES",{enumerable:true,get:function(){return Ar.REALTIME_SUBSCRIBE_STATES}});Object.defineProperty(q,"REALTIME_CHANNEL_STATES",{enumerable:true,get:function(){return Ar.REALTIME_CHANNEL_STATES}});const Er=lt(re(98493));q.RealtimePresence=Er.default;Object.defineProperty(q,"REALTIME_PRESENCE_LISTEN_EVENTS",{enumerable:true,get:function(){return Er.REALTIME_PRESENCE_LISTEN_EVENTS}})},29680:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.CONNECTION_STATE=q.TRANSPORTS=q.CHANNEL_EVENTS=q.CHANNEL_STATES=q.SOCKET_STATES=q.WS_CLOSE_NORMAL=q.DEFAULT_TIMEOUT=q.VSN=q.DEFAULT_HEADERS=void 0;const ae=re(38889);q.DEFAULT_HEADERS={"X-Client-Info":`realtime-js/${ae.version}`};q.VSN="1.0.0";q.DEFAULT_TIMEOUT=1e4;q.WS_CLOSE_NORMAL=1e3;var Ue;(function(C){C[C["connecting"]=0]="connecting";C[C["open"]=1]="open";C[C["closing"]=2]="closing";C[C["closed"]=3]="closed"})(Ue=q.SOCKET_STATES||(q.SOCKET_STATES={}));var lt;(function(C){C["closed"]="closed";C["errored"]="errored";C["joined"]="joined";C["joining"]="joining";C["leaving"]="leaving"})(lt=q.CHANNEL_STATES||(q.CHANNEL_STATES={}));var Pt;(function(C){C["close"]="phx_close";C["error"]="phx_error";C["join"]="phx_join";C["reply"]="phx_reply";C["leave"]="phx_leave";C["access_token"]="access_token"})(Pt=q.CHANNEL_EVENTS||(q.CHANNEL_EVENTS={}));var Wt;(function(C){C["websocket"]="websocket"})(Wt=q.TRANSPORTS||(q.TRANSPORTS={}));var Ar;(function(C){C["Connecting"]="connecting";C["Open"]="open";C["Closing"]="closing";C["Closed"]="closed"})(Ar=q.CONNECTION_STATE||(q.CONNECTION_STATE={}))},49333:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});const ae=re(29680);class Push{constructor(C,q,re={},Ue=ae.DEFAULT_TIMEOUT){this.channel=C;this.event=q;this.payload=re;this.timeout=Ue;this.sent=false;this.timeoutTimer=undefined;this.ref="";this.receivedResp=null;this.recHooks=[];this.refEvent=null}resend(C){this.timeout=C;this._cancelRefEvent();this.ref="";this.refEvent=null;this.receivedResp=null;this.sent=false;this.send()}send(){if(this._hasReceived("timeout")){return}this.startTimeout();this.sent=true;this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()})}updatePayload(C){this.payload=Object.assign(Object.assign({},this.payload),C)}receive(C,q){var re;if(this._hasReceived(C)){q((re=this.receivedResp)===null||re===void 0?void 0:re.response)}this.recHooks.push({status:C,callback:q});return this}startTimeout(){if(this.timeoutTimer){return}this.ref=this.channel.socket._makeRef();this.refEvent=this.channel._replyEventName(this.ref);const callback=C=>{this._cancelRefEvent();this._cancelTimeout();this.receivedResp=C;this._matchReceive(C)};this.channel._on(this.refEvent,{},callback);this.timeoutTimer=setTimeout((()=>{this.trigger("timeout",{})}),this.timeout)}trigger(C,q){if(this.refEvent)this.channel._trigger(this.refEvent,{status:C,response:q})}destroy(){this._cancelRefEvent();this._cancelTimeout()}_cancelRefEvent(){if(!this.refEvent){return}this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer);this.timeoutTimer=undefined}_matchReceive({status:C,response:q}){this.recHooks.filter((q=>q.status===C)).forEach((C=>C.callback(q)))}_hasReceived(C){return this.receivedResp&&this.receivedResp.status===C}}q["default"]=Push},72049:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});class Serializer{constructor(){this.HEADER_LENGTH=1}decode(C,q){if(C.constructor===ArrayBuffer){return q(this._binaryDecode(C))}if(typeof C==="string"){return q(JSON.parse(C))}return q({})}_binaryDecode(C){const q=new DataView(C);const re=new TextDecoder;return this._decodeBroadcast(C,q,re)}_decodeBroadcast(C,q,re){const ae=q.getUint8(1);const Ue=q.getUint8(2);let lt=this.HEADER_LENGTH+2;const Pt=re.decode(C.slice(lt,lt+ae));lt=lt+ae;const Wt=re.decode(C.slice(lt,lt+Ue));lt=lt+Ue;const Ar=JSON.parse(re.decode(C.slice(lt,C.byteLength)));return{ref:null,topic:Pt,event:Wt,payload:Ar}}}q["default"]=Serializer},99920:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});class Timer{constructor(C,q){this.callback=C;this.timerCalc=q;this.timer=undefined;this.tries=0;this.callback=C;this.timerCalc=q}reset(){this.tries=0;clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer);this.timer=setTimeout((()=>{this.tries=this.tries+1;this.callback()}),this.timerCalc(this.tries+1))}}q["default"]=Timer},93429:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.httpEndpointURL=q.toTimestampString=q.toArray=q.toJson=q.toNumber=q.toBoolean=q.convertCell=q.convertColumn=q.convertChangeData=q.PostgresTypes=void 0;var re;(function(C){C["abstime"]="abstime";C["bool"]="bool";C["date"]="date";C["daterange"]="daterange";C["float4"]="float4";C["float8"]="float8";C["int2"]="int2";C["int4"]="int4";C["int4range"]="int4range";C["int8"]="int8";C["int8range"]="int8range";C["json"]="json";C["jsonb"]="jsonb";C["money"]="money";C["numeric"]="numeric";C["oid"]="oid";C["reltime"]="reltime";C["text"]="text";C["time"]="time";C["timestamp"]="timestamp";C["timestamptz"]="timestamptz";C["timetz"]="timetz";C["tsrange"]="tsrange";C["tstzrange"]="tstzrange"})(re=q.PostgresTypes||(q.PostgresTypes={}));const convertChangeData=(C,re,ae={})=>{var Ue;const lt=(Ue=ae.skipTypes)!==null&&Ue!==void 0?Ue:[];return Object.keys(re).reduce(((ae,Ue)=>{ae[Ue]=(0,q.convertColumn)(Ue,C,re,lt);return ae}),{})};q.convertChangeData=convertChangeData;const convertColumn=(C,re,ae,Ue)=>{const lt=re.find((q=>q.name===C));const Pt=lt===null||lt===void 0?void 0:lt.type;const Wt=ae[C];if(Pt&&!Ue.includes(Pt)){return(0,q.convertCell)(Pt,Wt)}return noop(Wt)};q.convertColumn=convertColumn;const convertCell=(C,ae)=>{if(C.charAt(0)==="_"){const re=C.slice(1,C.length);return(0,q.toArray)(ae,re)}switch(C){case re.bool:return(0,q.toBoolean)(ae);case re.float4:case re.float8:case re.int2:case re.int4:case re.int8:case re.numeric:case re.oid:return(0,q.toNumber)(ae);case re.json:case re.jsonb:return(0,q.toJson)(ae);case re.timestamp:return(0,q.toTimestampString)(ae);case re.abstime:case re.date:case re.daterange:case re.int4range:case re.int8range:case re.money:case re.reltime:case re.text:case re.time:case re.timestamptz:case re.timetz:case re.tsrange:case re.tstzrange:return noop(ae);default:return noop(ae)}};q.convertCell=convertCell;const noop=C=>C;const toBoolean=C=>{switch(C){case"t":return true;case"f":return false;default:return C}};q.toBoolean=toBoolean;const toNumber=C=>{if(typeof C==="string"){const q=parseFloat(C);if(!Number.isNaN(q)){return q}}return C};q.toNumber=toNumber;const toJson=C=>{if(typeof C==="string"){try{return JSON.parse(C)}catch(q){console.log(`JSON parse error: ${q}`);return C}}return C};q.toJson=toJson;const toArray=(C,re)=>{if(typeof C!=="string"){return C}const ae=C.length-1;const Ue=C[ae];const lt=C[0];if(lt==="{"&&Ue==="}"){let Ue;const lt=C.slice(1,ae);try{Ue=JSON.parse("["+lt+"]")}catch(C){Ue=lt?lt.split(","):[]}return Ue.map((C=>(0,q.convertCell)(re,C)))}return C};q.toArray=toArray;const toTimestampString=C=>{if(typeof C==="string"){return C.replace(" ","T")}return C};q.toTimestampString=toTimestampString;const httpEndpointURL=C=>{let q=C;q=q.replace(/^ws/i,"http");q=q.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,"");return q.replace(/\/+$/,"")};q.httpEndpointURL=httpEndpointURL},38889:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="2.10.9"},31373:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.StorageClient=void 0;const Ue=ae(re(15384));const lt=ae(re(64788));class StorageClient extends lt.default{constructor(C,q={},re){super(C,q,re)}from(C){return new Ue.default(this.url,this.headers,C,this.fetch)}}q.StorageClient=StorageClient},71595:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});q.StorageClient=void 0;var lt=re(31373);Object.defineProperty(q,"StorageClient",{enumerable:true,get:function(){return lt.StorageClient}});Ue(re(58362),q);Ue(re(9012),q)},28990:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.DEFAULT_HEADERS=void 0;const ae=re(7827);q.DEFAULT_HEADERS={"X-Client-Info":`storage-js/${ae.version}`}},9012:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.StorageUnknownError=q.StorageApiError=q.isStorageError=q.StorageError=void 0;class StorageError extends Error{constructor(C){super(C);this.__isStorageError=true;this.name="StorageError"}}q.StorageError=StorageError;function isStorageError(C){return typeof C==="object"&&C!==null&&"__isStorageError"in C}q.isStorageError=isStorageError;class StorageApiError extends StorageError{constructor(C,q){super(C);this.name="StorageApiError";this.status=q}toJSON(){return{name:this.name,message:this.message,status:this.status}}}q.StorageApiError=StorageApiError;class StorageUnknownError extends StorageError{constructor(C,q){super(C);this.name="StorageUnknownError";this.originalError=q}}q.StorageUnknownError=StorageUnknownError},43183:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.remove=q.head=q.put=q.post=q.get=void 0;const Ue=re(9012);const lt=re(58954);const _getErrorMessage=C=>C.msg||C.message||C.error_description||C.error||JSON.stringify(C);const handleError=(C,q,re)=>ae(void 0,void 0,void 0,(function*(){const ae=yield(0,lt.resolveResponse)();if(C instanceof ae&&!(re===null||re===void 0?void 0:re.noResolveJson)){C.json().then((re=>{q(new Ue.StorageApiError(_getErrorMessage(re),C.status||500))})).catch((C=>{q(new Ue.StorageUnknownError(_getErrorMessage(C),C))}))}else{q(new Ue.StorageUnknownError(_getErrorMessage(C),C))}}));const _getRequestParams=(C,q,re,ae)=>{const Ue={method:C,headers:(q===null||q===void 0?void 0:q.headers)||{}};if(C==="GET"){return Ue}Ue.headers=Object.assign({"Content-Type":"application/json"},q===null||q===void 0?void 0:q.headers);if(ae){Ue.body=JSON.stringify(ae)}return Object.assign(Object.assign({},Ue),re)};function _handleRequest(C,q,re,Ue,lt,Pt){return ae(this,void 0,void 0,(function*(){return new Promise(((ae,Wt)=>{C(re,_getRequestParams(q,Ue,lt,Pt)).then((C=>{if(!C.ok)throw C;if(Ue===null||Ue===void 0?void 0:Ue.noResolveJson)return C;return C.json()})).then((C=>ae(C))).catch((C=>handleError(C,Wt,Ue)))}))}))}function get(C,q,re,Ue){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"GET",q,re,Ue)}))}q.get=get;function post(C,q,re,Ue,lt){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"POST",q,Ue,lt,re)}))}q.post=post;function put(C,q,re,Ue,lt){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"PUT",q,Ue,lt,re)}))}q.put=put;function head(C,q,re,Ue){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"HEAD",q,Object.assign(Object.assign({},re),{noResolveJson:true}),Ue)}))}q.head=head;function remove(C,q,re,Ue,lt){return ae(this,void 0,void 0,(function*(){return _handleRequest(C,"DELETE",q,Ue,lt,re)}))}q.remove=remove},58954:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.recursiveToCamel=q.resolveResponse=q.resolveFetch=void 0;const resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=(...C)=>Promise.resolve().then((()=>lt(re(83318)))).then((({default:q})=>q(...C)))}else{q=fetch}return(...C)=>q(...C)};q.resolveFetch=resolveFetch;const resolveResponse=()=>Pt(void 0,void 0,void 0,(function*(){if(typeof Response==="undefined"){return(yield Promise.resolve().then((()=>lt(re(83318))))).Response}return Response}));q.resolveResponse=resolveResponse;const recursiveToCamel=C=>{if(Array.isArray(C)){return C.map((C=>(0,q.recursiveToCamel)(C)))}else if(typeof C==="function"||C!==Object(C)){return C}const re={};Object.entries(C).forEach((([C,ae])=>{const Ue=C.replace(/([-_][a-z])/gi,(C=>C.toUpperCase().replace(/[-_]/g,"")));re[Ue]=(0,q.recursiveToCamel)(ae)}));return re};q.recursiveToCamel=recursiveToCamel},58362:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},7827:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="2.7.1"},64788:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});const Ue=re(28990);const lt=re(9012);const Pt=re(43183);const Wt=re(58954);class StorageBucketApi{constructor(C,q={},re){this.url=C;this.headers=Object.assign(Object.assign({},Ue.DEFAULT_HEADERS),q);this.fetch=(0,Wt.resolveFetch)(re)}listBuckets(){return ae(this,void 0,void 0,(function*(){try{const C=yield(0,Pt.get)(this.fetch,`${this.url}/bucket`,{headers:this.headers});return{data:C,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}getBucket(C){return ae(this,void 0,void 0,(function*(){try{const q=yield(0,Pt.get)(this.fetch,`${this.url}/bucket/${C}`,{headers:this.headers});return{data:q,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}createBucket(C,q={public:false}){return ae(this,void 0,void 0,(function*(){try{const re=yield(0,Pt.post)(this.fetch,`${this.url}/bucket`,{id:C,name:C,public:q.public,file_size_limit:q.fileSizeLimit,allowed_mime_types:q.allowedMimeTypes},{headers:this.headers});return{data:re,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}updateBucket(C,q){return ae(this,void 0,void 0,(function*(){try{const re=yield(0,Pt.put)(this.fetch,`${this.url}/bucket/${C}`,{id:C,name:C,public:q.public,file_size_limit:q.fileSizeLimit,allowed_mime_types:q.allowedMimeTypes},{headers:this.headers});return{data:re,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}emptyBucket(C){return ae(this,void 0,void 0,(function*(){try{const q=yield(0,Pt.post)(this.fetch,`${this.url}/bucket/${C}/empty`,{},{headers:this.headers});return{data:q,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}deleteBucket(C){return ae(this,void 0,void 0,(function*(){try{const q=yield(0,Pt.remove)(this.fetch,`${this.url}/bucket/${C}`,{},{headers:this.headers});return{data:q,error:null}}catch(C){if((0,lt.isStorageError)(C)){return{data:null,error:C}}throw C}}))}}q["default"]=StorageBucketApi},15384:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});const Ue=re(9012);const lt=re(43183);const Pt=re(58954);const Wt={limit:100,offset:0,sortBy:{column:"name",order:"asc"}};const Ar={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:false};class StorageFileApi{constructor(C,q={},re,ae){this.url=C;this.headers=q;this.bucketId=re;this.fetch=(0,Pt.resolveFetch)(ae)}uploadOrUpdate(C,q,re,lt){return ae(this,void 0,void 0,(function*(){try{let ae;const Ue=Object.assign(Object.assign({},Ar),lt);let Pt=Object.assign(Object.assign({},this.headers),C==="POST"&&{"x-upsert":String(Ue.upsert)});const Wt=Ue.metadata;if(typeof Blob!=="undefined"&&re instanceof Blob){ae=new FormData;ae.append("cacheControl",Ue.cacheControl);if(Wt){ae.append("metadata",this.encodeMetadata(Wt))}ae.append("",re)}else if(typeof FormData!=="undefined"&&re instanceof FormData){ae=re;ae.append("cacheControl",Ue.cacheControl);if(Wt){ae.append("metadata",this.encodeMetadata(Wt))}}else{ae=re;Pt["cache-control"]=`max-age=${Ue.cacheControl}`;Pt["content-type"]=Ue.contentType;if(Wt){Pt["x-metadata"]=this.toBase64(this.encodeMetadata(Wt))}}if(lt===null||lt===void 0?void 0:lt.headers){Pt=Object.assign(Object.assign({},Pt),lt.headers)}const Er=this._removeEmptyFolders(q);const Ir=this._getFinalPath(Er);const Br=yield this.fetch(`${this.url}/object/${Ir}`,Object.assign({method:C,body:ae,headers:Pt},(Ue===null||Ue===void 0?void 0:Ue.duplex)?{duplex:Ue.duplex}:{}));const kr=yield Br.json();if(Br.ok){return{data:{path:Er,id:kr.Id,fullPath:kr.Key},error:null}}else{const C=kr;return{data:null,error:C}}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}upload(C,q,re){return ae(this,void 0,void 0,(function*(){return this.uploadOrUpdate("POST",C,q,re)}))}uploadToSignedUrl(C,q,re,lt){return ae(this,void 0,void 0,(function*(){const ae=this._removeEmptyFolders(C);const Pt=this._getFinalPath(ae);const Wt=new URL(this.url+`/object/upload/sign/${Pt}`);Wt.searchParams.set("token",q);try{let C;const q=Object.assign({upsert:Ar.upsert},lt);const Ue=Object.assign(Object.assign({},this.headers),{"x-upsert":String(q.upsert)});if(typeof Blob!=="undefined"&&re instanceof Blob){C=new FormData;C.append("cacheControl",q.cacheControl);C.append("",re)}else if(typeof FormData!=="undefined"&&re instanceof FormData){C=re;C.append("cacheControl",q.cacheControl)}else{C=re;Ue["cache-control"]=`max-age=${q.cacheControl}`;Ue["content-type"]=q.contentType}const Pt=yield this.fetch(Wt.toString(),{method:"PUT",body:C,headers:Ue});const Er=yield Pt.json();if(Pt.ok){return{data:{path:ae,fullPath:Er.Key},error:null}}else{const C=Er;return{data:null,error:C}}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}createSignedUploadUrl(C,q){return ae(this,void 0,void 0,(function*(){try{let re=this._getFinalPath(C);const ae=Object.assign({},this.headers);if(q===null||q===void 0?void 0:q.upsert){ae["x-upsert"]="true"}const Pt=yield(0,lt.post)(this.fetch,`${this.url}/object/upload/sign/${re}`,{},{headers:ae});const Wt=new URL(this.url+Pt.url);const Ar=Wt.searchParams.get("token");if(!Ar){throw new Ue.StorageError("No token returned by API")}return{data:{signedUrl:Wt.toString(),path:C,token:Ar},error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}update(C,q,re){return ae(this,void 0,void 0,(function*(){return this.uploadOrUpdate("PUT",C,q,re)}))}move(C,q,re){return ae(this,void 0,void 0,(function*(){try{const ae=yield(0,lt.post)(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:C,destinationKey:q,destinationBucket:re===null||re===void 0?void 0:re.destinationBucket},{headers:this.headers});return{data:ae,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}copy(C,q,re){return ae(this,void 0,void 0,(function*(){try{const ae=yield(0,lt.post)(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:C,destinationKey:q,destinationBucket:re===null||re===void 0?void 0:re.destinationBucket},{headers:this.headers});return{data:{path:ae.Key},error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}createSignedUrl(C,q,re){return ae(this,void 0,void 0,(function*(){try{let ae=this._getFinalPath(C);let Ue=yield(0,lt.post)(this.fetch,`${this.url}/object/sign/${ae}`,Object.assign({expiresIn:q},(re===null||re===void 0?void 0:re.transform)?{transform:re.transform}:{}),{headers:this.headers});const Pt=(re===null||re===void 0?void 0:re.download)?`&download=${re.download===true?"":re.download}`:"";const Wt=encodeURI(`${this.url}${Ue.signedURL}${Pt}`);Ue={signedUrl:Wt};return{data:Ue,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}createSignedUrls(C,q,re){return ae(this,void 0,void 0,(function*(){try{const ae=yield(0,lt.post)(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:q,paths:C},{headers:this.headers});const Ue=(re===null||re===void 0?void 0:re.download)?`&download=${re.download===true?"":re.download}`:"";return{data:ae.map((C=>Object.assign(Object.assign({},C),{signedUrl:C.signedURL?encodeURI(`${this.url}${C.signedURL}${Ue}`):null}))),error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}download(C,q){return ae(this,void 0,void 0,(function*(){const re=typeof(q===null||q===void 0?void 0:q.transform)!=="undefined";const ae=re?"render/image/authenticated":"object";const Pt=this.transformOptsToQueryString((q===null||q===void 0?void 0:q.transform)||{});const Wt=Pt?`?${Pt}`:"";try{const q=this._getFinalPath(C);const re=yield(0,lt.get)(this.fetch,`${this.url}/${ae}/${q}${Wt}`,{headers:this.headers,noResolveJson:true});const Ue=yield re.blob();return{data:Ue,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}info(C){return ae(this,void 0,void 0,(function*(){const q=this._getFinalPath(C);try{const C=yield(0,lt.get)(this.fetch,`${this.url}/object/info/${q}`,{headers:this.headers});return{data:(0,Pt.recursiveToCamel)(C),error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}exists(C){return ae(this,void 0,void 0,(function*(){const q=this._getFinalPath(C);try{yield(0,lt.head)(this.fetch,`${this.url}/object/${q}`,{headers:this.headers});return{data:true,error:null}}catch(C){if((0,Ue.isStorageError)(C)&&C instanceof Ue.StorageUnknownError){const q=C.originalError;if([400,404].includes(q===null||q===void 0?void 0:q.status)){return{data:false,error:C}}}throw C}}))}getPublicUrl(C,q){const re=this._getFinalPath(C);const ae=[];const Ue=(q===null||q===void 0?void 0:q.download)?`download=${q.download===true?"":q.download}`:"";if(Ue!==""){ae.push(Ue)}const lt=typeof(q===null||q===void 0?void 0:q.transform)!=="undefined";const Pt=lt?"render/image":"object";const Wt=this.transformOptsToQueryString((q===null||q===void 0?void 0:q.transform)||{});if(Wt!==""){ae.push(Wt)}let Ar=ae.join("&");if(Ar!==""){Ar=`?${Ar}`}return{data:{publicUrl:encodeURI(`${this.url}/${Pt}/public/${re}${Ar}`)}}}remove(C){return ae(this,void 0,void 0,(function*(){try{const q=yield(0,lt.remove)(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:C},{headers:this.headers});return{data:q,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}list(C,q,re){return ae(this,void 0,void 0,(function*(){try{const ae=Object.assign(Object.assign(Object.assign({},Wt),q),{prefix:C||""});const Ue=yield(0,lt.post)(this.fetch,`${this.url}/object/list/${this.bucketId}`,ae,{headers:this.headers},re);return{data:Ue,error:null}}catch(C){if((0,Ue.isStorageError)(C)){return{data:null,error:C}}throw C}}))}encodeMetadata(C){return JSON.stringify(C)}toBase64(C){if(typeof Buffer!=="undefined"){return Buffer.from(C).toString("base64")}return btoa(C)}_getFinalPath(C){return`${this.bucketId}/${C}`}_removeEmptyFolders(C){return C.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(C){const q=[];if(C.width){q.push(`width=${C.width}`)}if(C.height){q.push(`height=${C.height}`)}if(C.resize){q.push(`resize=${C.resize}`)}if(C.format){q.push(`format=${C.format}`)}if(C.quality){q.push(`quality=${C.quality}`)}return q.join("&")}}q["default"]=StorageFileApi},61619:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});const Ue=re(70459);const lt=re(93360);const Pt=re(36209);const Wt=re(71595);const Ar=re(23597);const Er=re(73248);const Ir=re(87301);const Br=re(15253);class SupabaseClient{constructor(C,q,re){var ae,Ue,Pt;this.supabaseUrl=C;this.supabaseKey=q;if(!C)throw new Error("supabaseUrl is required.");if(!q)throw new Error("supabaseKey is required.");const Wt=(0,Ir.stripTrailingSlash)(C);this.realtimeUrl=`${Wt}/realtime/v1`.replace(/^http/i,"ws");this.authUrl=`${Wt}/auth/v1`;this.storageUrl=`${Wt}/storage/v1`;this.functionsUrl=`${Wt}/functions/v1`;const Br=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`;const kr={db:Ar.DEFAULT_DB_OPTIONS,realtime:Ar.DEFAULT_REALTIME_OPTIONS,auth:Object.assign(Object.assign({},Ar.DEFAULT_AUTH_OPTIONS),{storageKey:Br}),global:Ar.DEFAULT_GLOBAL_OPTIONS};const Pr=(0,Ir.applySettingDefaults)(re!==null&&re!==void 0?re:{},kr);this.storageKey=(ae=Pr.auth.storageKey)!==null&&ae!==void 0?ae:"";this.headers=(Ue=Pr.global.headers)!==null&&Ue!==void 0?Ue:{};if(!Pr.accessToken){this.auth=this._initSupabaseAuthClient((Pt=Pr.auth)!==null&&Pt!==void 0?Pt:{},this.headers,Pr.global.fetch)}else{this.accessToken=Pr.accessToken;this.auth=new Proxy({},{get:(C,q)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(q)} is not possible`)}})}this.fetch=(0,Er.fetchWithAuth)(q,this._getAccessToken.bind(this),Pr.global.fetch);this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},Pr.realtime));this.rest=new lt.PostgrestClient(`${Wt}/rest/v1`,{headers:this.headers,schema:Pr.db.schema,fetch:this.fetch});if(!Pr.accessToken){this._listenForAuthEvents()}}get functions(){return new Ue.FunctionsClient(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new Wt.StorageClient(this.storageUrl,this.headers,this.fetch)}from(C){return this.rest.from(C)}schema(C){return this.rest.schema(C)}rpc(C,q={},re={}){return this.rest.rpc(C,q,re)}channel(C,q={config:{}}){return this.realtime.channel(C,q)}getChannels(){return this.realtime.getChannels()}removeChannel(C){return this.realtime.removeChannel(C)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var C,q;return ae(this,void 0,void 0,(function*(){if(this.accessToken){return yield this.accessToken()}const{data:re}=yield this.auth.getSession();return(q=(C=re.session)===null||C===void 0?void 0:C.access_token)!==null&&q!==void 0?q:null}))}_initSupabaseAuthClient({autoRefreshToken:C,persistSession:q,detectSessionInUrl:re,storage:ae,storageKey:Ue,flowType:lt,lock:Pt,debug:Wt},Ar,Er){var Ir;const kr={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Br.SupabaseAuthClient({url:this.authUrl,headers:Object.assign(Object.assign({},kr),Ar),storageKey:Ue,autoRefreshToken:C,persistSession:q,detectSessionInUrl:re,storage:ae,flowType:lt,lock:Pt,debug:Wt,fetch:Er,hasCustomAuthorizationHeader:(Ir="Authorization"in this.headers)!==null&&Ir!==void 0?Ir:false})}_initRealtimeClient(C){return new Pt.RealtimeClient(this.realtimeUrl,Object.assign(Object.assign({},C),{params:Object.assign({apikey:this.supabaseKey},C===null||C===void 0?void 0:C.params)}))}_listenForAuthEvents(){let C=this.auth.onAuthStateChange(((C,q)=>{this._handleTokenChanged(C,"CLIENT",q===null||q===void 0?void 0:q.access_token)}));return C}_handleTokenChanged(C,q,re){if((C==="TOKEN_REFRESHED"||C==="SIGNED_IN")&&this.changedAccessToken!==re){this.realtime.setAuth(re!==null&&re!==void 0?re:null);this.changedAccessToken=re}else if(C==="SIGNED_OUT"){this.realtime.setAuth(this.supabaseKey);if(q=="STORAGE")this.auth.signOut();this.changedAccessToken=undefined}}}q["default"]=SupabaseClient},85036:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};var lt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.createClient=q.SupabaseClient=q.FunctionRegion=q.FunctionsError=q.FunctionsRelayError=q.FunctionsFetchError=q.FunctionsHttpError=void 0;const Pt=lt(re(61619));Ue(re(31904),q);var Wt=re(70459);Object.defineProperty(q,"FunctionsHttpError",{enumerable:true,get:function(){return Wt.FunctionsHttpError}});Object.defineProperty(q,"FunctionsFetchError",{enumerable:true,get:function(){return Wt.FunctionsFetchError}});Object.defineProperty(q,"FunctionsRelayError",{enumerable:true,get:function(){return Wt.FunctionsRelayError}});Object.defineProperty(q,"FunctionsError",{enumerable:true,get:function(){return Wt.FunctionsError}});Object.defineProperty(q,"FunctionRegion",{enumerable:true,get:function(){return Wt.FunctionRegion}});Ue(re(36209),q);var Ar=re(61619);Object.defineProperty(q,"SupabaseClient",{enumerable:true,get:function(){return lt(Ar).default}});const createClient=(C,q,re)=>new Pt.default(C,q,re);q.createClient=createClient},15253:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.SupabaseAuthClient=void 0;const ae=re(31904);class SupabaseAuthClient extends ae.AuthClient{constructor(C){super(C)}}q.SupabaseAuthClient=SupabaseAuthClient},23597:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.DEFAULT_REALTIME_OPTIONS=q.DEFAULT_AUTH_OPTIONS=q.DEFAULT_DB_OPTIONS=q.DEFAULT_GLOBAL_OPTIONS=q.DEFAULT_HEADERS=void 0;const ae=re(50116);let Ue="";if(typeof Deno!=="undefined"){Ue="deno"}else if(typeof document!=="undefined"){Ue="web"}else if(typeof navigator!=="undefined"&&navigator.product==="ReactNative"){Ue="react-native"}else{Ue="node"}q.DEFAULT_HEADERS={"X-Client-Info":`supabase-js-${Ue}/${ae.version}`};q.DEFAULT_GLOBAL_OPTIONS={headers:q.DEFAULT_HEADERS};q.DEFAULT_DB_OPTIONS={schema:"public"};q.DEFAULT_AUTH_OPTIONS={autoRefreshToken:true,persistSession:true,detectSessionInUrl:true,flowType:"implicit"};q.DEFAULT_REALTIME_OPTIONS={}},73248:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.fetchWithAuth=q.resolveHeadersConstructor=q.resolveFetch=void 0;const Wt=lt(re(83318));const resolveFetch=C=>{let q;if(C){q=C}else if(typeof fetch==="undefined"){q=Wt.default}else{q=fetch}return(...C)=>q(...C)};q.resolveFetch=resolveFetch;const resolveHeadersConstructor=()=>{if(typeof Headers==="undefined"){return Wt.Headers}return Headers};q.resolveHeadersConstructor=resolveHeadersConstructor;const fetchWithAuth=(C,re,ae)=>{const Ue=(0,q.resolveFetch)(ae);const lt=(0,q.resolveHeadersConstructor)();return(q,ae)=>Pt(void 0,void 0,void 0,(function*(){var Pt;const Wt=(Pt=yield re())!==null&&Pt!==void 0?Pt:C;let Ar=new lt(ae===null||ae===void 0?void 0:ae.headers);if(!Ar.has("apikey")){Ar.set("apikey",C)}if(!Ar.has("Authorization")){Ar.set("Authorization",`Bearer ${Wt}`)}return Ue(q,Object.assign(Object.assign({},ae),{headers:Ar}))}))};q.fetchWithAuth=fetchWithAuth},87301:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.applySettingDefaults=q.isBrowser=q.stripTrailingSlash=q.uuid=void 0;function uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(C){var q=Math.random()*16|0,re=C=="x"?q:q&3|8;return re.toString(16)}))}q.uuid=uuid;function stripTrailingSlash(C){return C.replace(/\/$/,"")}q.stripTrailingSlash=stripTrailingSlash;const isBrowser=()=>typeof window!=="undefined";q.isBrowser=isBrowser;function applySettingDefaults(C,q){const{db:ae,auth:Ue,realtime:lt,global:Pt}=C;const{db:Wt,auth:Ar,realtime:Er,global:Ir}=q;const Br={db:Object.assign(Object.assign({},Wt),ae),auth:Object.assign(Object.assign({},Ar),Ue),realtime:Object.assign(Object.assign({},Er),lt),global:Object.assign(Object.assign({},Ir),Pt),accessToken:()=>re(this,void 0,void 0,(function*(){return""}))};if(C.accessToken){Br.accessToken=C.accessToken}else{delete Br.accessToken}return Br}q.applySettingDefaults=applySettingDefaults},50116:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="2.46.2"},17413:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});var ae=re(16577);class AbortSignal extends ae.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const C=Ue.get(this);if(typeof C!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return C}}ae.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const C=Object.create(AbortSignal.prototype);ae.EventTarget.call(C);Ue.set(C,false);return C}function abortSignal(C){if(Ue.get(C)!==false){return}Ue.set(C,true);C.dispatchEvent({type:"abort"})}const Ue=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){lt.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const lt=new WeakMap;function getSignal(C){const q=lt.get(C);if(q==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${C===null?"null":typeof C}`)}return q}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}q.AbortController=AbortController;q.AbortSignal=AbortSignal;q["default"]=AbortController;C.exports=AbortController;C.exports.AbortController=C.exports["default"]=AbortController;C.exports.AbortSignal=AbortSignal},3873:(C,q,re)=>{C.exports=re(12532);C.exports.HttpsAgent=re(10414);C.exports.constants=re(16160)},12532:(C,q,re)=>{const ae=re(58611).Agent;const Ue=re(33724);const lt=re(39023).debuglog("agentkeepalive");const{INIT_SOCKET:Pt,CURRENT_ID:Wt,CREATE_ID:Ar,SOCKET_CREATED_TIME:Er,SOCKET_NAME:Ir,SOCKET_REQUEST_COUNT:Br,SOCKET_REQUEST_FINISHED_COUNT:kr}=re(16160);let Pr=1;const Qr=parseInt(process.version.split(".",1)[0].substring(1));if(Qr>=11&&Qr<=12){Pr=2}else if(Qr>=13){Pr=3}function deprecate(C){console.log("[agentkeepalive:deprecated] %s",C)}class Agent extends ae{constructor(C){C=C||{};C.keepAlive=C.keepAlive!==false;if(C.freeSocketTimeout===undefined){C.freeSocketTimeout=4e3}if(C.keepAliveTimeout){deprecate("options.keepAliveTimeout is deprecated, please use options.freeSocketTimeout instead");C.freeSocketTimeout=C.keepAliveTimeout;delete C.keepAliveTimeout}if(C.freeSocketKeepAliveTimeout){deprecate("options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead");C.freeSocketTimeout=C.freeSocketKeepAliveTimeout;delete C.freeSocketKeepAliveTimeout}if(C.timeout===undefined){C.timeout=Math.max(C.freeSocketTimeout*2,8e3)}C.timeout=Ue(C.timeout);C.freeSocketTimeout=Ue(C.freeSocketTimeout);C.socketActiveTTL=C.socketActiveTTL?Ue(C.socketActiveTTL):0;super(C);this[Wt]=0;this.createSocketCount=0;this.createSocketCountLastCheck=0;this.createSocketErrorCount=0;this.createSocketErrorCountLastCheck=0;this.closeSocketCount=0;this.closeSocketCountLastCheck=0;this.errorSocketCount=0;this.errorSocketCountLastCheck=0;this.requestCount=0;this.requestCountLastCheck=0;this.timeoutSocketCount=0;this.timeoutSocketCountLastCheck=0;this.on("free",(C=>{const q=this.calcSocketTimeout(C);if(q>0&&C.timeout!==q){C.setTimeout(q)}}))}get freeSocketKeepAliveTimeout(){deprecate("agent.freeSocketKeepAliveTimeout is deprecated, please use agent.options.freeSocketTimeout instead");return this.options.freeSocketTimeout}get timeout(){deprecate("agent.timeout is deprecated, please use agent.options.timeout instead");return this.options.timeout}get socketActiveTTL(){deprecate("agent.socketActiveTTL is deprecated, please use agent.options.socketActiveTTL instead");return this.options.socketActiveTTL}calcSocketTimeout(C){let q=this.options.freeSocketTimeout;const re=this.options.socketActiveTTL;if(re){const ae=Date.now()-C[Er];const Ue=re-ae;if(Ue<=0){return Ue}if(q&&Ue{if(re)return;re=true;if(ae){this.createSocketErrorCount++;return q(ae)}this[Pt](Ue,C);q(ae,Ue)};const ae=super.createConnection(C,onNewCreate);if(ae)onNewCreate(null,ae);return ae}get statusChanged(){const C=this.createSocketCount!==this.createSocketCountLastCheck||this.createSocketErrorCount!==this.createSocketErrorCountLastCheck||this.closeSocketCount!==this.closeSocketCountLastCheck||this.errorSocketCount!==this.errorSocketCountLastCheck||this.timeoutSocketCount!==this.timeoutSocketCountLastCheck||this.requestCount!==this.requestCountLastCheck;if(C){this.createSocketCountLastCheck=this.createSocketCount;this.createSocketErrorCountLastCheck=this.createSocketErrorCount;this.closeSocketCountLastCheck=this.closeSocketCount;this.errorSocketCountLastCheck=this.errorSocketCount;this.timeoutSocketCountLastCheck=this.timeoutSocketCount;this.requestCountLastCheck=this.requestCount}return C}getCurrentStatus(){return{createSocketCount:this.createSocketCount,createSocketErrorCount:this.createSocketErrorCount,closeSocketCount:this.closeSocketCount,errorSocketCount:this.errorSocketCount,timeoutSocketCount:this.timeoutSocketCount,requestCount:this.requestCount,freeSockets:inspect(this.freeSockets),sockets:inspect(this.sockets),requests:inspect(this.requests)}}}function getSocketTimeout(C){return C.timeout||C._idleTimeout}function installListeners(C,q,re){lt("%s create, timeout %sms",q[Ir],getSocketTimeout(q));function onFree(){if(!q._httpMessage&&q[Br]===1)return;q[kr]++;C.requestCount++;lt("%s(requests: %s, finished: %s) free",q[Ir],q[Br],q[kr]);const ae=C.getName(re);if(q.writable&&C.requests[ae]&&C.requests[ae].length){q[Br]++;lt("%s(requests: %s, finished: %s) will be reuse on agent free event",q[Ir],q[Br],q[kr])}}q.on("free",onFree);function onClose(re){lt("%s(requests: %s, finished: %s) close, isError: %s",q[Ir],q[Br],q[kr],re);C.closeSocketCount++}q.on("close",onClose);function onTimeout(){const ae=q.listeners("timeout").length;const Ue=getSocketTimeout(q);const Pt=q._httpMessage;const Wt=Pt&&Pt.listeners("timeout").length||0;lt("%s(requests: %s, finished: %s) timeout after %sms, listeners %s, defaultTimeoutListenerCount %s, hasHttpRequest %s, HttpRequest timeoutListenerCount %s",q[Ir],q[Br],q[kr],Ue,ae,Pr,!!Pt,Wt);if(lt.enabled){lt("timeout listeners: %s",q.listeners("timeout").map((C=>C.name)).join(", "))}C.timeoutSocketCount++;const Ar=C.getName(re);if(C.freeSockets[Ar]&&C.freeSockets[Ar].indexOf(q)!==-1){q.destroy();C.removeSocket(q,re);lt("%s is free, destroy quietly",q[Ir])}else{if(Wt===0){const ae=new Error("Socket timeout");ae.code="ERR_SOCKET_TIMEOUT";ae.timeout=Ue;q.destroy(ae);C.removeSocket(q,re);lt("%s destroy with timeout error",q[Ir])}}}q.on("timeout",onTimeout);function onError(re){const ae=q.listeners("error").length;lt("%s(requests: %s, finished: %s) error: %s, listenerCount: %s",q[Ir],q[Br],q[kr],re,ae);C.errorSocketCount++;if(ae===1){lt("%s emit uncaught error event",q[Ir]);q.removeListener("error",onError);q.emit("error",re)}}q.on("error",onError);function onRemove(){lt("%s(requests: %s, finished: %s) agentRemove",q[Ir],q[Br],q[kr]);q.removeListener("close",onClose);q.removeListener("error",onError);q.removeListener("free",onFree);q.removeListener("timeout",onTimeout);q.removeListener("agentRemove",onRemove)}q.on("agentRemove",onRemove)}C.exports=Agent;function inspect(C){const q={};for(const re in C){q[re]=C[re].length}return q}},16160:C=>{C.exports={CURRENT_ID:Symbol("agentkeepalive#currentId"),CREATE_ID:Symbol("agentkeepalive#createId"),INIT_SOCKET:Symbol("agentkeepalive#initSocket"),CREATE_HTTPS_CONNECTION:Symbol("agentkeepalive#createHttpsConnection"),SOCKET_CREATED_TIME:Symbol("agentkeepalive#socketCreatedTime"),SOCKET_NAME:Symbol("agentkeepalive#socketName"),SOCKET_REQUEST_COUNT:Symbol("agentkeepalive#socketRequestCount"),SOCKET_REQUEST_FINISHED_COUNT:Symbol("agentkeepalive#socketRequestFinishedCount")}},10414:(C,q,re)=>{const ae=re(65692).Agent;const Ue=re(12532);const{INIT_SOCKET:lt,CREATE_HTTPS_CONNECTION:Pt}=re(16160);class HttpsAgent extends Ue{constructor(C){super(C);this.defaultPort=443;this.protocol="https:";this.maxCachedSessions=this.options.maxCachedSessions;if(this.maxCachedSessions===undefined){this.maxCachedSessions=100}this._sessionCache={map:{},list:[]}}createConnection(C,q){const re=this[Pt](C,q);this[lt](re,C);return re}}HttpsAgent.prototype[Pt]=ae.prototype.createConnection;["getName","_getSession","_cacheSession","_evictSession"].forEach((function(C){if(typeof ae.prototype[C]==="function"){HttpsAgent.prototype[C]=ae.prototype[C]}}));C.exports=HttpsAgent},4777:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});var ae=re(61860);var Ue=re(63168);var lt=function(){function Mutex(C){this._semaphore=new Ue.default(1,C)}Mutex.prototype.acquire=function(){return(0,ae.__awaiter)(this,void 0,void 0,(function(){var C,q;return(0,ae.__generator)(this,(function(re){switch(re.label){case 0:return[4,this._semaphore.acquire()];case 1:C=re.sent(),q=C[1];return[2,q]}}))}))};Mutex.prototype.runExclusive=function(C){return this._semaphore.runExclusive((function(){return C()}))};Mutex.prototype.isLocked=function(){return this._semaphore.isLocked()};Mutex.prototype.waitForUnlock=function(){return this._semaphore.waitForUnlock()};Mutex.prototype.release=function(){this._semaphore.release()};Mutex.prototype.cancel=function(){return this._semaphore.cancel()};return Mutex}();q["default"]=lt},63168:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});var ae=re(61860);var Ue=re(63895);var lt=function(){function Semaphore(C,q){if(q===void 0){q=Ue.E_CANCELED}this._maxConcurrency=C;this._cancelError=q;this._queue=[];this._waiters=[];if(C<=0){throw new Error("semaphore must be initialized to a positive value")}this._value=C}Semaphore.prototype.acquire=function(){var C=this;var q=this.isLocked();var re=new Promise((function(q,re){return C._queue.push({resolve:q,reject:re})}));if(!q)this._dispatch();return re};Semaphore.prototype.runExclusive=function(C){return(0,ae.__awaiter)(this,void 0,void 0,(function(){var q,re,Ue;return(0,ae.__generator)(this,(function(ae){switch(ae.label){case 0:return[4,this.acquire()];case 1:q=ae.sent(),re=q[0],Ue=q[1];ae.label=2;case 2:ae.trys.push([2,,4,5]);return[4,C(re)];case 3:return[2,ae.sent()];case 4:Ue();return[7];case 5:return[2]}}))}))};Semaphore.prototype.waitForUnlock=function(){return(0,ae.__awaiter)(this,void 0,void 0,(function(){var C;var q=this;return(0,ae.__generator)(this,(function(re){if(!this.isLocked()){return[2,Promise.resolve()]}C=new Promise((function(C){return q._waiters.push({resolve:C})}));return[2,C]}))}))};Semaphore.prototype.isLocked=function(){return this._value<=0};Semaphore.prototype.release=function(){if(this._maxConcurrency>1){throw new Error("this method is unavailable on semaphores with concurrency > 1; use the scoped release returned by acquire instead")}if(this._currentReleaser){var C=this._currentReleaser;this._currentReleaser=undefined;C()}};Semaphore.prototype.cancel=function(){var C=this;this._queue.forEach((function(q){return q.reject(C._cancelError)}));this._queue=[]};Semaphore.prototype._dispatch=function(){var C=this;var q=this._queue.shift();if(!q)return;var re=false;this._currentReleaser=function(){if(re)return;re=true;C._value++;C._resolveWaiters();C._dispatch()};q.resolve([this._value--,this._currentReleaser])};Semaphore.prototype._resolveWaiters=function(){this._waiters.forEach((function(C){return C.resolve()}));this._waiters=[]};return Semaphore}();q["default"]=lt},63895:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.E_CANCELED=q.E_ALREADY_LOCKED=q.E_TIMEOUT=void 0;q.E_TIMEOUT=new Error("timeout while waiting for mutex to become available");q.E_ALREADY_LOCKED=new Error("mutex already locked");q.E_CANCELED=new Error("request for lock canceled")},82626:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.tryAcquire=q.withTimeout=q.Semaphore=q.Mutex=void 0;var ae=re(61860);var Ue=re(4777);Object.defineProperty(q,"Mutex",{enumerable:true,get:function(){return Ue.default}});var lt=re(63168);Object.defineProperty(q,"Semaphore",{enumerable:true,get:function(){return lt.default}});var Pt=re(45753);Object.defineProperty(q,"withTimeout",{enumerable:true,get:function(){return Pt.withTimeout}});var Wt=re(36487);Object.defineProperty(q,"tryAcquire",{enumerable:true,get:function(){return Wt.tryAcquire}});(0,ae.__exportStar)(re(63895),q)},36487:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.tryAcquire=void 0;var ae=re(63895);var Ue=re(45753);function tryAcquire(C,q){if(q===void 0){q=ae.E_ALREADY_LOCKED}return(0,Ue.withTimeout)(C,0,q)}q.tryAcquire=tryAcquire},45753:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.withTimeout=void 0;var ae=re(61860);var Ue=re(63895);function withTimeout(C,q,re){var lt=this;if(re===void 0){re=Ue.E_TIMEOUT}return{acquire:function(){return new Promise((function(Ue,Pt){return(0,ae.__awaiter)(lt,void 0,void 0,(function(){var lt,Wt,Ar,Er,Ir;return(0,ae.__generator)(this,(function(ae){switch(ae.label){case 0:lt=false;Wt=setTimeout((function(){lt=true;Pt(re)}),q);ae.label=1;case 1:ae.trys.push([1,3,,4]);return[4,C.acquire()];case 2:Ar=ae.sent();if(lt){Er=Array.isArray(Ar)?Ar[1]:Ar;Er()}else{clearTimeout(Wt);Ue(Ar)}return[3,4];case 3:Ir=ae.sent();if(!lt){clearTimeout(Wt);Pt(Ir)}return[3,4];case 4:return[2]}}))}))}))},runExclusive:function(C){return(0,ae.__awaiter)(this,void 0,void 0,(function(){var q,re;return(0,ae.__generator)(this,(function(ae){switch(ae.label){case 0:q=function(){return undefined};ae.label=1;case 1:ae.trys.push([1,,7,8]);return[4,this.acquire()];case 2:re=ae.sent();if(!Array.isArray(re))return[3,4];q=re[1];return[4,C(re[0])];case 3:return[2,ae.sent()];case 4:q=re;return[4,C()];case 5:return[2,ae.sent()];case 6:return[3,8];case 7:q();return[7];case 8:return[2]}}))}))},release:function(){C.release()},cancel:function(){return C.cancel()},waitForUnlock:function(){return C.waitForUnlock()},isLocked:function(){return C.isLocked()}}}q.withTimeout=withTimeout},52732:(C,q,re)=>{var ae=re(11063);var Ue=re(22027);var lt=re(59934);var Pt=Function.bind;var Wt=Pt.bind(Pt);function bindApi(C,q,re){var ae=Wt(lt,null).apply(null,re?[q,re]:[q]);C.api={remove:ae};C.remove=ae;["before","error","after","wrap"].forEach((function(ae){var lt=re?[q,ae,re]:[q,ae];C[ae]=C.api[ae]=Wt(Ue,null).apply(null,lt)}))}function HookSingular(){var C="h";var q={registry:{}};var re=ae.bind(null,q,C);bindApi(re,q,C);return re}function HookCollection(){var C={registry:{}};var q=ae.bind(null,C);bindApi(q,C);return q}var Ar=false;function Hook(){if(!Ar){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');Ar=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();C.exports=Hook;C.exports.Hook=Hook;C.exports.Singular=Hook.Singular;C.exports.Collection=Hook.Collection},22027:C=>{C.exports=addHook;function addHook(C,q,re,ae){var Ue=ae;if(!C.registry[re]){C.registry[re]=[]}if(q==="before"){ae=function(C,q){return Promise.resolve().then(Ue.bind(null,q)).then(C.bind(null,q))}}if(q==="after"){ae=function(C,q){var re;return Promise.resolve().then(C.bind(null,q)).then((function(C){re=C;return Ue(re,q)})).then((function(){return re}))}}if(q==="error"){ae=function(C,q){return Promise.resolve().then(C.bind(null,q)).catch((function(C){return Ue(C,q)}))}}C.registry[re].push({hook:ae,orig:Ue})}},11063:C=>{C.exports=register;function register(C,q,re,ae){if(typeof re!=="function"){throw new Error("method for before hook must be a function")}if(!ae){ae={}}if(Array.isArray(q)){return q.reverse().reduce((function(q,re){return register.bind(null,C,re,q,ae)}),re)()}return Promise.resolve().then((function(){if(!C.registry[q]){return re(ae)}return C.registry[q].reduce((function(C,q){return q.hook.bind(null,C,ae)}),re)()}))}},59934:C=>{C.exports=removeHook;function removeHook(C,q,re){if(!C.registry[q]){return}var ae=C.registry[q].map((function(C){return C.orig})).indexOf(re);if(ae===-1){return}C.registry[q].splice(ae,1)}},43269:(C,q,re)=>{C=re.nmd(C);var ae=function(C){"use strict";var q=1e7,re=7,Ue=9007199254740992,lt=smallToArray(Ue),Pt="0123456789abcdefghijklmnopqrstuvwxyz";var Wt=typeof BigInt==="function";function Integer(C,q,re,ae){if(typeof C==="undefined")return Integer[0];if(typeof q!=="undefined")return+q===10&&!re?parseValue(C):parseBase(C,q,re,ae);return parseValue(C)}function BigInteger(C,q){this.value=C;this.sign=q;this.isSmall=false}BigInteger.prototype=Object.create(Integer.prototype);function SmallInteger(C){this.value=C;this.sign=C<0;this.isSmall=true}SmallInteger.prototype=Object.create(Integer.prototype);function NativeBigInt(C){this.value=C}NativeBigInt.prototype=Object.create(Integer.prototype);function isPrecise(C){return-Ue0)return Math.floor(C);return Math.ceil(C)}function add(C,re){var ae=C.length,Ue=re.length,lt=new Array(ae),Pt=0,Wt=q,Ar,Er;for(Er=0;Er=Wt?1:0;lt[Er]=Ar-Pt*Wt}while(Er0)lt.push(Pt);return lt}function addAny(C,q){if(C.length>=q.length)return add(C,q);return add(q,C)}function addSmall(C,re){var ae=C.length,Ue=new Array(ae),lt=q,Pt,Wt;for(Wt=0;Wt0){Ue[Wt++]=re%lt;re=Math.floor(re/lt)}return Ue}BigInteger.prototype.add=function(C){var q=parseValue(C);if(this.sign!==q.sign){return this.subtract(q.negate())}var re=this.value,ae=q.value;if(q.isSmall){return new BigInteger(addSmall(re,Math.abs(ae)),this.sign)}return new BigInteger(addAny(re,ae),this.sign)};BigInteger.prototype.plus=BigInteger.prototype.add;SmallInteger.prototype.add=function(C){var q=parseValue(C);var re=this.value;if(re<0!==q.sign){return this.subtract(q.negate())}var ae=q.value;if(q.isSmall){if(isPrecise(re+ae))return new SmallInteger(re+ae);ae=smallToArray(Math.abs(ae))}return new BigInteger(addSmall(ae,Math.abs(re)),re<0)};SmallInteger.prototype.plus=SmallInteger.prototype.add;NativeBigInt.prototype.add=function(C){return new NativeBigInt(this.value+parseValue(C).value)};NativeBigInt.prototype.plus=NativeBigInt.prototype.add;function subtract(C,re){var ae=C.length,Ue=re.length,lt=new Array(ae),Pt=0,Wt=q,Ar,Er;for(Ar=0;Ar=0){ae=subtract(C,q)}else{ae=subtract(q,C);re=!re}ae=arrayToSmall(ae);if(typeof ae==="number"){if(re)ae=-ae;return new SmallInteger(ae)}return new BigInteger(ae,re)}function subtractSmall(C,re,ae){var Ue=C.length,lt=new Array(Ue),Pt=-re,Wt=q,Ar,Er;for(Ar=0;Ar=0)};SmallInteger.prototype.minus=SmallInteger.prototype.subtract;NativeBigInt.prototype.subtract=function(C){return new NativeBigInt(this.value-parseValue(C).value)};NativeBigInt.prototype.minus=NativeBigInt.prototype.subtract;BigInteger.prototype.negate=function(){return new BigInteger(this.value,!this.sign)};SmallInteger.prototype.negate=function(){var C=this.sign;var q=new SmallInteger(-this.value);q.sign=!C;return q};NativeBigInt.prototype.negate=function(){return new NativeBigInt(-this.value)};BigInteger.prototype.abs=function(){return new BigInteger(this.value,false)};SmallInteger.prototype.abs=function(){return new SmallInteger(Math.abs(this.value))};NativeBigInt.prototype.abs=function(){return new NativeBigInt(this.value>=0?this.value:-this.value)};function multiplyLong(C,re){var ae=C.length,Ue=re.length,lt=ae+Ue,Pt=createArray(lt),Wt=q,Ar,Er,Ir,Br,kr;for(Ir=0;Ir0){Ue[Ar++]=Pt%lt;Pt=Math.floor(Pt/lt)}return Ue}function shiftLeft(C,q){var re=[];while(q-- >0)re.push(0);return re.concat(C)}function multiplyKaratsuba(C,q){var re=Math.max(C.length,q.length);if(re<=30)return multiplyLong(C,q);re=Math.ceil(re/2);var ae=C.slice(re),Ue=C.slice(0,re),lt=q.slice(re),Pt=q.slice(0,re);var Wt=multiplyKaratsuba(Ue,Pt),Ar=multiplyKaratsuba(ae,lt),Er=multiplyKaratsuba(addAny(Ue,ae),addAny(Pt,lt));var Ir=addAny(addAny(Wt,shiftLeft(subtract(subtract(Er,Wt),Ar),re)),shiftLeft(Ar,2*re));trim(Ir);return Ir}function useKaratsuba(C,q){return-.012*C-.012*q+15e-6*C*q>0}BigInteger.prototype.multiply=function(C){var re=parseValue(C),ae=this.value,Ue=re.value,lt=this.sign!==re.sign,Pt;if(re.isSmall){if(Ue===0)return Integer[0];if(Ue===1)return this;if(Ue===-1)return this.negate();Pt=Math.abs(Ue);if(Pt=0;kr--){Br=lt-1;if(Er[kr+Ue]!==Wt){Br=Math.floor((Er[kr+Ue]*lt+Er[kr+Ue-1])/Wt)}Pr=0;Qr=0;Dr=Ir.length;for(Fr=0;FrUe){Ir=(Ir+1)*Wt}Ar=Math.ceil(Ir/Br);do{kr=multiplySmall(re,Ar);if(compareAbs(kr,Pt)<=0)break;Ar--}while(Ar);lt.push(Ar);Pt=subtract(Pt,kr)}lt.reverse();return[arrayToSmall(lt),arrayToSmall(Pt)]}function divModSmall(C,re){var ae=C.length,Ue=createArray(ae),lt=q,Pt,Wt,Ar,Er;Ar=0;for(Pt=ae-1;Pt>=0;--Pt){Er=Ar*lt+C[Pt];Wt=truncate(Er/re);Ar=Er-Wt*re;Ue[Pt]=Wt|0}return[Ue,Ar|0]}function divModAny(C,re){var ae,Ue=parseValue(re);if(Wt){return[new NativeBigInt(C.value/Ue.value),new NativeBigInt(C.value%Ue.value)]}var lt=C.value,Pt=Ue.value;var Ar;if(Pt===0)throw new Error("Cannot divide by zero");if(C.isSmall){if(Ue.isSmall){return[new SmallInteger(truncate(lt/Pt)),new SmallInteger(lt%Pt)]}return[Integer[0],C]}if(Ue.isSmall){if(Pt===1)return[C,Integer[0]];if(Pt==-1)return[C.negate(),Integer[0]];var Er=Math.abs(Pt);if(Erq.length?1:-1}for(var re=C.length-1;re>=0;re--){if(C[re]!==q[re])return C[re]>q[re]?1:-1}return 0}BigInteger.prototype.compareAbs=function(C){var q=parseValue(C),re=this.value,ae=q.value;if(q.isSmall)return 1;return compareAbs(re,ae)};SmallInteger.prototype.compareAbs=function(C){var q=parseValue(C),re=Math.abs(this.value),ae=q.value;if(q.isSmall){ae=Math.abs(ae);return re===ae?0:re>ae?1:-1}return-1};NativeBigInt.prototype.compareAbs=function(C){var q=this.value;var re=parseValue(C).value;q=q>=0?q:-q;re=re>=0?re:-re;return q===re?0:q>re?1:-1};BigInteger.prototype.compare=function(C){if(C===Infinity){return-1}if(C===-Infinity){return 1}var q=parseValue(C),re=this.value,ae=q.value;if(this.sign!==q.sign){return q.sign?1:-1}if(q.isSmall){return this.sign?-1:1}return compareAbs(re,ae)*(this.sign?-1:1)};BigInteger.prototype.compareTo=BigInteger.prototype.compare;SmallInteger.prototype.compare=function(C){if(C===Infinity){return-1}if(C===-Infinity){return 1}var q=parseValue(C),re=this.value,ae=q.value;if(q.isSmall){return re==ae?0:re>ae?1:-1}if(re<0!==q.sign){return re<0?-1:1}return re<0?1:-1};SmallInteger.prototype.compareTo=SmallInteger.prototype.compare;NativeBigInt.prototype.compare=function(C){if(C===Infinity){return-1}if(C===-Infinity){return 1}var q=this.value;var re=parseValue(C).value;return q===re?0:q>re?1:-1};NativeBigInt.prototype.compareTo=NativeBigInt.prototype.compare;BigInteger.prototype.equals=function(C){return this.compare(C)===0};NativeBigInt.prototype.eq=NativeBigInt.prototype.equals=SmallInteger.prototype.eq=SmallInteger.prototype.equals=BigInteger.prototype.eq=BigInteger.prototype.equals;BigInteger.prototype.notEquals=function(C){return this.compare(C)!==0};NativeBigInt.prototype.neq=NativeBigInt.prototype.notEquals=SmallInteger.prototype.neq=SmallInteger.prototype.notEquals=BigInteger.prototype.neq=BigInteger.prototype.notEquals;BigInteger.prototype.greater=function(C){return this.compare(C)>0};NativeBigInt.prototype.gt=NativeBigInt.prototype.greater=SmallInteger.prototype.gt=SmallInteger.prototype.greater=BigInteger.prototype.gt=BigInteger.prototype.greater;BigInteger.prototype.lesser=function(C){return this.compare(C)<0};NativeBigInt.prototype.lt=NativeBigInt.prototype.lesser=SmallInteger.prototype.lt=SmallInteger.prototype.lesser=BigInteger.prototype.lt=BigInteger.prototype.lesser;BigInteger.prototype.greaterOrEquals=function(C){return this.compare(C)>=0};NativeBigInt.prototype.geq=NativeBigInt.prototype.greaterOrEquals=SmallInteger.prototype.geq=SmallInteger.prototype.greaterOrEquals=BigInteger.prototype.geq=BigInteger.prototype.greaterOrEquals;BigInteger.prototype.lesserOrEquals=function(C){return this.compare(C)<=0};NativeBigInt.prototype.leq=NativeBigInt.prototype.lesserOrEquals=SmallInteger.prototype.leq=SmallInteger.prototype.lesserOrEquals=BigInteger.prototype.leq=BigInteger.prototype.lesserOrEquals;BigInteger.prototype.isEven=function(){return(this.value[0]&1)===0};SmallInteger.prototype.isEven=function(){return(this.value&1)===0};NativeBigInt.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};BigInteger.prototype.isOdd=function(){return(this.value[0]&1)===1};SmallInteger.prototype.isOdd=function(){return(this.value&1)===1};NativeBigInt.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};BigInteger.prototype.isPositive=function(){return!this.sign};SmallInteger.prototype.isPositive=function(){return this.value>0};NativeBigInt.prototype.isPositive=SmallInteger.prototype.isPositive;BigInteger.prototype.isNegative=function(){return this.sign};SmallInteger.prototype.isNegative=function(){return this.value<0};NativeBigInt.prototype.isNegative=SmallInteger.prototype.isNegative;BigInteger.prototype.isUnit=function(){return false};SmallInteger.prototype.isUnit=function(){return Math.abs(this.value)===1};NativeBigInt.prototype.isUnit=function(){return this.abs().value===BigInt(1)};BigInteger.prototype.isZero=function(){return false};SmallInteger.prototype.isZero=function(){return this.value===0};NativeBigInt.prototype.isZero=function(){return this.value===BigInt(0)};BigInteger.prototype.isDivisibleBy=function(C){var q=parseValue(C);if(q.isZero())return false;if(q.isUnit())return true;if(q.compareAbs(2)===0)return this.isEven();return this.mod(q).isZero()};NativeBigInt.prototype.isDivisibleBy=SmallInteger.prototype.isDivisibleBy=BigInteger.prototype.isDivisibleBy;function isBasicPrime(C){var q=C.abs();if(q.isUnit())return false;if(q.equals(2)||q.equals(3)||q.equals(5))return true;if(q.isEven()||q.isDivisibleBy(3)||q.isDivisibleBy(5))return false;if(q.lesser(49))return true}function millerRabinTest(C,q){var re=C.prev(),Ue=re,lt=0,Pt,Wt,Ar,Er;while(Ue.isEven())Ue=Ue.divide(2),lt++;e:for(Ar=0;Ar-Ue)return new SmallInteger(C-1);return new BigInteger(lt,true)};NativeBigInt.prototype.prev=function(){return new NativeBigInt(this.value-BigInt(1))};var Ar=[1];while(2*Ar[Ar.length-1]<=q)Ar.push(2*Ar[Ar.length-1]);var Er=Ar.length,Ir=Ar[Er-1];function shift_isSmall(C){return Math.abs(C)<=q}BigInteger.prototype.shiftLeft=function(C){var q=parseValue(C).toJSNumber();if(!shift_isSmall(q)){throw new Error(String(q)+" is too large for shifting.")}if(q<0)return this.shiftRight(-q);var re=this;if(re.isZero())return re;while(q>=Er){re=re.multiply(Ir);q-=Er-1}return re.multiply(Ar[q])};NativeBigInt.prototype.shiftLeft=SmallInteger.prototype.shiftLeft=BigInteger.prototype.shiftLeft;BigInteger.prototype.shiftRight=function(C){var q;var re=parseValue(C).toJSNumber();if(!shift_isSmall(re)){throw new Error(String(re)+" is too large for shifting.")}if(re<0)return this.shiftLeft(-re);var ae=this;while(re>=Er){if(ae.isZero()||ae.isNegative()&&ae.isUnit())return ae;q=divModAny(ae,Ir);ae=q[1].isNegative()?q[0].prev():q[0];re-=Er-1}q=divModAny(ae,Ar[re]);return q[1].isNegative()?q[0].prev():q[0]};NativeBigInt.prototype.shiftRight=SmallInteger.prototype.shiftRight=BigInteger.prototype.shiftRight;function bitwise(C,q,re){q=parseValue(q);var Ue=C.isNegative(),lt=q.isNegative();var Pt=Ue?C.not():C,Wt=lt?q.not():q;var Ar=0,Er=0;var Br=null,kr=null;var Pr=[];while(!Pt.isZero()||!Wt.isZero()){Br=divModAny(Pt,Ir);Ar=Br[1].toJSNumber();if(Ue){Ar=Ir-1-Ar}kr=divModAny(Wt,Ir);Er=kr[1].toJSNumber();if(lt){Er=Ir-1-Er}Pt=Br[0];Wt=kr[0];Pr.push(re(Ar,Er))}var Qr=re(Ue?1:0,lt?1:0)!==0?ae(-1):ae(0);for(var Fr=Pr.length-1;Fr>=0;Fr-=1){Qr=Qr.multiply(Ir).add(ae(Pr[Fr]))}return Qr}BigInteger.prototype.not=function(){return this.negate().prev()};NativeBigInt.prototype.not=SmallInteger.prototype.not=BigInteger.prototype.not;BigInteger.prototype.and=function(C){return bitwise(this,C,(function(C,q){return C&q}))};NativeBigInt.prototype.and=SmallInteger.prototype.and=BigInteger.prototype.and;BigInteger.prototype.or=function(C){return bitwise(this,C,(function(C,q){return C|q}))};NativeBigInt.prototype.or=SmallInteger.prototype.or=BigInteger.prototype.or;BigInteger.prototype.xor=function(C){return bitwise(this,C,(function(C,q){return C^q}))};NativeBigInt.prototype.xor=SmallInteger.prototype.xor=BigInteger.prototype.xor;var Br=1<<30,kr=(q&-q)*(q&-q)|Br;function roughLOB(C){var re=C.value,ae=typeof re==="number"?re|Br:typeof re==="bigint"?re|BigInt(Br):re[0]+re[1]*q|kr;return ae&-ae}function integerLogarithm(C,q){if(q.compareTo(C)<=0){var re=integerLogarithm(C,q.square(q));var Ue=re.p;var lt=re.e;var Pt=Ue.multiply(q);return Pt.compareTo(C)<=0?{p:Pt,e:lt*2+1}:{p:Ue,e:lt*2}}return{p:ae(1),e:0}}BigInteger.prototype.bitLength=function(){var C=this;if(C.compareTo(ae(0))<0){C=C.negate().subtract(ae(1))}if(C.compareTo(ae(0))===0){return ae(0)}return ae(integerLogarithm(C,ae(2)).e).add(ae(1))};NativeBigInt.prototype.bitLength=SmallInteger.prototype.bitLength=BigInteger.prototype.bitLength;function max(C,q){C=parseValue(C);q=parseValue(q);return C.greater(q)?C:q}function min(C,q){C=parseValue(C);q=parseValue(q);return C.lesser(q)?C:q}function gcd(C,q){C=parseValue(C).abs();q=parseValue(q).abs();if(C.equals(q))return C;if(C.isZero())return q;if(q.isZero())return C;var re=Integer[1],ae,Ue;while(C.isEven()&&q.isEven()){ae=min(roughLOB(C),roughLOB(q));C=C.divide(ae);q=q.divide(ae);re=re.multiply(ae)}while(C.isEven()){C=C.divide(roughLOB(C))}do{while(q.isEven()){q=q.divide(roughLOB(q))}if(C.greater(q)){Ue=q;q=C;C=Ue}q=q.subtract(C)}while(!q.isZero());return re.isUnit()?C:C.multiply(re)}function lcm(C,q){C=parseValue(C).abs();q=parseValue(q).abs();return C.divide(gcd(C,q)).multiply(q)}function randBetween(C,re,ae){C=parseValue(C);re=parseValue(re);var Ue=ae||Math.random;var lt=min(C,re),Pt=max(C,re);var Wt=Pt.subtract(lt).add(1);if(Wt.isSmall)return lt.add(Math.floor(Ue()*Wt));var Ar=toBase(Wt,q).value;var Er=[],Ir=true;for(var Br=0;Br=Wt){if(Er==="1"&&Wt===1)continue;throw new Error(Er+" is not a valid digit in base "+q+".")}}}q=parseValue(q);var Ir=[];var Br=C[0]==="-";for(lt=Br?1:0;lt"&<=0;lt--){ae=ae.add(C[lt].times(Ue));Ue=Ue.times(q)}return re?ae.negate():ae}function stringify(C,q){q=q||Pt;if(C"}function toBase(C,q){q=ae(q);if(q.isZero()){if(C.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(q.equals(-1)){if(C.isZero())return{value:[0],isNegative:false};if(C.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-C.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var re=Array.apply(null,Array(C.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);re.unshift([1]);return{value:[].concat.apply([],re),isNegative:false}}var Ue=false;if(C.isNegative()&&q.isPositive()){Ue=true;C=C.abs()}if(q.isUnit()){if(C.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(C.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:Ue}}var lt=[];var Pt=C,Wt;while(Pt.isNegative()||Pt.compareAbs(q)>=0){Wt=Pt.divmod(q);Pt=Wt.quotient;var Ar=Wt.remainder;if(Ar.isNegative()){Ar=q.minus(Ar).abs();Pt=Pt.next()}lt.push(Ar.toJSNumber())}lt.push(Pt.toJSNumber());return{value:lt.reverse(),isNegative:Ue}}function toBaseString(C,q,re){var ae=toBase(C,q);return(ae.isNegative?"-":"")+ae.value.map((function(C){return stringify(C,re)})).join("")}BigInteger.prototype.toArray=function(C){return toBase(this,C)};SmallInteger.prototype.toArray=function(C){return toBase(this,C)};NativeBigInt.prototype.toArray=function(C){return toBase(this,C)};BigInteger.prototype.toString=function(q,re){if(q===C)q=10;if(q!==10||re)return toBaseString(this,q,re);var ae=this.value,Ue=ae.length,lt=String(ae[--Ue]),Pt="0000000",Wt;while(--Ue>=0){Wt=String(ae[Ue]);lt+=Pt.slice(Wt.length)+Wt}var Ar=this.sign?"-":"";return Ar+lt};SmallInteger.prototype.toString=function(q,re){if(q===C)q=10;if(q!=10||re)return toBaseString(this,q,re);return String(this.value)};NativeBigInt.prototype.toString=SmallInteger.prototype.toString;NativeBigInt.prototype.toJSON=BigInteger.prototype.toJSON=SmallInteger.prototype.toJSON=function(){return this.toString()};BigInteger.prototype.valueOf=function(){return parseInt(this.toString(),10)};BigInteger.prototype.toJSNumber=BigInteger.prototype.valueOf;SmallInteger.prototype.valueOf=function(){return this.value};SmallInteger.prototype.toJSNumber=SmallInteger.prototype.valueOf;NativeBigInt.prototype.valueOf=NativeBigInt.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function parseStringValue(C){if(isPrecise(+C)){var q=+C;if(q===truncate(q))return Wt?new NativeBigInt(BigInt(q)):new SmallInteger(q);throw new Error("Invalid integer: "+C)}var ae=C[0]==="-";if(ae)C=C.slice(1);var Ue=C.split(/e/i);if(Ue.length>2)throw new Error("Invalid integer: "+Ue.join("e"));if(Ue.length===2){var lt=Ue[1];if(lt[0]==="+")lt=lt.slice(1);lt=+lt;if(lt!==truncate(lt)||!isPrecise(lt))throw new Error("Invalid integer: "+lt+" is not a valid exponent.");var Pt=Ue[0];var Ar=Pt.indexOf(".");if(Ar>=0){lt-=Pt.length-Ar-1;Pt=Pt.slice(0,Ar)+Pt.slice(Ar+1)}if(lt<0)throw new Error("Cannot include negative exponent part for integers");Pt+=new Array(lt+1).join("0");C=Pt}var Er=/^([0-9][0-9]*)$/.test(C);if(!Er)throw new Error("Invalid integer: "+C);if(Wt){return new NativeBigInt(BigInt(ae?"-"+C:C))}var Ir=[],Br=C.length,kr=re,Pr=Br-kr;while(Br>0){Ir.push(+C.slice(Pr,Br));Pr-=kr;if(Pr<0)Pr=0;Br-=kr}trim(Ir);return new BigInteger(Ir,ae)}function parseNumberValue(C){if(Wt){return new NativeBigInt(BigInt(C))}if(isPrecise(C)){if(C!==truncate(C))throw new Error(C+" is not an integer.");return new SmallInteger(C)}return parseStringValue(C.toString())}function parseValue(C){if(typeof C==="number"){return parseNumberValue(C)}if(typeof C==="string"){return parseStringValue(C)}if(typeof C==="bigint"){return new NativeBigInt(C)}return C}for(var Pr=0;Pr<1e3;Pr++){Integer[Pr]=parseValue(Pr);if(Pr>0)Integer[-Pr]=parseValue(-Pr)}Integer.one=Integer[1];Integer.zero=Integer[0];Integer.minusOne=Integer[-1];Integer.max=max;Integer.min=min;Integer.gcd=gcd;Integer.lcm=lcm;Integer.isInstance=function(C){return C instanceof BigInteger||C instanceof SmallInteger||C instanceof NativeBigInt};Integer.randBetween=randBetween;Integer.fromArray=function(C,q,re){return parseBaseFromArray(C.map(parseValue),parseValue(q||10),re)};return Integer}();if(true&&C.hasOwnProperty("exports")){C.exports=ae}if(typeof define==="function"&&define.amd){define((function(){return ae}))}},63251:function(C){(function(q,re){true?C.exports=re():0})(this,(function(){"use strict";var C=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(C){return C&&C["default"]||C}var load=function(C,q,re={}){var ae,Ue,lt;for(ae in q){lt=q[ae];re[ae]=(Ue=C[ae])!=null?Ue:lt}return re};var overwrite=function(C,q,re={}){var ae,Ue;for(ae in C){Ue=C[ae];if(q[ae]!==void 0){re[ae]=Ue}}return re};var q={load:load,overwrite:overwrite};var re;re=class DLList{constructor(C,q){this.incr=C;this.decr=q;this._first=null;this._last=null;this.length=0}push(C){var q;this.length++;if(typeof this.incr==="function"){this.incr()}q={value:C,prev:this._last,next:null};if(this._last!=null){this._last.next=q;this._last=q}else{this._first=this._last=q}return void 0}shift(){var C;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}C=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return C}first(){if(this._first!=null){return this._first.value}}getArray(){var C,q,re;C=this._first;re=[];while(C!=null){re.push((q=C,C=C.next,q.value))}return re}forEachShift(C){var q;q=this.shift();while(q!=null){C(q),q=this.shift()}return void 0}debug(){var C,q,re,ae,Ue;C=this._first;Ue=[];while(C!=null){Ue.push((q=C,C=C.next,{value:q.value,prev:(re=q.prev)!=null?re.value:void 0,next:(ae=q.next)!=null?ae.value:void 0}))}return Ue}};var ae=re;var Ue;Ue=class Events{constructor(C){this.instance=C;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=(C,q)=>this._addListener(C,"many",q);this.instance.once=(C,q)=>this._addListener(C,"once",q);this.instance.removeAllListeners=(C=null)=>{if(C!=null){return delete this._events[C]}else{return this._events={}}}}_addListener(C,q,re){var ae;if((ae=this._events)[C]==null){ae[C]=[]}this._events[C].push({cb:re,status:q});return this.instance}listenerCount(C){if(this._events[C]!=null){return this._events[C].length}else{return 0}}async trigger(C,...q){var re,ae;try{if(C!=="debug"){this.trigger("debug",`Event triggered: ${C}`,q)}if(this._events[C]==null){return}this._events[C]=this._events[C].filter((function(C){return C.status!=="none"}));ae=this._events[C].map((async C=>{var re,ae;if(C.status==="none"){return}if(C.status==="once"){C.status="none"}try{ae=typeof C.cb==="function"?C.cb(...q):void 0;if(typeof(ae!=null?ae.then:void 0)==="function"){return await ae}else{return ae}}catch(C){re=C;{this.trigger("error",re)}return null}}));return(await Promise.all(ae)).find((function(C){return C!=null}))}catch(C){re=C;{this.trigger("error",re)}return null}}};var lt=Ue;var Pt,Wt,Ar;Pt=ae;Wt=lt;Ar=class Queues{constructor(C){var q;this.Events=new Wt(this);this._length=0;this._lists=function(){var re,ae,Ue;Ue=[];for(q=re=1,ae=C;1<=ae?re<=ae:re>=ae;q=1<=ae?++re:--re){Ue.push(new Pt((()=>this.incr()),(()=>this.decr())))}return Ue}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(C){return this._lists[C.options.priority].push(C)}queued(C){if(C!=null){return this._lists[C].length}else{return this._length}}shiftAll(C){return this._lists.forEach((function(q){return q.forEachShift(C)}))}getFirst(C=this._lists){var q,re,ae;for(q=0,re=C.length;q0){return ae}}return[]}shiftLastFrom(C){return this.getFirst(this._lists.slice(C).reverse()).shift()}};var Er=Ar;var Ir;Ir=class BottleneckError extends Error{};var Br=Ir;var kr,Pr,Qr,Fr,Dr;Fr=10;Pr=5;Dr=q;kr=Br;Qr=class Job{constructor(C,q,re,ae,Ue,lt,Pt,Wt){this.task=C;this.args=q;this.rejectOnDrop=Ue;this.Events=lt;this._states=Pt;this.Promise=Wt;this.options=Dr.load(re,ae);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===ae.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((C,q)=>{this._resolve=C;this._reject=q}));this.retryCount=0}_sanitizePriority(C){var q;q=~~C!==C?Pr:C;if(q<0){return 0}else if(q>Fr-1){return Fr-1}else{return q}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:C,message:q="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(C!=null?C:new kr(q))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(C){var q;q=this._states.jobStatus(this.options.id);if(!(q===C||C==="DONE"&&q===null)){throw new kr(`Invalid job status ${q}, expected ${C}. 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(C,q){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:C,blocked:q})}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(C,q,re,ae){var Ue,lt,Pt;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}lt={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",lt);try{Pt=await(C!=null?C.schedule(this.options,this.task,...this.args):this.task(...this.args));if(q()){this.doDone(lt);await ae(this.options,lt);this._assertStatus("DONE");return this._resolve(Pt)}}catch(C){Ue=C;return this._onFailure(Ue,lt,q,re,ae)}}doExpire(C,q,re){var ae,Ue;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");Ue={args:this.args,options:this.options,retryCount:this.retryCount};ae=new kr(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(ae,Ue,C,q,re)}async _onFailure(C,q,re,ae,Ue){var lt,Pt;if(re()){lt=await this.Events.trigger("failed",C,q);if(lt!=null){Pt=~~lt;this.Events.trigger("retry",`Retrying ${this.options.id} after ${Pt} ms`,q);this.retryCount++;return ae(Pt)}else{this.doDone(q);await Ue(this.options,q);this._assertStatus("DONE");return this._reject(C)}}}doDone(C){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",C)}};var xr=Qr;var Mr,Ur,Nr;Nr=q;Mr=Br;Ur=class LocalDatastore{constructor(C,q,re){this.instance=C;this.storeOptions=q;this.clientId=this.instance._randomIndex();Nr.load(re,re,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 C;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(C=this.heartbeat=setInterval((()=>{var C,q,re,ae,Ue;ae=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&ae>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=ae;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&ae>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:C,reservoirIncreaseMaximum:re,reservoir:Ue}=this.storeOptions);this._lastReservoirIncrease=ae;q=re!=null?Math.min(C,re-Ue):C;if(q>0){this.storeOptions.reservoir+=q;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?C.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(C){await this.yieldLoop();return this.instance.Events.trigger("message",C.toString())}async __disconnect__(C){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(C=0){return new this.Promise((function(q,re){return setTimeout(q,C)}))}computePenalty(){var C;return(C=this.storeOptions.penalty)!=null?C:15*this.storeOptions.minTime||5e3}async __updateSettings__(C){await this.yieldLoop();Nr.overwrite(C,C,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__(C){await this.yieldLoop();return this._nextRequest+this.timeout=C}check(C,q){return this.conditionsCheck(C)&&this._nextRequest-q<=0}async __check__(C){var q;await this.yieldLoop();q=Date.now();return this.check(C,q)}async __register__(C,q,re){var ae,Ue;await this.yieldLoop();ae=Date.now();if(this.conditionsCheck(q)){this._running+=q;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=q}Ue=Math.max(this._nextRequest-ae,0);this._nextRequest=ae+Ue+this.storeOptions.minTime;return{success:true,wait:Ue,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(C,q){var re,ae,Ue;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&q>this.storeOptions.maxConcurrent){throw new Mr(`Impossible to add a job having a weight of ${q} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}ae=Date.now();Ue=this.storeOptions.highWater!=null&&C===this.storeOptions.highWater&&!this.check(q,ae);re=this.strategyIsBlock()&&(Ue||this.isBlocked(ae));if(re){this._unblockTime=ae+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:Ue,blocked:re,strategy:this.storeOptions.strategy}}async __free__(C,q){await this.yieldLoop();this._running-=q;this._done+=q;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var Lr=Ur;var jr,Gr;jr=Br;Gr=class States{constructor(C){this.status=C;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(C){var q,re;q=this._jobs[C];re=q+1;if(q!=null&&re{C[this.status[re]]=q;return C}),{})}};var Vr=Gr;var Hr,Wr;Hr=ae;Wr=class Sync{constructor(C,q){this.schedule=this.schedule.bind(this);this.name=C;this.Promise=q;this._running=0;this._queue=new Hr}isEmpty(){return this._queue.length===0}async _tryToRun(){var C,q,re,ae,Ue,lt,Pt;if(this._running<1&&this._queue.length>0){this._running++;({task:Pt,args:C,resolve:Ue,reject:ae}=this._queue.shift());q=await async function(){try{lt=await Pt(...C);return function(){return Ue(lt)}}catch(C){re=C;return function(){return ae(re)}}}();this._running--;this._tryToRun();return q()}}schedule(C,...q){var re,ae,Ue;Ue=ae=null;re=new this.Promise((function(C,q){Ue=C;return ae=q}));this._queue.push({task:C,args:q,resolve:Ue,reject:ae});this._tryToRun();return re}};var $r=Wr;var Kr="2.19.5";var zr={version:Kr};var Jr=Object.freeze({version:Kr,default:zr});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 Yr,Xr,Zr,en,tn,rn;rn=q;Yr=lt;en=require$$2;Zr=require$$3;tn=require$$4;Xr=function(){class Group{constructor(C={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=C;rn.load(this.limiterOptions,this.defaults,this);this.Events=new Yr(this);this.instances={};this.Bottleneck=In;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new en(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new Zr(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(C=""){var q;return(q=this.instances[C])!=null?q:(()=>{var q;q=this.instances[C]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${C}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",q,C);return q})()}async deleteKey(C=""){var q,re;re=this.instances[C];if(this.connection){q=await this.connection.__runCommand__(["del",...tn.allKeys(`${this.id}-${C}`)])}if(re!=null){delete this.instances[C];await re.disconnect()}return re!=null||q>0}limiters(){var C,q,re,ae;q=this.instances;re=[];for(C in q){ae=q[C];re.push({key:C,limiter:ae})}return re}keys(){return Object.keys(this.instances)}async clusterKeys(){var C,q,re,ae,Ue,lt,Pt,Wt,Ar;if(this.connection==null){return this.Promise.resolve(this.keys())}lt=[];C=null;Ar=`b_${this.id}-`.length;q="_settings".length;while(C!==0){[Wt,re]=await this.connection.__runCommand__(["scan",C!=null?C:0,"match",`b_${this.id}-*_settings`,"count",1e4]);C=~~Wt;for(ae=0,Pt=re.length;ae{var C,q,re,ae,Ue,lt;Ue=Date.now();re=this.instances;ae=[];for(q in re){lt=re[q];try{if(await lt._store.__groupCheck__(Ue)){ae.push(this.deleteKey(q))}else{ae.push(void 0)}}catch(q){C=q;ae.push(lt.Events.trigger("error",C))}}return ae}),this.timeout/2)).unref==="function"?C.unref():void 0}updateSettings(C={}){rn.overwrite(C,this.defaults,this);rn.overwrite(C,C,this.limiterOptions);if(C.timeout!=null){return this._startAutoCleanup()}}disconnect(C=true){var q;if(!this.sharedConnection){return(q=this.connection)!=null?q.disconnect(C):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(C);var nn=Xr;var sn,an,cn;cn=q;an=lt;sn=function(){class Batcher{constructor(C={}){this.options=C;cn.load(this.options,this.defaults,this);this.Events=new an(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((C,q)=>this._resolve=C))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(C){var q;this._arr.push(C);q=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 q}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(C);var ln=sn;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var un=getCjsExportFromNamespace(Jr);var dn,pn,fn,hn,gn,An,mn,_n,yn,bn,En,vn=[].splice;An=10;pn=5;En=q;mn=Er;hn=xr;gn=Lr;_n=require$$4$1;fn=lt;yn=Vr;bn=$r;dn=function(){class Bottleneck{constructor(C={},...q){var re,ae;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(C,q);En.load(C,this.instanceDefaults,this);this._queues=new mn(An);this._scheduled={};this._states=new yn(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new fn(this);this._submitLock=new bn("submit",this.Promise);this._registerLock=new bn("register",this.Promise);ae=En.load(C,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){re=En.load(C,this.redisStoreDefaults,{});return new _n(this,ae,re)}else if(this.datastore==="local"){re=En.load(C,this.localStoreDefaults,{});return new gn(this,ae,re)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var C;return(C=this._store.heartbeat)!=null?typeof C.ref==="function"?C.ref():void 0:void 0}));this._queues.on("zero",(()=>{var C;return(C=this._store.heartbeat)!=null?typeof C.unref==="function"?C.unref():void 0:void 0}))}_validateOptions(C,q){if(!(C!=null&&typeof C==="object"&&q.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(C){return this._store.__publish__(C)}disconnect(C=true){return this._store.__disconnect__(C)}chain(C){this._limiter=C;return this}queued(C){return this._queues.queued(C)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(C){return this._states.jobStatus(C)}jobs(C){return this._states.statusJobs(C)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(C=1){return this._store.__check__(C)}_clearGlobalState(C){if(this._scheduled[C]!=null){clearTimeout(this._scheduled[C].expiration);delete this._scheduled[C];return true}else{return false}}async _free(C,q,re,ae){var Ue,lt;try{({running:lt}=await this._store.__free__(C,re.weight));this.Events.trigger("debug",`Freed ${re.id}`,ae);if(lt===0&&this.empty()){return this.Events.trigger("idle")}}catch(C){Ue=C;return this.Events.trigger("error",Ue)}}_run(C,q,re){var ae,Ue,lt;q.doRun();ae=this._clearGlobalState.bind(this,C);lt=this._run.bind(this,C,q);Ue=this._free.bind(this,C,q);return this._scheduled[C]={timeout:setTimeout((()=>q.doExecute(this._limiter,ae,lt,Ue)),re),expiration:q.options.expiration!=null?setTimeout((function(){return q.doExpire(ae,lt,Ue)}),re+q.options.expiration):void 0,job:q}}_drainOne(C){return this._registerLock.schedule((()=>{var q,re,ae,Ue,lt;if(this.queued()===0){return this.Promise.resolve(null)}lt=this._queues.getFirst();({options:Ue,args:q}=ae=lt.first());if(C!=null&&Ue.weight>C){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${Ue.id}`,{args:q,options:Ue});re=this._randomIndex();return this._store.__register__(re,Ue.weight,Ue.expiration).then((({success:C,wait:Pt,reservoir:Wt})=>{var Ar;this.Events.trigger("debug",`Drained ${Ue.id}`,{success:C,args:q,options:Ue});if(C){lt.shift();Ar=this.empty();if(Ar){this.Events.trigger("empty")}if(Wt===0){this.Events.trigger("depleted",Ar)}this._run(re,ae,Pt);return this.Promise.resolve(Ue.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(C,q=0){return this._drainOne(C).then((re=>{var ae;if(re!=null){ae=C!=null?C-re:C;return this._drainAll(ae,q+re)}else{return this.Promise.resolve(q)}})).catch((C=>this.Events.trigger("error",C)))}_dropAllQueued(C){return this._queues.shiftAll((function(q){return q.doDrop({message:C})}))}stop(C={}){var q,re;C=En.load(C,this.stopDefaults);re=C=>{var q;q=()=>{var q;q=this._states.counts;return q[0]+q[1]+q[2]+q[3]===C};return new this.Promise(((C,re)=>{if(q()){return C()}else{return this.on("done",(()=>{if(q()){this.removeAllListeners("done");return C()}}))}}))};q=C.dropWaitingJobs?(this._run=function(q,re){return re.doDrop({message:C.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var q,ae,Ue;ae=this._scheduled;for(q in ae){Ue=ae[q];if(this.jobStatus(Ue.job.options.id)==="RUNNING"){clearTimeout(Ue.timeout);clearTimeout(Ue.expiration);Ue.job.doDrop({message:C.dropErrorMessage})}}this._dropAllQueued(C.dropErrorMessage);return re(0)}))))):this.schedule({priority:An-1,weight:0},(()=>re(1)));this._receive=function(q){return q._reject(new Bottleneck.prototype.BottleneckError(C.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return q}async _addToQueue(C){var q,re,ae,Ue,lt,Pt,Wt;({args:q,options:Ue}=C);try{({reachedHWM:lt,blocked:re,strategy:Wt}=await this._store.__submit__(this.queued(),Ue.weight))}catch(re){ae=re;this.Events.trigger("debug",`Could not queue ${Ue.id}`,{args:q,options:Ue,error:ae});C.doDrop({error:ae});return false}if(re){C.doDrop();return true}else if(lt){Pt=Wt===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(Ue.priority):Wt===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(Ue.priority+1):Wt===Bottleneck.prototype.strategy.OVERFLOW?C:void 0;if(Pt!=null){Pt.doDrop()}if(Pt==null||Wt===Bottleneck.prototype.strategy.OVERFLOW){if(Pt==null){C.doDrop()}return lt}}C.doQueue(lt,re);this._queues.push(C);await this._drainAll();return lt}_receive(C){if(this._states.jobStatus(C.options.id)!=null){C._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${C.options.id})`));return false}else{C.doReceive();return this._submitLock.schedule(this._addToQueue,C)}}submit(...C){var q,re,ae,Ue,lt,Pt,Wt;if(typeof C[0]==="function"){lt=C,[re,...C]=lt,[q]=vn.call(C,-1);Ue=En.load({},this.jobDefaults)}else{Pt=C,[Ue,re,...C]=Pt,[q]=vn.call(C,-1);Ue=En.load(Ue,this.jobDefaults)}Wt=(...C)=>new this.Promise((function(q,ae){return re(...C,(function(...C){return(C[0]!=null?ae:q)(C)}))}));ae=new hn(Wt,C,Ue,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);ae.promise.then((function(C){return typeof q==="function"?q(...C):void 0})).catch((function(C){if(Array.isArray(C)){return typeof q==="function"?q(...C):void 0}else{return typeof q==="function"?q(C):void 0}}));return this._receive(ae)}schedule(...C){var q,re,ae;if(typeof C[0]==="function"){[ae,...C]=C;re={}}else{[re,ae,...C]=C}q=new hn(ae,C,re,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(q);return q.promise}wrap(C){var q,re;q=this.schedule.bind(this);re=function(...re){return q(C.bind(this),...re)};re.withOptions=function(re,...ae){return q(re,C,...ae)};return re}async updateSettings(C={}){await this._store.__updateSettings__(En.overwrite(C,this.storeDefaults));En.overwrite(C,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(C=0){return this._store.__incrementReservoir__(C)}}Bottleneck.default=Bottleneck;Bottleneck.Events=fn;Bottleneck.version=Bottleneck.prototype.version=un.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=Br;Bottleneck.Group=Bottleneck.prototype.Group=nn;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=ln;Bottleneck.prototype.jobDefaults={priority:pn,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(C);var In=dn;var wn=In;return wn}))},60798:C=>{const mask=(C,q,re,ae,Ue)=>{for(var lt=0;lt{const re=C.length;for(var ae=0;ae{try{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)(re.ab+"prebuilds/linux-x64/node.napi.node")}catch(q){C.exports=re(60798)}},12856:(C,q,re)=>{var ae=re(60470);var Ue=re(53844);var lt=Ue(ae("String.prototype.indexOf"));C.exports=function callBoundIntrinsic(C,q){var re=ae(C,!!q);if(typeof re==="function"&<(C,".prototype.")>-1){return Ue(re)}return re}},53844:(C,q,re)=>{var ae=re(37564);var Ue=re(60470);var lt=re(49346);var Pt=re(73314);var Wt=Ue("%Function.prototype.apply%");var Ar=Ue("%Function.prototype.call%");var Er=Ue("%Reflect.apply%",true)||ae.call(Ar,Wt);var Ir=re(79094);var Br=Ue("%Math.max%");C.exports=function callBind(C){if(typeof C!=="function"){throw new Pt("a function is required")}var q=Er(ae,Ar,arguments);return lt(q,1+Br(0,C.length-(arguments.length-1)),true)};var kr=function applyBind(){return Er(ae,Wt,arguments)};if(Ir){Ir(C.exports,"apply",{value:kr})}else{C.exports.apply=kr}},67449:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.createCallbackData=void 0;var ae=re(33707);var Ue=re(79600);var lt=64;var createCallbackData=function(C,q,re){var Pt;if(C.length===0){throw new Error("Callback data ID cannot be empty.")}var Wt=(Pt=re===null||re===void 0?void 0:re.delimiter)!==null&&Pt!==void 0?Pt:":";var Ar=Object.keys(q).length;var Er=Object.keys(q).sort();return{pack:function(re){var Ue=Object.keys(re).length;if(Ue!==Ar){throw new Error("Callback data serialization error. Invalid number of callback data values (defined in schema ".concat(Ar,", received ").concat(Ue,")."))}var Pt=[C];for(var Er=0,Ir=Object.keys(re).sort();Erlt){throw new Error("Callback data serialization error. Size overflow (".concat(Qr.length," > ").concat(lt,")"))}return Qr},unpack:function(re){var Ue=re.split(Wt);var lt=new Map;var Pt=Ue.shift();if(Pt!==C){throw new Error('Callback data parsing error. Invalid callback data ID ("'.concat(Pt,'" does not match "').concat(C,'").'))}if(Ue.length!==Ar){throw new Error("Callback data parsing error. Invalid number of callback data values (defined in schema ".concat(Ar,", received ").concat(Ue.length,")."))}for(var Ir=0,Br=Er;Ir{var ae;ae={value:true};ae=void 0;var Ue=re(67449);ae={enumerable:true,get:function(){return Ue.createCallbackData}}},79600:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.VALUE_REGEX=void 0;q.VALUE_REGEX=/(.+)?/},33707:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.deserialize=q.serialize=void 0;var serialize=function(C,q){if(q===Boolean){if(C===true){return"1"}else{return"0"}}return C.toString()};q.serialize=serialize;var deserialize=function(C,q){if(q===Number){var re=parseFloat(C);if(isNaN(re)){throw new Error('Callback data parsing error. Invalid number value ("'.concat(C,'")'))}return re}if(q===Boolean){if(C==="1"){return true}else if(C==="0"){return false}else{throw new Error('Callback data parsing error. Invalid boolean value ("'.concat(C,'")'))}}return C};q.deserialize=deserialize},6110:(C,q,re)=>{q.formatArgs=formatArgs;q.save=save;q.load=load;q.useColors=useColors;q.storage=localstorage();q.destroy=(()=>{let C=false;return()=>{if(!C){C=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();q.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let C;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(C=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(C[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(q){q[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+q[0]+(this.useColors?"%c ":" ")+"+"+C.exports.humanize(this.diff);if(!this.useColors){return}const re="color: "+this.color;q.splice(1,0,re,"color: inherit");let ae=0;let Ue=0;q[0].replace(/%[a-zA-Z%]/g,(C=>{if(C==="%%"){return}ae++;if(C==="%c"){Ue=ae}}));q.splice(Ue,0,re)}q.log=console.debug||console.log||(()=>{});function save(C){try{if(C){q.storage.setItem("debug",C)}else{q.storage.removeItem("debug")}}catch(C){}}function load(){let C;try{C=q.storage.getItem("debug")}catch(C){}if(!C&&typeof process!=="undefined"&&"env"in process){C=process.env.DEBUG}return C}function localstorage(){try{return localStorage}catch(C){}}C.exports=re(40897)(q);const{formatters:ae}=C.exports;ae.j=function(C){try{return JSON.stringify(C)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}}},40897:(C,q,re)=>{function setup(C){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=re(70744);createDebug.destroy=destroy;Object.keys(C).forEach((q=>{createDebug[q]=C[q]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(C){let q=0;for(let re=0;re{if(q==="%%"){return"%"}lt++;const Ue=createDebug.formatters[ae];if(typeof Ue==="function"){const ae=C[lt];q=Ue.call(re,ae);C.splice(lt,1);lt--}return q}));createDebug.formatArgs.call(re,C);const Pt=re.log||createDebug.log;Pt.apply(re,C)}debug.namespace=C;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(C);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(re!==null){return re}if(ae!==createDebug.namespaces){ae=createDebug.namespaces;Ue=createDebug.enabled(C)}return Ue},set:C=>{re=C}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(C,q){const re=createDebug(this.namespace+(typeof q==="undefined"?":":q)+C);re.log=this.log;return re}function enable(C){createDebug.save(C);createDebug.namespaces=C;createDebug.names=[];createDebug.skips=[];let q;const re=(typeof C==="string"?C:"").split(/[\s,]+/);const ae=re.length;for(q=0;q"-"+C))].join(",");createDebug.enable("");return C}function enabled(C){if(C[C.length-1]==="*"){return true}let q;let re;for(q=0,re=createDebug.skips.length;q{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){C.exports=re(6110)}else{C.exports=re(95108)}},95108:(C,q,re)=>{const ae=re(52018);const Ue=re(39023);q.init=init;q.log=log;q.formatArgs=formatArgs;q.save=save;q.load=load;q.useColors=useColors;q.destroy=Ue.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");q.colors=[6,2,3,4,5,1];try{const C=re(21450);if(C&&(C.stderr||C).level>=2){q.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(C){}q.inspectOpts=Object.keys(process.env).filter((C=>/^debug_/i.test(C))).reduce(((C,q)=>{const re=q.substring(6).toLowerCase().replace(/_([a-z])/g,((C,q)=>q.toUpperCase()));let ae=process.env[q];if(/^(yes|on|true|enabled)$/i.test(ae)){ae=true}else if(/^(no|off|false|disabled)$/i.test(ae)){ae=false}else if(ae==="null"){ae=null}else{ae=Number(ae)}C[re]=ae;return C}),{});function useColors(){return"colors"in q.inspectOpts?Boolean(q.inspectOpts.colors):ae.isatty(process.stderr.fd)}function formatArgs(q){const{namespace:re,useColors:ae}=this;if(ae){const ae=this.color;const Ue="[3"+(ae<8?ae:"8;5;"+ae);const lt=` ${Ue};1m${re} `;q[0]=lt+q[0].split("\n").join("\n"+lt);q.push(Ue+"m+"+C.exports.humanize(this.diff)+"")}else{q[0]=getDate()+re+" "+q[0]}}function getDate(){if(q.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...C){return process.stderr.write(Ue.formatWithOptions(q.inspectOpts,...C)+"\n")}function save(C){if(C){process.env.DEBUG=C}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(C){C.inspectOpts={};const re=Object.keys(q.inspectOpts);for(let ae=0;aeC.trim())).join(" ")};lt.O=function(C){this.inspectOpts.colors=this.useColors;return Ue.inspect(C,this.inspectOpts)}},31316:(C,q,re)=>{var ae=re(79094);var Ue=re(80105);var lt=re(73314);var Pt=re(33170);C.exports=function defineDataProperty(C,q,re){if(!C||typeof C!=="object"&&typeof C!=="function"){throw new lt("`obj` must be an object or a function`")}if(typeof q!=="string"&&typeof q!=="symbol"){throw new lt("`property` must be a string or a symbol`")}if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null){throw new lt("`nonEnumerable`, if provided, must be a boolean or null")}if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null){throw new lt("`nonWritable`, if provided, must be a boolean or null")}if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null){throw new lt("`nonConfigurable`, if provided, must be a boolean or null")}if(arguments.length>6&&typeof arguments[6]!=="boolean"){throw new lt("`loose`, if provided, must be a boolean")}var Wt=arguments.length>3?arguments[3]:null;var Ar=arguments.length>4?arguments[4]:null;var Er=arguments.length>5?arguments[5]:null;var Ir=arguments.length>6?arguments[6]:false;var Br=!!Pt&&Pt(C,q);if(ae){ae(C,q,{configurable:Er===null&&Br?Br.configurable:!Er,enumerable:Wt===null&&Br?Br.enumerable:!Wt,value:re,writable:Ar===null&&Br?Br.writable:!Ar})}else if(Ir||!Wt&&!Ar&&!Er){C[q]=re}else{throw new Ue("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}},14150:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});class Deprecation extends Error{constructor(C){super(C);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}q.Deprecation=Deprecation},75803:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.attributeNames=q.elementNames=void 0;q.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]);q.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},69943:function(C,q,re){var ae=this&&this.__assign||function(){ae=Object.assign||function(C){for(var q,re=1,ae=arguments.length;re0){Ue+=render(C.children,q)}if(q.xmlMode||!Br.has(C.name)){Ue+=""}}return Ue}function renderDirective(C){return"<"+C.data+">"}function renderText(C,q){var re=C.data||"";if(q.decodeEntities!==false&&!(!q.xmlMode&&C.parent&&Ir.has(C.parent.name))){re=Ar.encodeXML(re)}return re}function renderCdata(C){return""}function renderComment(C){return"\x3c!--"+C.data+"--\x3e"}},81108:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Doctype=q.CDATA=q.Tag=q.Style=q.Script=q.Comment=q.Directive=q.Text=q.Root=q.isTag=q.ElementType=void 0;var re;(function(C){C["Root"]="root";C["Text"]="text";C["Directive"]="directive";C["Comment"]="comment";C["Script"]="script";C["Style"]="style";C["Tag"]="tag";C["CDATA"]="cdata";C["Doctype"]="doctype"})(re=q.ElementType||(q.ElementType={}));function isTag(C){return C.type===re.Tag||C.type===re.Script||C.type===re.Style}q.isTag=isTag;q.Root=re.Root;q.Text=re.Text;q.Directive=re.Directive;q.Comment=re.Comment;q.Script=re.Script;q.Style=re.Style;q.Tag=re.Tag;q.CDATA=re.CDATA;q.Doctype=re.Doctype},57792:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});q.DomHandler=void 0;var lt=re(81108);var Pt=re(62446);Ue(re(62446),q);var Wt=/\s+/g;var Ar={normalizeWhitespace:false,withStartIndices:false,withEndIndices:false,xmlMode:false};var Er=function(){function DomHandler(C,q,re){this.dom=[];this.root=new Pt.Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null;if(typeof q==="function"){re=q;q=Ar}if(typeof C==="object"){q=C;C=undefined}this.callback=C!==null&&C!==void 0?C:null;this.options=q!==null&&q!==void 0?q:Ar;this.elementCB=re!==null&&re!==void 0?re:null}DomHandler.prototype.onparserinit=function(C){this.parser=C};DomHandler.prototype.onreset=function(){this.dom=[];this.root=new Pt.Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null};DomHandler.prototype.onend=function(){if(this.done)return;this.done=true;this.parser=null;this.handleCallback(null)};DomHandler.prototype.onerror=function(C){this.handleCallback(C)};DomHandler.prototype.onclosetag=function(){this.lastNode=null;var C=this.tagStack.pop();if(this.options.withEndIndices){C.endIndex=this.parser.endIndex}if(this.elementCB)this.elementCB(C)};DomHandler.prototype.onopentag=function(C,q){var re=this.options.xmlMode?lt.ElementType.Tag:undefined;var ae=new Pt.Element(C,q,undefined,re);this.addNode(ae);this.tagStack.push(ae)};DomHandler.prototype.ontext=function(C){var q=this.options.normalizeWhitespace;var re=this.lastNode;if(re&&re.type===lt.ElementType.Text){if(q){re.data=(re.data+C).replace(Wt," ")}else{re.data+=C}if(this.options.withEndIndices){re.endIndex=this.parser.endIndex}}else{if(q){C=C.replace(Wt," ")}var ae=new Pt.Text(C);this.addNode(ae);this.lastNode=ae}};DomHandler.prototype.oncomment=function(C){if(this.lastNode&&this.lastNode.type===lt.ElementType.Comment){this.lastNode.data+=C;return}var q=new Pt.Comment(C);this.addNode(q);this.lastNode=q};DomHandler.prototype.oncommentend=function(){this.lastNode=null};DomHandler.prototype.oncdatastart=function(){var C=new Pt.Text("");var q=new Pt.NodeWithChildren(lt.ElementType.CDATA,[C]);this.addNode(q);C.parent=q;this.lastNode=C};DomHandler.prototype.oncdataend=function(){this.lastNode=null};DomHandler.prototype.onprocessinginstruction=function(C,q){var re=new Pt.ProcessingInstruction(C,q);this.addNode(re)};DomHandler.prototype.handleCallback=function(C){if(typeof this.callback==="function"){this.callback(C,this.dom)}else if(C){throw C}};DomHandler.prototype.addNode=function(C){var q=this.tagStack[this.tagStack.length-1];var re=q.children[q.children.length-1];if(this.options.withStartIndices){C.startIndex=this.parser.startIndex}if(this.options.withEndIndices){C.endIndex=this.parser.endIndex}q.children.push(C);if(re){C.prev=re;re.next=C}C.parent=q;this.lastNode=null};return DomHandler}();q.DomHandler=Er;q["default"]=Er},62446:function(C,q,re){var ae=this&&this.__extends||function(){var extendStatics=function(C,q){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,q){C.__proto__=q}||function(C,q){for(var re in q)if(Object.prototype.hasOwnProperty.call(q,re))C[re]=q[re]};return extendStatics(C,q)};return function(C,q){if(typeof q!=="function"&&q!==null)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");extendStatics(C,q);function __(){this.constructor=C}C.prototype=q===null?Object.create(q):(__.prototype=q.prototype,new __)}}();var Ue=this&&this.__assign||function(){Ue=Object.assign||function(C){for(var q,re=1,ae=arguments.length;re0?this.children[this.children.length-1]:null},enumerable:false,configurable:true});Object.defineProperty(NodeWithChildren.prototype,"childNodes",{get:function(){return this.children},set:function(C){this.children=C},enumerable:false,configurable:true});return NodeWithChildren}(Wt);q.NodeWithChildren=kr;var Pr=function(C){ae(Document,C);function Document(q){return C.call(this,lt.ElementType.Root,q)||this}return Document}(kr);q.Document=Pr;var Qr=function(C){ae(Element,C);function Element(q,re,ae,Ue){if(ae===void 0){ae=[]}if(Ue===void 0){Ue=q==="script"?lt.ElementType.Script:q==="style"?lt.ElementType.Style:lt.ElementType.Tag}var Pt=C.call(this,Ue,ae)||this;Pt.name=q;Pt.attribs=re;return Pt}Object.defineProperty(Element.prototype,"tagName",{get:function(){return this.name},set:function(C){this.name=C},enumerable:false,configurable:true});Object.defineProperty(Element.prototype,"attributes",{get:function(){var C=this;return Object.keys(this.attribs).map((function(q){var re,ae;return{name:q,value:C.attribs[q],namespace:(re=C["x-attribsNamespace"])===null||re===void 0?void 0:re[q],prefix:(ae=C["x-attribsPrefix"])===null||ae===void 0?void 0:ae[q]}}))},enumerable:false,configurable:true});return Element}(kr);q.Element=Qr;function isTag(C){return(0,lt.isTag)(C)}q.isTag=isTag;function isCDATA(C){return C.type===lt.ElementType.CDATA}q.isCDATA=isCDATA;function isText(C){return C.type===lt.ElementType.Text}q.isText=isText;function isComment(C){return C.type===lt.ElementType.Comment}q.isComment=isComment;function isDirective(C){return C.type===lt.ElementType.Directive}q.isDirective=isDirective;function isDocument(C){return C.type===lt.ElementType.Root}q.isDocument=isDocument;function hasChildren(C){return Object.prototype.hasOwnProperty.call(C,"children")}q.hasChildren=hasChildren;function cloneNode(C,q){if(q===void 0){q=false}var re;if(isText(C)){re=new Er(C.data)}else if(isComment(C)){re=new Ir(C.data)}else if(isTag(C)){var ae=q?cloneChildren(C.children):[];var Pt=new Qr(C.name,Ue({},C.attribs),ae);ae.forEach((function(C){return C.parent=Pt}));if(C.namespace!=null){Pt.namespace=C.namespace}if(C["x-attribsNamespace"]){Pt["x-attribsNamespace"]=Ue({},C["x-attribsNamespace"])}if(C["x-attribsPrefix"]){Pt["x-attribsPrefix"]=Ue({},C["x-attribsPrefix"])}re=Pt}else if(isCDATA(C)){var ae=q?cloneChildren(C.children):[];var Wt=new kr(lt.ElementType.CDATA,ae);ae.forEach((function(C){return C.parent=Wt}));re=Wt}else if(isDocument(C)){var ae=q?cloneChildren(C.children):[];var Ar=new Pr(ae);ae.forEach((function(C){return C.parent=Ar}));if(C["x-mode"]){Ar["x-mode"]=C["x-mode"]}re=Ar}else if(isDirective(C)){var Fr=new Br(C.name,C.data);if(C["x-name"]!=null){Fr["x-name"]=C["x-name"];Fr["x-publicId"]=C["x-publicId"];Fr["x-systemId"]=C["x-systemId"]}re=Fr}else{throw new Error("Not implemented yet: ".concat(C.type))}re.startIndex=C.startIndex;re.endIndex=C.endIndex;if(C.sourceCodeLocation!=null){re.sourceCodeLocation=C.sourceCodeLocation}return re}q.cloneNode=cloneNode;function cloneChildren(C){var q=C.map((function(C){return cloneNode(C,true)}));for(var re=1;re{Object.defineProperty(q,"__esModule",{value:true});q.getFeed=void 0;var ae=re(87252);var Ue=re(2262);function getFeed(C){var q=getOneElement(isValidFeed,C);return!q?null:q.name==="feed"?getAtomFeed(q):getRssFeed(q)}q.getFeed=getFeed;function getAtomFeed(C){var q;var re=C.children;var ae={type:"atom",items:(0,Ue.getElementsByTagName)("entry",re).map((function(C){var q;var re=C.children;var ae={media:getMediaElements(re)};addConditionally(ae,"id","id",re);addConditionally(ae,"title","title",re);var Ue=(q=getOneElement("link",re))===null||q===void 0?void 0:q.attribs.href;if(Ue){ae.link=Ue}var lt=fetch("summary",re)||fetch("content",re);if(lt){ae.description=lt}var Pt=fetch("updated",re);if(Pt){ae.pubDate=new Date(Pt)}return ae}))};addConditionally(ae,"id","id",re);addConditionally(ae,"title","title",re);var lt=(q=getOneElement("link",re))===null||q===void 0?void 0:q.attribs.href;if(lt){ae.link=lt}addConditionally(ae,"description","subtitle",re);var Pt=fetch("updated",re);if(Pt){ae.updated=new Date(Pt)}addConditionally(ae,"author","email",re,true);return ae}function getRssFeed(C){var q,re;var ae=(re=(q=getOneElement("channel",C.children))===null||q===void 0?void 0:q.children)!==null&&re!==void 0?re:[];var lt={type:C.name.substr(0,3),id:"",items:(0,Ue.getElementsByTagName)("item",C.children).map((function(C){var q=C.children;var re={media:getMediaElements(q)};addConditionally(re,"id","guid",q);addConditionally(re,"title","title",q);addConditionally(re,"link","link",q);addConditionally(re,"description","description",q);var ae=fetch("pubDate",q);if(ae)re.pubDate=new Date(ae);return re}))};addConditionally(lt,"title","title",ae);addConditionally(lt,"link","link",ae);addConditionally(lt,"description","description",ae);var Pt=fetch("lastBuildDate",ae);if(Pt){lt.updated=new Date(Pt)}addConditionally(lt,"author","managingEditor",ae,true);return lt}var lt=["url","type","lang"];var Pt=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(C){return(0,Ue.getElementsByTagName)("media:content",C).map((function(C){var q=C.attribs;var re={medium:q.medium,isDefault:!!q.isDefault};for(var ae=0,Ue=lt;ae{Object.defineProperty(q,"__esModule",{value:true});q.uniqueSort=q.compareDocumentPosition=q.removeSubsets=void 0;var ae=re(57792);function removeSubsets(C){var q=C.length;while(--q>=0){var re=C[q];if(q>0&&C.lastIndexOf(re,q-1)>=0){C.splice(q,1);continue}for(var ae=re.parent;ae;ae=ae.parent){if(C.includes(ae)){C.splice(q,1);break}}}return C}q.removeSubsets=removeSubsets;function compareDocumentPosition(C,q){var re=[];var Ue=[];if(C===q){return 0}var lt=(0,ae.hasChildren)(C)?C:C.parent;while(lt){re.unshift(lt);lt=lt.parent}lt=(0,ae.hasChildren)(q)?q:q.parent;while(lt){Ue.unshift(lt);lt=lt.parent}var Pt=Math.min(re.length,Ue.length);var Wt=0;while(WtEr.indexOf(Br)){if(Ar===q){return 4|16}return 4}if(Ar===C){return 2|8}return 2}q.compareDocumentPosition=compareDocumentPosition;function uniqueSort(C){C=C.filter((function(C,q,re){return!re.includes(C,q+1)}));C.sort((function(C,q){var re=compareDocumentPosition(C,q);if(re&2){return-1}else if(re&4){return 1}return 0}));return C}q.uniqueSort=uniqueSort},92357:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;Object.defineProperty(C,ae,{enumerable:true,get:function(){return q[re]}})}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});q.hasChildren=q.isDocument=q.isComment=q.isText=q.isCDATA=q.isTag=void 0;Ue(re(87252),q);Ue(re(29667),q);Ue(re(84456),q);Ue(re(57433),q);Ue(re(2262),q);Ue(re(57776),q);Ue(re(52260),q);var lt=re(57792);Object.defineProperty(q,"isTag",{enumerable:true,get:function(){return lt.isTag}});Object.defineProperty(q,"isCDATA",{enumerable:true,get:function(){return lt.isCDATA}});Object.defineProperty(q,"isText",{enumerable:true,get:function(){return lt.isText}});Object.defineProperty(q,"isComment",{enumerable:true,get:function(){return lt.isComment}});Object.defineProperty(q,"isDocument",{enumerable:true,get:function(){return lt.isDocument}});Object.defineProperty(q,"hasChildren",{enumerable:true,get:function(){return lt.hasChildren}})},2262:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.getElementsByTagType=q.getElementsByTagName=q.getElementById=q.getElements=q.testElement=void 0;var ae=re(57792);var Ue=re(57433);var lt={tag_name:function(C){if(typeof C==="function"){return function(q){return(0,ae.isTag)(q)&&C(q.name)}}else if(C==="*"){return ae.isTag}return function(q){return(0,ae.isTag)(q)&&q.name===C}},tag_type:function(C){if(typeof C==="function"){return function(q){return C(q.type)}}return function(q){return q.type===C}},tag_contains:function(C){if(typeof C==="function"){return function(q){return(0,ae.isText)(q)&&C(q.data)}}return function(q){return(0,ae.isText)(q)&&q.data===C}}};function getAttribCheck(C,q){if(typeof q==="function"){return function(re){return(0,ae.isTag)(re)&&q(re.attribs[C])}}return function(re){return(0,ae.isTag)(re)&&re.attribs[C]===q}}function combineFuncs(C,q){return function(re){return C(re)||q(re)}}function compileTest(C){var q=Object.keys(C).map((function(q){var re=C[q];return Object.prototype.hasOwnProperty.call(lt,q)?lt[q](re):getAttribCheck(q,re)}));return q.length===0?null:q.reduce(combineFuncs)}function testElement(C,q){var re=compileTest(C);return re?re(q):true}q.testElement=testElement;function getElements(C,q,re,ae){if(ae===void 0){ae=Infinity}var lt=compileTest(C);return lt?(0,Ue.filter)(lt,q,re,ae):[]}q.getElements=getElements;function getElementById(C,q,re){if(re===void 0){re=true}if(!Array.isArray(q))q=[q];return(0,Ue.findOne)(getAttribCheck("id",C),q,re)}q.getElementById=getElementById;function getElementsByTagName(C,q,re,ae){if(re===void 0){re=true}if(ae===void 0){ae=Infinity}return(0,Ue.filter)(lt.tag_name(C),q,re,ae)}q.getElementsByTagName=getElementsByTagName;function getElementsByTagType(C,q,re,ae){if(re===void 0){re=true}if(ae===void 0){ae=Infinity}return(0,Ue.filter)(lt.tag_type(C),q,re,ae)}q.getElementsByTagType=getElementsByTagType},84456:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.prepend=q.prependChild=q.append=q.appendChild=q.replaceElement=q.removeElement=void 0;function removeElement(C){if(C.prev)C.prev.next=C.next;if(C.next)C.next.prev=C.prev;if(C.parent){var q=C.parent.children;q.splice(q.lastIndexOf(C),1)}}q.removeElement=removeElement;function replaceElement(C,q){var re=q.prev=C.prev;if(re){re.next=q}var ae=q.next=C.next;if(ae){ae.prev=q}var Ue=q.parent=C.parent;if(Ue){var lt=Ue.children;lt[lt.lastIndexOf(C)]=q}}q.replaceElement=replaceElement;function appendChild(C,q){removeElement(q);q.next=null;q.parent=C;if(C.children.push(q)>1){var re=C.children[C.children.length-2];re.next=q;q.prev=re}else{q.prev=null}}q.appendChild=appendChild;function append(C,q){removeElement(q);var re=C.parent;var ae=C.next;q.next=ae;q.prev=C;C.next=q;q.parent=re;if(ae){ae.prev=q;if(re){var Ue=re.children;Ue.splice(Ue.lastIndexOf(ae),0,q)}}else if(re){re.children.push(q)}}q.append=append;function prependChild(C,q){removeElement(q);q.parent=C;q.prev=null;if(C.children.unshift(q)!==1){var re=C.children[1];re.prev=q;q.next=re}else{q.next=null}}q.prependChild=prependChild;function prepend(C,q){removeElement(q);var re=C.parent;if(re){var ae=re.children;ae.splice(ae.indexOf(C),0,q)}if(C.prev){C.prev.next=q}q.parent=re;q.prev=C.prev;q.next=C;C.prev=q}q.prepend=prepend},57433:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.findAll=q.existsOne=q.findOne=q.findOneChild=q.find=q.filter=void 0;var ae=re(57792);function filter(C,q,re,ae){if(re===void 0){re=true}if(ae===void 0){ae=Infinity}if(!Array.isArray(q))q=[q];return find(C,q,re,ae)}q.filter=filter;function find(C,q,re,Ue){var lt=[];for(var Pt=0,Wt=q;Pt0){var Er=find(C,Ar.children,re,Ue);lt.push.apply(lt,Er);Ue-=Er.length;if(Ue<=0)break}}return lt}q.find=find;function findOneChild(C,q){return q.find(C)}q.findOneChild=findOneChild;function findOne(C,q,re){if(re===void 0){re=true}var Ue=null;for(var lt=0;lt0){Ue=findOne(C,Pt.children)}}return Ue}q.findOne=findOne;function existsOne(C,q){return q.some((function(q){return(0,ae.isTag)(q)&&(C(q)||q.children.length>0&&existsOne(C,q.children))}))}q.existsOne=existsOne;function findAll(C,q){var re;var Ue=[];var lt=q.filter(ae.isTag);var Pt;while(Pt=lt.shift()){var Wt=(re=Pt.children)===null||re===void 0?void 0:re.filter(ae.isTag);if(Wt&&Wt.length>0){lt.unshift.apply(lt,Wt)}if(C(Pt))Ue.push(Pt)}return Ue}q.findAll=findAll},87252:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.innerText=q.textContent=q.getText=q.getInnerHTML=q.getOuterHTML=void 0;var Ue=re(57792);var lt=ae(re(69943));var Pt=re(81108);function getOuterHTML(C,q){return(0,lt.default)(C,q)}q.getOuterHTML=getOuterHTML;function getInnerHTML(C,q){return(0,Ue.hasChildren)(C)?C.children.map((function(C){return getOuterHTML(C,q)})).join(""):""}q.getInnerHTML=getInnerHTML;function getText(C){if(Array.isArray(C))return C.map(getText).join("");if((0,Ue.isTag)(C))return C.name==="br"?"\n":getText(C.children);if((0,Ue.isCDATA)(C))return getText(C.children);if((0,Ue.isText)(C))return C.data;return""}q.getText=getText;function textContent(C){if(Array.isArray(C))return C.map(textContent).join("");if((0,Ue.hasChildren)(C)&&!(0,Ue.isComment)(C)){return textContent(C.children)}if((0,Ue.isText)(C))return C.data;return""}q.textContent=textContent;function innerText(C){if(Array.isArray(C))return C.map(innerText).join("");if((0,Ue.hasChildren)(C)&&(C.type===Pt.ElementType.Tag||(0,Ue.isCDATA)(C))){return innerText(C.children)}if((0,Ue.isText)(C))return C.data;return""}q.innerText=innerText},29667:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.prevElementSibling=q.nextElementSibling=q.getName=q.hasAttrib=q.getAttributeValue=q.getSiblings=q.getParent=q.getChildren=void 0;var ae=re(57792);var Ue=[];function getChildren(C){var q;return(q=C.children)!==null&&q!==void 0?q:Ue}q.getChildren=getChildren;function getParent(C){return C.parent||null}q.getParent=getParent;function getSiblings(C){var q,re;var ae=getParent(C);if(ae!=null)return getChildren(ae);var Ue=[C];var lt=C.prev,Pt=C.next;while(lt!=null){Ue.unshift(lt);q=lt,lt=q.prev}while(Pt!=null){Ue.push(Pt);re=Pt,Pt=re.next}return Ue}q.getSiblings=getSiblings;function getAttributeValue(C,q){var re;return(re=C.attribs)===null||re===void 0?void 0:re[q]}q.getAttributeValue=getAttributeValue;function hasAttrib(C,q){return C.attribs!=null&&Object.prototype.hasOwnProperty.call(C.attribs,q)&&C.attribs[q]!=null}q.hasAttrib=hasAttrib;function getName(C){return C.name}q.getName=getName;function nextElementSibling(C){var q;var re=C.next;while(re!==null&&!(0,ae.isTag)(re))q=re,re=q.next;return re}q.nextElementSibling=nextElementSibling;function prevElementSibling(C){var q;var re=C.prev;while(re!==null&&!(0,ae.isTag)(re))q=re,re=q.prev;return re}q.prevElementSibling=prevElementSibling},52874:(C,q,re)=>{(function(){re(18889).config(Object.assign({},re(39990),re(4531)(process.argv)))})()},4531:C=>{const q=/^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/;C.exports=function optionMatcher(C){return C.reduce((function(C,re){const ae=re.match(q);if(ae){C[ae[1]]=ae[2]}return C}),{})}},39990:C=>{const q={};if(process.env.DOTENV_CONFIG_ENCODING!=null){q.encoding=process.env.DOTENV_CONFIG_ENCODING}if(process.env.DOTENV_CONFIG_PATH!=null){q.path=process.env.DOTENV_CONFIG_PATH}if(process.env.DOTENV_CONFIG_DEBUG!=null){q.debug=process.env.DOTENV_CONFIG_DEBUG}if(process.env.DOTENV_CONFIG_OVERRIDE!=null){q.override=process.env.DOTENV_CONFIG_OVERRIDE}if(process.env.DOTENV_CONFIG_DOTENV_KEY!=null){q.DOTENV_KEY=process.env.DOTENV_CONFIG_DOTENV_KEY}C.exports=q},18889:(C,q,re)=>{const ae=re(79896);const Ue=re(16928);const lt=re(70857);const Pt=re(76982);const Wt=re(80056);const Ar=Wt.version;const Er=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(C){const q={};let re=C.toString();re=re.replace(/\r\n?/gm,"\n");let ae;while((ae=Er.exec(re))!=null){const C=ae[1];let re=ae[2]||"";re=re.trim();const Ue=re[0];re=re.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(Ue==='"'){re=re.replace(/\\n/g,"\n");re=re.replace(/\\r/g,"\r")}q[C]=re}return q}function _parseVault(C){const q=_vaultPath(C);const re=Ir.configDotenv({path:q});if(!re.parsed){const C=new Error(`MISSING_DATA: Cannot parse ${q} for an unknown reason`);C.code="MISSING_DATA";throw C}const ae=_dotenvKey(C).split(",");const Ue=ae.length;let lt;for(let C=0;C=Ue){throw q}}}return Ir.parse(lt)}function _log(C){console.log(`[dotenv@${Ar}][INFO] ${C}`)}function _warn(C){console.log(`[dotenv@${Ar}][WARN] ${C}`)}function _debug(C){console.log(`[dotenv@${Ar}][DEBUG] ${C}`)}function _dotenvKey(C){if(C&&C.DOTENV_KEY&&C.DOTENV_KEY.length>0){return C.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(C,q){let re;try{re=new URL(q)}catch(C){if(C.code==="ERR_INVALID_URL"){const C=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");C.code="INVALID_DOTENV_KEY";throw C}throw C}const ae=re.password;if(!ae){const C=new Error("INVALID_DOTENV_KEY: Missing key part");C.code="INVALID_DOTENV_KEY";throw C}const Ue=re.searchParams.get("environment");if(!Ue){const C=new Error("INVALID_DOTENV_KEY: Missing environment part");C.code="INVALID_DOTENV_KEY";throw C}const lt=`DOTENV_VAULT_${Ue.toUpperCase()}`;const Pt=C.parsed[lt];if(!Pt){const C=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${lt} in your .env.vault file.`);C.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw C}return{ciphertext:Pt,key:ae}}function _vaultPath(C){let q=null;if(C&&C.path&&C.path.length>0){if(Array.isArray(C.path)){for(const re of C.path){if(ae.existsSync(re)){q=re.endsWith(".vault")?re:`${re}.vault`}}}else{q=C.path.endsWith(".vault")?C.path:`${C.path}.vault`}}else{q=Ue.resolve(process.cwd(),".env.vault")}if(ae.existsSync(q)){return q}return null}function _resolveHome(C){return C[0]==="~"?Ue.join(lt.homedir(),C.slice(1)):C}function _configVault(C){_log("Loading env from encrypted .env.vault");const q=Ir._parseVault(C);let re=process.env;if(C&&C.processEnv!=null){re=C.processEnv}Ir.populate(re,q,C);return{parsed:q}}function configDotenv(C){const q=Ue.resolve(process.cwd(),".env");let re="utf8";const lt=Boolean(C&&C.debug);if(C&&C.encoding){re=C.encoding}else{if(lt){_debug("No encoding is specified. UTF-8 is used by default")}}let Pt=[q];if(C&&C.path){if(!Array.isArray(C.path)){Pt=[_resolveHome(C.path)]}else{Pt=[];for(const q of C.path){Pt.push(_resolveHome(q))}}}let Wt;const Ar={};for(const q of Pt){try{const Ue=Ir.parse(ae.readFileSync(q,{encoding:re}));Ir.populate(Ar,Ue,C)}catch(C){if(lt){_debug(`Failed to load ${q} ${C.message}`)}Wt=C}}let Er=process.env;if(C&&C.processEnv!=null){Er=C.processEnv}Ir.populate(Er,Ar,C);if(Wt){return{parsed:Ar,error:Wt}}else{return{parsed:Ar}}}function config(C){if(_dotenvKey(C).length===0){return Ir.configDotenv(C)}const q=_vaultPath(C);if(!q){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${q}. Did you forget to build it?`);return Ir.configDotenv(C)}return Ir._configVault(C)}function decrypt(C,q){const re=Buffer.from(q.slice(-64),"hex");let ae=Buffer.from(C,"base64");const Ue=ae.subarray(0,12);const lt=ae.subarray(-16);ae=ae.subarray(12,-16);try{const C=Pt.createDecipheriv("aes-256-gcm",re,Ue);C.setAuthTag(lt);return`${C.update(ae)}${C.final()}`}catch(C){const q=C instanceof RangeError;const re=C.message==="Invalid key length";const ae=C.message==="Unsupported state or unable to authenticate data";if(q||re){const C=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");C.code="INVALID_DOTENV_KEY";throw C}else if(ae){const C=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");C.code="DECRYPTION_FAILED";throw C}else{throw C}}}function populate(C,q,re={}){const ae=Boolean(re&&re.debug);const Ue=Boolean(re&&re.override);if(typeof q!=="object"){const C=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");C.code="OBJECT_REQUIRED";throw C}for(const re of Object.keys(q)){if(Object.prototype.hasOwnProperty.call(C,re)){if(Ue===true){C[re]=q[re]}if(ae){if(Ue===true){_debug(`"${re}" is already defined and WAS overwritten`)}else{_debug(`"${re}" is already defined and was NOT overwritten`)}}}else{C[re]=q[re]}}}const Ir={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};C.exports.configDotenv=Ir.configDotenv;C.exports._configVault=Ir._configVault;C.exports._parseVault=Ir._parseVault;C.exports.config=Ir.config;C.exports.decrypt=Ir.decrypt;C.exports.parse=Ir.parse;C.exports.populate=Ir.populate;C.exports=Ir},31469:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.decodeHTML=q.decodeHTMLStrict=q.decodeXML=void 0;var Ue=ae(re(94374));var lt=ae(re(51554));var Pt=ae(re(57178));var Wt=ae(re(74487));var Ar=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;q.decodeXML=getStrictDecoder(Pt.default);q.decodeHTMLStrict=getStrictDecoder(Ue.default);function getStrictDecoder(C){var q=getReplacer(C);return function(C){return String(C).replace(Ar,q)}}var sorter=function(C,q){return C65535){C-=65536;q+=String.fromCharCode(C>>>10&1023|55296);C=56320|C&1023}q+=String.fromCharCode(C);return q};function decodeCodePoint(C){if(C>=55296&&C<=57343||C>1114111){return"�"}if(C in Ue.default){C=Ue.default[C]}return lt(C)}q["default"]=decodeCodePoint},86549:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.escapeUTF8=q.escape=q.encodeNonAsciiHTML=q.encodeHTML=q.encodeXML=void 0;var Ue=ae(re(57178));var lt=getInverseObj(Ue.default);var Pt=getInverseReplacer(lt);q.encodeXML=getASCIIEncoder(lt);var Wt=ae(re(94374));var Ar=getInverseObj(Wt.default);var Er=getInverseReplacer(Ar);q.encodeHTML=getInverse(Ar,Er);q.encodeNonAsciiHTML=getASCIIEncoder(Ar);function getInverseObj(C){return Object.keys(C).sort().reduce((function(q,re){q[C[re]]="&"+re+";";return q}),{})}function getInverseReplacer(C){var q=[];var re=[];for(var ae=0,Ue=Object.keys(C);ae1?Br(C):C.charCodeAt(0)).toString(16).toUpperCase()+";"}function getInverse(C,q){return function(re){return re.replace(q,(function(q){return C[q]})).replace(Ir,singleCharReplacer)}}var kr=new RegExp(Pt.source+"|"+Ir.source,"g");function escape(C){return C.replace(kr,singleCharReplacer)}q.escape=escape;function escapeUTF8(C){return C.replace(Pt,singleCharReplacer)}q.escapeUTF8=escapeUTF8;function getASCIIEncoder(C){return function(q){return q.replace(kr,(function(q){return C[q]||singleCharReplacer(q)}))}}},8467:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.decodeXMLStrict=q.decodeHTML5Strict=q.decodeHTML4Strict=q.decodeHTML5=q.decodeHTML4=q.decodeHTMLStrict=q.decodeHTML=q.decodeXML=q.encodeHTML5=q.encodeHTML4=q.escapeUTF8=q.escape=q.encodeNonAsciiHTML=q.encodeHTML=q.encodeXML=q.encode=q.decodeStrict=q.decode=void 0;var ae=re(31469);var Ue=re(86549);function decode(C,q){return(!q||q<=0?ae.decodeXML:ae.decodeHTML)(C)}q.decode=decode;function decodeStrict(C,q){return(!q||q<=0?ae.decodeXML:ae.decodeHTMLStrict)(C)}q.decodeStrict=decodeStrict;function encode(C,q){return(!q||q<=0?Ue.encodeXML:Ue.encodeHTML)(C)}q.encode=encode;var lt=re(86549);Object.defineProperty(q,"encodeXML",{enumerable:true,get:function(){return lt.encodeXML}});Object.defineProperty(q,"encodeHTML",{enumerable:true,get:function(){return lt.encodeHTML}});Object.defineProperty(q,"encodeNonAsciiHTML",{enumerable:true,get:function(){return lt.encodeNonAsciiHTML}});Object.defineProperty(q,"escape",{enumerable:true,get:function(){return lt.escape}});Object.defineProperty(q,"escapeUTF8",{enumerable:true,get:function(){return lt.escapeUTF8}});Object.defineProperty(q,"encodeHTML4",{enumerable:true,get:function(){return lt.encodeHTML}});Object.defineProperty(q,"encodeHTML5",{enumerable:true,get:function(){return lt.encodeHTML}});var Pt=re(31469);Object.defineProperty(q,"decodeXML",{enumerable:true,get:function(){return Pt.decodeXML}});Object.defineProperty(q,"decodeHTML",{enumerable:true,get:function(){return Pt.decodeHTML}});Object.defineProperty(q,"decodeHTMLStrict",{enumerable:true,get:function(){return Pt.decodeHTMLStrict}});Object.defineProperty(q,"decodeHTML4",{enumerable:true,get:function(){return Pt.decodeHTML}});Object.defineProperty(q,"decodeHTML5",{enumerable:true,get:function(){return Pt.decodeHTML}});Object.defineProperty(q,"decodeHTML4Strict",{enumerable:true,get:function(){return Pt.decodeHTMLStrict}});Object.defineProperty(q,"decodeHTML5Strict",{enumerable:true,get:function(){return Pt.decodeHTMLStrict}});Object.defineProperty(q,"decodeXMLStrict",{enumerable:true,get:function(){return Pt.decodeXML}})},79094:(C,q,re)=>{var ae=re(60470);var Ue=ae("%Object.defineProperty%",true)||false;if(Ue){try{Ue({},"a",{value:1})}catch(C){Ue=false}}C.exports=Ue},33056:C=>{C.exports=EvalError},31620:C=>{C.exports=Error},14585:C=>{C.exports=RangeError},46905:C=>{C.exports=ReferenceError},80105:C=>{C.exports=SyntaxError},73314:C=>{C.exports=TypeError},32578:C=>{C.exports=URIError},16577:(C,q)=>{ /** * @author Toru Nagashima * @copyright 2015 Toru Nagashima. All rights reserved. @@ -24,7 +24,7 @@ var ae=re(39023);var Ue=re(70744);C.exports=function(C){if(typeof C==="number")r */ (function(){var q;function MurmurHash3(C,re){var ae=this instanceof MurmurHash3?this:q;ae.reset(re);if(typeof C==="string"&&C.length>0){ae.hash(C)}if(ae!==this){return ae}}MurmurHash3.prototype.hash=function(C){var q,re,ae,Ue,lt;lt=C.length;this.len+=lt;re=this.k1;ae=0;switch(this.rem){case 0:re^=lt>ae?C.charCodeAt(ae++)&65535:0;case 1:re^=lt>ae?(C.charCodeAt(ae++)&65535)<<8:0;case 2:re^=lt>ae?(C.charCodeAt(ae++)&65535)<<16:0;case 3:re^=lt>ae?(C.charCodeAt(ae)&255)<<24:0;re^=lt>ae?(C.charCodeAt(ae++)&65280)>>8:0}this.rem=lt+this.rem&3;lt-=this.rem;if(lt>0){q=this.h1;while(1){re=re*11601+(re&65535)*3432906752&4294967295;re=re<<15|re>>>17;re=re*13715+(re&65535)*461832192&4294967295;q^=re;q=q<<13|q>>>19;q=q*5+3864292196&4294967295;if(ae>=lt){break}re=C.charCodeAt(ae++)&65535^(C.charCodeAt(ae++)&65535)<<8^(C.charCodeAt(ae++)&65535)<<16;Ue=C.charCodeAt(ae++);re^=(Ue&255)<<24^(Ue&65280)>>8}re=0;switch(this.rem){case 3:re^=(C.charCodeAt(ae+2)&65535)<<16;case 2:re^=(C.charCodeAt(ae+1)&65535)<<8;case 1:re^=C.charCodeAt(ae)&65535}this.h1=q}this.k1=re;return this};MurmurHash3.prototype.result=function(){var C,q;C=this.k1;q=this.h1;if(C>0){C=C*11601+(C&65535)*3432906752&4294967295;C=C<<15|C>>>17;C=C*13715+(C&65535)*461832192&4294967295;q^=C}q^=this.len;q^=q>>>16;q=q*51819+(q&65535)*2246770688&4294967295;q^=q>>>13;q=q*44597+(q&65535)*3266445312&4294967295;q^=q>>>16;return q>>>0};MurmurHash3.prototype.reset=function(C){this.h1=typeof C==="number"?C:0;this.rem=this.k1=this.len=0;return this};q=new MurmurHash3;if(true){C.exports=MurmurHash3}else{}})()},68850:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.AddressError=void 0;class AddressError extends Error{constructor(C,q){super(C);this.name="AddressError";if(q!==null){this.parseMessage=q}}}q.AddressError=AddressError},45864:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.isCorrect=q.isInSubnet=void 0;function isInSubnet(C){if(this.subnetMaskWt.BITS){throw new Ar.AddressError("Invalid subnet mask.")}C=C.replace(Wt.RE_SUBNET_STRING,"")}this.addressMinusSuffix=C;this.parsedAddress=this.parse(C)}static isValid(C){try{new Address4(C);return true}catch(C){return false}}parse(C){const q=C.split(".");if(!C.match(Wt.RE_ADDRESS)){throw new Ar.AddressError("Invalid IPv4 address.")}return q}correctForm(){return this.parsedAddress.map((C=>parseInt(C,10))).join(".")}static fromHex(C){const q=C.replace(/:/g,"").padStart(8,"0");const re=[];let ae;for(ae=0;ae<8;ae+=2){const C=q.slice(ae,ae+2);re.push(parseInt(C,16))}return new Address4(re.join("."))}static fromInteger(C){return Address4.fromHex(C.toString(16))}static fromArpa(C){const q=C.replace(/(\.in-addr\.arpa)?\.$/,"");const re=q.split(".").reverse().join(".");return new Address4(re)}toHex(){return this.parsedAddress.map((C=>(0,Ir.sprintf)("%02x",parseInt(C,10)))).join(":")}toArray(){return this.parsedAddress.map((C=>parseInt(C,10)))}toGroup6(){const C=[];let q;for(q=0;q(0,Ir.sprintf)("%02x",parseInt(C,10)))).join(""),16)}_startAddress(){return new Er.BigInteger(this.mask()+"0".repeat(Wt.BITS-this.subnetMask),2)}startAddress(){return Address4.fromBigInteger(this._startAddress())}startAddressExclusive(){const C=new Er.BigInteger("1");return Address4.fromBigInteger(this._startAddress().add(C))}_endAddress(){return new Er.BigInteger(this.mask()+"1".repeat(Wt.BITS-this.subnetMask),2)}endAddress(){return Address4.fromBigInteger(this._endAddress())}endAddressExclusive(){const C=new Er.BigInteger("1");return Address4.fromBigInteger(this._endAddress().subtract(C))}static fromBigInteger(C){return Address4.fromInteger(parseInt(C.toString(),10))}mask(C){if(C===undefined){C=this.subnetMask}return this.getBitsBase2(0,C)}getBitsBase2(C,q){return this.binaryZeroPad().slice(C,q)}reverseForm(C){if(!C){C={}}const q=this.correctForm().split(".").reverse().join(".");if(C.omitSuffix){return q}return(0,Ir.sprintf)("%s.in-addr.arpa.",q)}isMulticast(){return this.isInSubnet(new Address4("224.0.0.0/4"))}binaryZeroPad(){return this.bigInteger().toString(2).padStart(Wt.BITS,"0")}groupForV6(){const C=this.parsedAddress;return this.address.replace(Wt.RE_ADDRESS,(0,Ir.sprintf)('%s.%s',C.slice(0,2).join("."),C.slice(2,4).join(".")))}}q.Address4=Address4},38096:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.Address6=void 0;const Pt=lt(re(45864));const Wt=lt(re(66437));const Ar=lt(re(52899));const Er=lt(re(20339));const Ir=re(17946);const Br=re(72016);const kr=re(68850);const Pr=re(95947);const Qr=re(19973);function assert(C){if(!C){throw new Error("Assertion failed.")}}function addCommas(C){const q=/(\d+)(\d{3})/;while(q.test(C)){C=C.replace(q,"$1,$2")}return C}function spanLeadingZeroes4(C){C=C.replace(/^(0{1,})([1-9]+)$/,'$1$2');C=C.replace(/^(0{1,})(0)$/,'$1$2');return C}function compact(C,q){const re=[];const ae=[];let Ue;for(Ue=0;Ueq[1]){ae.push(C[Ue])}}return re.concat(["compact"]).concat(ae)}function paddedHex(C){return(0,Qr.sprintf)("%04x",parseInt(C,16))}function unsignByte(C){return C&255}class Address6{constructor(C,q){this.addressMinusSuffix="";this.parsedSubnet="";this.subnet="/128";this.subnetMask=128;this.v4=false;this.zone="";this.isInSubnet=Pt.isInSubnet;this.isCorrect=Pt.isCorrect(Ar.BITS);if(q===undefined){this.groups=Ar.GROUPS}else{this.groups=q}this.address=C;const re=Ar.RE_SUBNET_STRING.exec(C);if(re){this.parsedSubnet=re[0].replace("/","");this.subnetMask=parseInt(this.parsedSubnet,10);this.subnet=`/${this.subnetMask}`;if(Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>Ar.BITS){throw new kr.AddressError("Invalid subnet mask.")}C=C.replace(Ar.RE_SUBNET_STRING,"")}else if(/\//.test(C)){throw new kr.AddressError("Invalid subnet mask.")}const ae=Ar.RE_ZONE_STRING.exec(C);if(ae){this.zone=ae[0];C=C.replace(Ar.RE_ZONE_STRING,"")}this.addressMinusSuffix=C;this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(C){try{new Address6(C);return true}catch(C){return false}}static fromBigInteger(C){const q=C.toString(16).padStart(32,"0");const re=[];let ae;for(ae=0;ae65536){re=null}}else{re=null}return{address:new Address6(q),port:re}}static fromAddress4(C){const q=new Ir.Address4(C);const re=Ar.BITS-(Wt.BITS-q.subnetMask);return new Address6(`::ffff:${q.correctForm()}/${re}`)}static fromArpa(C){let q=C.replace(/(\.ip6\.arpa)?\.$/,"");const re=7;if(q.length!==63){throw new kr.AddressError("Invalid 'ip6.arpa' form.")}const ae=q.split(".").reverse();for(let C=re;C>0;C--){const q=C*4;ae.splice(q,0,":")}q=ae.join("");return new Address6(q)}microsoftTranscription(){return(0,Qr.sprintf)("%s.ipv6-literal.net",this.correctForm().replace(/:/g,"-"))}mask(C=this.subnetMask){return this.getBitsBase2(0,C)}possibleSubnets(C=128){const q=Ar.BITS-this.subnetMask;const re=Math.abs(C-Ar.BITS);const ae=q-re;if(ae<0){return"0"}return addCommas(new Pr.BigInteger("2",10).pow(ae).toString(10))}_startAddress(){return new Pr.BigInteger(this.mask()+"0".repeat(Ar.BITS-this.subnetMask),2)}startAddress(){return Address6.fromBigInteger(this._startAddress())}startAddressExclusive(){const C=new Pr.BigInteger("1");return Address6.fromBigInteger(this._startAddress().add(C))}_endAddress(){return new Pr.BigInteger(this.mask()+"1".repeat(Ar.BITS-this.subnetMask),2)}endAddress(){return Address6.fromBigInteger(this._endAddress())}endAddressExclusive(){const C=new Pr.BigInteger("1");return Address6.fromBigInteger(this._endAddress().subtract(C))}getScope(){let C=Ar.SCOPES[this.getBits(12,16).intValue()];if(this.getType()==="Global unicast"&&C!=="Link local"){C="Global"}return C||"Unknown"}getType(){for(const C of Object.keys(Ar.TYPES)){if(this.isInSubnet(new Address6(C))){return Ar.TYPES[C]}}return"Global unicast"}getBits(C,q){return new Pr.BigInteger(this.getBitsBase2(C,q),2)}getBitsBase2(C,q){return this.binaryZeroPad().slice(C,q)}getBitsBase16(C,q){const re=q-C;if(re%4!==0){throw new Error("Length of bits to retrieve must be divisible by four")}return this.getBits(C,q).toString(16).padStart(re/4,"0")}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,Ar.BITS)}reverseForm(C){if(!C){C={}}const q=Math.floor(this.subnetMask/4);const re=this.canonicalForm().replace(/:/g,"").split("").slice(0,q).reverse().join(".");if(q>0){if(C.omitSuffix){return re}return(0,Qr.sprintf)("%s.ip6.arpa.",re)}if(C.omitSuffix){return""}return"ip6.arpa."}correctForm(){let C;let q=[];let re=0;const ae=[];for(C=0;C0){if(re>1){ae.push([C-re,C-1])}re=0}}if(re>1){ae.push([this.parsedAddress.length-re,this.parsedAddress.length-1])}const Ue=ae.map((C=>C[1]-C[0]+1));if(ae.length>0){const C=Ue.indexOf(Math.max(...Ue));q=compact(this.parsedAddress,ae[C])}else{q=this.parsedAddress}for(C=0;C1?"s":"",q.join("")),C.replace(Ar.RE_BAD_CHARACTERS,'$1'))}const re=C.match(Ar.RE_BAD_ADDRESS);if(re){throw new kr.AddressError((0,Qr.sprintf)("Address failed regex: %s",re.join("")),C.replace(Ar.RE_BAD_ADDRESS,'$1'))}let ae=[];const Ue=C.split("::");if(Ue.length===2){let C=Ue[0].split(":");let q=Ue[1].split(":");if(C.length===1&&C[0]===""){C=[]}if(q.length===1&&q[0]===""){q=[]}const re=this.groups-(C.length+q.length);if(!re){throw new kr.AddressError("Error parsing groups")}this.elidedGroups=re;this.elisionBegin=C.length;this.elisionEnd=C.length+this.elidedGroups;ae=ae.concat(C);for(let C=0;C(0,Qr.sprintf)("%x",parseInt(C,16))));if(ae.length!==this.groups){throw new kr.AddressError("Incorrect number of groups found")}return ae}canonicalForm(){return this.parsedAddress.map(paddedHex).join(":")}decimal(){return this.parsedAddress.map((C=>(0,Qr.sprintf)("%05d",parseInt(C,16)))).join(":")}bigInteger(){return new Pr.BigInteger(this.parsedAddress.map(paddedHex).join(""),16)}to4(){const C=this.binaryZeroPad().split("");return Ir.Address4.fromHex(new Pr.BigInteger(C.slice(96,128).join(""),2).toString(16))}to4in6(){const C=this.to4();const q=new Address6(this.parsedAddress.slice(0,6).join(":"),6);const re=q.correctForm();let ae="";if(!/:$/.test(re)){ae=":"}return re+ae+C.address}inspectTeredo(){const C=this.getBitsBase16(0,32);const q=this.getBits(80,96).xor(new Pr.BigInteger("ffff",16)).toString();const re=Ir.Address4.fromHex(this.getBitsBase16(32,64));const ae=Ir.Address4.fromHex(this.getBits(96,128).xor(new Pr.BigInteger("ffffffff",16)).toString(16));const Ue=this.getBits(64,80);const lt=this.getBitsBase2(64,80);const Pt=Ue.testBit(15);const Wt=Ue.testBit(14);const Ar=Ue.testBit(8);const Er=Ue.testBit(9);const Br=new Pr.BigInteger(lt.slice(2,6)+lt.slice(8,16),2).toString(10);return{prefix:(0,Qr.sprintf)("%s:%s",C.slice(0,4),C.slice(4,8)),server4:re.address,client4:ae.address,flags:lt,coneNat:Pt,microsoft:{reserved:Wt,universalLocal:Er,groupIndividual:Ar,nonce:Br},udpPort:q}}inspect6to4(){const C=this.getBitsBase16(0,16);const q=Ir.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:(0,Qr.sprintf)("%s",C.slice(0,4)),gateway:q.address}}to6to4(){if(!this.is4()){return null}const C=["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),"","/16"].join(":");return new Address6(C)}toByteArray(){const C=this.bigInteger().toByteArray();if(C.length===17&&C[0]===0){return C.slice(1)}return C}toUnsignedByteArray(){return this.toByteArray().map(unsignByte)}static fromByteArray(C){return this.fromUnsignedByteArray(C.map(unsignByte))}static fromUnsignedByteArray(C){const q=new Pr.BigInteger("256",10);let re=new Pr.BigInteger("0",10);let ae=new Pr.BigInteger("1",10);for(let Ue=C.length-1;Ue>=0;Ue--){re=re.add(ae.multiply(new Pr.BigInteger(C[Ue].toString(10),10)));ae=ae.multiply(q)}return Address6.fromBigInteger(re)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){if(this.getBitsBase2(0,64)==="1111111010000000000000000000000000000000000000000000000000000000"){return true}return false}isMulticast(){return this.getType()==="Multicast"}is4(){return this.v4}isTeredo(){return this.isInSubnet(new Address6("2001::/32"))}is6to4(){return this.isInSubnet(new Address6("2002::/16"))}isLoopback(){return this.getType()==="Loopback"}href(C){if(C===undefined){C=""}else{C=(0,Qr.sprintf)(":%s",C)}return(0,Qr.sprintf)("http://[%s]%s/",this.correctForm(),C)}link(C){if(!C){C={}}if(C.className===undefined){C.className=""}if(C.prefix===undefined){C.prefix="/#address="}if(C.v4===undefined){C.v4=false}let q=this.correctForm;if(C.v4){q=this.to4in6}if(C.className){return(0,Qr.sprintf)('%2$s',C.prefix,q.call(this),C.className)}return(0,Qr.sprintf)('%2$s',C.prefix,q.call(this))}group(){if(this.elidedGroups===0){return Er.simpleGroup(this.address).join(":")}assert(typeof this.elidedGroups==="number");assert(typeof this.elisionBegin==="number");const C=[];const[q,re]=this.address.split("::");if(q.length){C.push(...Er.simpleGroup(q))}else{C.push("")}const ae=["hover-group"];for(let C=this.elisionBegin;C',ae.join(" ")));if(re.length){C.push(...Er.simpleGroup(re,this.elisionEnd))}else{C.push("")}if(this.is4()){assert(this.address4 instanceof Ir.Address4);C.pop();C.push(this.address4.groupForV6())}return C.join(":")}regularExpressionString(C=false){let q=[];const re=new Address6(this.correctForm());if(re.elidedGroups===0){q.push((0,Br.simpleRegularExpression)(re.parsedAddress))}else if(re.elidedGroups===Ar.GROUPS){q.push((0,Br.possibleElisions)(Ar.GROUPS))}else{const C=re.address.split("::");if(C[0].length){q.push((0,Br.simpleRegularExpression)(C[0].split(":")))}assert(typeof re.elidedGroups==="number");q.push((0,Br.possibleElisions)(re.elidedGroups,C[0].length!==0,C[1].length!==0));if(C[1].length){q.push((0,Br.simpleRegularExpression)(C[1].split(":")))}q=[q.join(":")]}if(!C){q=["(?=^|",Br.ADDRESS_BOUNDARY,"|[^\\w\\:])(",...q,")(?=[^\\w\\:]|",Br.ADDRESS_BOUNDARY,"|$)"]}return q.join("")}regularExpression(C=false){return new RegExp(this.regularExpressionString(C),"i")}}q.Address6=Address6},66437:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.RE_SUBNET_STRING=q.RE_ADDRESS=q.GROUPS=q.BITS=void 0;q.BITS=32;q.GROUPS=4;q.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g;q.RE_SUBNET_STRING=/\/\d{1,2}$/},52899:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.RE_URL_WITH_PORT=q.RE_URL=q.RE_ZONE_STRING=q.RE_SUBNET_STRING=q.RE_BAD_ADDRESS=q.RE_BAD_CHARACTERS=q.TYPES=q.SCOPES=q.GROUPS=q.BITS=void 0;q.BITS=128;q.GROUPS=8;q.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"};q.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","ff00::/8":"Multicast","fe80::/10":"Link-local unicast"};q.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi;q.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi;q.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/;q.RE_ZONE_STRING=/%.*$/;q.RE_URL=new RegExp(/^\[{0,1}([0-9a-f:]+)\]{0,1}/);q.RE_URL_WITH_PORT=new RegExp(/\[([0-9a-f:]+)\]:([0-9]{1,5})/)},20339:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.simpleGroup=q.spanLeadingZeroes=q.spanAll=q.spanAllZeroes=void 0;const ae=re(19973);function spanAllZeroes(C){return C.replace(/(0+)/g,'$1')}q.spanAllZeroes=spanAllZeroes;function spanAll(C,q=0){const re=C.split("");return re.map(((C,re)=>(0,ae.sprintf)('%s',C,re+q,spanAllZeroes(C)))).join("")}q.spanAll=spanAll;function spanLeadingZeroesSimple(C){return C.replace(/^(0+)/,'$1')}function spanLeadingZeroes(C){const q=C.split(":");return q.map((C=>spanLeadingZeroesSimple(C))).join(":")}q.spanLeadingZeroes=spanLeadingZeroes;function simpleGroup(C,q=0){const re=C.split(":");return re.map(((C,re)=>{if(/group-v4/.test(C)){return C}return(0,ae.sprintf)('%s',re+q,spanLeadingZeroesSimple(C))}))}q.simpleGroup=simpleGroup},72016:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.possibleElisions=q.simpleRegularExpression=q.ADDRESS_BOUNDARY=q.padGroup=q.groupPossibilities=void 0;const Pt=lt(re(52899));const Wt=re(19973);function groupPossibilities(C){return(0,Wt.sprintf)("(%s)",C.join("|"))}q.groupPossibilities=groupPossibilities;function padGroup(C){if(C.length<4){return(0,Wt.sprintf)("0{0,%d}%s",4-C.length,C)}return C}q.padGroup=padGroup;q.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]";function simpleRegularExpression(C){const q=[];C.forEach(((C,re)=>{const ae=parseInt(C,16);if(ae===0){q.push(re)}}));const re=q.map((q=>C.map(((C,re)=>{if(re===q){const q=re===0||re===Pt.GROUPS-1?":":"";return groupPossibilities([padGroup(C),q])}return padGroup(C)})).join(":")));re.push(C.map(padGroup).join(":"));return groupPossibilities(re)}q.simpleRegularExpression=simpleRegularExpression;function possibleElisions(C,q,re){const ae=q?"":":";const Ue=re?"":":";const lt=[];if(!q&&!re){lt.push("::")}if(q&&re){lt.push("")}if(re&&!q||!re&&q){lt.push(":")}lt.push((0,Wt.sprintf)("%s(:0{1,4}){1,%d}",ae,C-1));lt.push((0,Wt.sprintf)("(0{1,4}:){1,%d}%s",C-1,Ue));lt.push((0,Wt.sprintf)("(0{1,4}:){%d}0{1,4}",C-1));for(let q=1;q{C.exports=isTypedArray;isTypedArray.strict=isStrictTypedArray;isTypedArray.loose=isLooseTypedArray;var q=Object.prototype.toString;var re={"[object Int8Array]":true,"[object Int16Array]":true,"[object Int32Array]":true,"[object Uint8Array]":true,"[object Uint8ClampedArray]":true,"[object Uint16Array]":true,"[object Uint32Array]":true,"[object Float32Array]":true,"[object Float64Array]":true};function isTypedArray(C){return isStrictTypedArray(C)||isLooseTypedArray(C)}function isStrictTypedArray(C){return C instanceof Int8Array||C instanceof Int16Array||C instanceof Int32Array||C instanceof Uint8Array||C instanceof Uint8ClampedArray||C instanceof Uint16Array||C instanceof Uint32Array||C instanceof Float32Array||C instanceof Float64Array}function isLooseTypedArray(C){return re[q.call(C)]}},45810:function(C){(function(q,re){true?C.exports=re():0})(typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this,(function(){"use strict";var C="3.7.2";var q=C;var re=typeof atob==="function";var ae=typeof btoa==="function";var Ue=typeof Buffer==="function";var lt=typeof TextDecoder==="function"?new TextDecoder:undefined;var Pt=typeof TextEncoder==="function"?new TextEncoder:undefined;var Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var Ar=Array.prototype.slice.call(Wt);var Er=function(C){var q={};C.forEach((function(C,re){return q[C]=re}));return q}(Ar);var Ir=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;var Br=String.fromCharCode.bind(String);var kr=typeof Uint8Array.from==="function"?Uint8Array.from.bind(Uint8Array):function(C,q){if(q===void 0){q=function(C){return C}}return new Uint8Array(Array.prototype.slice.call(C,0).map(q))};var _mkUriSafe=function(C){return C.replace(/=/g,"").replace(/[+\/]/g,(function(C){return C=="+"?"-":"_"}))};var _tidyB64=function(C){return C.replace(/[^A-Za-z0-9\+\/]/g,"")};var btoaPolyfill=function(C){var q,re,ae,Ue,lt="";var Pt=C.length%3;for(var Wt=0;Wt255||(ae=C.charCodeAt(Wt++))>255||(Ue=C.charCodeAt(Wt++))>255)throw new TypeError("invalid character found");q=re<<16|ae<<8|Ue;lt+=Ar[q>>18&63]+Ar[q>>12&63]+Ar[q>>6&63]+Ar[q&63]}return Pt?lt.slice(0,Pt-3)+"===".substring(Pt):lt};var Pr=ae?function(C){return btoa(C)}:Ue?function(C){return Buffer.from(C,"binary").toString("base64")}:btoaPolyfill;var Qr=Ue?function(C){return Buffer.from(C).toString("base64")}:function(C){var q=4096;var re=[];for(var ae=0,Ue=C.length;ae>>6)+Br(128|q&63):Br(224|q>>>12&15)+Br(128|q>>>6&63)+Br(128|q&63)}else{var q=65536+(C.charCodeAt(0)-55296)*1024+(C.charCodeAt(1)-56320);return Br(240|q>>>18&7)+Br(128|q>>>12&63)+Br(128|q>>>6&63)+Br(128|q&63)}};var Fr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;var utob=function(C){return C.replace(Fr,cb_utob)};var Dr=Ue?function(C){return Buffer.from(C,"utf8").toString("base64")}:Pt?function(C){return Qr(Pt.encode(C))}:function(C){return Pr(utob(C))};var encode=function(C,q){if(q===void 0){q=false}return q?_mkUriSafe(Dr(C)):Dr(C)};var encodeURI=function(C){return encode(C,true)};var xr=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;var cb_btou=function(C){switch(C.length){case 4:var q=(7&C.charCodeAt(0))<<18|(63&C.charCodeAt(1))<<12|(63&C.charCodeAt(2))<<6|63&C.charCodeAt(3),re=q-65536;return Br((re>>>10)+55296)+Br((re&1023)+56320);case 3:return Br((15&C.charCodeAt(0))<<12|(63&C.charCodeAt(1))<<6|63&C.charCodeAt(2));default:return Br((31&C.charCodeAt(0))<<6|63&C.charCodeAt(1))}};var btou=function(C){return C.replace(xr,cb_btou)};var atobPolyfill=function(C){C=C.replace(/\s+/g,"");if(!Ir.test(C))throw new TypeError("malformed base64.");C+="==".slice(2-(C.length&3));var q,re="",ae,Ue;for(var lt=0;lt>16&255):Ue===64?Br(q>>16&255,q>>8&255):Br(q>>16&255,q>>8&255,q&255)}return re};var Mr=re?function(C){return atob(_tidyB64(C))}:Ue?function(C){return Buffer.from(C,"base64").toString("binary")}:atobPolyfill;var Ur=Ue?function(C){return kr(Buffer.from(C,"base64"))}:function(C){return kr(Mr(C),(function(C){return C.charCodeAt(0)}))};var toUint8Array=function(C){return Ur(_unURI(C))};var Nr=Ue?function(C){return Buffer.from(C,"base64").toString("utf8")}:lt?function(C){return lt.decode(Ur(C))}:function(C){return btou(Mr(C))};var _unURI=function(C){return _tidyB64(C.replace(/[-_]/g,(function(C){return C=="-"?"+":"/"})))};var decode=function(C){return Nr(_unURI(C))};var isValid=function(C){if(typeof C!=="string")return false;var q=C.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(q)||!/[^\s0-9a-zA-Z\-_]/.test(q)};var _noEnum=function(C){return{value:C,enumerable:false,writable:true,configurable:true}};var extendString=function(){var _add=function(C,q){return Object.defineProperty(String.prototype,C,_noEnum(q))};_add("fromBase64",(function(){return decode(this)}));_add("toBase64",(function(C){return encode(this,C)}));_add("toBase64URI",(function(){return encode(this,true)}));_add("toBase64URL",(function(){return encode(this,true)}));_add("toUint8Array",(function(){return toUint8Array(this)}))};var extendUint8Array=function(){var _add=function(C,q){return Object.defineProperty(Uint8Array.prototype,C,_noEnum(q))};_add("toBase64",(function(C){return fromUint8Array(this,C)}));_add("toBase64URI",(function(){return fromUint8Array(this,true)}));_add("toBase64URL",(function(){return fromUint8Array(this,true)}))};var extendBuiltins=function(){extendString();extendUint8Array()};var Lr={version:C,VERSION:q,atob:Mr,atobPolyfill:atobPolyfill,btoa:Pr,btoaPolyfill:btoaPolyfill,fromBase64:decode,toBase64:encode,encode:encode,encodeURI:encodeURI,encodeURL:encodeURI,utob:utob,btou:btou,decode:decode,isValid:isValid,fromUint8Array:fromUint8Array,toUint8Array:toUint8Array,extendString:extendString,extendUint8Array:extendUint8Array,extendBuiltins:extendBuiltins};Lr.Base64={};Object.keys(Lr).forEach((function(C){return Lr.Base64[C]=Lr[C]}));return Lr}))},95947:function(C,q){(function(){var re;var ae=0xdeadbeefcafe;var Ue=(ae&16777215)==15715070;function BigInteger(C,q,re){if(C!=null)if("number"==typeof C)this.fromNumber(C,q,re);else if(q==null&&"string"!=typeof C)this.fromString(C,256);else this.fromString(C,q)}function nbi(){return new BigInteger(null)}function am1(C,q,re,ae,Ue,lt){while(--lt>=0){var Pt=q*this[C++]+re[ae]+Ue;Ue=Math.floor(Pt/67108864);re[ae++]=Pt&67108863}return Ue}function am2(C,q,re,ae,Ue,lt){var Pt=q&32767,Wt=q>>15;while(--lt>=0){var Ar=this[C]&32767;var Er=this[C++]>>15;var Ir=Wt*Ar+Er*Pt;Ar=Pt*Ar+((Ir&32767)<<15)+re[ae]+(Ue&1073741823);Ue=(Ar>>>30)+(Ir>>>15)+Wt*Er+(Ue>>>30);re[ae++]=Ar&1073741823}return Ue}function am3(C,q,re,ae,Ue,lt){var Pt=q&16383,Wt=q>>14;while(--lt>=0){var Ar=this[C]&16383;var Er=this[C++]>>14;var Ir=Wt*Ar+Er*Pt;Ar=Pt*Ar+((Ir&16383)<<14)+re[ae]+Ue;Ue=(Ar>>28)+(Ir>>14)+Wt*Er;re[ae++]=Ar&268435455}return Ue}var lt=typeof navigator!=="undefined";if(lt&&Ue&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;re=30}else if(lt&&Ue&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;re=26}else{BigInteger.prototype.am=am3;re=28}BigInteger.prototype.DB=re;BigInteger.prototype.DM=(1<=0;--q)C[q]=this[q];C.t=this.t;C.s=this.s}function bnpFromInt(C){this.t=1;this.s=C<0?-1:0;if(C>0)this[0]=C;else if(C<-1)this[0]=C+this.DV;else this.t=0}function nbv(C){var q=nbi();q.fromInt(C);return q}function bnpFromString(C,q){var re;if(q==16)re=4;else if(q==8)re=3;else if(q==256)re=8;else if(q==2)re=1;else if(q==32)re=5;else if(q==4)re=2;else{this.fromRadix(C,q);return}this.t=0;this.s=0;var ae=C.length,Ue=false,lt=0;while(--ae>=0){var Pt=re==8?C[ae]&255:intAt(C,ae);if(Pt<0){if(C.charAt(ae)=="-")Ue=true;continue}Ue=false;if(lt==0)this[this.t++]=Pt;else if(lt+re>this.DB){this[this.t-1]|=(Pt&(1<>this.DB-lt}else this[this.t-1]|=Pt<=this.DB)lt-=this.DB}if(re==8&&(C[0]&128)!=0){this.s=-1;if(lt>0)this[this.t-1]|=(1<0&&this[this.t-1]==C)--this.t}function bnToString(C){if(this.s<0)return"-"+this.negate().toString(C);var q;if(C==16)q=4;else if(C==8)q=3;else if(C==2)q=1;else if(C==32)q=5;else if(C==4)q=2;else return this.toRadix(C);var re=(1<0){if(Wt>Wt)>0){Ue=true;lt=int2char(ae)}while(Pt>=0){if(Wt>(Wt+=this.DB-q)}else{ae=this[Pt]>>(Wt-=q)&re;if(Wt<=0){Wt+=this.DB;--Pt}}if(ae>0)Ue=true;if(Ue)lt+=int2char(ae)}}return Ue?lt:"0"}function bnNegate(){var C=nbi();BigInteger.ZERO.subTo(this,C);return C}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(C){var q=this.s-C.s;if(q!=0)return q;var re=this.t;q=re-C.t;if(q!=0)return this.s<0?-q:q;while(--re>=0)if((q=this[re]-C[re])!=0)return q;return 0}function nbits(C){var q=1,re;if((re=C>>>16)!=0){C=re;q+=16}if((re=C>>8)!=0){C=re;q+=8}if((re=C>>4)!=0){C=re;q+=4}if((re=C>>2)!=0){C=re;q+=2}if((re=C>>1)!=0){C=re;q+=1}return q}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(C,q){var re;for(re=this.t-1;re>=0;--re)q[re+C]=this[re];for(re=C-1;re>=0;--re)q[re]=0;q.t=this.t+C;q.s=this.s}function bnpDRShiftTo(C,q){for(var re=C;re=0;--Wt){q[Wt+lt+1]=this[Wt]>>ae|Pt;Pt=(this[Wt]&Ue)<=0;--Wt)q[Wt]=0;q[lt]=Pt;q.t=this.t+lt+1;q.s=this.s;q.clamp()}function bnpRShiftTo(C,q){q.s=this.s;var re=Math.floor(C/this.DB);if(re>=this.t){q.t=0;return}var ae=C%this.DB;var Ue=this.DB-ae;var lt=(1<>ae;for(var Pt=re+1;Pt>ae}if(ae>0)q[this.t-re-1]|=(this.s<)<>=this.DB}if(C.t>=this.DB}ae+=this.s}else{ae+=this.s;while(re>=this.DB}ae-=C.s}q.s=ae<0?-1:0;if(ae<-1)q[re++]=this.DV+ae;else if(ae>0)q[re++]=ae;q.t=re;q.clamp()}function bnpMultiplyTo(C,q){var re=this.abs(),ae=C.abs();var Ue=re.t;q.t=Ue+ae.t;while(--Ue>=0)q[Ue]=0;for(Ue=0;Ue=0)C[re]=0;for(re=0;re=q.DV){C[re+q.t]-=q.DV;C[re+q.t+1]=1}}if(C.t>0)C[C.t-1]+=q.am(re,q[re],C,2*re,0,1);C.s=0;C.clamp()}function bnpDivRemTo(C,q,re){var ae=C.abs();if(ae.t<=0)return;var Ue=this.abs();if(Ue.t0){ae.lShiftTo(Ar,lt);Ue.lShiftTo(Ar,re)}else{ae.copyTo(lt);Ue.copyTo(re)}var Er=lt.t;var Ir=lt[Er-1];if(Ir==0)return;var Br=Ir*(1<1?lt[Er-2]>>this.F2:0);var kr=this.FV/Br,Pr=(1<=0){re[re.t++]=1;re.subTo(xr,re)}BigInteger.ONE.dlShiftTo(Er,xr);xr.subTo(lt,lt);while(lt.t=0){var Mr=re[--Fr]==Ir?this.DM:Math.floor(re[Fr]*kr+(re[Fr-1]+Qr)*Pr);if((re[Fr]+=lt.am(0,Mr,re,Dr,0,Er))0)re.rShiftTo(Ar,re);if(Pt<0)BigInteger.ZERO.subTo(re,re)}function bnMod(C){var q=nbi();this.abs().divRemTo(C,null,q);if(this.s<0&&q.compareTo(BigInteger.ZERO)>0)C.subTo(q,q);return q}function Classic(C){this.m=C}function cConvert(C){if(C.s<0||C.compareTo(this.m)>=0)return C.mod(this.m);else return C}function cRevert(C){return C}function cReduce(C){C.divRemTo(this.m,null,C)}function cMulTo(C,q,re){C.multiplyTo(q,re);this.reduce(re)}function cSqrTo(C,q){C.squareTo(q);this.reduce(q)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var C=this[0];if((C&1)==0)return 0;var q=C&3;q=q*(2-(C&15)*q)&15;q=q*(2-(C&255)*q)&255;q=q*(2-((C&65535)*q&65535))&65535;q=q*(2-C*q%this.DV)%this.DV;return q>0?this.DV-q:-q}function Montgomery(C){this.m=C;this.mp=C.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(q,q);return q}function montRevert(C){var q=nbi();C.copyTo(q);this.reduce(q);return q}function montReduce(C){while(C.t<=this.mt2)C[C.t++]=0;for(var q=0;q>15)*this.mpl&this.um)<<15)&C.DM;re=q+this.m.t;C[re]+=this.m.am(0,ae,C,q,0,this.m.t);while(C[re]>=C.DV){C[re]-=C.DV;C[++re]++}}C.clamp();C.drShiftTo(this.m.t,C);if(C.compareTo(this.m)>=0)C.subTo(this.m,C)}function montSqrTo(C,q){C.squareTo(q);this.reduce(q)}function montMulTo(C,q,re){C.multiplyTo(q,re);this.reduce(re)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(C,q){if(C>4294967295||C<1)return BigInteger.ONE;var re=nbi(),ae=nbi(),Ue=q.convert(this),lt=nbits(C)-1;Ue.copyTo(re);while(--lt>=0){q.sqrTo(re,ae);if((C&1<0)q.mulTo(ae,Ue,re);else{var Pt=re;re=ae;ae=Pt}}return q.revert(re)}function bnModPowInt(C,q){var re;if(C<256||q.isEven())re=new Classic(q);else re=new Montgomery(q);return this.exp(C,re)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var C=nbi();this.copyTo(C);return C}function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<>24}function bnShortValue(){return this.t==0?this.s:this[0]<<16>>16}function bnpChunkSize(C){return Math.floor(Math.LN2*this.DB/Math.log(C))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function bnpToRadix(C){if(C==null)C=10;if(this.signum()==0||C<2||C>36)return"0";var q=this.chunkSize(C);var re=Math.pow(C,q);var ae=nbv(re),Ue=nbi(),lt=nbi(),Pt="";this.divRemTo(ae,Ue,lt);while(Ue.signum()>0){Pt=(re+lt.intValue()).toString(C).substr(1)+Pt;Ue.divRemTo(ae,Ue,lt)}return lt.intValue().toString(C)+Pt}function bnpFromRadix(C,q){this.fromInt(0);if(q==null)q=10;var re=this.chunkSize(q);var ae=Math.pow(q,re),Ue=false,lt=0,Pt=0;for(var Wt=0;Wt=re){this.dMultiply(ae);this.dAddOffset(Pt,0);lt=0;Pt=0}}if(lt>0){this.dMultiply(Math.pow(q,lt));this.dAddOffset(Pt,0)}if(Ue)BigInteger.ZERO.subTo(this,this)}function bnpFromNumber(C,q,re){if("number"==typeof q){if(C<2)this.fromInt(1);else{this.fromNumber(C,re);if(!this.testBit(C-1))this.bitwiseTo(BigInteger.ONE.shiftLeft(C-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(q)){this.dAddOffset(2,0);if(this.bitLength()>C)this.subTo(BigInteger.ONE.shiftLeft(C-1),this)}}}else{var ae=new Array,Ue=C&7;ae.length=(C>>3)+1;q.nextBytes(ae);if(Ue>0)ae[0]&=(1<0){if(re>re)!=(this.s&this.DM)>>re)q[Ue++]=ae|this.s<=0){if(re<8){ae=(this[C]&(1<>(re+=this.DB-8)}else{ae=this[C]>>(re-=8)&255;if(re<=0){re+=this.DB;--C}}if((ae&128)!=0)ae|=-256;if(Ue==0&&(this.s&128)!=(ae&128))++Ue;if(Ue>0||ae!=this.s)q[Ue++]=ae}}return q}function bnEquals(C){return this.compareTo(C)==0}function bnMin(C){return this.compareTo(C)<0?this:C}function bnMax(C){return this.compareTo(C)>0?this:C}function bnpBitwiseTo(C,q,re){var ae,Ue,lt=Math.min(C.t,this.t);for(ae=0;ae>=16;q+=16}if((C&255)==0){C>>=8;q+=8}if((C&15)==0){C>>=4;q+=4}if((C&3)==0){C>>=2;q+=2}if((C&1)==0)++q;return q}function bnGetLowestSetBit(){for(var C=0;C=this.t)return this.s!=0;return(this[q]&1<>=this.DB}if(C.t>=this.DB}ae+=this.s}else{ae+=this.s;while(re>=this.DB}ae+=C.s}q.s=ae<0?-1:0;if(ae>0)q[re++]=ae;else if(ae<-1)q[re++]=this.DV+ae;q.t=re;q.clamp()}function bnAdd(C){var q=nbi();this.addTo(C,q);return q}function bnSubtract(C){var q=nbi();this.subTo(C,q);return q}function bnMultiply(C){var q=nbi();this.multiplyTo(C,q);return q}function bnSquare(){var C=nbi();this.squareTo(C);return C}function bnDivide(C){var q=nbi();this.divRemTo(C,q,null);return q}function bnRemainder(C){var q=nbi();this.divRemTo(C,null,q);return q}function bnDivideAndRemainder(C){var q=nbi(),re=nbi();this.divRemTo(C,q,re);return new Array(q,re)}function bnpDMultiply(C){this[this.t]=this.am(0,C-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(C,q){if(C==0)return;while(this.t<=q)this[this.t++]=0;this[q]+=C;while(this[q]>=this.DV){this[q]-=this.DV;if(++q>=this.t)this[this.t++]=0;++this[q]}}function NullExp(){}function nNop(C){return C}function nMulTo(C,q,re){C.multiplyTo(q,re)}function nSqrTo(C,q){C.squareTo(q)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(C){return this.exp(C,new NullExp)}function bnpMultiplyLowerTo(C,q,re){var ae=Math.min(this.t+C.t,q);re.s=0;re.t=ae;while(ae>0)re[--ae]=0;var Ue;for(Ue=re.t-this.t;ae=0)re[ae]=0;for(ae=Math.max(q-this.t,0);ae2*this.m.t)return C.mod(this.m);else if(C.compareTo(this.m)<0)return C;else{var q=nbi();C.copyTo(q);this.reduce(q);return q}}function barrettRevert(C){return C}function barrettReduce(C){C.drShiftTo(this.m.t-1,this.r2);if(C.t>this.m.t+1){C.t=this.m.t+1;C.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(C.compareTo(this.r2)<0)C.dAddOffset(1,this.m.t+1);C.subTo(this.r2,C);while(C.compareTo(this.m)>=0)C.subTo(this.m,C)}function barrettSqrTo(C,q){C.squareTo(q);this.reduce(q)}function barrettMulTo(C,q,re){C.multiplyTo(q,re);this.reduce(re)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(C,q){var re=C.bitLength(),ae,Ue=nbv(1),lt;if(re<=0)return Ue;else if(re<18)ae=1;else if(re<48)ae=3;else if(re<144)ae=4;else if(re<768)ae=5;else ae=6;if(re<8)lt=new Classic(q);else if(q.isEven())lt=new Barrett(q);else lt=new Montgomery(q);var Pt=new Array,Wt=3,Ar=ae-1,Er=(1<1){var Ir=nbi();lt.sqrTo(Pt[1],Ir);while(Wt<=Er){Pt[Wt]=nbi();lt.mulTo(Ir,Pt[Wt-2],Pt[Wt]);Wt+=2}}var Br=C.t-1,kr,Pr=true,Qr=nbi(),Fr;re=nbits(C[Br])-1;while(Br>=0){if(re>=Ar)kr=C[Br]>>re-Ar&Er;else{kr=(C[Br]&(1<0)kr|=C[Br-1]>>this.DB+re-Ar}Wt=ae;while((kr&1)==0){kr>>=1;--Wt}if((re-=Wt)<0){re+=this.DB;--Br}if(Pr){Pt[kr].copyTo(Ue);Pr=false}else{while(Wt>1){lt.sqrTo(Ue,Qr);lt.sqrTo(Qr,Ue);Wt-=2}if(Wt>0)lt.sqrTo(Ue,Qr);else{Fr=Ue;Ue=Qr;Qr=Fr}lt.mulTo(Qr,Pt[kr],Ue)}while(Br>=0&&(C[Br]&1<0){q.rShiftTo(lt,q);re.rShiftTo(lt,re)}while(q.signum()>0){if((Ue=q.getLowestSetBit())>0)q.rShiftTo(Ue,q);if((Ue=re.getLowestSetBit())>0)re.rShiftTo(Ue,re);if(q.compareTo(re)>=0){q.subTo(re,q);q.rShiftTo(1,q)}else{re.subTo(q,re);re.rShiftTo(1,re)}}if(lt>0)re.lShiftTo(lt,re);return re}function bnpModInt(C){if(C<=0)return 0;var q=this.DV%C,re=this.s<0?C-1:0;if(this.t>0)if(q==0)re=this[0]%C;else for(var ae=this.t-1;ae>=0;--ae)re=(q*re+this[ae])%C;return re}function bnModInverse(C){var q=C.isEven();if(this.isEven()&&q||C.signum()==0)return BigInteger.ZERO;var re=C.clone(),ae=this.clone();var Ue=nbv(1),lt=nbv(0),Pt=nbv(0),Wt=nbv(1);while(re.signum()!=0){while(re.isEven()){re.rShiftTo(1,re);if(q){if(!Ue.isEven()||!lt.isEven()){Ue.addTo(this,Ue);lt.subTo(C,lt)}Ue.rShiftTo(1,Ue)}else if(!lt.isEven())lt.subTo(C,lt);lt.rShiftTo(1,lt)}while(ae.isEven()){ae.rShiftTo(1,ae);if(q){if(!Pt.isEven()||!Wt.isEven()){Pt.addTo(this,Pt);Wt.subTo(C,Wt)}Pt.rShiftTo(1,Pt)}else if(!Wt.isEven())Wt.subTo(C,Wt);Wt.rShiftTo(1,Wt)}if(re.compareTo(ae)>=0){re.subTo(ae,re);if(q)Ue.subTo(Pt,Ue);lt.subTo(Wt,lt)}else{ae.subTo(re,ae);if(q)Pt.subTo(Ue,Pt);Wt.subTo(lt,Wt)}}if(ae.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(Wt.compareTo(C)>=0)return Wt.subtract(C);if(Wt.signum()<0)Wt.addTo(C,Wt);else return Wt;if(Wt.signum()<0)return Wt.add(C);else return Wt}var Br=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var kr=(1<<26)/Br[Br.length-1];function bnIsProbablePrime(C){var q,re=this.abs();if(re.t==1&&re[0]<=Br[Br.length-1]){for(q=0;q>1;if(C>Br.length)C=Br.length;var Ue=nbi();for(var lt=0;lt>8&255;Qr[Fr++]^=C>>16&255;Qr[Fr++]^=C>>24&255;if(Fr>=Ur)Fr-=Ur}function rng_seed_time(){rng_seed_int((new Date).getTime())}if(Qr==null){Qr=new Array;Fr=0;var Dr;if(typeof window!=="undefined"&&window.crypto){if(window.crypto.getRandomValues){var xr=new Uint8Array(32);window.crypto.getRandomValues(xr);for(Dr=0;Dr<32;++Dr)Qr[Fr++]=xr[Dr]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Mr=window.crypto.random(32);for(Dr=0;Dr>>8;Qr[Fr++]=Dr&255}Fr=0;rng_seed_time()}function rng_get_byte(){if(Pr==null){rng_seed_time();Pr=prng_newstate();Pr.init(Qr);for(Fr=0;Fr{function Mime(){this._types=Object.create(null);this._extensions=Object.create(null);for(let C=0;C{let ae=re(14402);C.exports=new ae(re(83725),re(68548))},68548:C=>{C.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},83725:C=>{C.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},70744:C=>{var q=1e3;var re=q*60;var ae=re*60;var Ue=ae*24;var lt=Ue*7;var Pt=Ue*365.25;C.exports=function(C,q){q=q||{};var re=typeof C;if(re==="string"&&C.length>0){return parse(C)}else if(re==="number"&&isFinite(C)){return q.long?fmtLong(C):fmtShort(C)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(C))};function parse(C){C=String(C);if(C.length>100){return}var Wt=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(C);if(!Wt){return}var Ar=parseFloat(Wt[1]);var Er=(Wt[2]||"ms").toLowerCase();switch(Er){case"years":case"year":case"yrs":case"yr":case"y":return Ar*Pt;case"weeks":case"week":case"w":return Ar*lt;case"days":case"day":case"d":return Ar*Ue;case"hours":case"hour":case"hrs":case"hr":case"h":return Ar*ae;case"minutes":case"minute":case"mins":case"min":case"m":return Ar*re;case"seconds":case"second":case"secs":case"sec":case"s":return Ar*q;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Ar;default:return undefined}}function fmtShort(C){var lt=Math.abs(C);if(lt>=Ue){return Math.round(C/Ue)+"d"}if(lt>=ae){return Math.round(C/ae)+"h"}if(lt>=re){return Math.round(C/re)+"m"}if(lt>=q){return Math.round(C/q)+"s"}return C+"ms"}function fmtLong(C){var lt=Math.abs(C);if(lt>=Ue){return plural(C,lt,Ue,"day")}if(lt>=ae){return plural(C,lt,ae,"hour")}if(lt>=re){return plural(C,lt,re,"minute")}if(lt>=q){return plural(C,lt,q,"second")}return C+" ms"}function plural(C,q,re,ae){var Ue=q>=re*1.5;return Math.round(C/re)+" "+ae+(Ue?"s":"")}},49086:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});function _interopDefault(C){return C&&typeof C==="object"&&"default"in C?C["default"]:C}var ae=_interopDefault(re(2203));var Ue=_interopDefault(re(58611));var lt=_interopDefault(re(87016));var Pt=_interopDefault(re(62686));var Wt=_interopDefault(re(65692));var Ar=_interopDefault(re(43106));const Er=ae.Readable;const Ir=Symbol("buffer");const Br=Symbol("type");class Blob{constructor(){this[Br]="";const C=arguments[0];const q=arguments[1];const re=[];let ae=0;if(C){const q=C;const Ue=Number(q.length);for(let C=0;C1&&arguments[1]!==undefined?arguments[1]:{},Ue=re.size;let lt=Ue===undefined?0:Ue;var Pt=re.timeout;let Wt=Pt===undefined?0:Pt;if(C==null){C=null}else if(isURLSearchParams(C)){C=Buffer.from(C.toString())}else if(isBlob(C));else if(Buffer.isBuffer(C));else if(Object.prototype.toString.call(C)==="[object ArrayBuffer]"){C=Buffer.from(C)}else if(ArrayBuffer.isView(C)){C=Buffer.from(C.buffer,C.byteOffset,C.byteLength)}else if(C instanceof ae);else{C=Buffer.from(String(C))}this[Pr]={body:C,disturbed:false,error:null};this.size=lt;this.timeout=Wt;if(C instanceof ae){C.on("error",(function(C){const re=C.name==="AbortError"?C:new FetchError(`Invalid response body while trying to fetch ${q.url}: ${C.message}`,"system",C);q[Pr].error=re}))}}Body.prototype={get body(){return this[Pr].body},get bodyUsed(){return this[Pr].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(C){return C.buffer.slice(C.byteOffset,C.byteOffset+C.byteLength)}))},blob(){let C=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(q){return Object.assign(new Blob([],{type:C.toLowerCase()}),{[Ir]:q})}))},json(){var C=this;return consumeBody.call(this).then((function(q){try{return JSON.parse(q.toString())}catch(q){return Body.Promise.reject(new FetchError(`invalid json response body at ${C.url} reason: ${q.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(C){return C.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var C=this;return consumeBody.call(this).then((function(q){return convertBody(q,C.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(C){for(const q of Object.getOwnPropertyNames(Body.prototype)){if(!(q in C)){const re=Object.getOwnPropertyDescriptor(Body.prototype,q);Object.defineProperty(C,q,re)}}};function consumeBody(){var C=this;if(this[Pr].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[Pr].disturbed=true;if(this[Pr].error){return Body.Promise.reject(this[Pr].error)}let q=this.body;if(q===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(q)){q=q.stream()}if(Buffer.isBuffer(q)){return Body.Promise.resolve(q)}if(!(q instanceof ae)){return Body.Promise.resolve(Buffer.alloc(0))}let re=[];let Ue=0;let lt=false;return new Body.Promise((function(ae,Pt){let Wt;if(C.timeout){Wt=setTimeout((function(){lt=true;Pt(new FetchError(`Response timeout while trying to fetch ${C.url} (over ${C.timeout}ms)`,"body-timeout"))}),C.timeout)}q.on("error",(function(q){if(q.name==="AbortError"){lt=true;Pt(q)}else{Pt(new FetchError(`Invalid response body while trying to fetch ${C.url}: ${q.message}`,"system",q))}}));q.on("data",(function(q){if(lt||q===null){return}if(C.size&&Ue+q.length>C.size){lt=true;Pt(new FetchError(`content size at ${C.url} over limit: ${C.size}`,"max-size"));return}Ue+=q.length;re.push(q)}));q.on("end",(function(){if(lt){return}clearTimeout(Wt);try{ae(Buffer.concat(re,Ue))}catch(q){Pt(new FetchError(`Could not create Buffer from response body for ${C.url}: ${q.message}`,"system",q))}}))}))}function convertBody(C,q){if(typeof kr!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const re=q.get("content-type");let ae="utf-8";let Ue,lt;if(re){Ue=/charset=([^;]*)/i.exec(re)}lt=C.slice(0,1024).toString();if(!Ue&<){Ue=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[xr]=Object.create(null);if(C instanceof Headers){const q=C.raw();const re=Object.keys(q);for(const C of re){for(const re of q[C]){this.append(C,re)}}return}if(C==null);else if(typeof C==="object"){const q=C[Symbol.iterator];if(q!=null){if(typeof q!=="function"){throw new TypeError("Header pairs must be iterable")}const re=[];for(const q of C){if(typeof q!=="object"||typeof q[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}re.push(Array.from(q))}for(const C of re){if(C.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(C[0],C[1])}}else{for(const q of Object.keys(C)){const re=C[q];this.append(q,re)}}}else{throw new TypeError("Provided initializer must be an object")}}get(C){C=`${C}`;validateName(C);const q=find(this[xr],C);if(q===undefined){return null}return this[xr][q].join(", ")}forEach(C){let q=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let re=getHeaders(this);let ae=0;while(ae1&&arguments[1]!==undefined?arguments[1]:"key+value";const re=Object.keys(C[xr]).sort();return re.map(q==="key"?function(C){return C.toLowerCase()}:q==="value"?function(q){return C[xr][q].join(", ")}:function(q){return[q.toLowerCase(),C[xr][q].join(", ")]})}const Mr=Symbol("internal");function createHeadersIterator(C,q){const re=Object.create(Ur);re[Mr]={target:C,kind:q,index:0};return re}const Ur=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==Ur){throw new TypeError("Value of `this` is not a HeadersIterator")}var C=this[Mr];const q=C.target,re=C.kind,ae=C.index;const Ue=getHeaders(q,re);const lt=Ue.length;if(ae>=lt){return{value:undefined,done:true}}this[Mr].index=ae+1;return{value:Ue[ae],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(Ur,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(C){const q=Object.assign({__proto__:null},C[xr]);const re=find(C[xr],"Host");if(re!==undefined){q[re]=q[re][0]}return q}function createHeadersLenient(C){const q=new Headers;for(const re of Object.keys(C)){if(Fr.test(re)){continue}if(Array.isArray(C[re])){for(const ae of C[re]){if(Dr.test(ae)){continue}if(q[xr][re]===undefined){q[xr][re]=[ae]}else{q[xr][re].push(ae)}}}else if(!Dr.test(C[re])){q[xr][re]=[C[re]]}}return q}const Nr=Symbol("Response internals");const Lr=Ue.STATUS_CODES;class Response{constructor(){let C=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let q=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,C,q);const re=q.status||200;const ae=new Headers(q.headers);if(C!=null&&!ae.has("Content-Type")){const q=extractContentType(C);if(q){ae.append("Content-Type",q)}}this[Nr]={url:q.url,status:re,statusText:q.statusText||Lr[re],headers:ae,counter:q.counter}}get url(){return this[Nr].url||""}get status(){return this[Nr].status}get ok(){return this[Nr].status>=200&&this[Nr].status<300}get redirected(){return this[Nr].counter>0}get statusText(){return this[Nr].statusText}get headers(){return this[Nr].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const jr=Symbol("Request internals");const Gr=lt.URL||Pt.URL;const Vr=lt.parse;const Hr=lt.format;function parseURL(C){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(C)){C=new Gr(C).toString()}return Vr(C)}const Wr="destroy"in ae.Readable.prototype;function isRequest(C){return typeof C==="object"&&typeof C[jr]==="object"}function isAbortSignal(C){const q=C&&typeof C==="object"&&Object.getPrototypeOf(C);return!!(q&&q.constructor.name==="AbortSignal")}class Request{constructor(C){let q=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let re;if(!isRequest(C)){if(C&&C.href){re=parseURL(C.href)}else{re=parseURL(`${C}`)}C={}}else{re=parseURL(C.url)}let ae=q.method||C.method||"GET";ae=ae.toUpperCase();if((q.body!=null||isRequest(C)&&C.body!==null)&&(ae==="GET"||ae==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let Ue=q.body!=null?q.body:isRequest(C)&&C.body!==null?clone(C):null;Body.call(this,Ue,{timeout:q.timeout||C.timeout||0,size:q.size||C.size||0});const lt=new Headers(q.headers||C.headers||{});if(Ue!=null&&!lt.has("Content-Type")){const C=extractContentType(Ue);if(C){lt.append("Content-Type",C)}}let Pt=isRequest(C)?C.signal:null;if("signal"in q)Pt=q.signal;if(Pt!=null&&!isAbortSignal(Pt)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[jr]={method:ae,redirect:q.redirect||C.redirect||"follow",headers:lt,parsedURL:re,signal:Pt};this.follow=q.follow!==undefined?q.follow:C.follow!==undefined?C.follow:20;this.compress=q.compress!==undefined?q.compress:C.compress!==undefined?C.compress:true;this.counter=q.counter||C.counter||0;this.agent=q.agent||C.agent}get method(){return this[jr].method}get url(){return Hr(this[jr].parsedURL)}get headers(){return this[jr].headers}get redirect(){return this[jr].redirect}get signal(){return this[jr].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(C){const q=C[jr].parsedURL;const re=new Headers(C[jr].headers);if(!re.has("Accept")){re.set("Accept","*/*")}if(!q.protocol||!q.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(q.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(C.signal&&C.body instanceof ae.Readable&&!Wr){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let Ue=null;if(C.body==null&&/^(POST|PUT)$/i.test(C.method)){Ue="0"}if(C.body!=null){const q=getTotalBytes(C);if(typeof q==="number"){Ue=String(q)}}if(Ue){re.set("Content-Length",Ue)}if(!re.has("User-Agent")){re.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(C.compress&&!re.has("Accept-Encoding")){re.set("Accept-Encoding","gzip,deflate")}let lt=C.agent;if(typeof lt==="function"){lt=lt(q)}return Object.assign({},q,{method:C.method,headers:exportNodeCompatibleHeaders(re),agent:lt})}function AbortError(C){Error.call(this,C);this.type="aborted";this.message=C;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const $r=lt.URL||Pt.URL;const Kr=ae.PassThrough;const zr=function isDomainOrSubdomain(C,q){const re=new $r(q).hostname;const ae=new $r(C).hostname;return re===ae||re[re.length-ae.length-1]==="."&&re.endsWith(ae)};const Jr=function isSameProtocol(C,q){const re=new $r(q).protocol;const ae=new $r(C).protocol;return re===ae};function fetch(C,q){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(re,lt){const Pt=new Request(C,q);const Er=getNodeRequestOptions(Pt);const Ir=(Er.protocol==="https:"?Wt:Ue).request;const Br=Pt.signal;let kr=null;const Pr=function abort(){let C=new AbortError("The user aborted a request.");lt(C);if(Pt.body&&Pt.body instanceof ae.Readable){destroyStream(Pt.body,C)}if(!kr||!kr.body)return;kr.body.emit("error",C)};if(Br&&Br.aborted){Pr();return}const Qr=function abortAndFinalize(){Pr();finalize()};const Fr=Ir(Er);let Dr;if(Br){Br.addEventListener("abort",Qr)}function finalize(){Fr.abort();if(Br)Br.removeEventListener("abort",Qr);clearTimeout(Dr)}if(Pt.timeout){Fr.once("socket",(function(C){Dr=setTimeout((function(){lt(new FetchError(`network timeout at: ${Pt.url}`,"request-timeout"));finalize()}),Pt.timeout)}))}Fr.on("error",(function(C){lt(new FetchError(`request to ${Pt.url} failed, reason: ${C.message}`,"system",C));if(kr&&kr.body){destroyStream(kr.body,C)}finalize()}));fixResponseChunkedTransferBadEnding(Fr,(function(C){if(Br&&Br.aborted){return}if(kr&&kr.body){destroyStream(kr.body,C)}}));if(parseInt(process.version.substring(1))<14){Fr.on("socket",(function(C){C.addListener("close",(function(q){const re=C.listenerCount("data")>0;if(kr&&re&&!q&&!(Br&&Br.aborted)){const C=new Error("Premature close");C.code="ERR_STREAM_PREMATURE_CLOSE";kr.body.emit("error",C)}}))}))}Fr.on("response",(function(C){clearTimeout(Dr);const q=createHeadersLenient(C.headers);if(fetch.isRedirect(C.statusCode)){const ae=q.get("Location");let Ue=null;try{Ue=ae===null?null:new $r(ae,Pt.url).toString()}catch(C){if(Pt.redirect!=="manual"){lt(new FetchError(`uri requested responds with an invalid redirect URL: ${ae}`,"invalid-redirect"));finalize();return}}switch(Pt.redirect){case"error":lt(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${Pt.url}`,"no-redirect"));finalize();return;case"manual":if(Ue!==null){try{q.set("Location",Ue)}catch(C){lt(C)}}break;case"follow":if(Ue===null){break}if(Pt.counter>=Pt.follow){lt(new FetchError(`maximum redirect reached at: ${Pt.url}`,"max-redirect"));finalize();return}const ae={headers:new Headers(Pt.headers),follow:Pt.follow,counter:Pt.counter+1,agent:Pt.agent,compress:Pt.compress,method:Pt.method,body:Pt.body,signal:Pt.signal,timeout:Pt.timeout,size:Pt.size};if(!zr(Pt.url,Ue)||!Jr(Pt.url,Ue)){for(const C of["authorization","www-authenticate","cookie","cookie2"]){ae.headers.delete(C)}}if(C.statusCode!==303&&Pt.body&&getTotalBytes(Pt)===null){lt(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(C.statusCode===303||(C.statusCode===301||C.statusCode===302)&&Pt.method==="POST"){ae.method="GET";ae.body=undefined;ae.headers.delete("content-length")}re(fetch(new Request(Ue,ae)));finalize();return}}C.once("end",(function(){if(Br)Br.removeEventListener("abort",Qr)}));let ae=C.pipe(new Kr);const Ue={url:Pt.url,status:C.statusCode,statusText:C.statusMessage,headers:q,size:Pt.size,timeout:Pt.timeout,counter:Pt.counter};const Wt=q.get("Content-Encoding");if(!Pt.compress||Pt.method==="HEAD"||Wt===null||C.statusCode===204||C.statusCode===304){kr=new Response(ae,Ue);re(kr);return}const Er={flush:Ar.Z_SYNC_FLUSH,finishFlush:Ar.Z_SYNC_FLUSH};if(Wt=="gzip"||Wt=="x-gzip"){ae=ae.pipe(Ar.createGunzip(Er));kr=new Response(ae,Ue);re(kr);return}if(Wt=="deflate"||Wt=="x-deflate"){const q=C.pipe(new Kr);q.once("data",(function(C){if((C[0]&15)===8){ae=ae.pipe(Ar.createInflate())}else{ae=ae.pipe(Ar.createInflateRaw())}kr=new Response(ae,Ue);re(kr)}));q.on("end",(function(){if(!kr){kr=new Response(ae,Ue);re(kr)}}));return}if(Wt=="br"&&typeof Ar.createBrotliDecompress==="function"){ae=ae.pipe(Ar.createBrotliDecompress());kr=new Response(ae,Ue);re(kr);return}kr=new Response(ae,Ue);re(kr)}));writeToStream(Fr,Pt)}))}function fixResponseChunkedTransferBadEnding(C,q){let re;C.on("socket",(function(C){re=C}));C.on("response",(function(C){const ae=C.headers;if(ae["transfer-encoding"]==="chunked"&&!ae["content-length"]){C.once("close",(function(C){const ae=re&&re.listenerCount("data")>0;if(ae&&!C){const C=new Error("Premature close");C.code="ERR_STREAM_PREMATURE_CLOSE";q(C)}}))}}))}function destroyStream(C,q){if(C.destroy){C.destroy(q)}else{C.emit("error",q);C.end()}}fetch.isRedirect=function(C){return C===301||C===302||C===303||C===307||C===308};fetch.Promise=global.Promise;C.exports=q=fetch;Object.defineProperty(q,"__esModule",{value:true});q["default"]=q;q.Headers=Headers;q.Request=Request;q.Response=Response;q.FetchError=FetchError;q.AbortError=AbortError},80347:function(C,q,re){(function(){var C,ae,Ue,lt,Pt,Wt,Ar,Er,Ir,Br,kr,Pr,Qr,Fr,extend=function(C,q){for(var re in q){if(Dr.call(q,re))C[re]=q[re]}function ctor(){this.constructor=C}ctor.prototype=q.prototype;C.prototype=new ctor;C.__super__=q.prototype;return C},Dr={}.hasOwnProperty;Qr=re(16928);Pr=re(79896);kr=re(24434);Fr=re(78298).sync;ae="---.EMPTY_STRING.---";Ar=function(C){var q,re,ae,Ue,lt;Ue=Pr.readdirSync(C);lt=[];for(q=0,re=Ue.length;qthis.quota){throw new Pt}Fr(Ar,Dr,{encoding:"utf8"});if(!Ue){Br=new lt(re,this._keys.push(C)-1);Br.size=xr;this._metaKeyMap[C]=Br;this.length+=1;this._bytesInUse+=xr}if(Ir){ae=new Wt(C,Pr,q,this._eventUrl);return this.emit("storage",ae)}};LocalStorage.prototype.getItem=function(C){var q,re;C=Er(C);re=this._metaKeyMap[C];if(!!re){q=Qr.join(this._location,re.key);return Pr.readFileSync(q,"utf8")}else{return null}};LocalStorage.prototype._getStat=function(C){var q;C=Er(C);q=Qr.join(this._location,encodeURIComponent(C));try{return Pr.statSync(q)}catch(C){return null}};LocalStorage.prototype.removeItem=function(C){var q,re,ae,Ue,lt,Pt,Ar,Br,kr;C=Er(C);Pt=this._metaKeyMap[C];if(!!Pt){ae=this.listenerCount("storage");Ar=null;if(ae){Ar=this.getItem(C)}delete this._metaKeyMap[C];this.length-=1;this._bytesInUse-=Pt.size;re=Qr.join(this._location,Pt.key);this._keys.splice(Pt.index,1);Br=this._metaKeyMap;for(Ue in Br){kr=Br[Ue];lt=this._metaKeyMap[Ue];if(lt.index>Pt.index){lt.index-=1}}Ir(re);if(ae){q=new Wt(C,Ar,null,this._eventUrl);return this.emit("storage",q)}}};LocalStorage.prototype.key=function(C){var q;q=this._keys[C];if(q===ae){return""}else{return q}};LocalStorage.prototype.clear=function(){var C;Ar(this._location);this._metaKeyMap=Br();this._keys=[];this.length=0;this._bytesInUse=0;if(this.listenerCount("storage")){C=new Wt(null,null,null,this._eventUrl);return this.emit("storage",C)}};LocalStorage.prototype._getBytesInUse=function(){return this._bytesInUse};LocalStorage.prototype._deleteLocation=function(){delete q[this._location];Ir(this._location);this._metaKeyMap={};this._keys=[];this.length=0;return this._bytesInUse=0};return LocalStorage}(kr.EventEmitter);C=function(C){extend(JSONStorage,C);function JSONStorage(){return JSONStorage.__super__.constructor.apply(this,arguments)}JSONStorage.prototype.setItem=function(C,q){var re;re=JSON.stringify(q);return JSONStorage.__super__.setItem.call(this,C,re)};JSONStorage.prototype.getItem=function(C){return JSON.parse(JSONStorage.__super__.getItem.call(this,C))};return JSONStorage}(Ue);q.LocalStorage=Ue;q.JSONStorage=C;q.QUOTA_EXCEEDED_ERR=Pt}).call(this)},60506:(C,q,re)=>{var ae=typeof Map==="function"&&Map.prototype;var Ue=Object.getOwnPropertyDescriptor&&ae?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var lt=ae&&Ue&&typeof Ue.get==="function"?Ue.get:null;var Pt=ae&&Map.prototype.forEach;var Wt=typeof Set==="function"&&Set.prototype;var Ar=Object.getOwnPropertyDescriptor&&Wt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var Er=Wt&&Ar&&typeof Ar.get==="function"?Ar.get:null;var Ir=Wt&&Set.prototype.forEach;var Br=typeof WeakMap==="function"&&WeakMap.prototype;var kr=Br?WeakMap.prototype.has:null;var Pr=typeof WeakSet==="function"&&WeakSet.prototype;var Qr=Pr?WeakSet.prototype.has:null;var Fr=typeof WeakRef==="function"&&WeakRef.prototype;var Dr=Fr?WeakRef.prototype.deref:null;var xr=Boolean.prototype.valueOf;var Mr=Object.prototype.toString;var Ur=Function.prototype.toString;var Nr=String.prototype.match;var Lr=String.prototype.slice;var jr=String.prototype.replace;var Gr=String.prototype.toUpperCase;var Vr=String.prototype.toLowerCase;var Hr=RegExp.prototype.test;var Wr=Array.prototype.concat;var $r=Array.prototype.join;var Kr=Array.prototype.slice;var zr=Math.floor;var Jr=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var Yr=Object.getOwnPropertySymbols;var Xr=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var Zr=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var en=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Zr?"object":"symbol")?Symbol.toStringTag:null;var tn=Object.prototype.propertyIsEnumerable;var rn=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(C){return C.__proto__}:null);function addNumericSeparator(C,q){if(C===Infinity||C===-Infinity||C!==C||C&&C>-1e3&&C<1e3||Hr.call(/e/,q)){return q}var re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof C==="number"){var ae=C<0?-zr(-C):zr(C);if(ae!==C){var Ue=String(ae);var lt=Lr.call(q,Ue.length+1);return jr.call(Ue,re,"$&_")+"."+jr.call(jr.call(lt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return jr.call(q,re,"$&_")}var nn=re(58502);var sn=nn.custom;var an=isSymbol(sn)?sn:null;var cn={__proto__:null,double:'"',single:"'"};var ln={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};C.exports=function inspect_(C,q,re,ae){var Ue=q||{};if(has(Ue,"quoteStyle")&&!has(cn,Ue.quoteStyle)){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(has(Ue,"maxStringLength")&&(typeof Ue.maxStringLength==="number"?Ue.maxStringLength<0&&Ue.maxStringLength!==Infinity:Ue.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var Wt=has(Ue,"customInspect")?Ue.customInspect:true;if(typeof Wt!=="boolean"&&Wt!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(has(Ue,"indent")&&Ue.indent!==null&&Ue.indent!=="\t"&&!(parseInt(Ue.indent,10)===Ue.indent&&Ue.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(has(Ue,"numericSeparator")&&typeof Ue.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var Ar=Ue.numericSeparator;if(typeof C==="undefined"){return"undefined"}if(C===null){return"null"}if(typeof C==="boolean"){return C?"true":"false"}if(typeof C==="string"){return inspectString(C,Ue)}if(typeof C==="number"){if(C===0){return Infinity/C>0?"0":"-0"}var Br=String(C);return Ar?addNumericSeparator(C,Br):Br}if(typeof C==="bigint"){var kr=String(C)+"n";return Ar?addNumericSeparator(C,kr):kr}var Pr=typeof Ue.depth==="undefined"?5:Ue.depth;if(typeof re==="undefined"){re=0}if(re>=Pr&&Pr>0&&typeof C==="object"){return isArray(C)?"[Array]":"[Object]"}var Qr=getIndent(Ue,re);if(typeof ae==="undefined"){ae=[]}else if(indexOf(ae,C)>=0){return"[Circular]"}function inspect(C,q,lt){if(q){ae=Kr.call(ae);ae.push(q)}if(lt){var Pt={depth:Ue.depth};if(has(Ue,"quoteStyle")){Pt.quoteStyle=Ue.quoteStyle}return inspect_(C,Pt,re+1,ae)}return inspect_(C,Ue,re+1,ae)}if(typeof C==="function"&&!isRegExp(C)){var Fr=nameOf(C);var Dr=arrObjKeys(C,inspect);return"[Function"+(Fr?": "+Fr:" (anonymous)")+"]"+(Dr.length>0?" { "+$r.call(Dr,", ")+" }":"")}if(isSymbol(C)){var Mr=Zr?jr.call(String(C),/^(Symbol\(.*\))_[^)]*$/,"$1"):Xr.call(C);return typeof C==="object"&&!Zr?markBoxed(Mr):Mr}if(isElement(C)){var Ur="<"+Vr.call(String(C.nodeName));var Nr=C.attributes||[];for(var Gr=0;Gr";return Ur}if(isArray(C)){if(C.length===0){return"[]"}var Hr=arrObjKeys(C,inspect);if(Qr&&!singleLineValues(Hr)){return"["+indentedJoin(Hr,Qr)+"]"}return"[ "+$r.call(Hr,", ")+" ]"}if(isError(C)){var zr=arrObjKeys(C,inspect);if(!("cause"in Error.prototype)&&"cause"in C&&!tn.call(C,"cause")){return"{ ["+String(C)+"] "+$r.call(Wr.call("[cause]: "+inspect(C.cause),zr),", ")+" }"}if(zr.length===0){return"["+String(C)+"]"}return"{ ["+String(C)+"] "+$r.call(zr,", ")+" }"}if(typeof C==="object"&&Wt){if(an&&typeof C[an]==="function"&&nn){return nn(C,{depth:Pr-re})}else if(Wt!=="symbol"&&typeof C.inspect==="function"){return C.inspect()}}if(isMap(C)){var Yr=[];if(Pt){Pt.call(C,(function(q,re){Yr.push(inspect(re,C,true)+" => "+inspect(q,C))}))}return collectionOf("Map",lt.call(C),Yr,Qr)}if(isSet(C)){var sn=[];if(Ir){Ir.call(C,(function(q){sn.push(inspect(q,C))}))}return collectionOf("Set",Er.call(C),sn,Qr)}if(isWeakMap(C)){return weakCollectionOf("WeakMap")}if(isWeakSet(C)){return weakCollectionOf("WeakSet")}if(isWeakRef(C)){return weakCollectionOf("WeakRef")}if(isNumber(C)){return markBoxed(inspect(Number(C)))}if(isBigInt(C)){return markBoxed(inspect(Jr.call(C)))}if(isBoolean(C)){return markBoxed(xr.call(C))}if(isString(C)){return markBoxed(inspect(String(C)))}if(typeof window!=="undefined"&&C===window){return"{ [object Window] }"}if(typeof globalThis!=="undefined"&&C===globalThis||typeof global!=="undefined"&&C===global){return"{ [object globalThis] }"}if(!isDate(C)&&!isRegExp(C)){var ln=arrObjKeys(C,inspect);var un=rn?rn(C)===Object.prototype:C instanceof Object||C.constructor===Object;var dn=C instanceof Object?"":"null prototype";var pn=!un&&en&&Object(C)===C&&en in C?Lr.call(toStr(C),8,-1):dn?"Object":"";var fn=un||typeof C.constructor!=="function"?"":C.constructor.name?C.constructor.name+" ":"";var hn=fn+(pn||dn?"["+$r.call(Wr.call([],pn||[],dn||[]),": ")+"] ":"");if(ln.length===0){return hn+"{}"}if(Qr){return hn+"{"+indentedJoin(ln,Qr)+"}"}return hn+"{ "+$r.call(ln,", ")+" }"}return String(C)};function wrapQuotes(C,q,re){var ae=re.quoteStyle||q;var Ue=cn[ae];return Ue+C+Ue}function quote(C){return jr.call(String(C),/"/g,""")}function isArray(C){return toStr(C)==="[object Array]"&&(!en||!(typeof C==="object"&&en in C))}function isDate(C){return toStr(C)==="[object Date]"&&(!en||!(typeof C==="object"&&en in C))}function isRegExp(C){return toStr(C)==="[object RegExp]"&&(!en||!(typeof C==="object"&&en in C))}function isError(C){return toStr(C)==="[object Error]"&&(!en||!(typeof C==="object"&&en in C))}function isString(C){return toStr(C)==="[object String]"&&(!en||!(typeof C==="object"&&en in C))}function isNumber(C){return toStr(C)==="[object Number]"&&(!en||!(typeof C==="object"&&en in C))}function isBoolean(C){return toStr(C)==="[object Boolean]"&&(!en||!(typeof C==="object"&&en in C))}function isSymbol(C){if(Zr){return C&&typeof C==="object"&&C instanceof Symbol}if(typeof C==="symbol"){return true}if(!C||typeof C!=="object"||!Xr){return false}try{Xr.call(C);return true}catch(C){}return false}function isBigInt(C){if(!C||typeof C!=="object"||!Jr){return false}try{Jr.call(C);return true}catch(C){}return false}var un=Object.prototype.hasOwnProperty||function(C){return C in this};function has(C,q){return un.call(C,q)}function toStr(C){return Mr.call(C)}function nameOf(C){if(C.name){return C.name}var q=Nr.call(Ur.call(C),/^function\s*([\w$]+)/);if(q){return q[1]}return null}function indexOf(C,q){if(C.indexOf){return C.indexOf(q)}for(var re=0,ae=C.length;req.maxStringLength){var re=C.length-q.maxStringLength;var ae="... "+re+" more character"+(re>1?"s":"");return inspectString(Lr.call(C,0,q.maxStringLength),q)+ae}var Ue=ln[q.quoteStyle||"single"];Ue.lastIndex=0;var lt=jr.call(jr.call(C,Ue,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(lt,"single",q)}function lowbyte(C){var q=C.charCodeAt(0);var re={8:"b",9:"t",10:"n",12:"f",13:"r"}[q];if(re){return"\\"+re}return"\\x"+(q<16?"0":"")+Gr.call(q.toString(16))}function markBoxed(C){return"Object("+C+")"}function weakCollectionOf(C){return C+" { ? }"}function collectionOf(C,q,re,ae){var Ue=ae?indentedJoin(re,ae):$r.call(re,", ");return C+" ("+q+") {"+Ue+"}"}function singleLineValues(C){for(var q=0;q=0){return false}}return true}function getIndent(C,q){var re;if(C.indent==="\t"){re="\t"}else if(typeof C.indent==="number"&&C.indent>0){re=$r.call(Array(C.indent+1)," ")}else{return null}return{base:re,prev:$r.call(Array(q+1),re)}}function indentedJoin(C,q){if(C.length===0){return""}var re="\n"+q.prev+q.base;return re+$r.call(C,","+re)+"\n"+q.prev}function arrObjKeys(C,q){var re=isArray(C);var ae=[];if(re){ae.length=C.length;for(var Ue=0;Ue{C.exports=re(39023).inspect},53201:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{composePaginateRest:()=>Wt,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>Ar});C.exports=__toCommonJS(lt);var Pt="11.3.1";function normalizePaginatedListResponse(C){if(!C.data){return{...C,data:[]}}const q="total_count"in C.data&&!("url"in C.data);if(!q)return C;const re=C.data.incomplete_results;const ae=C.data.repository_selection;const Ue=C.data.total_count;delete C.data.incomplete_results;delete C.data.repository_selection;delete C.data.total_count;const lt=Object.keys(C.data)[0];const Pt=C.data[lt];C.data=Pt;if(typeof re!=="undefined"){C.data.incomplete_results=re}if(typeof ae!=="undefined"){C.data.repository_selection=ae}C.data.total_count=Ue;return C}function iterator(C,q,re){const ae=typeof q==="function"?q.endpoint(re):C.request.endpoint(q,re);const Ue=typeof q==="function"?q:C.request;const lt=ae.method;const Pt=ae.headers;let Wt=ae.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!Wt)return{done:true};try{const C=await Ue({method:lt,url:Wt,headers:Pt});const q=normalizePaginatedListResponse(C);Wt=((q.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:q}}catch(C){if(C.status!==409)throw C;Wt="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(C,q,re,ae){if(typeof re==="function"){ae=re;re=void 0}return gather(C,[],iterator(C,q,re)[Symbol.asyncIterator](),ae)}function gather(C,q,re,ae){return re.next().then((Ue=>{if(Ue.done){return q}let lt=false;function done(){lt=true}q=q.concat(ae?ae(Ue.value,done):Ue.value.data);if(lt){return q}return gather(C,q,re,ae)}))}var Wt=Object.assign(paginate,{iterator:iterator});var Ar=["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(C){if(typeof C==="string"){return Ar.includes(C)}else{return false}}function paginateRest(C){return{paginate:Object.assign(paginate.bind(null,C),{iterator:iterator.bind(null,C)})}}paginateRest.VERSION=Pt;0&&0},94400:C=>{var q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var __export=(C,re)=>{for(var ae in re)q(C,ae,{get:re[ae],enumerable:true})};var __copyProps=(C,lt,Pt,Wt)=>{if(lt&&typeof lt==="object"||typeof lt==="function"){for(let Ar of ae(lt))if(!Ue.call(C,Ar)&&Ar!==Pt)q(C,Ar,{get:()=>lt[Ar],enumerable:!(Wt=re(lt,Ar))||Wt.enumerable})}return C};var __toCommonJS=C=>__copyProps(q({},"__esModule",{value:true}),C);var lt={};__export(lt,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});C.exports=__toCommonJS(lt);var Pt="13.2.2";var Wt={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 Ar=Wt;var Er=new Map;for(const[C,q]of Object.entries(Ar)){for(const[re,ae]of Object.entries(q)){const[q,Ue,lt]=ae;const[Pt,Wt]=q.split(/ /);const Ar=Object.assign({method:Pt,url:Wt},Ue);if(!Er.has(C)){Er.set(C,new Map)}Er.get(C).set(re,{scope:C,methodName:re,endpointDefaults:Ar,decorations:lt})}}var Ir={has({scope:C},q){return Er.get(C).has(q)},getOwnPropertyDescriptor(C,q){return{value:this.get(C,q),configurable:true,writable:true,enumerable:true}},defineProperty(C,q,re){Object.defineProperty(C.cache,q,re);return true},deleteProperty(C,q){delete C.cache[q];return true},ownKeys({scope:C}){return[...Er.get(C).keys()]},set(C,q,re){return C.cache[q]=re},get({octokit:C,scope:q,cache:re},ae){if(re[ae]){return re[ae]}const Ue=Er.get(q).get(ae);if(!Ue){return void 0}const{endpointDefaults:lt,decorations:Pt}=Ue;if(Pt){re[ae]=decorate(C,q,ae,lt,Pt)}else{re[ae]=C.request.defaults(lt)}return re[ae]}};function endpointsToMethods(C){const q={};for(const re of Er.keys()){q[re]=new Proxy({octokit:C,scope:re,cache:{}},Ir)}return q}function decorate(C,q,re,ae,Ue){const lt=C.request.defaults(ae);function withDecorations(...ae){let Pt=lt.endpoint.merge(...ae);if(Ue.mapToData){Pt=Object.assign({},Pt,{data:Pt[Ue.mapToData],[Ue.mapToData]:void 0});return lt(Pt)}if(Ue.renamed){const[ae,lt]=Ue.renamed;C.log.warn(`octokit.${q}.${re}() has been renamed to octokit.${ae}.${lt}()`)}if(Ue.deprecated){C.log.warn(Ue.deprecated)}if(Ue.renamedParameters){const Pt=lt.endpoint.merge(...ae);for(const[ae,lt]of Object.entries(Ue.renamedParameters)){if(ae in Pt){C.log.warn(`"${ae}" parameter is deprecated for "octokit.${q}.${re}()". Use "${lt}" instead`);if(!(lt in Pt)){Pt[lt]=Pt[ae]}delete Pt[ae]}}return lt(Pt)}return lt(...ae)}return Object.assign(withDecorations,lt)}function restEndpointMethods(C){const q=endpointsToMethods(C);return{rest:q}}restEndpointMethods.VERSION=Pt;function legacyRestEndpointMethods(C){const q=endpointsToMethods(C);return{...q,rest:q}}legacyRestEndpointMethods.VERSION=Pt;0&&0},55560:(C,q,re)=>{var ae=re(58264);C.exports=ae(once);C.exports.strict=ae(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(C){var f=function(){if(f.called)return f.value;f.called=true;return f.value=C.apply(this,arguments)};f.called=false;return f}function onceStrict(C){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=C.apply(this,arguments)};var q=C.name||"Function wrapped with `once`";f.onceError=q+" shouldn't be called more than once";f.called=false;return f}},43585:(C,q,re)=>{const{Deflate:ae,deflate:Ue,deflateRaw:lt,gzip:Pt}=re(9854);const{Inflate:Wt,inflate:Ar,inflateRaw:Er,ungzip:Ir}=re(17902);const Br=re(8958);C.exports.Deflate=ae;C.exports.deflate=Ue;C.exports.deflateRaw=lt;C.exports.gzip=Pt;C.exports.Inflate=Wt;C.exports.inflate=Ar;C.exports.inflateRaw=Er;C.exports.ungzip=Ir;C.exports.constants=Br},9854:(C,q,re)=>{const ae=re(99760);const Ue=re(55538);const lt=re(49153);const Pt=re(52523);const Wt=re(89137);const Ar=Object.prototype.toString;const{Z_NO_FLUSH:Er,Z_SYNC_FLUSH:Ir,Z_FULL_FLUSH:Br,Z_FINISH:kr,Z_OK:Pr,Z_STREAM_END:Qr,Z_DEFAULT_COMPRESSION:Fr,Z_DEFAULT_STRATEGY:Dr,Z_DEFLATED:xr}=re(8958);function Deflate(C){this.options=Ue.assign({level:Fr,method:xr,chunkSize:16384,windowBits:15,memLevel:8,strategy:Dr},C||{});let q=this.options;if(q.raw&&q.windowBits>0){q.windowBits=-q.windowBits}else if(q.gzip&&q.windowBits>0&&q.windowBits<16){q.windowBits+=16}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new Wt;this.strm.avail_out=0;let re=ae.deflateInit2(this.strm,q.level,q.method,q.windowBits,q.memLevel,q.strategy);if(re!==Pr){throw new Error(Pt[re])}if(q.header){ae.deflateSetHeader(this.strm,q.header)}if(q.dictionary){let C;if(typeof q.dictionary==="string"){C=lt.string2buf(q.dictionary)}else if(Ar.call(q.dictionary)==="[object ArrayBuffer]"){C=new Uint8Array(q.dictionary)}else{C=q.dictionary}re=ae.deflateSetDictionary(this.strm,C);if(re!==Pr){throw new Error(Pt[re])}this._dict_set=true}}Deflate.prototype.push=function(C,q){const re=this.strm;const Ue=this.options.chunkSize;let Pt,Wt;if(this.ended){return false}if(q===~~q)Wt=q;else Wt=q===true?kr:Er;if(typeof C==="string"){re.input=lt.string2buf(C)}else if(Ar.call(C)==="[object ArrayBuffer]"){re.input=new Uint8Array(C)}else{re.input=C}re.next_in=0;re.avail_in=re.input.length;for(;;){if(re.avail_out===0){re.output=new Uint8Array(Ue);re.next_out=0;re.avail_out=Ue}if((Wt===Ir||Wt===Br)&&re.avail_out<=6){this.onData(re.output.subarray(0,re.next_out));re.avail_out=0;continue}Pt=ae.deflate(re,Wt);if(Pt===Qr){if(re.next_out>0){this.onData(re.output.subarray(0,re.next_out))}Pt=ae.deflateEnd(this.strm);this.onEnd(Pt);this.ended=true;return Pt===Pr}if(re.avail_out===0){this.onData(re.output);continue}if(Wt>0&&re.next_out>0){this.onData(re.output.subarray(0,re.next_out));re.avail_out=0;continue}if(re.avail_in===0)break}return true};Deflate.prototype.onData=function(C){this.chunks.push(C)};Deflate.prototype.onEnd=function(C){if(C===Pr){this.result=Ue.flattenChunks(this.chunks)}this.chunks=[];this.err=C;this.msg=this.strm.msg};function deflate(C,q){const re=new Deflate(q);re.push(C,true);if(re.err){throw re.msg||Pt[re.err]}return re.result}function deflateRaw(C,q){q=q||{};q.raw=true;return deflate(C,q)}function gzip(C,q){q=q||{};q.gzip=true;return deflate(C,q)}C.exports.Deflate=Deflate;C.exports.deflate=deflate;C.exports.deflateRaw=deflateRaw;C.exports.gzip=gzip;C.exports.constants=re(8958)},17902:(C,q,re)=>{const ae=re(76716);const Ue=re(55538);const lt=re(49153);const Pt=re(52523);const Wt=re(89137);const Ar=re(88991);const Er=Object.prototype.toString;const{Z_NO_FLUSH:Ir,Z_FINISH:Br,Z_OK:kr,Z_STREAM_END:Pr,Z_NEED_DICT:Qr,Z_STREAM_ERROR:Fr,Z_DATA_ERROR:Dr,Z_MEM_ERROR:xr}=re(8958);function Inflate(C){this.options=Ue.assign({chunkSize:1024*64,windowBits:15,to:""},C||{});const q=this.options;if(q.raw&&q.windowBits>=0&&q.windowBits<16){q.windowBits=-q.windowBits;if(q.windowBits===0){q.windowBits=-15}}if(q.windowBits>=0&&q.windowBits<16&&!(C&&C.windowBits)){q.windowBits+=32}if(q.windowBits>15&&q.windowBits<48){if((q.windowBits&15)===0){q.windowBits|=15}}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new Wt;this.strm.avail_out=0;let re=ae.inflateInit2(this.strm,q.windowBits);if(re!==kr){throw new Error(Pt[re])}this.header=new Ar;ae.inflateGetHeader(this.strm,this.header);if(q.dictionary){if(typeof q.dictionary==="string"){q.dictionary=lt.string2buf(q.dictionary)}else if(Er.call(q.dictionary)==="[object ArrayBuffer]"){q.dictionary=new Uint8Array(q.dictionary)}if(q.raw){re=ae.inflateSetDictionary(this.strm,q.dictionary);if(re!==kr){throw new Error(Pt[re])}}}}Inflate.prototype.push=function(C,q){const re=this.strm;const Ue=this.options.chunkSize;const Pt=this.options.dictionary;let Wt,Ar,Mr;if(this.ended)return false;if(q===~~q)Ar=q;else Ar=q===true?Br:Ir;if(Er.call(C)==="[object ArrayBuffer]"){re.input=new Uint8Array(C)}else{re.input=C}re.next_in=0;re.avail_in=re.input.length;for(;;){if(re.avail_out===0){re.output=new Uint8Array(Ue);re.next_out=0;re.avail_out=Ue}Wt=ae.inflate(re,Ar);if(Wt===Qr&&Pt){Wt=ae.inflateSetDictionary(re,Pt);if(Wt===kr){Wt=ae.inflate(re,Ar)}else if(Wt===Dr){Wt=Qr}}while(re.avail_in>0&&Wt===Pr&&re.state.wrap>0&&C[re.next_in]!==0){ae.inflateReset(re);Wt=ae.inflate(re,Ar)}switch(Wt){case Fr:case Dr:case Qr:case xr:this.onEnd(Wt);this.ended=true;return false}Mr=re.avail_out;if(re.next_out){if(re.avail_out===0||Wt===Pr){if(this.options.to==="string"){let C=lt.utf8border(re.output,re.next_out);let q=re.next_out-C;let ae=lt.buf2string(re.output,C);re.next_out=q;re.avail_out=Ue-q;if(q)re.output.set(re.output.subarray(C,C+q),0);this.onData(ae)}else{this.onData(re.output.length===re.next_out?re.output:re.output.subarray(0,re.next_out))}}}if(Wt===kr&&Mr===0)continue;if(Wt===Pr){Wt=ae.inflateEnd(this.strm);this.onEnd(Wt);this.ended=true;return true}if(re.avail_in===0)break}return true};Inflate.prototype.onData=function(C){this.chunks.push(C)};Inflate.prototype.onEnd=function(C){if(C===kr){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=Ue.flattenChunks(this.chunks)}}this.chunks=[];this.err=C;this.msg=this.strm.msg};function inflate(C,q){const re=new Inflate(q);re.push(C);if(re.err)throw re.msg||Pt[re.err];return re.result}function inflateRaw(C,q){q=q||{};q.raw=true;return inflate(C,q)}C.exports.Inflate=Inflate;C.exports.inflate=inflate;C.exports.inflateRaw=inflateRaw;C.exports.ungzip=inflate;C.exports.constants=re(8958)},55538:C=>{const _has=(C,q)=>Object.prototype.hasOwnProperty.call(C,q);C.exports.assign=function(C){const q=Array.prototype.slice.call(arguments,1);while(q.length){const re=q.shift();if(!re){continue}if(typeof re!=="object"){throw new TypeError(re+"must be non-object")}for(const q in re){if(_has(re,q)){C[q]=re[q]}}}return C};C.exports.flattenChunks=C=>{let q=0;for(let re=0,ae=C.length;re{let q=true;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(C){q=false}const re=new Uint8Array(256);for(let C=0;C<256;C++){re[C]=C>=252?6:C>=248?5:C>=240?4:C>=224?3:C>=192?2:1}re[254]=re[254]=1;C.exports.string2buf=C=>{if(typeof TextEncoder==="function"&&TextEncoder.prototype.encode){return(new TextEncoder).encode(C)}let q,re,ae,Ue,lt,Pt=C.length,Wt=0;for(Ue=0;Ue>>6;q[lt++]=128|re&63}else if(re<65536){q[lt++]=224|re>>>12;q[lt++]=128|re>>>6&63;q[lt++]=128|re&63}else{q[lt++]=240|re>>>18;q[lt++]=128|re>>>12&63;q[lt++]=128|re>>>6&63;q[lt++]=128|re&63}}return q};const buf2binstring=(C,re)=>{if(re<65534){if(C.subarray&&q){return String.fromCharCode.apply(null,C.length===re?C:C.subarray(0,re))}}let ae="";for(let q=0;q{const ae=q||C.length;if(typeof TextDecoder==="function"&&TextDecoder.prototype.decode){return(new TextDecoder).decode(C.subarray(0,q))}let Ue,lt;const Pt=new Array(ae*2);for(lt=0,Ue=0;Ue4){Pt[lt++]=65533;Ue+=Wt-1;continue}q&=Wt===2?31:Wt===3?15:7;while(Wt>1&&Ue1){Pt[lt++]=65533;continue}if(q<65536){Pt[lt++]=q}else{q-=65536;Pt[lt++]=55296|q>>10&1023;Pt[lt++]=56320|q&1023}}return buf2binstring(Pt,lt)};C.exports.utf8border=(C,q)=>{q=q||C.length;if(q>C.length){q=C.length}let ae=q-1;while(ae>=0&&(C[ae]&192)===128){ae--}if(ae<0){return q}if(ae===0){return q}return ae+re[C[ae]]>q?ae:q}},19834:C=>{const adler32=(C,q,re,ae)=>{let Ue=C&65535|0,lt=C>>>16&65535|0,Pt=0;while(re!==0){Pt=re>2e3?2e3:re;re-=Pt;do{Ue=Ue+q[ae++]|0;lt=lt+Ue|0}while(--Pt);Ue%=65521;lt%=65521}return Ue|lt<<16|0};C.exports=adler32},8958:C=>{C.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},63780:C=>{const makeTable=()=>{let C,q=[];for(var re=0;re<256;re++){C=re;for(var ae=0;ae<8;ae++){C=C&1?3988292384^C>>>1:C>>>1}q[re]=C}return q};const q=new Uint32Array(makeTable());const crc32=(C,re,ae,Ue)=>{const lt=q;const Pt=Ue+ae;C^=-1;for(let q=Ue;q>>8^lt[(C^re[q])&255]}return C^-1};C.exports=crc32},99760:(C,q,re)=>{const{_tr_init:ae,_tr_stored_block:Ue,_tr_flush_block:lt,_tr_tally:Pt,_tr_align:Wt}=re(31666);const Ar=re(19834);const Er=re(63780);const Ir=re(52523);const{Z_NO_FLUSH:Br,Z_PARTIAL_FLUSH:kr,Z_FULL_FLUSH:Pr,Z_FINISH:Qr,Z_BLOCK:Fr,Z_OK:Dr,Z_STREAM_END:xr,Z_STREAM_ERROR:Mr,Z_DATA_ERROR:Ur,Z_BUF_ERROR:Nr,Z_DEFAULT_COMPRESSION:Lr,Z_FILTERED:jr,Z_HUFFMAN_ONLY:Gr,Z_RLE:Vr,Z_FIXED:Hr,Z_DEFAULT_STRATEGY:Wr,Z_UNKNOWN:$r,Z_DEFLATED:Kr}=re(8958);const zr=9;const Jr=15;const Yr=8;const Xr=29;const Zr=256;const en=Zr+1+Xr;const tn=30;const rn=19;const nn=2*en+1;const sn=15;const an=3;const cn=258;const ln=cn+an+1;const un=32;const dn=42;const pn=57;const fn=69;const hn=73;const gn=91;const An=103;const mn=113;const _n=666;const yn=1;const bn=2;const En=3;const vn=4;const In=3;const err=(C,q)=>{C.msg=Ir[q];return q};const rank=C=>C*2-(C>4?9:0);const zero=C=>{let q=C.length;while(--q>=0){C[q]=0}};const slide_hash=C=>{let q,re;let ae;let Ue=C.w_size;q=C.hash_size;ae=q;do{re=C.head[--ae];C.head[ae]=re>=Ue?re-Ue:0}while(--q);q=Ue;ae=q;do{re=C.prev[--ae];C.prev[ae]=re>=Ue?re-Ue:0}while(--q)};let HASH_ZLIB=(C,q,re)=>(q<{const q=C.state;let re=q.pending;if(re>C.avail_out){re=C.avail_out}if(re===0){return}C.output.set(q.pending_buf.subarray(q.pending_out,q.pending_out+re),C.next_out);C.next_out+=re;q.pending_out+=re;C.total_out+=re;C.avail_out-=re;q.pending-=re;if(q.pending===0){q.pending_out=0}};const flush_block_only=(C,q)=>{lt(C,C.block_start>=0?C.block_start:-1,C.strstart-C.block_start,q);C.block_start=C.strstart;flush_pending(C.strm)};const put_byte=(C,q)=>{C.pending_buf[C.pending++]=q};const putShortMSB=(C,q)=>{C.pending_buf[C.pending++]=q>>>8&255;C.pending_buf[C.pending++]=q&255};const read_buf=(C,q,re,ae)=>{let Ue=C.avail_in;if(Ue>ae){Ue=ae}if(Ue===0){return 0}C.avail_in-=Ue;q.set(C.input.subarray(C.next_in,C.next_in+Ue),re);if(C.state.wrap===1){C.adler=Ar(C.adler,q,Ue,re)}else if(C.state.wrap===2){C.adler=Er(C.adler,q,Ue,re)}C.next_in+=Ue;C.total_in+=Ue;return Ue};const longest_match=(C,q)=>{let re=C.max_chain_length;let ae=C.strstart;let Ue;let lt;let Pt=C.prev_length;let Wt=C.nice_match;const Ar=C.strstart>C.w_size-ln?C.strstart-(C.w_size-ln):0;const Er=C.window;const Ir=C.w_mask;const Br=C.prev;const kr=C.strstart+cn;let Pr=Er[ae+Pt-1];let Qr=Er[ae+Pt];if(C.prev_length>=C.good_match){re>>=2}if(Wt>C.lookahead){Wt=C.lookahead}do{Ue=q;if(Er[Ue+Pt]!==Qr||Er[Ue+Pt-1]!==Pr||Er[Ue]!==Er[ae]||Er[++Ue]!==Er[ae+1]){continue}ae+=2;Ue++;do{}while(Er[++ae]===Er[++Ue]&&Er[++ae]===Er[++Ue]&&Er[++ae]===Er[++Ue]&&Er[++ae]===Er[++Ue]&&Er[++ae]===Er[++Ue]&&Er[++ae]===Er[++Ue]&&Er[++ae]===Er[++Ue]&&Er[++ae]===Er[++Ue]&&aePt){C.match_start=q;Pt=lt;if(lt>=Wt){break}Pr=Er[ae+Pt-1];Qr=Er[ae+Pt]}}while((q=Br[q&Ir])>Ar&&--re!==0);if(Pt<=C.lookahead){return Pt}return C.lookahead};const fill_window=C=>{const q=C.w_size;let re,ae,Ue;do{ae=C.window_size-C.lookahead-C.strstart;if(C.strstart>=q+(q-ln)){C.window.set(C.window.subarray(q,q+q-ae),0);C.match_start-=q;C.strstart-=q;C.block_start-=q;if(C.insert>C.strstart){C.insert=C.strstart}slide_hash(C);ae+=q}if(C.strm.avail_in===0){break}re=read_buf(C.strm,C.window,C.strstart+C.lookahead,ae);C.lookahead+=re;if(C.lookahead+C.insert>=an){Ue=C.strstart-C.insert;C.ins_h=C.window[Ue];C.ins_h=wn(C,C.ins_h,C.window[Ue+1]);while(C.insert){C.ins_h=wn(C,C.ins_h,C.window[Ue+an-1]);C.prev[Ue&C.w_mask]=C.head[C.ins_h];C.head[C.ins_h]=Ue;Ue++;C.insert--;if(C.lookahead+C.insert{let re=C.pending_buf_size-5>C.w_size?C.w_size:C.pending_buf_size-5;let ae,lt,Pt,Wt=0;let Ar=C.strm.avail_in;do{ae=65535;Pt=C.bi_valid+42>>3;if(C.strm.avail_outlt+C.strm.avail_in){ae=lt+C.strm.avail_in}if(ae>Pt){ae=Pt}if(ae>8;C.pending_buf[C.pending-2]=~ae;C.pending_buf[C.pending-1]=~ae>>8;flush_pending(C.strm);if(lt){if(lt>ae){lt=ae}C.strm.output.set(C.window.subarray(C.block_start,C.block_start+lt),C.strm.next_out);C.strm.next_out+=lt;C.strm.avail_out-=lt;C.strm.total_out+=lt;C.block_start+=lt;ae-=lt}if(ae){read_buf(C.strm,C.strm.output,C.strm.next_out,ae);C.strm.next_out+=ae;C.strm.avail_out-=ae;C.strm.total_out+=ae}}while(Wt===0);Ar-=C.strm.avail_in;if(Ar){if(Ar>=C.w_size){C.matches=2;C.window.set(C.strm.input.subarray(C.strm.next_in-C.w_size,C.strm.next_in),0);C.strstart=C.w_size;C.insert=C.strstart}else{if(C.window_size-C.strstart<=Ar){C.strstart-=C.w_size;C.window.set(C.window.subarray(C.w_size,C.w_size+C.strstart),0);if(C.matches<2){C.matches++}if(C.insert>C.strstart){C.insert=C.strstart}}C.window.set(C.strm.input.subarray(C.strm.next_in-Ar,C.strm.next_in),C.strstart);C.strstart+=Ar;C.insert+=Ar>C.w_size-C.insert?C.w_size-C.insert:Ar}C.block_start=C.strstart}if(C.high_waterPt&&C.block_start>=C.w_size){C.block_start-=C.w_size;C.strstart-=C.w_size;C.window.set(C.window.subarray(C.w_size,C.w_size+C.strstart),0);if(C.matches<2){C.matches++}Pt+=C.w_size;if(C.insert>C.strstart){C.insert=C.strstart}}if(Pt>C.strm.avail_in){Pt=C.strm.avail_in}if(Pt){read_buf(C.strm,C.window,C.strstart,Pt);C.strstart+=Pt;C.insert+=Pt>C.w_size-C.insert?C.w_size-C.insert:Pt}if(C.high_water>3;Pt=C.pending_buf_size-Pt>65535?65535:C.pending_buf_size-Pt;re=Pt>C.w_size?C.w_size:Pt;lt=C.strstart-C.block_start;if(lt>=re||(lt||q===Qr)&&q!==Br&&C.strm.avail_in===0&<<=Pt){ae=lt>Pt?Pt:lt;Wt=q===Qr&&C.strm.avail_in===0&&ae===lt?1:0;Ue(C,C.block_start,ae,Wt);C.block_start+=ae;flush_pending(C.strm)}return Wt?En:yn};const deflate_fast=(C,q)=>{let re;let ae;for(;;){if(C.lookahead=an){C.ins_h=wn(C,C.ins_h,C.window[C.strstart+an-1]);re=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h];C.head[C.ins_h]=C.strstart}if(re!==0&&C.strstart-re<=C.w_size-ln){C.match_length=longest_match(C,re)}if(C.match_length>=an){ae=Pt(C,C.strstart-C.match_start,C.match_length-an);C.lookahead-=C.match_length;if(C.match_length<=C.max_lazy_match&&C.lookahead>=an){C.match_length--;do{C.strstart++;C.ins_h=wn(C,C.ins_h,C.window[C.strstart+an-1]);re=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h];C.head[C.ins_h]=C.strstart}while(--C.match_length!==0);C.strstart++}else{C.strstart+=C.match_length;C.match_length=0;C.ins_h=C.window[C.strstart];C.ins_h=wn(C,C.ins_h,C.window[C.strstart+1])}}else{ae=Pt(C,0,C.window[C.strstart]);C.lookahead--;C.strstart++}if(ae){flush_block_only(C,false);if(C.strm.avail_out===0){return yn}}}C.insert=C.strstart{let re;let ae;let Ue;for(;;){if(C.lookahead=an){C.ins_h=wn(C,C.ins_h,C.window[C.strstart+an-1]);re=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h];C.head[C.ins_h]=C.strstart}C.prev_length=C.match_length;C.prev_match=C.match_start;C.match_length=an-1;if(re!==0&&C.prev_length4096)){C.match_length=an-1}}if(C.prev_length>=an&&C.match_length<=C.prev_length){Ue=C.strstart+C.lookahead-an;ae=Pt(C,C.strstart-1-C.prev_match,C.prev_length-an);C.lookahead-=C.prev_length-1;C.prev_length-=2;do{if(++C.strstart<=Ue){C.ins_h=wn(C,C.ins_h,C.window[C.strstart+an-1]);re=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h];C.head[C.ins_h]=C.strstart}}while(--C.prev_length!==0);C.match_available=0;C.match_length=an-1;C.strstart++;if(ae){flush_block_only(C,false);if(C.strm.avail_out===0){return yn}}}else if(C.match_available){ae=Pt(C,0,C.window[C.strstart-1]);if(ae){flush_block_only(C,false)}C.strstart++;C.lookahead--;if(C.strm.avail_out===0){return yn}}else{C.match_available=1;C.strstart++;C.lookahead--}}if(C.match_available){ae=Pt(C,0,C.window[C.strstart-1]);C.match_available=0}C.insert=C.strstart{let re;let ae;let Ue,lt;const Wt=C.window;for(;;){if(C.lookahead<=cn){fill_window(C);if(C.lookahead<=cn&&q===Br){return yn}if(C.lookahead===0){break}}C.match_length=0;if(C.lookahead>=an&&C.strstart>0){Ue=C.strstart-1;ae=Wt[Ue];if(ae===Wt[++Ue]&&ae===Wt[++Ue]&&ae===Wt[++Ue]){lt=C.strstart+cn;do{}while(ae===Wt[++Ue]&&ae===Wt[++Ue]&&ae===Wt[++Ue]&&ae===Wt[++Ue]&&ae===Wt[++Ue]&&ae===Wt[++Ue]&&ae===Wt[++Ue]&&ae===Wt[++Ue]&&UeC.lookahead){C.match_length=C.lookahead}}}if(C.match_length>=an){re=Pt(C,1,C.match_length-an);C.lookahead-=C.match_length;C.strstart+=C.match_length;C.match_length=0}else{re=Pt(C,0,C.window[C.strstart]);C.lookahead--;C.strstart++}if(re){flush_block_only(C,false);if(C.strm.avail_out===0){return yn}}}C.insert=0;if(q===Qr){flush_block_only(C,true);if(C.strm.avail_out===0){return En}return vn}if(C.sym_next){flush_block_only(C,false);if(C.strm.avail_out===0){return yn}}return bn};const deflate_huff=(C,q)=>{let re;for(;;){if(C.lookahead===0){fill_window(C);if(C.lookahead===0){if(q===Br){return yn}break}}C.match_length=0;re=Pt(C,0,C.window[C.strstart]);C.lookahead--;C.strstart++;if(re){flush_block_only(C,false);if(C.strm.avail_out===0){return yn}}}C.insert=0;if(q===Qr){flush_block_only(C,true);if(C.strm.avail_out===0){return En}return vn}if(C.sym_next){flush_block_only(C,false);if(C.strm.avail_out===0){return yn}}return bn};function Config(C,q,re,ae,Ue){this.good_length=C;this.max_lazy=q;this.nice_length=re;this.max_chain=ae;this.func=Ue}const Cn=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)];const lm_init=C=>{C.window_size=2*C.w_size;zero(C.head);C.max_lazy_match=Cn[C.level].max_lazy;C.good_match=Cn[C.level].good_length;C.nice_match=Cn[C.level].nice_length;C.max_chain_length=Cn[C.level].max_chain;C.strstart=0;C.block_start=0;C.lookahead=0;C.insert=0;C.match_length=C.prev_length=an-1;C.match_available=0;C.ins_h=0};function DeflateState(){this.strm=null;this.status=0;this.pending_buf=null;this.pending_buf_size=0;this.pending_out=0;this.pending=0;this.wrap=0;this.gzhead=null;this.gzindex=0;this.method=Kr;this.last_flush=-1;this.w_size=0;this.w_bits=0;this.w_mask=0;this.window=null;this.window_size=0;this.prev=null;this.head=null;this.ins_h=0;this.hash_size=0;this.hash_bits=0;this.hash_mask=0;this.hash_shift=0;this.block_start=0;this.match_length=0;this.prev_match=0;this.match_available=0;this.strstart=0;this.match_start=0;this.lookahead=0;this.prev_length=0;this.max_chain_length=0;this.max_lazy_match=0;this.level=0;this.strategy=0;this.good_match=0;this.nice_match=0;this.dyn_ltree=new Uint16Array(nn*2);this.dyn_dtree=new Uint16Array((2*tn+1)*2);this.bl_tree=new Uint16Array((2*rn+1)*2);zero(this.dyn_ltree);zero(this.dyn_dtree);zero(this.bl_tree);this.l_desc=null;this.d_desc=null;this.bl_desc=null;this.bl_count=new Uint16Array(sn+1);this.heap=new Uint16Array(2*en+1);zero(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new Uint16Array(2*en+1);zero(this.depth);this.sym_buf=0;this.lit_bufsize=0;this.sym_next=0;this.sym_end=0;this.opt_len=0;this.static_len=0;this.matches=0;this.insert=0;this.bi_buf=0;this.bi_valid=0}const deflateStateCheck=C=>{if(!C){return 1}const q=C.state;if(!q||q.strm!==C||q.status!==dn&&q.status!==pn&&q.status!==fn&&q.status!==hn&&q.status!==gn&&q.status!==An&&q.status!==mn&&q.status!==_n){return 1}return 0};const deflateResetKeep=C=>{if(deflateStateCheck(C)){return err(C,Mr)}C.total_in=C.total_out=0;C.data_type=$r;const q=C.state;q.pending=0;q.pending_out=0;if(q.wrap<0){q.wrap=-q.wrap}q.status=q.wrap===2?pn:q.wrap?dn:mn;C.adler=q.wrap===2?0:1;q.last_flush=-2;ae(q);return Dr};const deflateReset=C=>{const q=deflateResetKeep(C);if(q===Dr){lm_init(C.state)}return q};const deflateSetHeader=(C,q)=>{if(deflateStateCheck(C)||C.state.wrap!==2){return Mr}C.state.gzhead=q;return Dr};const deflateInit2=(C,q,re,ae,Ue,lt)=>{if(!C){return Mr}let Pt=1;if(q===Lr){q=6}if(ae<0){Pt=0;ae=-ae}else if(ae>15){Pt=2;ae-=16}if(Ue<1||Ue>zr||re!==Kr||ae<8||ae>15||q<0||q>9||lt<0||lt>Hr||ae===8&&Pt!==1){return err(C,Mr)}if(ae===8){ae=9}const Wt=new DeflateState;C.state=Wt;Wt.strm=C;Wt.status=dn;Wt.wrap=Pt;Wt.gzhead=null;Wt.w_bits=ae;Wt.w_size=1<deflateInit2(C,q,Kr,Jr,Yr,Wr);const deflate=(C,q)=>{if(deflateStateCheck(C)||q>Fr||q<0){return C?err(C,Mr):Mr}const re=C.state;if(!C.output||C.avail_in!==0&&!C.input||re.status===_n&&q!==Qr){return err(C,C.avail_out===0?Nr:Mr)}const ae=re.last_flush;re.last_flush=q;if(re.pending!==0){flush_pending(C);if(C.avail_out===0){re.last_flush=-1;return Dr}}else if(C.avail_in===0&&rank(q)<=rank(ae)&&q!==Qr){return err(C,Nr)}if(re.status===_n&&C.avail_in!==0){return err(C,Nr)}if(re.status===dn&&re.wrap===0){re.status=mn}if(re.status===dn){let q=Kr+(re.w_bits-8<<4)<<8;let ae=-1;if(re.strategy>=Gr||re.level<2){ae=0}else if(re.level<6){ae=1}else if(re.level===6){ae=2}else{ae=3}q|=ae<<6;if(re.strstart!==0){q|=un}q+=31-q%31;putShortMSB(re,q);if(re.strstart!==0){putShortMSB(re,C.adler>>>16);putShortMSB(re,C.adler&65535)}C.adler=1;re.status=mn;flush_pending(C);if(re.pending!==0){re.last_flush=-1;return Dr}}if(re.status===pn){C.adler=0;put_byte(re,31);put_byte(re,139);put_byte(re,8);if(!re.gzhead){put_byte(re,0);put_byte(re,0);put_byte(re,0);put_byte(re,0);put_byte(re,0);put_byte(re,re.level===9?2:re.strategy>=Gr||re.level<2?4:0);put_byte(re,In);re.status=mn;flush_pending(C);if(re.pending!==0){re.last_flush=-1;return Dr}}else{put_byte(re,(re.gzhead.text?1:0)+(re.gzhead.hcrc?2:0)+(!re.gzhead.extra?0:4)+(!re.gzhead.name?0:8)+(!re.gzhead.comment?0:16));put_byte(re,re.gzhead.time&255);put_byte(re,re.gzhead.time>>8&255);put_byte(re,re.gzhead.time>>16&255);put_byte(re,re.gzhead.time>>24&255);put_byte(re,re.level===9?2:re.strategy>=Gr||re.level<2?4:0);put_byte(re,re.gzhead.os&255);if(re.gzhead.extra&&re.gzhead.extra.length){put_byte(re,re.gzhead.extra.length&255);put_byte(re,re.gzhead.extra.length>>8&255)}if(re.gzhead.hcrc){C.adler=Er(C.adler,re.pending_buf,re.pending,0)}re.gzindex=0;re.status=fn}}if(re.status===fn){if(re.gzhead.extra){let q=re.pending;let ae=(re.gzhead.extra.length&65535)-re.gzindex;while(re.pending+ae>re.pending_buf_size){let Ue=re.pending_buf_size-re.pending;re.pending_buf.set(re.gzhead.extra.subarray(re.gzindex,re.gzindex+Ue),re.pending);re.pending=re.pending_buf_size;if(re.gzhead.hcrc&&re.pending>q){C.adler=Er(C.adler,re.pending_buf,re.pending-q,q)}re.gzindex+=Ue;flush_pending(C);if(re.pending!==0){re.last_flush=-1;return Dr}q=0;ae-=Ue}let Ue=new Uint8Array(re.gzhead.extra);re.pending_buf.set(Ue.subarray(re.gzindex,re.gzindex+ae),re.pending);re.pending+=ae;if(re.gzhead.hcrc&&re.pending>q){C.adler=Er(C.adler,re.pending_buf,re.pending-q,q)}re.gzindex=0}re.status=hn}if(re.status===hn){if(re.gzhead.name){let q=re.pending;let ae;do{if(re.pending===re.pending_buf_size){if(re.gzhead.hcrc&&re.pending>q){C.adler=Er(C.adler,re.pending_buf,re.pending-q,q)}flush_pending(C);if(re.pending!==0){re.last_flush=-1;return Dr}q=0}if(re.gzindexq){C.adler=Er(C.adler,re.pending_buf,re.pending-q,q)}re.gzindex=0}re.status=gn}if(re.status===gn){if(re.gzhead.comment){let q=re.pending;let ae;do{if(re.pending===re.pending_buf_size){if(re.gzhead.hcrc&&re.pending>q){C.adler=Er(C.adler,re.pending_buf,re.pending-q,q)}flush_pending(C);if(re.pending!==0){re.last_flush=-1;return Dr}q=0}if(re.gzindexq){C.adler=Er(C.adler,re.pending_buf,re.pending-q,q)}}re.status=An}if(re.status===An){if(re.gzhead.hcrc){if(re.pending+2>re.pending_buf_size){flush_pending(C);if(re.pending!==0){re.last_flush=-1;return Dr}}put_byte(re,C.adler&255);put_byte(re,C.adler>>8&255);C.adler=0}re.status=mn;flush_pending(C);if(re.pending!==0){re.last_flush=-1;return Dr}}if(C.avail_in!==0||re.lookahead!==0||q!==Br&&re.status!==_n){let ae=re.level===0?deflate_stored(re,q):re.strategy===Gr?deflate_huff(re,q):re.strategy===Vr?deflate_rle(re,q):Cn[re.level].func(re,q);if(ae===En||ae===vn){re.status=_n}if(ae===yn||ae===En){if(C.avail_out===0){re.last_flush=-1}return Dr}if(ae===bn){if(q===kr){Wt(re)}else if(q!==Fr){Ue(re,0,0,false);if(q===Pr){zero(re.head);if(re.lookahead===0){re.strstart=0;re.block_start=0;re.insert=0}}}flush_pending(C);if(C.avail_out===0){re.last_flush=-1;return Dr}}}if(q!==Qr){return Dr}if(re.wrap<=0){return xr}if(re.wrap===2){put_byte(re,C.adler&255);put_byte(re,C.adler>>8&255);put_byte(re,C.adler>>16&255);put_byte(re,C.adler>>24&255);put_byte(re,C.total_in&255);put_byte(re,C.total_in>>8&255);put_byte(re,C.total_in>>16&255);put_byte(re,C.total_in>>24&255)}else{putShortMSB(re,C.adler>>>16);putShortMSB(re,C.adler&65535)}flush_pending(C);if(re.wrap>0){re.wrap=-re.wrap}return re.pending!==0?Dr:xr};const deflateEnd=C=>{if(deflateStateCheck(C)){return Mr}const q=C.state.status;C.state=null;return q===mn?err(C,Ur):Dr};const deflateSetDictionary=(C,q)=>{let re=q.length;if(deflateStateCheck(C)){return Mr}const ae=C.state;const Ue=ae.wrap;if(Ue===2||Ue===1&&ae.status!==dn||ae.lookahead){return Mr}if(Ue===1){C.adler=Ar(C.adler,q,re,0)}ae.wrap=0;if(re>=ae.w_size){if(Ue===0){zero(ae.head);ae.strstart=0;ae.block_start=0;ae.insert=0}let C=new Uint8Array(ae.w_size);C.set(q.subarray(re-ae.w_size,re),0);q=C;re=ae.w_size}const lt=C.avail_in;const Pt=C.next_in;const Wt=C.input;C.avail_in=re;C.next_in=0;C.input=q;fill_window(ae);while(ae.lookahead>=an){let C=ae.strstart;let q=ae.lookahead-(an-1);do{ae.ins_h=wn(ae,ae.ins_h,ae.window[C+an-1]);ae.prev[C&ae.w_mask]=ae.head[ae.ins_h];ae.head[ae.ins_h]=C;C++}while(--q);ae.strstart=C;ae.lookahead=an-1;fill_window(ae)}ae.strstart+=ae.lookahead;ae.block_start=ae.strstart;ae.insert=ae.lookahead;ae.lookahead=0;ae.match_length=ae.prev_length=an-1;ae.match_available=0;C.next_in=Pt;C.input=Wt;C.avail_in=lt;ae.wrap=Ue;return Dr};C.exports.deflateInit=deflateInit;C.exports.deflateInit2=deflateInit2;C.exports.deflateReset=deflateReset;C.exports.deflateResetKeep=deflateResetKeep;C.exports.deflateSetHeader=deflateSetHeader;C.exports.deflate=deflate;C.exports.deflateEnd=deflateEnd;C.exports.deflateSetDictionary=deflateSetDictionary;C.exports.deflateInfo="pako deflate (from Nodeca project)"},88991:C=>{function GZheader(){this.text=0;this.time=0;this.xflags=0;this.os=0;this.extra=null;this.extra_len=0;this.name="";this.comment="";this.hcrc=0;this.done=false}C.exports=GZheader},47894:C=>{const q=16209;const re=16191;C.exports=function inflate_fast(C,ae){let Ue;let lt;let Pt;let Wt;let Ar;let Er;let Ir;let Br;let kr;let Pr;let Qr;let Fr;let Dr;let xr;let Mr;let Ur;let Nr;let Lr;let jr;let Gr;let Vr;let Hr;let Wr,$r;const Kr=C.state;Ue=C.next_in;Wr=C.input;lt=Ue+(C.avail_in-5);Pt=C.next_out;$r=C.output;Wt=Pt-(ae-C.avail_out);Ar=Pt+(C.avail_out-257);Er=Kr.dmax;Ir=Kr.wsize;Br=Kr.whave;kr=Kr.wnext;Pr=Kr.window;Qr=Kr.hold;Fr=Kr.bits;Dr=Kr.lencode;xr=Kr.distcode;Mr=(1<>>24;Qr>>>=Lr;Fr-=Lr;Lr=Nr>>>16&255;if(Lr===0){$r[Pt++]=Nr&65535}else if(Lr&16){jr=Nr&65535;Lr&=15;if(Lr){if(Fr>>=Lr;Fr-=Lr}if(Fr<15){Qr+=Wr[Ue++]<>>24;Qr>>>=Lr;Fr-=Lr;Lr=Nr>>>16&255;if(Lr&16){Gr=Nr&65535;Lr&=15;if(FrEr){C.msg="invalid distance too far back";Kr.mode=q;break e}Qr>>>=Lr;Fr-=Lr;Lr=Pt-Wt;if(Gr>Lr){Lr=Gr-Lr;if(Lr>Br){if(Kr.sane){C.msg="invalid distance too far back";Kr.mode=q;break e}}Vr=0;Hr=Pr;if(kr===0){Vr+=Ir-Lr;if(Lr2){$r[Pt++]=Hr[Vr++];$r[Pt++]=Hr[Vr++];$r[Pt++]=Hr[Vr++];jr-=3}if(jr){$r[Pt++]=Hr[Vr++];if(jr>1){$r[Pt++]=Hr[Vr++]}}}else{Vr=Pt-Gr;do{$r[Pt++]=$r[Vr++];$r[Pt++]=$r[Vr++];$r[Pt++]=$r[Vr++];jr-=3}while(jr>2);if(jr){$r[Pt++]=$r[Vr++];if(jr>1){$r[Pt++]=$r[Vr++]}}}}else if((Lr&64)===0){Nr=xr[(Nr&65535)+(Qr&(1<>3;Ue-=jr;Fr-=jr<<3;Qr&=(1<{const ae=re(19834);const Ue=re(63780);const lt=re(47894);const Pt=re(8611);const Wt=0;const Ar=1;const Er=2;const{Z_FINISH:Ir,Z_BLOCK:Br,Z_TREES:kr,Z_OK:Pr,Z_STREAM_END:Qr,Z_NEED_DICT:Fr,Z_STREAM_ERROR:Dr,Z_DATA_ERROR:xr,Z_MEM_ERROR:Mr,Z_BUF_ERROR:Ur,Z_DEFLATED:Nr}=re(8958);const Lr=16180;const jr=16181;const Gr=16182;const Vr=16183;const Hr=16184;const Wr=16185;const $r=16186;const Kr=16187;const zr=16188;const Jr=16189;const Yr=16190;const Xr=16191;const Zr=16192;const en=16193;const tn=16194;const rn=16195;const nn=16196;const sn=16197;const an=16198;const cn=16199;const ln=16200;const un=16201;const dn=16202;const pn=16203;const fn=16204;const hn=16205;const gn=16206;const An=16207;const mn=16208;const _n=16209;const yn=16210;const bn=16211;const En=852;const vn=592;const In=15;const wn=In;const zswap32=C=>(C>>>24&255)+(C>>>8&65280)+((C&65280)<<8)+((C&255)<<24);function InflateState(){this.strm=null;this.mode=0;this.last=false;this.wrap=0;this.havedict=false;this.flags=0;this.dmax=0;this.check=0;this.total=0;this.head=null;this.wbits=0;this.wsize=0;this.whave=0;this.wnext=0;this.window=null;this.hold=0;this.bits=0;this.length=0;this.offset=0;this.extra=0;this.lencode=null;this.distcode=null;this.lenbits=0;this.distbits=0;this.ncode=0;this.nlen=0;this.ndist=0;this.have=0;this.next=null;this.lens=new Uint16Array(320);this.work=new Uint16Array(288);this.lendyn=null;this.distdyn=null;this.sane=0;this.back=0;this.was=0}const inflateStateCheck=C=>{if(!C){return 1}const q=C.state;if(!q||q.strm!==C||q.modebn){return 1}return 0};const inflateResetKeep=C=>{if(inflateStateCheck(C)){return Dr}const q=C.state;C.total_in=C.total_out=q.total=0;C.msg="";if(q.wrap){C.adler=q.wrap&1}q.mode=Lr;q.last=0;q.havedict=0;q.flags=-1;q.dmax=32768;q.head=null;q.hold=0;q.bits=0;q.lencode=q.lendyn=new Int32Array(En);q.distcode=q.distdyn=new Int32Array(vn);q.sane=1;q.back=-1;return Pr};const inflateReset=C=>{if(inflateStateCheck(C)){return Dr}const q=C.state;q.wsize=0;q.whave=0;q.wnext=0;return inflateResetKeep(C)};const inflateReset2=(C,q)=>{let re;if(inflateStateCheck(C)){return Dr}const ae=C.state;if(q<0){re=0;q=-q}else{re=(q>>4)+5;if(q<48){q&=15}}if(q&&(q<8||q>15)){return Dr}if(ae.window!==null&&ae.wbits!==q){ae.window=null}ae.wrap=re;ae.wbits=q;return inflateReset(C)};const inflateInit2=(C,q)=>{if(!C){return Dr}const re=new InflateState;C.state=re;re.strm=C;re.window=null;re.mode=Lr;const ae=inflateReset2(C,q);if(ae!==Pr){C.state=null}return ae};const inflateInit=C=>inflateInit2(C,wn);let Cn=true;let Sn,Bn;const fixedtables=C=>{if(Cn){Sn=new Int32Array(512);Bn=new Int32Array(32);let q=0;while(q<144){C.lens[q++]=8}while(q<256){C.lens[q++]=9}while(q<280){C.lens[q++]=7}while(q<288){C.lens[q++]=8}Pt(Ar,C.lens,0,288,Sn,0,C.work,{bits:9});q=0;while(q<32){C.lens[q++]=5}Pt(Er,C.lens,0,32,Bn,0,C.work,{bits:5});Cn=false}C.lencode=Sn;C.lenbits=9;C.distcode=Bn;C.distbits=5};const updatewindow=(C,q,re,ae)=>{let Ue;const lt=C.state;if(lt.window===null){lt.wsize=1<=lt.wsize){lt.window.set(q.subarray(re-lt.wsize,re),0);lt.wnext=0;lt.whave=lt.wsize}else{Ue=lt.wsize-lt.wnext;if(Ue>ae){Ue=ae}lt.window.set(q.subarray(re-ae,re-ae+Ue),lt.wnext);ae-=Ue;if(ae){lt.window.set(q.subarray(re-ae,re),0);lt.wnext=ae;lt.whave=lt.wsize}else{lt.wnext+=Ue;if(lt.wnext===lt.wsize){lt.wnext=0}if(lt.whave{let re;let En,vn;let In;let wn;let Cn,Sn;let Bn;let Tn;let kn,Rn;let Pn;let On;let Qn;let Fn=0;let Dn,xn,Mn;let Un,Nn,Ln;let jn;let Gn;const Vn=new Uint8Array(4);let qn;let Hn;const Wn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(inflateStateCheck(C)||!C.output||!C.input&&C.avail_in!==0){return Dr}re=C.state;if(re.mode===Xr){re.mode=Zr}wn=C.next_out;vn=C.output;Sn=C.avail_out;In=C.next_in;En=C.input;Cn=C.avail_in;Bn=re.hold;Tn=re.bits;kn=Cn;Rn=Sn;Gn=Pr;e:for(;;){switch(re.mode){case Lr:if(re.wrap===0){re.mode=Zr;break}while(Tn<16){if(Cn===0){break e}Cn--;Bn+=En[In++]<>>8&255;re.check=Ue(re.check,Vn,2,0);Bn=0;Tn=0;re.mode=jr;break}if(re.head){re.head.done=false}if(!(re.wrap&1)||(((Bn&255)<<8)+(Bn>>8))%31){C.msg="incorrect header check";re.mode=_n;break}if((Bn&15)!==Nr){C.msg="unknown compression method";re.mode=_n;break}Bn>>>=4;Tn-=4;jn=(Bn&15)+8;if(re.wbits===0){re.wbits=jn}if(jn>15||jn>re.wbits){C.msg="invalid window size";re.mode=_n;break}re.dmax=1<>8&1}if(re.flags&512&&re.wrap&4){Vn[0]=Bn&255;Vn[1]=Bn>>>8&255;re.check=Ue(re.check,Vn,2,0)}Bn=0;Tn=0;re.mode=Gr;case Gr:while(Tn<32){if(Cn===0){break e}Cn--;Bn+=En[In++]<>>8&255;Vn[2]=Bn>>>16&255;Vn[3]=Bn>>>24&255;re.check=Ue(re.check,Vn,4,0)}Bn=0;Tn=0;re.mode=Vr;case Vr:while(Tn<16){if(Cn===0){break e}Cn--;Bn+=En[In++]<>8}if(re.flags&512&&re.wrap&4){Vn[0]=Bn&255;Vn[1]=Bn>>>8&255;re.check=Ue(re.check,Vn,2,0)}Bn=0;Tn=0;re.mode=Hr;case Hr:if(re.flags&1024){while(Tn<16){if(Cn===0){break e}Cn--;Bn+=En[In++]<>>8&255;re.check=Ue(re.check,Vn,2,0)}Bn=0;Tn=0}else if(re.head){re.head.extra=null}re.mode=Wr;case Wr:if(re.flags&1024){Pn=re.length;if(Pn>Cn){Pn=Cn}if(Pn){if(re.head){jn=re.head.extra_len-re.length;if(!re.head.extra){re.head.extra=new Uint8Array(re.head.extra_len)}re.head.extra.set(En.subarray(In,In+Pn),jn)}if(re.flags&512&&re.wrap&4){re.check=Ue(re.check,En,Pn,In)}Cn-=Pn;In+=Pn;re.length-=Pn}if(re.length){break e}}re.length=0;re.mode=$r;case $r:if(re.flags&2048){if(Cn===0){break e}Pn=0;do{jn=En[In+Pn++];if(re.head&&jn&&re.length<65536){re.head.name+=String.fromCharCode(jn)}}while(jn&&Pn>9&1;re.head.done=true}C.adler=re.check=0;re.mode=Xr;break;case Jr:while(Tn<32){if(Cn===0){break e}Cn--;Bn+=En[In++]<>>=Tn&7;Tn-=Tn&7;re.mode=gn;break}while(Tn<3){if(Cn===0){break e}Cn--;Bn+=En[In++]<>>=1;Tn-=1;switch(Bn&3){case 0:re.mode=en;break;case 1:fixedtables(re);re.mode=cn;if(q===kr){Bn>>>=2;Tn-=2;break e}break;case 2:re.mode=nn;break;case 3:C.msg="invalid block type";re.mode=_n}Bn>>>=2;Tn-=2;break;case en:Bn>>>=Tn&7;Tn-=Tn&7;while(Tn<32){if(Cn===0){break e}Cn--;Bn+=En[In++]<>>16^65535)){C.msg="invalid stored block lengths";re.mode=_n;break}re.length=Bn&65535;Bn=0;Tn=0;re.mode=tn;if(q===kr){break e}case tn:re.mode=rn;case rn:Pn=re.length;if(Pn){if(Pn>Cn){Pn=Cn}if(Pn>Sn){Pn=Sn}if(Pn===0){break e}vn.set(En.subarray(In,In+Pn),wn);Cn-=Pn;In+=Pn;Sn-=Pn;wn+=Pn;re.length-=Pn;break}re.mode=Xr;break;case nn:while(Tn<14){if(Cn===0){break e}Cn--;Bn+=En[In++]<>>=5;Tn-=5;re.ndist=(Bn&31)+1;Bn>>>=5;Tn-=5;re.ncode=(Bn&15)+4;Bn>>>=4;Tn-=4;if(re.nlen>286||re.ndist>30){C.msg="too many length or distance symbols";re.mode=_n;break}re.have=0;re.mode=sn;case sn:while(re.have>>=3;Tn-=3}while(re.have<19){re.lens[Wn[re.have++]]=0}re.lencode=re.lendyn;re.lenbits=7;qn={bits:re.lenbits};Gn=Pt(Wt,re.lens,0,19,re.lencode,0,re.work,qn);re.lenbits=qn.bits;if(Gn){C.msg="invalid code lengths set";re.mode=_n;break}re.have=0;re.mode=an;case an:while(re.have>>24;xn=Fn>>>16&255;Mn=Fn&65535;if(Dn<=Tn){break}if(Cn===0){break e}Cn--;Bn+=En[In++]<>>=Dn;Tn-=Dn;re.lens[re.have++]=Mn}else{if(Mn===16){Hn=Dn+2;while(Tn>>=Dn;Tn-=Dn;if(re.have===0){C.msg="invalid bit length repeat";re.mode=_n;break}jn=re.lens[re.have-1];Pn=3+(Bn&3);Bn>>>=2;Tn-=2}else if(Mn===17){Hn=Dn+3;while(Tn>>=Dn;Tn-=Dn;jn=0;Pn=3+(Bn&7);Bn>>>=3;Tn-=3}else{Hn=Dn+7;while(Tn>>=Dn;Tn-=Dn;jn=0;Pn=11+(Bn&127);Bn>>>=7;Tn-=7}if(re.have+Pn>re.nlen+re.ndist){C.msg="invalid bit length repeat";re.mode=_n;break}while(Pn--){re.lens[re.have++]=jn}}}if(re.mode===_n){break}if(re.lens[256]===0){C.msg="invalid code -- missing end-of-block";re.mode=_n;break}re.lenbits=9;qn={bits:re.lenbits};Gn=Pt(Ar,re.lens,0,re.nlen,re.lencode,0,re.work,qn);re.lenbits=qn.bits;if(Gn){C.msg="invalid literal/lengths set";re.mode=_n;break}re.distbits=6;re.distcode=re.distdyn;qn={bits:re.distbits};Gn=Pt(Er,re.lens,re.nlen,re.ndist,re.distcode,0,re.work,qn);re.distbits=qn.bits;if(Gn){C.msg="invalid distances set";re.mode=_n;break}re.mode=cn;if(q===kr){break e}case cn:re.mode=ln;case ln:if(Cn>=6&&Sn>=258){C.next_out=wn;C.avail_out=Sn;C.next_in=In;C.avail_in=Cn;re.hold=Bn;re.bits=Tn;lt(C,Rn);wn=C.next_out;vn=C.output;Sn=C.avail_out;In=C.next_in;En=C.input;Cn=C.avail_in;Bn=re.hold;Tn=re.bits;if(re.mode===Xr){re.back=-1}break}re.back=0;for(;;){Fn=re.lencode[Bn&(1<>>24;xn=Fn>>>16&255;Mn=Fn&65535;if(Dn<=Tn){break}if(Cn===0){break e}Cn--;Bn+=En[In++]<>Un)];Dn=Fn>>>24;xn=Fn>>>16&255;Mn=Fn&65535;if(Un+Dn<=Tn){break}if(Cn===0){break e}Cn--;Bn+=En[In++]<>>=Un;Tn-=Un;re.back+=Un}Bn>>>=Dn;Tn-=Dn;re.back+=Dn;re.length=Mn;if(xn===0){re.mode=hn;break}if(xn&32){re.back=-1;re.mode=Xr;break}if(xn&64){C.msg="invalid literal/length code";re.mode=_n;break}re.extra=xn&15;re.mode=un;case un:if(re.extra){Hn=re.extra;while(Tn>>=re.extra;Tn-=re.extra;re.back+=re.extra}re.was=re.length;re.mode=dn;case dn:for(;;){Fn=re.distcode[Bn&(1<>>24;xn=Fn>>>16&255;Mn=Fn&65535;if(Dn<=Tn){break}if(Cn===0){break e}Cn--;Bn+=En[In++]<>Un)];Dn=Fn>>>24;xn=Fn>>>16&255;Mn=Fn&65535;if(Un+Dn<=Tn){break}if(Cn===0){break e}Cn--;Bn+=En[In++]<>>=Un;Tn-=Un;re.back+=Un}Bn>>>=Dn;Tn-=Dn;re.back+=Dn;if(xn&64){C.msg="invalid distance code";re.mode=_n;break}re.offset=Mn;re.extra=xn&15;re.mode=pn;case pn:if(re.extra){Hn=re.extra;while(Tn>>=re.extra;Tn-=re.extra;re.back+=re.extra}if(re.offset>re.dmax){C.msg="invalid distance too far back";re.mode=_n;break}re.mode=fn;case fn:if(Sn===0){break e}Pn=Rn-Sn;if(re.offset>Pn){Pn=re.offset-Pn;if(Pn>re.whave){if(re.sane){C.msg="invalid distance too far back";re.mode=_n;break}}if(Pn>re.wnext){Pn-=re.wnext;On=re.wsize-Pn}else{On=re.wnext-Pn}if(Pn>re.length){Pn=re.length}Qn=re.window}else{Qn=vn;On=wn-re.offset;Pn=re.length}if(Pn>Sn){Pn=Sn}Sn-=Pn;re.length-=Pn;do{vn[wn++]=Qn[On++]}while(--Pn);if(re.length===0){re.mode=ln}break;case hn:if(Sn===0){break e}vn[wn++]=re.length;Sn--;re.mode=ln;break;case gn:if(re.wrap){while(Tn<32){if(Cn===0){break e}Cn--;Bn|=En[In++]<{if(inflateStateCheck(C)){return Dr}let q=C.state;if(q.window){q.window=null}C.state=null;return Pr};const inflateGetHeader=(C,q)=>{if(inflateStateCheck(C)){return Dr}const re=C.state;if((re.wrap&2)===0){return Dr}re.head=q;q.done=false;return Pr};const inflateSetDictionary=(C,q)=>{const re=q.length;let Ue;let lt;let Pt;if(inflateStateCheck(C)){return Dr}Ue=C.state;if(Ue.wrap!==0&&Ue.mode!==Yr){return Dr}if(Ue.mode===Yr){lt=1;lt=ae(lt,q,re,0);if(lt!==Ue.check){return xr}}Pt=updatewindow(C,q,re,re);if(Pt){Ue.mode=yn;return Mr}Ue.havedict=1;return Pr};C.exports.inflateReset=inflateReset;C.exports.inflateReset2=inflateReset2;C.exports.inflateResetKeep=inflateResetKeep;C.exports.inflateInit=inflateInit;C.exports.inflateInit2=inflateInit2;C.exports.inflate=inflate;C.exports.inflateEnd=inflateEnd;C.exports.inflateGetHeader=inflateGetHeader;C.exports.inflateSetDictionary=inflateSetDictionary;C.exports.inflateInfo="pako inflate (from Nodeca project)"},8611:C=>{const q=15;const re=852;const ae=592;const Ue=0;const lt=1;const Pt=2;const Wt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]);const Ar=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]);const Er=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]);const Ir=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);const inflate_table=(C,Br,kr,Pr,Qr,Fr,Dr,xr)=>{const Mr=xr.bits;let Ur=0;let Nr=0;let Lr=0,jr=0;let Gr=0;let Vr=0;let Hr=0;let Wr=0;let $r=0;let Kr=0;let zr;let Jr;let Yr;let Xr;let Zr;let en=null;let tn;const rn=new Uint16Array(q+1);const nn=new Uint16Array(q+1);let sn=null;let an,cn,ln;for(Ur=0;Ur<=q;Ur++){rn[Ur]=0}for(Nr=0;Nr=1;jr--){if(rn[jr]!==0){break}}if(Gr>jr){Gr=jr}if(jr===0){Qr[Fr++]=1<<24|64<<16|0;Qr[Fr++]=1<<24|64<<16|0;xr.bits=1;return 0}for(Lr=1;Lr0&&(C===Ue||jr!==1)){return-1}nn[1]=0;for(Ur=1;Urre||C===Pt&&$r>ae){return 1}for(;;){an=Ur-Hr;if(Dr[Nr]+1=tn){cn=sn[Dr[Nr]-tn];ln=en[Dr[Nr]-tn]}else{cn=32+64;ln=0}zr=1<>Hr)+Jr]=an<<24|cn<<16|ln|0}while(Jr!==0);zr=1<>=1}if(zr!==0){Kr&=zr-1;Kr+=zr}else{Kr=0}Nr++;if(--rn[Ur]===0){if(Ur===jr){break}Ur=Br[kr+Dr[Nr]]}if(Ur>Gr&&(Kr&Xr)!==Yr){if(Hr===0){Hr=Gr}Zr+=Lr;Vr=Ur-Hr;Wr=1<re||C===Pt&&$r>ae){return 1}Yr=Kr&Xr;Qr[Yr]=Gr<<24|Vr<<16|Zr-Fr|0}}if(Kr!==0){Qr[Zr+Kr]=Ur-Hr<<24|64<<16|0}xr.bits=Gr;return 0};C.exports=inflate_table},52523:C=>{C.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},31666:C=>{const q=4;const re=0;const ae=1;const Ue=2;function zero(C){let q=C.length;while(--q>=0){C[q]=0}}const lt=0;const Pt=1;const Wt=2;const Ar=3;const Er=258;const Ir=29;const Br=256;const kr=Br+1+Ir;const Pr=30;const Qr=19;const Fr=2*kr+1;const Dr=15;const xr=16;const Mr=7;const Ur=256;const Nr=16;const Lr=17;const jr=18;const Gr=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]);const Vr=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]);const Hr=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]);const Wr=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);const $r=512;const Kr=new Array((kr+2)*2);zero(Kr);const zr=new Array(Pr*2);zero(zr);const Jr=new Array($r);zero(Jr);const Yr=new Array(Er-Ar+1);zero(Yr);const Xr=new Array(Ir);zero(Xr);const Zr=new Array(Pr);zero(Zr);function StaticTreeDesc(C,q,re,ae,Ue){this.static_tree=C;this.extra_bits=q;this.extra_base=re;this.elems=ae;this.max_length=Ue;this.has_stree=C&&C.length}let en;let tn;let rn;function TreeDesc(C,q){this.dyn_tree=C;this.max_code=0;this.stat_desc=q}const d_code=C=>C<256?Jr[C]:Jr[256+(C>>>7)];const put_short=(C,q)=>{C.pending_buf[C.pending++]=q&255;C.pending_buf[C.pending++]=q>>>8&255};const send_bits=(C,q,re)=>{if(C.bi_valid>xr-re){C.bi_buf|=q<>xr-C.bi_valid;C.bi_valid+=re-xr}else{C.bi_buf|=q<{send_bits(C,re[q*2],re[q*2+1])};const bi_reverse=(C,q)=>{let re=0;do{re|=C&1;C>>>=1;re<<=1}while(--q>0);return re>>>1};const bi_flush=C=>{if(C.bi_valid===16){put_short(C,C.bi_buf);C.bi_buf=0;C.bi_valid=0}else if(C.bi_valid>=8){C.pending_buf[C.pending++]=C.bi_buf&255;C.bi_buf>>=8;C.bi_valid-=8}};const gen_bitlen=(C,q)=>{const re=q.dyn_tree;const ae=q.max_code;const Ue=q.stat_desc.static_tree;const lt=q.stat_desc.has_stree;const Pt=q.stat_desc.extra_bits;const Wt=q.stat_desc.extra_base;const Ar=q.stat_desc.max_length;let Er;let Ir,Br;let kr;let Pr;let Qr;let xr=0;for(kr=0;kr<=Dr;kr++){C.bl_count[kr]=0}re[C.heap[C.heap_max]*2+1]=0;for(Er=C.heap_max+1;ErAr){kr=Ar;xr++}re[Ir*2+1]=kr;if(Ir>ae){continue}C.bl_count[kr]++;Pr=0;if(Ir>=Wt){Pr=Pt[Ir-Wt]}Qr=re[Ir*2];C.opt_len+=Qr*(kr+Pr);if(lt){C.static_len+=Qr*(Ue[Ir*2+1]+Pr)}}if(xr===0){return}do{kr=Ar-1;while(C.bl_count[kr]===0){kr--}C.bl_count[kr]--;C.bl_count[kr+1]+=2;C.bl_count[Ar]--;xr-=2}while(xr>0);for(kr=Ar;kr!==0;kr--){Ir=C.bl_count[kr];while(Ir!==0){Br=C.heap[--Er];if(Br>ae){continue}if(re[Br*2+1]!==kr){C.opt_len+=(kr-re[Br*2+1])*re[Br*2];re[Br*2+1]=kr}Ir--}}};const gen_codes=(C,q,re)=>{const ae=new Array(Dr+1);let Ue=0;let lt;let Pt;for(lt=1;lt<=Dr;lt++){Ue=Ue+re[lt-1]<<1;ae[lt]=Ue}for(Pt=0;Pt<=q;Pt++){let q=C[Pt*2+1];if(q===0){continue}C[Pt*2]=bi_reverse(ae[q]++,q)}};const tr_static_init=()=>{let C;let q;let re;let ae;let Ue;const lt=new Array(Dr+1);re=0;for(ae=0;ae>=7;for(;ae{let q;for(q=0;q{if(C.bi_valid>8){put_short(C,C.bi_buf)}else if(C.bi_valid>0){C.pending_buf[C.pending++]=C.bi_buf}C.bi_buf=0;C.bi_valid=0};const smaller=(C,q,re,ae)=>{const Ue=q*2;const lt=re*2;return C[Ue]{const ae=C.heap[re];let Ue=re<<1;while(Ue<=C.heap_len){if(Ue{let ae;let Ue;let lt=0;let Pt;let Wt;if(C.sym_next!==0){do{ae=C.pending_buf[C.sym_buf+lt++]&255;ae+=(C.pending_buf[C.sym_buf+lt++]&255)<<8;Ue=C.pending_buf[C.sym_buf+lt++];if(ae===0){send_code(C,Ue,q)}else{Pt=Yr[Ue];send_code(C,Pt+Br+1,q);Wt=Gr[Pt];if(Wt!==0){Ue-=Xr[Pt];send_bits(C,Ue,Wt)}ae--;Pt=d_code(ae);send_code(C,Pt,re);Wt=Vr[Pt];if(Wt!==0){ae-=Zr[Pt];send_bits(C,ae,Wt)}}}while(lt{const re=q.dyn_tree;const ae=q.stat_desc.static_tree;const Ue=q.stat_desc.has_stree;const lt=q.stat_desc.elems;let Pt,Wt;let Ar=-1;let Er;C.heap_len=0;C.heap_max=Fr;for(Pt=0;Pt>1;Pt>=1;Pt--){pqdownheap(C,re,Pt)}Er=lt;do{Pt=C.heap[1];C.heap[1]=C.heap[C.heap_len--];pqdownheap(C,re,1);Wt=C.heap[1];C.heap[--C.heap_max]=Pt;C.heap[--C.heap_max]=Wt;re[Er*2]=re[Pt*2]+re[Wt*2];C.depth[Er]=(C.depth[Pt]>=C.depth[Wt]?C.depth[Pt]:C.depth[Wt])+1;re[Pt*2+1]=re[Wt*2+1]=Er;C.heap[1]=Er++;pqdownheap(C,re,1)}while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1];gen_bitlen(C,q);gen_codes(re,Ar,C.bl_count)};const scan_tree=(C,q,re)=>{let ae;let Ue=-1;let lt;let Pt=q[0*2+1];let Wt=0;let Ar=7;let Er=4;if(Pt===0){Ar=138;Er=3}q[(re+1)*2+1]=65535;for(ae=0;ae<=re;ae++){lt=Pt;Pt=q[(ae+1)*2+1];if(++Wt{let ae;let Ue=-1;let lt;let Pt=q[0*2+1];let Wt=0;let Ar=7;let Er=4;if(Pt===0){Ar=138;Er=3}for(ae=0;ae<=re;ae++){lt=Pt;Pt=q[(ae+1)*2+1];if(++Wt{let q;scan_tree(C,C.dyn_ltree,C.l_desc.max_code);scan_tree(C,C.dyn_dtree,C.d_desc.max_code);build_tree(C,C.bl_desc);for(q=Qr-1;q>=3;q--){if(C.bl_tree[Wr[q]*2+1]!==0){break}}C.opt_len+=3*(q+1)+5+5+4;return q};const send_all_trees=(C,q,re,ae)=>{let Ue;send_bits(C,q-257,5);send_bits(C,re-1,5);send_bits(C,ae-4,4);for(Ue=0;Ue{let q=4093624447;let Ue;for(Ue=0;Ue<=31;Ue++,q>>>=1){if(q&1&&C.dyn_ltree[Ue*2]!==0){return re}}if(C.dyn_ltree[9*2]!==0||C.dyn_ltree[10*2]!==0||C.dyn_ltree[13*2]!==0){return ae}for(Ue=32;Ue{if(!nn){tr_static_init();nn=true}C.l_desc=new TreeDesc(C.dyn_ltree,en);C.d_desc=new TreeDesc(C.dyn_dtree,tn);C.bl_desc=new TreeDesc(C.bl_tree,rn);C.bi_buf=0;C.bi_valid=0;init_block(C)};const _tr_stored_block=(C,q,re,ae)=>{send_bits(C,(lt<<1)+(ae?1:0),3);bi_windup(C);put_short(C,re);put_short(C,~re);if(re){C.pending_buf.set(C.window.subarray(q,q+re),C.pending)}C.pending+=re};const _tr_align=C=>{send_bits(C,Pt<<1,3);send_code(C,Ur,Kr);bi_flush(C)};const _tr_flush_block=(C,re,ae,lt)=>{let Ar,Er;let Ir=0;if(C.level>0){if(C.strm.data_type===Ue){C.strm.data_type=detect_data_type(C)}build_tree(C,C.l_desc);build_tree(C,C.d_desc);Ir=build_bl_tree(C);Ar=C.opt_len+3+7>>>3;Er=C.static_len+3+7>>>3;if(Er<=Ar){Ar=Er}}else{Ar=Er=ae+5}if(ae+4<=Ar&&re!==-1){_tr_stored_block(C,re,ae,lt)}else if(C.strategy===q||Er===Ar){send_bits(C,(Pt<<1)+(lt?1:0),3);compress_block(C,Kr,zr)}else{send_bits(C,(Wt<<1)+(lt?1:0),3);send_all_trees(C,C.l_desc.max_code+1,C.d_desc.max_code+1,Ir+1);compress_block(C,C.dyn_ltree,C.dyn_dtree)}init_block(C);if(lt){bi_windup(C)}};const _tr_tally=(C,q,re)=>{C.pending_buf[C.sym_buf+C.sym_next++]=q;C.pending_buf[C.sym_buf+C.sym_next++]=q>>8;C.pending_buf[C.sym_buf+C.sym_next++]=re;if(q===0){C.dyn_ltree[re*2]++}else{C.matches++;q--;C.dyn_ltree[(Yr[re]+Br+1)*2]++;C.dyn_dtree[d_code(q)*2]++}return C.sym_next===C.sym_end};C.exports._tr_init=_tr_init;C.exports._tr_stored_block=_tr_stored_block;C.exports._tr_flush_block=_tr_flush_block;C.exports._tr_tally=_tr_tally;C.exports._tr_align=_tr_align},89137:C=>{function ZStream(){this.input=null;this.next_in=0;this.avail_in=0;this.total_in=0;this.output=null;this.next_out=0;this.avail_out=0;this.total_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}C.exports=ZStream},86032:C=>{var q=String.prototype.replace;var re=/%20/g;var ae={RFC1738:"RFC1738",RFC3986:"RFC3986"};C.exports={default:ae.RFC3986,formatters:{RFC1738:function(C){return q.call(C,re,"+")},RFC3986:function(C){return String(C)}},RFC1738:ae.RFC1738,RFC3986:ae.RFC3986}},40240:(C,q,re)=>{var ae=re(71293);var Ue=re(79091);var lt=re(86032);C.exports={formats:lt,parse:Ue,stringify:ae}},79091:(C,q,re)=>{var ae=re(25225);var Ue=Object.prototype.hasOwnProperty;var lt=Array.isArray;var Pt={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:ae.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var interpretNumericEntities=function(C){return C.replace(/&#(\d+);/g,(function(C,q){return String.fromCharCode(parseInt(q,10))}))};var parseArrayValue=function(C,q){if(C&&typeof C==="string"&&q.comma&&C.indexOf(",")>-1){return C.split(",")}return C};var Wt="utf8=%26%2310003%3B";var Ar="utf8=%E2%9C%93";var Er=function parseQueryStringValues(C,q){var re={__proto__:null};var Er=q.ignoreQueryPrefix?C.replace(/^\?/,""):C;var Ir=q.parameterLimit===Infinity?undefined:q.parameterLimit;var Br=Er.split(q.delimiter,Ir);var kr=-1;var Pr;var Qr=q.charset;if(q.charsetSentinel){for(Pr=0;Pr-1){Ur=lt(Ur)?[Ur]:Ur}if(Ue.call(re,Mr)){re[Mr]=ae.combine(re[Mr],Ur)}else{re[Mr]=Ur}}return re};var parseObject=function(C,q,re,ae){var Ue=ae?q:parseArrayValue(q,re);for(var lt=C.length-1;lt>=0;--lt){var Pt;var Wt=C[lt];if(Wt==="[]"&&re.parseArrays){Pt=[].concat(Ue)}else{Pt=re.plainObjects?Object.create(null):{};var Ar=Wt.charAt(0)==="["&&Wt.charAt(Wt.length-1)==="]"?Wt.slice(1,-1):Wt;var Er=parseInt(Ar,10);if(!re.parseArrays&&Ar===""){Pt={0:Ue}}else if(!isNaN(Er)&&Wt!==Ar&&String(Er)===Ar&&Er>=0&&(re.parseArrays&&Er<=re.arrayLimit)){Pt=[];Pt[Er]=Ue}else if(Ar!=="__proto__"){Pt[Ar]=Ue}}Ue=Pt}return Ue};var Ir=function parseQueryStringKeys(C,q,re,ae){if(!C){return}var lt=re.allowDots?C.replace(/\.([^.[]+)/g,"[$1]"):C;var Pt=/(\[[^[\]]*])/;var Wt=/(\[[^[\]]*])/g;var Ar=re.depth>0&&Pt.exec(lt);var Er=Ar?lt.slice(0,Ar.index):lt;var Ir=[];if(Er){if(!re.plainObjects&&Ue.call(Object.prototype,Er)){if(!re.allowPrototypes){return}}Ir.push(Er)}var Br=0;while(re.depth>0&&(Ar=Wt.exec(lt))!==null&&Br{var ae=re(94753);var Ue=re(25225);var lt=re(86032);var Pt=Object.prototype.hasOwnProperty;var Wt={brackets:function brackets(C){return C+"[]"},comma:"comma",indices:function indices(C,q){return C+"["+q+"]"},repeat:function repeat(C){return C}};var Ar=Array.isArray;var Er=Array.prototype.push;var pushToArray=function(C,q){Er.apply(C,Ar(q)?q:[q])};var Ir=Date.prototype.toISOString;var Br=lt["default"];var kr={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:Ue.encode,encodeValuesOnly:false,format:Br,formatter:lt.formatters[Br],indices:false,serializeDate:function serializeDate(C){return Ir.call(C)},skipNulls:false,strictNullHandling:false};var Pr=function isNonNullishPrimitive(C){return typeof C==="string"||typeof C==="number"||typeof C==="boolean"||typeof C==="symbol"||typeof C==="bigint"};var Qr={};var Fr=function stringify(C,q,re,lt,Pt,Wt,Er,Ir,Br,Fr,Dr,xr,Mr,Ur,Nr,Lr){var jr=C;var Gr=Lr;var Vr=0;var Hr=false;while((Gr=Gr.get(Qr))!==void undefined&&!Hr){var Wr=Gr.get(C);Vr+=1;if(typeof Wr!=="undefined"){if(Wr===Vr){throw new RangeError("Cyclic object value")}else{Hr=true}}if(typeof Gr.get(Qr)==="undefined"){Vr=0}}if(typeof Ir==="function"){jr=Ir(q,jr)}else if(jr instanceof Date){jr=Dr(jr)}else if(re==="comma"&&Ar(jr)){jr=Ue.maybeMap(jr,(function(C){if(C instanceof Date){return Dr(C)}return C}))}if(jr===null){if(Pt){return Er&&!Ur?Er(q,kr.encoder,Nr,"key",xr):q}jr=""}if(Pr(jr)||Ue.isBuffer(jr)){if(Er){var $r=Ur?q:Er(q,kr.encoder,Nr,"key",xr);return[Mr($r)+"="+Mr(Er(jr,kr.encoder,Nr,"value",xr))]}return[Mr(q)+"="+Mr(String(jr))]}var Kr=[];if(typeof jr==="undefined"){return Kr}var zr;if(re==="comma"&&Ar(jr)){if(Ur&&Er){jr=Ue.maybeMap(jr,Er)}zr=[{value:jr.length>0?jr.join(",")||null:void undefined}]}else if(Ar(Ir)){zr=Ir}else{var Jr=Object.keys(jr);zr=Br?Jr.sort(Br):Jr}var Yr=lt&&Ar(jr)&&jr.length===1?q+"[]":q;for(var Xr=0;Xr0?Ur+Mr:""}},25225:(C,q,re)=>{var ae=re(86032);var Ue=Object.prototype.hasOwnProperty;var lt=Array.isArray;var Pt=function(){var C=[];for(var q=0;q<256;++q){C.push("%"+((q<16?"0":"")+q.toString(16)).toUpperCase())}return C}();var Wt=function compactQueue(C){while(C.length>1){var q=C.pop();var re=q.obj[q.prop];if(lt(re)){var ae=[];for(var Ue=0;Ue=48&&Ir<=57||Ir>=65&&Ir<=90||Ir>=97&&Ir<=122||lt===ae.RFC1738&&(Ir===40||Ir===41)){Ar+=Wt.charAt(Er);continue}if(Ir<128){Ar=Ar+Pt[Ir];continue}if(Ir<2048){Ar=Ar+(Pt[192|Ir>>6]+Pt[128|Ir&63]);continue}if(Ir<55296||Ir>=57344){Ar=Ar+(Pt[224|Ir>>12]+Pt[128|Ir>>6&63]+Pt[128|Ir&63]);continue}Er+=1;Ir=65536+((Ir&1023)<<10|Wt.charCodeAt(Er)&1023);Ar+=Pt[240|Ir>>18]+Pt[128|Ir>>12&63]+Pt[128|Ir>>6&63]+Pt[128|Ir&63]}return Ar};var kr=function compact(C){var q=[{obj:{o:C},prop:"o"}];var re=[];for(var ae=0;ae{var ae=re(60470);var Ue=re(31316);var lt=re(60497)();var Pt=re(33170);var Wt=re(73314);var Ar=ae("%Math.floor%");C.exports=function setFunctionLength(C,q){if(typeof C!=="function"){throw new Wt("`fn` is not a function")}if(typeof q!=="number"||q<0||q>4294967295||Ar(q)!==q){throw new Wt("`length` must be a positive 32-bit integer")}var re=arguments.length>2&&!!arguments[2];var ae=true;var Er=true;if("length"in C&&Pt){var Ir=Pt(C,"length");if(Ir&&!Ir.configurable){ae=false}if(Ir&&!Ir.writable){Er=false}}if(ae||Er||!re){if(lt){Ue(C,"length",q,true,true)}else{Ue(C,"length",q)}}return C}},94753:(C,q,re)=>{var ae=re(60470);var Ue=re(12856);var lt=re(60506);var Pt=re(73314);var Wt=ae("%WeakMap%",true);var Ar=ae("%Map%",true);var Er=Ue("WeakMap.prototype.get",true);var Ir=Ue("WeakMap.prototype.set",true);var Br=Ue("WeakMap.prototype.has",true);var kr=Ue("Map.prototype.get",true);var Pr=Ue("Map.prototype.set",true);var Qr=Ue("Map.prototype.has",true);var listGetNode=function(C,q){var re=C;var ae;for(;(ae=re.next)!==null;re=ae){if(ae.key===q){re.next=ae.next;ae.next=C.next;C.next=ae;return ae}}};var listGet=function(C,q){var re=listGetNode(C,q);return re&&re.value};var listSet=function(C,q,re){var ae=listGetNode(C,q);if(ae){ae.value=re}else{C.next={key:q,next:C.next,value:re}}};var listHas=function(C,q){return!!listGetNode(C,q)};C.exports=function getSideChannel(){var C;var q;var re;var ae={assert:function(C){if(!ae.has(C)){throw new Pt("Side channel does not contain "+lt(C))}},get:function(ae){if(Wt&&ae&&(typeof ae==="object"||typeof ae==="function")){if(C){return Er(C,ae)}}else if(Ar){if(q){return kr(q,ae)}}else{if(re){return listGet(re,ae)}}},has:function(ae){if(Wt&&ae&&(typeof ae==="object"||typeof ae==="function")){if(C){return Br(C,ae)}}else if(Ar){if(q){return Qr(q,ae)}}else{if(re){return listHas(re,ae)}}return false},set:function(ae,Ue){if(Wt&&ae&&(typeof ae==="object"||typeof ae==="function")){if(!C){C=new Wt}Ir(C,ae,Ue)}else if(Ar){if(!q){q=new Ar}Pr(q,ae,Ue)}else{if(!re){re={key:{},next:null}}listSet(re,ae,Ue)}}};return ae}},50118:C=>{C.exports=asyncMap;function asyncMap(){var C=Array.prototype.slice.call(arguments),q=C.shift()||[],re=C.pop();if(typeof re!=="function")throw new Error("No callback provided to asyncMap");if(!q)return re(null,[]);if(!Array.isArray(q))q=[q];var ae=C.length,Ue=[],lt=null,Pt=q.length,Wt=Pt*ae;if(!Wt)return re(null,[]);function cb(Ar){if(Ar&&!lt)lt=Ar;var Er=arguments.length;for(var Ir=1;IrPt){var Br=q.slice(Pt);Wt+=(q.length-Pt)*ae;Pt=q.length;process.nextTick((function(){Br.forEach((function(q){C.forEach((function(C){C(q,cb)}))}))}))}if(--Wt===0)re.apply(null,[lt].concat(Ue))}q.forEach((function(q){C.forEach((function(C){C(q,cb)}))}))}},2670:C=>{C.exports=bindActor;function bindActor(){var C=Array.prototype.slice.call(arguments),q=null,re;if(typeof C[0]==="object"){q=C.shift();re=C.shift();if(typeof re==="string")re=q[re]}else re=C.shift();return function(ae){re.apply(q,C.concat(ae))}}},51572:(C,q,re)=>{C.exports=chain;var ae=re(2670);chain.first={};chain.last={};function chain(C,q){var re=[];(function LOOP(Ue,lt){if(Ue>=lt)return q(null,re);if(Array.isArray(C[Ue]))C[Ue]=ae.apply(null,C[Ue].map((function(C){return C===chain.first?re[0]:C===chain.last?re[re.length-1]:C})));if(!C[Ue])return LOOP(Ue+1,lt);C[Ue]((function(C,ae){if(C)return q(C,re);if(ae!==undefined)re=re.concat(ae);LOOP(Ue+1,lt)}))})(0,C.length)}},67324:(C,q,re)=>{re(50118);re(2670);q.chain=re(51572)},67290:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});const ae=re(68632);const Ue=4096;const lt="utf8";class SmartBuffer{constructor(C){this.length=0;this._encoding=lt;this._writeOffset=0;this._readOffset=0;if(SmartBuffer.isSmartBufferOptions(C)){if(C.encoding){ae.checkEncoding(C.encoding);this._encoding=C.encoding}if(C.size){if(ae.isFiniteInteger(C.size)&&C.size>0){this._buff=Buffer.allocUnsafe(C.size)}else{throw new Error(ae.ERRORS.INVALID_SMARTBUFFER_SIZE)}}else if(C.buff){if(Buffer.isBuffer(C.buff)){this._buff=C.buff;this.length=C.buff.length}else{throw new Error(ae.ERRORS.INVALID_SMARTBUFFER_BUFFER)}}else{this._buff=Buffer.allocUnsafe(Ue)}}else{if(typeof C!=="undefined"){throw new Error(ae.ERRORS.INVALID_SMARTBUFFER_OBJECT)}this._buff=Buffer.allocUnsafe(Ue)}}static fromSize(C,q){return new this({size:C,encoding:q})}static fromBuffer(C,q){return new this({buff:C,encoding:q})}static fromOptions(C){return new this(C)}static isSmartBufferOptions(C){const q=C;return q&&(q.encoding!==undefined||q.size!==undefined||q.buff!==undefined)}readInt8(C){return this._readNumberValue(Buffer.prototype.readInt8,1,C)}readInt16BE(C){return this._readNumberValue(Buffer.prototype.readInt16BE,2,C)}readInt16LE(C){return this._readNumberValue(Buffer.prototype.readInt16LE,2,C)}readInt32BE(C){return this._readNumberValue(Buffer.prototype.readInt32BE,4,C)}readInt32LE(C){return this._readNumberValue(Buffer.prototype.readInt32LE,4,C)}readBigInt64BE(C){ae.bigIntAndBufferInt64Check("readBigInt64BE");return this._readNumberValue(Buffer.prototype.readBigInt64BE,8,C)}readBigInt64LE(C){ae.bigIntAndBufferInt64Check("readBigInt64LE");return this._readNumberValue(Buffer.prototype.readBigInt64LE,8,C)}writeInt8(C,q){this._writeNumberValue(Buffer.prototype.writeInt8,1,C,q);return this}insertInt8(C,q){return this._insertNumberValue(Buffer.prototype.writeInt8,1,C,q)}writeInt16BE(C,q){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,C,q)}insertInt16BE(C,q){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,C,q)}writeInt16LE(C,q){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,C,q)}insertInt16LE(C,q){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,C,q)}writeInt32BE(C,q){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,C,q)}insertInt32BE(C,q){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,C,q)}writeInt32LE(C,q){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,C,q)}insertInt32LE(C,q){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,C,q)}writeBigInt64BE(C,q){ae.bigIntAndBufferInt64Check("writeBigInt64BE");return this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,C,q)}insertBigInt64BE(C,q){ae.bigIntAndBufferInt64Check("writeBigInt64BE");return this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,C,q)}writeBigInt64LE(C,q){ae.bigIntAndBufferInt64Check("writeBigInt64LE");return this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,C,q)}insertBigInt64LE(C,q){ae.bigIntAndBufferInt64Check("writeBigInt64LE");return this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,C,q)}readUInt8(C){return this._readNumberValue(Buffer.prototype.readUInt8,1,C)}readUInt16BE(C){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,C)}readUInt16LE(C){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,C)}readUInt32BE(C){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,C)}readUInt32LE(C){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,C)}readBigUInt64BE(C){ae.bigIntAndBufferInt64Check("readBigUInt64BE");return this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,C)}readBigUInt64LE(C){ae.bigIntAndBufferInt64Check("readBigUInt64LE");return this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,C)}writeUInt8(C,q){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,C,q)}insertUInt8(C,q){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,C,q)}writeUInt16BE(C,q){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,C,q)}insertUInt16BE(C,q){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,C,q)}writeUInt16LE(C,q){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,C,q)}insertUInt16LE(C,q){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,C,q)}writeUInt32BE(C,q){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,C,q)}insertUInt32BE(C,q){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,C,q)}writeUInt32LE(C,q){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,C,q)}insertUInt32LE(C,q){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,C,q)}writeBigUInt64BE(C,q){ae.bigIntAndBufferInt64Check("writeBigUInt64BE");return this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,C,q)}insertBigUInt64BE(C,q){ae.bigIntAndBufferInt64Check("writeBigUInt64BE");return this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,C,q)}writeBigUInt64LE(C,q){ae.bigIntAndBufferInt64Check("writeBigUInt64LE");return this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,C,q)}insertBigUInt64LE(C,q){ae.bigIntAndBufferInt64Check("writeBigUInt64LE");return this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,C,q)}readFloatBE(C){return this._readNumberValue(Buffer.prototype.readFloatBE,4,C)}readFloatLE(C){return this._readNumberValue(Buffer.prototype.readFloatLE,4,C)}writeFloatBE(C,q){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,C,q)}insertFloatBE(C,q){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,C,q)}writeFloatLE(C,q){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,C,q)}insertFloatLE(C,q){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,C,q)}readDoubleBE(C){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,C)}readDoubleLE(C){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,C)}writeDoubleBE(C,q){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,C,q)}insertDoubleBE(C,q){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,C,q)}writeDoubleLE(C,q){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,C,q)}insertDoubleLE(C,q){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,C,q)}readString(C,q){let re;if(typeof C==="number"){ae.checkLengthValue(C);re=Math.min(C,this.length-this._readOffset)}else{q=C;re=this.length-this._readOffset}if(typeof q!=="undefined"){ae.checkEncoding(q)}const Ue=this._buff.slice(this._readOffset,this._readOffset+re).toString(q||this._encoding);this._readOffset+=re;return Ue}insertString(C,q,re){ae.checkOffsetValue(q);return this._handleString(C,true,q,re)}writeString(C,q,re){return this._handleString(C,false,q,re)}readStringNT(C){if(typeof C!=="undefined"){ae.checkEncoding(C)}let q=this.length;for(let C=this._readOffset;Cthis.length){throw new Error(ae.ERRORS.INVALID_READ_BEYOND_BOUNDS)}}ensureInsertable(C,q){ae.checkOffsetValue(q);this._ensureCapacity(this.length+C);if(qthis.length){this.length=q+C}else{this.length+=C}}_ensureWriteable(C,q){const re=typeof q==="number"?q:this._writeOffset;this._ensureCapacity(re+C);if(re+C>this.length){this.length=re+C}}_ensureCapacity(C){const q=this._buff.length;if(C>q){let re=this._buff;let ae=q*3/2+1;if(ae{Object.defineProperty(q,"__esModule",{value:true});const ae=re(20181);const Ue={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};q.ERRORS=Ue;function checkEncoding(C){if(!ae.Buffer.isEncoding(C)){throw new Error(Ue.INVALID_ENCODING)}}q.checkEncoding=checkEncoding;function isFiniteInteger(C){return typeof C==="number"&&isFinite(C)&&isInteger(C)}q.isFiniteInteger=isFiniteInteger;function checkOffsetOrLengthValue(C,q){if(typeof C==="number"){if(!isFiniteInteger(C)||C<0){throw new Error(q?Ue.INVALID_OFFSET:Ue.INVALID_LENGTH)}}else{throw new Error(q?Ue.INVALID_OFFSET_NON_NUMBER:Ue.INVALID_LENGTH_NON_NUMBER)}}function checkLengthValue(C){checkOffsetOrLengthValue(C,false)}q.checkLengthValue=checkLengthValue;function checkOffsetValue(C){checkOffsetOrLengthValue(C,true)}q.checkOffsetValue=checkOffsetValue;function checkTargetOffset(C,q){if(C<0||C>q.length){throw new Error(Ue.INVALID_TARGET_OFFSET)}}q.checkTargetOffset=checkTargetOffset;function isInteger(C){return typeof C==="number"&&isFinite(C)&&Math.floor(C)===C}function bigIntAndBufferInt64Check(C){if(typeof BigInt==="undefined"){throw new Error("Platform does not support JS BigInt type.")}if(typeof ae.Buffer.prototype[C]==="undefined"){throw new Error(`Platform does not support Buffer.prototype.${C}.`)}}q.bigIntAndBufferInt64Check=bigIntAndBufferInt64Check},57142:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.SocksClientError=q.SocksClient=void 0;const Ue=re(24434);const lt=re(69278);const Pt=re(67290);const Wt=re(24223);const Ar=re(50639);const Er=re(41129);const Ir=re(79712);Object.defineProperty(q,"SocksClientError",{enumerable:true,get:function(){return Ir.SocksClientError}});const Br=re(79253);class SocksClient extends Ue.EventEmitter{constructor(C){super();this.options=Object.assign({},C);(0,Ar.validateSocksClientOptions)(C);this.setState(Wt.SocksClientState.Created)}static createConnection(C,q){return new Promise(((re,ae)=>{try{(0,Ar.validateSocksClientOptions)(C,["connect"])}catch(C){if(typeof q==="function"){q(C);return re(C)}else{return ae(C)}}const Ue=new SocksClient(C);Ue.connect(C.existing_socket);Ue.once("established",(C=>{Ue.removeAllListeners();if(typeof q==="function"){q(null,C);re(C)}else{re(C)}}));Ue.once("error",(C=>{Ue.removeAllListeners();if(typeof q==="function"){q(C);re(C)}else{ae(C)}}))}))}static createConnectionChain(C,q){return new Promise(((re,Ue)=>ae(this,void 0,void 0,(function*(){try{(0,Ar.validateSocksClientChainOptions)(C)}catch(C){if(typeof q==="function"){q(C);return re(C)}else{return Ue(C)}}if(C.randomizeChain){(0,Ir.shuffleArray)(C.proxies)}try{let ae;for(let q=0;qthis.onDataReceivedHandler(C);this.onClose=()=>this.onCloseHandler();this.onError=C=>this.onErrorHandler(C);this.onConnect=()=>this.onConnectHandler();const q=setTimeout((()=>this.onEstablishedTimeout()),this.options.timeout||Wt.DEFAULT_TIMEOUT);if(q.unref&&typeof q.unref==="function"){q.unref()}if(C){this.socket=C}else{this.socket=new lt.Socket}this.socket.once("close",this.onClose);this.socket.once("error",this.onError);this.socket.once("connect",this.onConnect);this.socket.on("data",this.onDataReceived);this.setState(Wt.SocksClientState.Connecting);this.receiveBuffer=new Er.ReceiveBuffer;if(C){this.socket.emit("connect")}else{this.socket.connect(this.getSocketOptions());if(this.options.set_tcp_nodelay!==undefined&&this.options.set_tcp_nodelay!==null){this.socket.setNoDelay(!!this.options.set_tcp_nodelay)}}this.prependOnceListener("established",(C=>{setImmediate((()=>{if(this.receiveBuffer.length>0){const q=this.receiveBuffer.get(this.receiveBuffer.length);C.socket.emit("data",q)}C.socket.resume()}))}))}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){if(this.state!==Wt.SocksClientState.Established&&this.state!==Wt.SocksClientState.BoundWaitingForConnection){this.closeSocket(Wt.ERRORS.ProxyConnectionTimedOut)}}onConnectHandler(){this.setState(Wt.SocksClientState.Connected);if(this.options.proxy.type===4){this.sendSocks4InitialHandshake()}else{this.sendSocks5InitialHandshake()}this.setState(Wt.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(C){this.receiveBuffer.append(C);this.processData()}processData(){while(this.state!==Wt.SocksClientState.Established&&this.state!==Wt.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize){if(this.state===Wt.SocksClientState.SentInitialHandshake){if(this.options.proxy.type===4){this.handleSocks4FinalHandshakeResponse()}else{this.handleInitialSocks5HandshakeResponse()}}else if(this.state===Wt.SocksClientState.SentAuthentication){this.handleInitialSocks5AuthenticationHandshakeResponse()}else if(this.state===Wt.SocksClientState.SentFinalHandshake){this.handleSocks5FinalHandshakeResponse()}else if(this.state===Wt.SocksClientState.BoundWaitingForConnection){if(this.options.proxy.type===4){this.handleSocks4IncomingConnectionResponse()}else{this.handleSocks5IncomingConnectionResponse()}}else{this.closeSocket(Wt.ERRORS.InternalError);break}}}onCloseHandler(){this.closeSocket(Wt.ERRORS.SocketClosed)}onErrorHandler(C){this.closeSocket(C.message)}removeInternalSocketHandlers(){this.socket.pause();this.socket.removeListener("data",this.onDataReceived);this.socket.removeListener("close",this.onClose);this.socket.removeListener("error",this.onError);this.socket.removeListener("connect",this.onConnect)}closeSocket(C){if(this.state!==Wt.SocksClientState.Error){this.setState(Wt.SocksClientState.Error);this.socket.destroy();this.removeInternalSocketHandlers();this.emit("error",new Ir.SocksClientError(C,this.options))}}sendSocks4InitialHandshake(){const C=this.options.proxy.userId||"";const q=new Pt.SmartBuffer;q.writeUInt8(4);q.writeUInt8(Wt.SocksCommand[this.options.command]);q.writeUInt16BE(this.options.destination.port);if(lt.isIPv4(this.options.destination.host)){q.writeBuffer((0,Ar.ipToBuffer)(this.options.destination.host));q.writeStringNT(C)}else{q.writeUInt8(0);q.writeUInt8(0);q.writeUInt8(0);q.writeUInt8(1);q.writeStringNT(C);q.writeStringNT(this.options.destination.host)}this.nextRequiredPacketBufferSize=Wt.SOCKS_INCOMING_PACKET_SIZES.Socks4Response;this.socket.write(q.toBuffer())}handleSocks4FinalHandshakeResponse(){const C=this.receiveBuffer.get(8);if(C[1]!==Wt.Socks4Response.Granted){this.closeSocket(`${Wt.ERRORS.Socks4ProxyRejectedConnection} - (${Wt.Socks4Response[C[1]]})`)}else{if(Wt.SocksCommand[this.options.command]===Wt.SocksCommand.bind){const q=Pt.SmartBuffer.fromBuffer(C);q.readOffset=2;const re={port:q.readUInt16BE(),host:(0,Ar.int32ToIpv4)(q.readUInt32BE())};if(re.host==="0.0.0.0"){re.host=this.options.proxy.ipaddress}this.setState(Wt.SocksClientState.BoundWaitingForConnection);this.emit("bound",{remoteHost:re,socket:this.socket})}else{this.setState(Wt.SocksClientState.Established);this.removeInternalSocketHandlers();this.emit("established",{socket:this.socket})}}}handleSocks4IncomingConnectionResponse(){const C=this.receiveBuffer.get(8);if(C[1]!==Wt.Socks4Response.Granted){this.closeSocket(`${Wt.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${Wt.Socks4Response[C[1]]})`)}else{const q=Pt.SmartBuffer.fromBuffer(C);q.readOffset=2;const re={port:q.readUInt16BE(),host:(0,Ar.int32ToIpv4)(q.readUInt32BE())};this.setState(Wt.SocksClientState.Established);this.removeInternalSocketHandlers();this.emit("established",{remoteHost:re,socket:this.socket})}}sendSocks5InitialHandshake(){const C=new Pt.SmartBuffer;const q=[Wt.Socks5Auth.NoAuth];if(this.options.proxy.userId||this.options.proxy.password){q.push(Wt.Socks5Auth.UserPass)}if(this.options.proxy.custom_auth_method!==undefined){q.push(this.options.proxy.custom_auth_method)}C.writeUInt8(5);C.writeUInt8(q.length);for(const re of q){C.writeUInt8(re)}this.nextRequiredPacketBufferSize=Wt.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse;this.socket.write(C.toBuffer());this.setState(Wt.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const C=this.receiveBuffer.get(2);if(C[0]!==5){this.closeSocket(Wt.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion)}else if(C[1]===Wt.SOCKS5_NO_ACCEPTABLE_AUTH){this.closeSocket(Wt.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType)}else{if(C[1]===Wt.Socks5Auth.NoAuth){this.socks5ChosenAuthType=Wt.Socks5Auth.NoAuth;this.sendSocks5CommandRequest()}else if(C[1]===Wt.Socks5Auth.UserPass){this.socks5ChosenAuthType=Wt.Socks5Auth.UserPass;this.sendSocks5UserPassAuthentication()}else if(C[1]===this.options.proxy.custom_auth_method){this.socks5ChosenAuthType=this.options.proxy.custom_auth_method;this.sendSocks5CustomAuthentication()}else{this.closeSocket(Wt.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}}}sendSocks5UserPassAuthentication(){const C=this.options.proxy.userId||"";const q=this.options.proxy.password||"";const re=new Pt.SmartBuffer;re.writeUInt8(1);re.writeUInt8(Buffer.byteLength(C));re.writeString(C);re.writeUInt8(Buffer.byteLength(q));re.writeString(q);this.nextRequiredPacketBufferSize=Wt.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse;this.socket.write(re.toBuffer());this.setState(Wt.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return ae(this,void 0,void 0,(function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size;this.socket.write(yield this.options.proxy.custom_auth_request_handler());this.setState(Wt.SocksClientState.SentAuthentication)}))}handleSocks5CustomAuthHandshakeResponse(C){return ae(this,void 0,void 0,(function*(){return yield this.options.proxy.custom_auth_response_handler(C)}))}handleSocks5AuthenticationNoAuthHandshakeResponse(C){return ae(this,void 0,void 0,(function*(){return C[1]===0}))}handleSocks5AuthenticationUserPassHandshakeResponse(C){return ae(this,void 0,void 0,(function*(){return C[1]===0}))}handleInitialSocks5AuthenticationHandshakeResponse(){return ae(this,void 0,void 0,(function*(){this.setState(Wt.SocksClientState.ReceivedAuthenticationResponse);let C=false;if(this.socks5ChosenAuthType===Wt.Socks5Auth.NoAuth){C=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2))}else if(this.socks5ChosenAuthType===Wt.Socks5Auth.UserPass){C=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2))}else if(this.socks5ChosenAuthType===this.options.proxy.custom_auth_method){C=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))}if(!C){this.closeSocket(Wt.ERRORS.Socks5AuthenticationFailed)}else{this.sendSocks5CommandRequest()}}))}sendSocks5CommandRequest(){const C=new Pt.SmartBuffer;C.writeUInt8(5);C.writeUInt8(Wt.SocksCommand[this.options.command]);C.writeUInt8(0);if(lt.isIPv4(this.options.destination.host)){C.writeUInt8(Wt.Socks5HostType.IPv4);C.writeBuffer((0,Ar.ipToBuffer)(this.options.destination.host))}else if(lt.isIPv6(this.options.destination.host)){C.writeUInt8(Wt.Socks5HostType.IPv6);C.writeBuffer((0,Ar.ipToBuffer)(this.options.destination.host))}else{C.writeUInt8(Wt.Socks5HostType.Hostname);C.writeUInt8(this.options.destination.host.length);C.writeString(this.options.destination.host)}C.writeUInt16BE(this.options.destination.port);this.nextRequiredPacketBufferSize=Wt.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader;this.socket.write(C.toBuffer());this.setState(Wt.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const C=this.receiveBuffer.peek(5);if(C[0]!==5||C[1]!==Wt.Socks5Response.Granted){this.closeSocket(`${Wt.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${Wt.Socks5Response[C[1]]}`)}else{const q=C[3];let re;let ae;if(q===Wt.Socks5HostType.IPv4){const C=Wt.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length{Object.defineProperty(q,"__esModule",{value:true});q.SOCKS5_NO_ACCEPTABLE_AUTH=q.SOCKS5_CUSTOM_AUTH_END=q.SOCKS5_CUSTOM_AUTH_START=q.SOCKS_INCOMING_PACKET_SIZES=q.SocksClientState=q.Socks5Response=q.Socks5HostType=q.Socks5Auth=q.Socks4Response=q.SocksCommand=q.ERRORS=q.DEFAULT_TIMEOUT=void 0;const re=3e4;q.DEFAULT_TIMEOUT=re;const ae={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};q.ERRORS=ae;const Ue={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:C=>C+7,Socks4Response:8};q.SOCKS_INCOMING_PACKET_SIZES=Ue;var lt;(function(C){C[C["connect"]=1]="connect";C[C["bind"]=2]="bind";C[C["associate"]=3]="associate"})(lt||(q.SocksCommand=lt={}));var Pt;(function(C){C[C["Granted"]=90]="Granted";C[C["Failed"]=91]="Failed";C[C["Rejected"]=92]="Rejected";C[C["RejectedIdent"]=93]="RejectedIdent"})(Pt||(q.Socks4Response=Pt={}));var Wt;(function(C){C[C["NoAuth"]=0]="NoAuth";C[C["GSSApi"]=1]="GSSApi";C[C["UserPass"]=2]="UserPass"})(Wt||(q.Socks5Auth=Wt={}));const Ar=128;q.SOCKS5_CUSTOM_AUTH_START=Ar;const Er=254;q.SOCKS5_CUSTOM_AUTH_END=Er;const Ir=255;q.SOCKS5_NO_ACCEPTABLE_AUTH=Ir;var Br;(function(C){C[C["Granted"]=0]="Granted";C[C["Failure"]=1]="Failure";C[C["NotAllowed"]=2]="NotAllowed";C[C["NetworkUnreachable"]=3]="NetworkUnreachable";C[C["HostUnreachable"]=4]="HostUnreachable";C[C["ConnectionRefused"]=5]="ConnectionRefused";C[C["TTLExpired"]=6]="TTLExpired";C[C["CommandNotSupported"]=7]="CommandNotSupported";C[C["AddressNotSupported"]=8]="AddressNotSupported"})(Br||(q.Socks5Response=Br={}));var kr;(function(C){C[C["IPv4"]=1]="IPv4";C[C["Hostname"]=3]="Hostname";C[C["IPv6"]=4]="IPv6"})(kr||(q.Socks5HostType=kr={}));var Pr;(function(C){C[C["Created"]=0]="Created";C[C["Connecting"]=1]="Connecting";C[C["Connected"]=2]="Connected";C[C["SentInitialHandshake"]=3]="SentInitialHandshake";C[C["ReceivedInitialHandshakeResponse"]=4]="ReceivedInitialHandshakeResponse";C[C["SentAuthentication"]=5]="SentAuthentication";C[C["ReceivedAuthenticationResponse"]=6]="ReceivedAuthenticationResponse";C[C["SentFinalHandshake"]=7]="SentFinalHandshake";C[C["ReceivedFinalResponse"]=8]="ReceivedFinalResponse";C[C["BoundWaitingForConnection"]=9]="BoundWaitingForConnection";C[C["Established"]=10]="Established";C[C["Disconnected"]=11]="Disconnected";C[C["Error"]=99]="Error"})(Pr||(q.SocksClientState=Pr={}))},50639:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ipToBuffer=q.int32ToIpv4=q.ipv4ToInt32=q.validateSocksClientChainOptions=q.validateSocksClientOptions=void 0;const ae=re(79712);const Ue=re(24223);const lt=re(2203);const Pt=re(79253);const Wt=re(69278);function validateSocksClientOptions(C,q=["connect","bind","associate"]){if(!Ue.SocksCommand[C.command]){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksCommand,C)}if(q.indexOf(C.command)===-1){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksCommandForOperation,C)}if(!isValidSocksRemoteHost(C.destination)){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsDestination,C)}if(!isValidSocksProxy(C.proxy)){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsProxy,C)}validateCustomProxyAuth(C.proxy,C);if(C.timeout&&!isValidTimeoutValue(C.timeout)){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsTimeout,C)}if(C.existing_socket&&!(C.existing_socket instanceof lt.Duplex)){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsExistingSocket,C)}}q.validateSocksClientOptions=validateSocksClientOptions;function validateSocksClientChainOptions(C){if(C.command!=="connect"){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksCommandChain,C)}if(!isValidSocksRemoteHost(C.destination)){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsDestination,C)}if(!(C.proxies&&Array.isArray(C.proxies)&&C.proxies.length>=2)){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsProxiesLength,C)}C.proxies.forEach((q=>{if(!isValidSocksProxy(q)){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsProxy,C)}validateCustomProxyAuth(q,C)}));if(C.timeout&&!isValidTimeoutValue(C.timeout)){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsTimeout,C)}}q.validateSocksClientChainOptions=validateSocksClientChainOptions;function validateCustomProxyAuth(C,q){if(C.custom_auth_method!==undefined){if(C.custom_auth_methodUe.SOCKS5_CUSTOM_AUTH_END){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsCustomAuthRange,q)}if(C.custom_auth_request_handler===undefined||typeof C.custom_auth_request_handler!=="function"){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,q)}if(C.custom_auth_response_size===undefined){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,q)}if(C.custom_auth_response_handler===undefined||typeof C.custom_auth_response_handler!=="function"){throw new ae.SocksClientError(Ue.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,q)}}}function isValidSocksRemoteHost(C){return C&&typeof C.host==="string"&&typeof C.port==="number"&&C.port>=0&&C.port<=65535}function isValidSocksProxy(C){return C&&(typeof C.host==="string"||typeof C.ipaddress==="string")&&typeof C.port==="number"&&C.port>=0&&C.port<=65535&&(C.type===4||C.type===5)}function isValidTimeoutValue(C){return typeof C==="number"&&C>0}function ipv4ToInt32(C){const q=new Pt.Address4(C);return q.toArray().reduce(((C,q)=>(C<<8)+q),0)}q.ipv4ToInt32=ipv4ToInt32;function int32ToIpv4(C){const q=C>>>24&255;const re=C>>>16&255;const ae=C>>>8&255;const Ue=C&255;return[q,re,ae,Ue].join(".")}q.int32ToIpv4=int32ToIpv4;function ipToBuffer(C){if(Wt.isIPv4(C)){const q=new Pt.Address4(C);return Buffer.from(q.toArray())}else if(Wt.isIPv6(C)){const q=new Pt.Address6(C);return Buffer.from(q.canonicalForm().split(":").map((C=>C.padStart(4,"0"))).join(""),"hex")}else{throw new Error("Invalid IP address format")}}q.ipToBuffer=ipToBuffer},41129:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.ReceiveBuffer=void 0;class ReceiveBuffer{constructor(C=4096){this.buffer=Buffer.allocUnsafe(C);this.offset=0;this.originalSize=C}get length(){return this.offset}append(C){if(!Buffer.isBuffer(C)){throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.")}if(this.offset+C.length>=this.buffer.length){const q=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+C.length));q.copy(this.buffer)}C.copy(this.buffer,this.offset);return this.offset+=C.length}peek(C){if(C>this.offset){throw new Error("Attempted to read beyond the bounds of the managed internal data.")}return this.buffer.slice(0,C)}get(C){if(C>this.offset){throw new Error("Attempted to read beyond the bounds of the managed internal data.")}const q=Buffer.allocUnsafe(C);this.buffer.slice(0,C).copy(q);this.buffer.copyWithin(0,C,C+this.offset-C);this.offset-=C;return q}}q.ReceiveBuffer=ReceiveBuffer},79712:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.shuffleArray=q.SocksClientError=void 0;class SocksClientError extends Error{constructor(C,q){super(C);this.options=q}}q.SocksClientError=SocksClientError;function shuffleArray(C){for(let q=C.length-1;q>0;q--){const re=Math.floor(Math.random()*(q+1));[C[q],C[re]]=[C[re],C[q]]}}q.shuffleArray=shuffleArray},42474:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(57142),q)},19973:(C,q)=>{!function(){"use strict";var C={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function sprintf(C){return sprintf_format(sprintf_parse(C),arguments)}function vsprintf(C,q){return sprintf.apply(null,[C].concat(q||[]))}function sprintf_format(q,re){var ae=1,Ue=q.length,lt,Pt="",Wt,Ar,Er,Ir,Br,kr,Pr,Qr;for(Wt=0;Wt=0}switch(Er.type){case"b":lt=parseInt(lt,10).toString(2);break;case"c":lt=String.fromCharCode(parseInt(lt,10));break;case"d":case"i":lt=parseInt(lt,10);break;case"j":lt=JSON.stringify(lt,null,Er.width?parseInt(Er.width):0);break;case"e":lt=Er.precision?parseFloat(lt).toExponential(Er.precision):parseFloat(lt).toExponential();break;case"f":lt=Er.precision?parseFloat(lt).toFixed(Er.precision):parseFloat(lt);break;case"g":lt=Er.precision?String(Number(lt.toPrecision(Er.precision))):parseFloat(lt);break;case"o":lt=(parseInt(lt,10)>>>0).toString(8);break;case"s":lt=String(lt);lt=Er.precision?lt.substring(0,Er.precision):lt;break;case"t":lt=String(!!lt);lt=Er.precision?lt.substring(0,Er.precision):lt;break;case"T":lt=Object.prototype.toString.call(lt).slice(8,-1).toLowerCase();lt=Er.precision?lt.substring(0,Er.precision):lt;break;case"u":lt=parseInt(lt,10)>>>0;break;case"v":lt=lt.valueOf();lt=Er.precision?lt.substring(0,Er.precision):lt;break;case"x":lt=(parseInt(lt,10)>>>0).toString(16);break;case"X":lt=(parseInt(lt,10)>>>0).toString(16).toUpperCase();break}if(C.json.test(Er.type)){Pt+=lt}else{if(C.number.test(Er.type)&&(!Pr||Er.sign)){Qr=Pr?"+":"-";lt=lt.toString().replace(C.sign,"")}else{Qr=""}Br=Er.pad_char?Er.pad_char==="0"?"0":Er.pad_char.charAt(1):" ";kr=Er.width-(Qr+lt).length;Ir=Er.width?kr>0?Br.repeat(kr):"":"";Pt+=Er.align?Qr+lt+Ir:Br==="0"?Qr+Ir+lt:Ir+Qr+lt}}}return Pt}var re=Object.create(null);function sprintf_parse(q){if(re[q]){return re[q]}var ae=q,Ue,lt=[],Pt=0;while(ae){if((Ue=C.text.exec(ae))!==null){lt.push(Ue[0])}else if((Ue=C.modulo.exec(ae))!==null){lt.push("%")}else if((Ue=C.placeholder.exec(ae))!==null){if(Ue[2]){Pt|=1;var Wt=[],Ar=Ue[2],Er=[];if((Er=C.key.exec(Ar))!==null){Wt.push(Er[1]);while((Ar=Ar.substring(Er[0].length))!==""){if((Er=C.key_access.exec(Ar))!==null){Wt.push(Er[1])}else if((Er=C.index_access.exec(Ar))!==null){Wt.push(Er[1])}else{throw new SyntaxError("[sprintf] failed to parse named argument key")}}}else{throw new SyntaxError("[sprintf] failed to parse named argument key")}Ue[2]=Wt}else{Pt|=2}if(Pt===3){throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported")}lt.push({placeholder:Ue[0],param_no:Ue[1],keys:Ue[2],sign:Ue[3],pad_char:Ue[4],align:Ue[5],width:Ue[6],precision:Ue[7],type:Ue[8]})}else{throw new SyntaxError("[sprintf] unexpected placeholder")}ae=ae.substring(Ue[0].length)}return re[q]=lt}if(true){q.sprintf=sprintf;q.vsprintf=vsprintf}if(typeof window!=="undefined"){window["sprintf"]=sprintf;window["vsprintf"]=vsprintf;if(typeof define==="function"&&define["amd"]){define((function(){return{sprintf:sprintf,vsprintf:vsprintf}}))}}}()},30977:function(C){(function(q,re){var ae={version:"2.14.3",areas:{},apis:{},nsdelim:".",inherit:function(C,q){for(var re in C){if(!q.hasOwnProperty(re)){Object.defineProperty(q,re,Object.getOwnPropertyDescriptor(C,re))}}return q},stringify:function(C,q){return C===undefined||typeof C==="function"?C+"":JSON.stringify(C,q||ae.replace)},parse:function(C,q){try{return JSON.parse(C,q||ae.revive)}catch(q){return C}},fn:function(C,q){ae.storeAPI[C]=q;for(var re in ae.apis){ae.apis[re][C]=q}},get:function(C,q){return C.getItem(q)},set:function(C,q,re){C.setItem(q,re)},remove:function(C,q){C.removeItem(q)},key:function(C,q){return C.key(q)},length:function(C){return C.length},clear:function(C){C.clear()},Store:function(C,q,re){var Ue=ae.inherit(ae.storeAPI,(function(C,q,re){if(arguments.length===0){return Ue.getAll()}if(typeof q==="function"){return Ue.transact(C,q,re)}if(q!==undefined){return Ue.set(C,q,re)}if(typeof C==="string"||typeof C==="number"){return Ue.get(C)}if(typeof C==="function"){return Ue.each(C)}if(!C){return Ue.clear()}return Ue.setAll(C,q)}));Ue._id=C;try{var lt="__store2_test";q.setItem(lt,"ok");Ue._area=q;q.removeItem(lt)}catch(C){Ue._area=ae.storage("fake")}Ue._ns=re||"";if(!ae.areas[C]){ae.areas[C]=Ue._area}if(!ae.apis[Ue._ns+Ue._id]){ae.apis[Ue._ns+Ue._id]=Ue}return Ue},storeAPI:{area:function(C,q){var re=this[C];if(!re||!re.area){re=ae.Store(C,q,this._ns);if(!this[C]){this[C]=re}}return re},namespace:function(C,q,re){re=re||this._delim||ae.nsdelim;if(!C){return this._ns?this._ns.substring(0,this._ns.length-re.length):""}var Ue=C,lt=this[Ue];if(!lt||!lt.namespace){lt=ae.Store(this._id,this._area,this._ns+Ue+re);lt._delim=re;if(!this[Ue]){this[Ue]=lt}if(!q){for(var Pt in ae.areas){lt.area(Pt,ae.areas[Pt])}}}return lt},isFake:function(C){if(C){this._real=this._area;this._area=ae.storage("fake")}else if(C===false){this._area=this._real||this._area}return this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(C){if(this._area.has){return this._area.has(this._in(C))}return!!(this._in(C)in this._area)},size:function(){return this.keys().length},each:function(C,q){for(var re=0,Ue=ae.length(this._area);reae.length(this._area)){Ue--;re--}}return q||this},keys:function(C){return this.each((function(C,q,re){re.push(C)}),C||[])},get:function(C,q){var re=ae.get(this._area,this._in(C)),Ue;if(typeof q==="function"){Ue=q;q=null}return re!==null?ae.parse(re,Ue):q!=null?q:re},getAll:function(C){return this.each((function(C,q,re){re[C]=q}),C||{})},transact:function(C,q,re){var ae=this.get(C,re),Ue=q(ae);this.set(C,Ue===undefined?ae:Ue);return this},set:function(C,q,re){var Ue=this.get(C),lt;if(Ue!=null&&re===false){return q}if(typeof re==="function"){lt=re;re=undefined}return ae.set(this._area,this._in(C),ae.stringify(q,lt),re)||Ue},setAll:function(C,q){var re,ae;for(var Ue in C){ae=C[Ue];if(this.set(Ue,ae,q)!==ae){re=true}}return re},add:function(C,q,re){var Ue=this.get(C);if(Ue instanceof Array){q=Ue.concat(q)}else if(Ue!==null){var lt=typeof Ue;if(lt===typeof q&<==="object"){for(var Pt in q){Ue[Pt]=q[Pt]}q=Ue}else{q=Ue+q}}ae.set(this._area,this._in(C),ae.stringify(q,re));return q},remove:function(C,q){var re=this.get(C,q);ae.remove(this._area,this._in(C));return re},clear:function(){if(!this._ns){ae.clear(this._area)}else{this.each((function(C){ae.remove(this._area,this._in(C))}),1)}return this},clearAll:function(){var C=this._area;for(var q in ae.areas){if(ae.areas.hasOwnProperty(q)){this._area=ae.areas[q];this.clear()}}this._area=C;return this},_in:function(C){if(typeof C!=="string"){C=ae.stringify(C)}return this._ns?this._ns+C:C},_out:function(C){return this._ns?C&&C.indexOf(this._ns)===0?C.substring(this._ns.length):undefined:C}},storage:function(C){return ae.inherit(ae.storageAPI,{items:{},name:C})},storageAPI:{length:0,has:function(C){return this.items.hasOwnProperty(C)},key:function(C){var q=0;for(var re in this.items){if(this.has(re)&&C===q++){return re}}},setItem:function(C,q){if(!this.has(C)){this.length++}this.items[C]=q},removeItem:function(C){if(this.has(C)){delete this.items[C];this.length--}},getItem:function(C){return this.has(C)?this.items[C]:null},clear:function(){for(var C in this.items){this.removeItem(C)}}}};var Ue=ae.Store("local",function(){try{return localStorage}catch(C){}}());Ue.local=Ue;Ue._=ae;Ue.area("session",function(){try{return sessionStorage}catch(C){}}());Ue.area("page",ae.storage("page"));if(typeof re==="function"&&re.amd!==undefined){re("store2",[],(function(){return Ue}))}else if(true&&C.exports){C.exports=Ue}else{if(q.store){ae.conflict=q.store}q.store=Ue}})(this,this&&this.define)},21450:(C,q,re)=>{const ae=re(70857);const Ue=re(52018);const lt=re(83813);const{env:Pt}=process;let Wt;if(lt("no-color")||lt("no-colors")||lt("color=false")||lt("color=never")){Wt=0}else if(lt("color")||lt("colors")||lt("color=true")||lt("color=always")){Wt=1}if("FORCE_COLOR"in Pt){if(Pt.FORCE_COLOR==="true"){Wt=1}else if(Pt.FORCE_COLOR==="false"){Wt=0}else{Wt=Pt.FORCE_COLOR.length===0?1:Math.min(parseInt(Pt.FORCE_COLOR,10),3)}}function translateLevel(C){if(C===0){return false}return{level:C,hasBasic:true,has256:C>=2,has16m:C>=3}}function supportsColor(C,q){if(Wt===0){return 0}if(lt("color=16m")||lt("color=full")||lt("color=truecolor")){return 3}if(lt("color=256")){return 2}if(C&&!q&&Wt===undefined){return 0}const re=Wt||0;if(Pt.TERM==="dumb"){return re}if(process.platform==="win32"){const C=ae.release().split(".");if(Number(C[0])>=10&&Number(C[2])>=10586){return Number(C[2])>=14931?3:2}return 1}if("CI"in Pt){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((C=>C in Pt))||Pt.CI_NAME==="codeship"){return 1}return re}if("TEAMCITY_VERSION"in Pt){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Pt.TEAMCITY_VERSION)?1:0}if(Pt.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in Pt){const C=parseInt((Pt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Pt.TERM_PROGRAM){case"iTerm.app":return C>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(Pt.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Pt.TERM)){return 1}if("COLORTERM"in Pt){return 1}return re}function getSupportLevel(C){const q=supportsColor(C,C&&C.isTTY);return translateLevel(q)}C.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,Ue.isatty(1))),stderr:translateLevel(supportsColor(true,Ue.isatty(2)))}},12228:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});const Pt=lt(re(76982));q["default"]=Pt},10330:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q._entityType=q._EntityType=q.TotalList=q.crc32=q.bufferXor=q.sleep=q.getRandomInt=q.getMinBigInt=q.returnBigInt=q.getByteArray=q.modExp=q.sha256=q.sha1=q.convertToLittle=q.generateKeyDataFromNonce=q.stripText=q.generateRandomBytes=q.bigIntMod=q.mod=q.generateRandomLong=q.readBufferFromBigInt=q.toSignedLittleBuffer=q.isArrayLike=q.betterConsoleLog=q.groupBy=q.escapeRegex=q.generateRandomBigInt=q.readBigIntFromBuffer=void 0;const Ue=ae(re(43269));const lt=ae(re(12228));const Pt=re(60720);function readBigIntFromBuffer(C,q=true,re=false){let ae=Buffer.from(C);const lt=ae.length;if(q){ae=ae.reverse()}let Pt=(0,Ue.default)(ae.toString("hex"),16);if(re&&Math.floor(Pt.toString(2).length/8)>=lt){Pt=Pt.subtract((0,Ue.default)(2).pow((0,Ue.default)(lt*8)))}return Pt}q.readBigIntFromBuffer=readBigIntFromBuffer;function generateRandomBigInt(){return readBigIntFromBuffer(generateRandomBytes(8),false)}q.generateRandomBigInt=generateRandomBigInt;function escapeRegex(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}q.escapeRegex=escapeRegex;function groupBy(C,q){const re=new Map;C.forEach((C=>{const ae=q(C);const Ue=re.get(ae);if(!Ue){re.set(ae,[C])}else{Ue.push(C)}}));return re}q.groupBy=groupBy;function betterConsoleLog(C){const q={};for(const re in C){if(C.hasOwnProperty(re)){if(!re.startsWith("_")&&re!="originalArgs"){q[re]=C[re]}}}return q}q.betterConsoleLog=betterConsoleLog;const isArrayLike=C=>C&&typeof C.length==="number"&&typeof C!=="function"&&typeof C!=="string";q.isArrayLike=isArrayLike;function toSignedLittleBuffer(C,q=8){const re=returnBigInt(C);const ae=[];for(let C=0;Cnew Promise((re=>q&&Pt.isNode?setTimeout(re,C).unref():setTimeout(re,C)));q.sleep=sleep;function bufferXor(C,q){const re=[];for(let ae=0;ae>>1:C>>>1}q[re]=C}return q}let Wt=undefined;function crc32(C){if(!Wt){Wt=makeCRCTable()}if(!Buffer.isBuffer(C)){C=Buffer.from(C)}let q=-1;for(let re=0;re>>8}return(q^-1)>>>0}q.crc32=crc32;class TotalList extends Array{constructor(){super();this.total=0}}q.TotalList=TotalList;q._EntityType={USER:0,CHAT:1,CHANNEL:2};Object.freeze(q._EntityType);function _entityType(C){if(typeof C!=="object"||!("SUBCLASS_OF_ID"in C)){throw new Error(`${C} is not a TLObject, cannot determine entity type`)}if(![47470215,3374092470,3865689926,1089602301,765557111,3316604308,524706233,3566872215].includes(C.SUBCLASS_OF_ID)){throw new Error(`${C} does not have any entity type`)}const re=C.className;if(re.includes("User")){return q._EntityType.USER}else if(re.includes("Chat")){return q._EntityType.CHAT}else if(re.includes("Channel")){return q._EntityType.CHANNEL}else if(re.includes("Self")){return q._EntityType.USER}throw new Error(`${C} does not have any entity type`)}q._entityType=_entityType},79138:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.computeDigest=q.computeCheck=void 0;const Ue=re(87440);const lt=re(10330);const Pt=ae(re(43269));const Wt=ae(re(12228));const Ar=256;function checkPrimeAndGood(C,q){const re=Buffer.from([199,28,174,185,198,177,201,4,142,108,82,47,112,241,63,115,152,13,64,35,142,62,33,193,73,52,208,55,86,61,147,15,72,25,138,10,167,193,64,88,34,148,147,210,37,48,244,219,250,51,111,110,10,201,37,19,149,67,174,212,76,206,124,55,32,253,81,246,148,88,112,90,198,140,212,254,107,107,19,171,220,151,70,81,41,105,50,132,84,241,143,175,140,89,95,100,36,119,254,150,187,42,148,29,91,205,29,74,200,204,73,136,7,8,250,155,55,142,60,79,58,144,96,190,230,124,249,164,164,166,149,129,16,81,144,126,22,39,83,181,107,15,107,65,13,186,116,216,168,75,42,20,179,20,78,14,241,40,71,84,253,23,237,149,13,89,101,180,185,221,70,88,45,177,23,141,22,156,107,196,101,176,214,255,156,163,146,143,239,91,154,228,228,24,252,21,232,62,190,160,248,127,169,255,94,237,112,5,13,237,40,73,244,123,249,89,217,86,133,12,233,41,133,31,13,129,21,246,53,177,5,238,46,78,21,208,75,36,84,191,111,79,173,240,52,177,4,3,17,156,216,227,185,47,204,91]);if(re.equals(C)){if([3,4,5,7].includes(q)){return}}throw new Error("Changing passwords unsupported")}function isGoodLarge(C,q){return C.greater((0,Pt.default)(0))&&q.subtract(C).greater((0,Pt.default)(0))}function numBytesForHash(C){return Buffer.concat([Buffer.alloc(Ar-C.length),C])}function bigNumForHash(C){return(0,lt.readBufferFromBigInt)(C,Ar,false)}function isGoodModExpFirst(C,q){const re=q.subtract(C);const ae=2048-64;const Ue=256;return!(re.lesser((0,Pt.default)(0))||re.bitLength().toJSNumber()Ue)}function xor(C,q){const re=Math.min(C.length,q.length);for(let ae=0;ae{const C=256;while(true){const q=(0,lt.generateRandomBytes)(C);const re=(0,lt.readBigIntFromBuffer)(q,false);const ae=(0,lt.modExp)((0,Pt.default)(Ir),re,Er);if(isGoodModExpFirst(ae,Er)){const C=bigNumForHash(ae);const q=(0,lt.readBigIntFromBuffer)(await(0,lt.sha256)(Buffer.concat([C,Fr])),false);if(q.greater((0,Pt.default)(0))){return{a:re,aForHash:C,u:q}}}}};const{a:Ur,aForHash:Nr,u:Lr}=await generateAndCheckRandom();const jr=(0,lt.bigIntMod)(Br.subtract(Mr),Er);if(!isGoodModExpFirst(jr,Er)){throw new Error("bad gB")}const Gr=Lr.multiply(kr);const Vr=Ur.add(Gr);const Hr=(0,lt.modExp)(jr,Vr,Er);const[Wr,$r,Kr,zr,Jr]=await Promise.all([(0,lt.sha256)(bigNumForHash(Hr)),(0,lt.sha256)(Pr),(0,lt.sha256)(Qr),(0,lt.sha256)(re.salt1),(0,lt.sha256)(re.salt2)]);const Yr=await(0,lt.sha256)(Buffer.concat([xor($r,Kr),zr,Jr,Nr,Fr,Wr]));return new Ue.Api.InputCheckPasswordSRP({srpId:Wt,A:Buffer.from(Nr),M1:Yr})}q.computeCheck=computeCheck},29078:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.getDisplayName=q.rtrim=q.parseUsername=q.resolveInviteLink=q.parseID=q.parsePhone=q.getMessageId=q.resolveId=q.getPeerId=q.sanitizeParseMode=q.getPeer=q.getAppropriatedPartSize=q.getInputMedia=q.getInputGeo=q.getAttributes=q.getExtension=q.isImage=q.isAudio=q.getInputDocument=q.getInputPhoto=q.strippedPhotoToJpg=q.getInputChatPhoto=q.getInputMessage=q.getInputUser=q.getInputChannel=q.getInnerText=q._getEntityPair=q._photoSizeByteCount=q.getInputPeer=q.chunks=q.getFileInfo=void 0;const Ue=ae(re(43269));const lt=ae(re(94900));const Pt=re(32741);const Wt=re(94069);const Ar=re(88757);const Er=re(10330);const Ir=re(87440);function getFileInfo(C){if(!C||!C.SUBCLASS_OF_ID){_raiseCastFail(C,"InputFileLocation")}if(C.SUBCLASS_OF_ID==354669666){return{dcId:undefined,location:C,size:undefined}}let q;if(C instanceof Ir.Api.Message){q=C.media}if(C instanceof Ir.Api.MessageMediaDocument){q=C.document}else if(C instanceof Ir.Api.MessageMediaPhoto){q=C.photo}if(q instanceof Ir.Api.Document){return{dcId:q.dcId,location:new Ir.Api.InputDocumentFileLocation({id:q.id,accessHash:q.accessHash,fileReference:q.fileReference,thumbSize:""}),size:q.size}}else if(q instanceof Ir.Api.Photo){return{dcId:q.dcId,location:new Ir.Api.InputPhotoFileLocation({id:q.id,accessHash:q.accessHash,fileReference:q.fileReference,thumbSize:q.sizes[q.sizes.length-1].type}),size:(0,Ue.default)(_photoSizeByteCount(q.sizes[q.sizes.length-1])||0)}}_raiseCastFail(C,"InputFileLocation")}q.getFileInfo=getFileInfo;function*chunks(C,q=100){for(let re=0;re{Object.defineProperty(q,"__esModule",{value:true});q.version=void 0;q.version="2.26.7"},77472:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.updateTwoFaSettings=void 0;const ae=re(10330);const Ue=re(79138);const lt=re(87440);const Pt=re(18219);async function updateTwoFaSettings(C,{isCheckPassword:q,currentPassword:re,newPassword:Wt,hint:Ar="",email:Er,emailCodeCallback:Ir,onEmailCodeError:Br}){if(!Wt&&!re){throw new Error("Neither `currentPassword` nor `newPassword` is present")}if(Er&&!(Ir&&Br)){throw new Error("`email` present without `emailCodeCallback` and `onEmailCodeError`")}const kr=await C.invoke(new lt.Api.account.GetPassword);if(!(kr.newAlgo instanceof lt.Api.PasswordKdfAlgoUnknown)){kr.newAlgo.salt1=Buffer.concat([kr.newAlgo.salt1,(0,ae.generateRandomBytes)(32)])}if(!kr.hasPassword&&re){re=undefined}const Pr=re?await(0,Ue.computeCheck)(kr,re):new lt.Api.InputCheckPasswordEmpty;if(q){await C.invoke(new lt.Api.auth.CheckPassword({password:Pr}));return}if(kr.newAlgo instanceof lt.Api.PasswordKdfAlgoUnknown){throw new Error("Unknown password encryption method")}try{await C.invoke(new lt.Api.account.UpdatePasswordSettings({password:Pr,newSettings:new lt.Api.account.PasswordInputSettings({newAlgo:kr.newAlgo,newPasswordHash:Wt?await(0,Ue.computeDigest)(kr.newAlgo,Wt):Buffer.alloc(0),hint:Ar,email:Er,newSecureSettings:undefined})}))}catch(q){if(q instanceof Pt.errors.EmailUnconfirmedError){while(true){try{const re=await Ir(q.codeLength);if(!re){throw new Error("Code is empty")}await C.invoke(new lt.Api.account.ConfirmPasswordEmail({code:re}));break}catch(C){Br(C)}}}else{throw q}}}q.updateTwoFaSettings=updateTwoFaSettings},74163:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.TelegramClient=void 0;const Pt=re(71966);const Wt=lt(re(86769));const Ar=lt(re(87237));const Er=lt(re(35054));const Ir=lt(re(35130));const Br=lt(re(41197));const kr=lt(re(74827));const Pr=lt(re(52753));const Qr=lt(re(94417));const Fr=lt(re(44431));const Dr=lt(re(41380));const xr=lt(re(55314));const Mr=lt(re(77472));const Ur=re(87440);const Nr=re(29078);const Lr=re(68722);const jr=re(59415);const Gr=re(10330);const Vr=re(52753);const Hr=re(91932);const Wr=re(42355);const $r=re(60720);class TelegramClient extends Pt.TelegramBaseClient{constructor(C,q,re,ae){super(C,q,re,ae)}start(C){return Wt.start(this,C)}checkAuthorization(){return Wt.checkAuthorization(this)}signInUser(C,q){return Wt.signInUser(this,C,q)}signInUserWithQrCode(C,q){return Wt.signInUserWithQrCode(this,C,q)}sendCode(C,q,re=false){return Wt.sendCode(this,C,q,re)}signInWithPassword(C,q){return Wt.signInWithPassword(this,C,q)}signInBot(C,q){return Wt.signInBot(this,C,q)}async updateTwoFaSettings({isCheckPassword:C,currentPassword:q,newPassword:re,hint:ae="",email:Ue,emailCodeCallback:lt,onEmailCodeError:Pt}){return Mr.updateTwoFaSettings(this,{isCheckPassword:C,currentPassword:q,newPassword:re,hint:ae,email:Ue,emailCodeCallback:lt,onEmailCodeError:Pt})}inlineQuery(C,q,re,ae,Ue){return Ar.inlineQuery(this,C,q,re,ae,Ue)}buildReplyMarkup(C,q=false){return Er.buildReplyMarkup(C,q)}downloadFile(C,q={}){return Ir.downloadFileV2(this,C,q)}iterDownload(C){return Ir.iterDownload(this,C)}downloadProfilePhoto(C,q={isBig:false}){return Ir.downloadProfilePhoto(this,C,q)}downloadMedia(C,q){return Ir.downloadMedia(this,C,q===null||q===void 0?void 0:q.outputFile,q===null||q===void 0?void 0:q.thumb,q===null||q===void 0?void 0:q.progressCallback)}get parseMode(){return this._parseMode}setParseMode(C){if(C){this._parseMode=(0,Nr.sanitizeParseMode)(C)}else{this._parseMode=undefined}}iterMessages(C,q={}){return kr.iterMessages(this,C,q)}getMessages(C,q={}){return kr.getMessages(this,C,q)}sendMessage(C,q={}){return kr.sendMessage(this,C,q)}forwardMessages(C,q){return kr.forwardMessages(this,C,q)}editMessage(C,q){return kr.editMessage(this,C,q)}deleteMessages(C,q,{revoke:re=true}){return kr.deleteMessages(this,C,q,{revoke:re})}pinMessage(C,q,re){return kr.pinMessage(this,C,q,re)}unpinMessage(C,q,re){return kr.unpinMessage(this,C,q,re)}markAsRead(C,q,re){return kr.markAsRead(this,C,q,re)}iterDialogs(C={}){return xr.iterDialogs(this,C)}getDialogs(C={}){return xr.getDialogs(this,C)}iterParticipants(C,q={}){return Dr.iterParticipants(this,C,q)}getParticipants(C,q={}){return Dr.getParticipants(this,C,q)}kickParticipant(C,q){return Dr.kickParticipant(this,C,q)}on(C){return Pr.on(this,C)}addEventHandler(C,q){return Pr.addEventHandler(this,C,q)}removeEventHandler(C,q){return Pr.removeEventHandler(this,C,q)}listEventHandlers(){return Pr.listEventHandlers(this)}uploadFile(C){return Qr.uploadFile(this,C)}sendFile(C,q){return Qr.sendFile(this,C,q)}invoke(C,q){return Fr.invoke(this,C,q)}invokeWithSender(C,q){return Fr.invoke(this,C,undefined,q)}getMe(C=false){return Fr.getMe(this,C)}isBot(){return Fr.isBot(this)}isUserAuthorized(){return Fr.isUserAuthorized(this)}getEntity(C){return Fr.getEntity(this,C)}getInputEntity(C){return Fr.getInputEntity(this,C)}getPeerId(C,q=true){return Fr.getPeerId(this,C,q)}_getInputDialog(C){return Fr._getInputDialog(this,C)}_getInputNotify(C){return Fr._getInputNotify(this,C)}async _handleReconnect(){this._log.info("Handling reconnect!");try{const C=await this.getMe()}catch(C){this._log.error(`Error while trying to reconnect`);if(this._errorHandler){await this._errorHandler(C)}if(this._log.canSend(Hr.LogLevel.ERROR)){console.error(C)}}}async connect(){await this._initSession();if(this._sender===undefined){this._sender=new Lr.MTProtoSender(this.session.getAuthKey(),{logger:this._log,dcId:this.session.dcId||4,retries:this._connectionRetries,delay:this._retryDelay,autoReconnect:this._autoReconnect,connectTimeout:this._timeout,authKeyCallback:this._authKeyCallback.bind(this),updateCallback:Vr._handleUpdate.bind(this),isMainSender:true,client:this,securityChecks:this._securityChecks,autoReconnectCallback:this._handleReconnect.bind(this),_exportedSenderPromises:this._exportedSenderPromises,reconnectRetries:this._reconnectRetries})}const C=new this._connection({ip:this.session.serverAddress,port:this.useWSS?443:80,dcId:this.session.dcId,loggers:this._log,proxy:this._proxy,socket:this.networkSocket,testServers:this.testServers});if(!await this._sender.connect(C,false)){if(!this._loopStarted){(0,Vr._updateLoop)(this);this._loopStarted=true}return false}this.session.setAuthKey(this._sender.authKey);this.session.save();this._initRequest.query=new Ur.Api.help.GetConfig;this._log.info(`Using LAYER ${jr.LAYER} for initial connect`);await this._sender.send(new Ur.Api.InvokeWithLayer({layer:jr.LAYER,query:this._initRequest}));if(!this._loopStarted){(0,Vr._updateLoop)(this);this._loopStarted=true}this._connectedDeferred.resolve();this._isSwitchingDc=false;return true}async _switchDC(C){this._log.info(`Reconnecting to new data center ${C}`);const q=await this.getDC(C);this.session.setDC(C,q.ipAddress,q.port);await this._sender.authKey.setKey(undefined);this.session.setAuthKey(undefined);this.session.save();this._isSwitchingDc=true;await this._disconnect();this._sender=undefined;return await this.connect()}async getDC(C,q=false,re=false){this._log.debug(`Getting DC ${C}`);if(!$r.isNode||re){switch(C){case 1:return{id:1,ipAddress:`pluto${q?"-1":""}.web.telegram.org`,port:443};case 2:return{id:2,ipAddress:`venus${q?"-1":""}.web.telegram.org`,port:443};case 3:return{id:3,ipAddress:`aurora${q?"-1":""}.web.telegram.org`,port:443};case 4:return{id:4,ipAddress:`vesta${q?"-1":""}.web.telegram.org`,port:443};case 5:return{id:5,ipAddress:`flora${q?"-1":""}.web.telegram.org`,port:443};default:throw new Error(`Cannot find the DC with the ID of ${C}`)}}if(!this._config){this._config=await this.invoke(new Ur.Api.help.GetConfig)}for(const q of this._config.dcOptions){if(q.id===C&&!!q.ipv6===this._useIPV6){return{id:q.id,ipAddress:q.ipAddress,port:443}}}throw new Error(`Cannot find the DC with the ID of ${C}`)}_removeSender(C){delete this._borrowedSenderPromises[C]}_getResponseMessage(C,q,re){return Br._getResponseMessage(this,C,q,re)}[Wr.inspect.custom](){return(0,Gr.betterConsoleLog)(this)}static get events(){return re(15737)}}q.TelegramClient=TelegramClient},86769:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q._authFlow=q.signInBot=q.signInWithPassword=q.sendCode=q.signInUserWithQrCode=q.signInUser=q.checkAuthorization=q.start=void 0;const Pt=re(87440);const Wt=lt(re(29078));const Ar=re(10330);const Er=re(79138);const Ir=3e4;async function start(C,q){if(!C.connected){await C.connect()}if(await C.checkAuthorization()){return}const re={apiId:C.apiId,apiHash:C.apiHash};await _authFlow(C,re,q)}q.start=start;async function checkAuthorization(C){try{await C.invoke(new Pt.Api.updates.GetState);return true}catch(C){return false}}q.checkAuthorization=checkAuthorization;async function signInUser(C,q,re){let ae;let Ue;let lt=false;while(1){try{if(typeof re.phoneNumber==="function"){try{ae=await re.phoneNumber()}catch(ae){if(ae.errorMessage==="RESTART_AUTH_WITH_QR"){return C.signInUserWithQrCode(q,re)}throw ae}}else{ae=re.phoneNumber}const Pt=await C.sendCode(q,ae,re.forceSMS);Ue=Pt.phoneCodeHash;lt=Pt.isCodeViaApp;if(typeof Ue!=="string"){throw new Error("Failed to retrieve phone code hash")}break}catch(C){if(typeof re.phoneNumber!=="function"){throw C}const q=await re.onError(C);if(q){throw new Error("AUTH_USER_CANCEL")}}}let Wt;let Ar=false;let Er;while(1){try{try{Wt=await re.phoneCode(lt)}catch(ae){if(ae.errorMessage==="RESTART_AUTH"){return C.signInUser(q,re)}}if(!Wt){throw new Error("Code is empty")}const Ir=await C.invoke(new Pt.Api.auth.SignIn({phoneNumber:ae,phoneCodeHash:Ue,phoneCode:Wt}));if(Ir instanceof Pt.Api.auth.AuthorizationSignUpRequired){Ar=true;Er=Ir.termsOfService;break}return Ir.user}catch(ae){if(ae.errorMessage==="SESSION_PASSWORD_NEEDED"){return C.signInWithPassword(q,re)}else{const C=await re.onError(ae);if(C){throw new Error("AUTH_USER_CANCEL")}}}}if(Ar){while(1){try{let q;let lt="first name";if(re.firstAndLastNames){const C=await re.firstAndLastNames();lt=C[0];q=C[1]}if(!lt){throw new Error("First name is required")}const{user:Wt}=await C.invoke(new Pt.Api.auth.SignUp({phoneNumber:ae,phoneCodeHash:Ue,firstName:lt,lastName:q}));if(Er){await C.invoke(new Pt.Api.help.AcceptTermsOfService({id:Er.id}))}return Wt}catch(C){const q=await re.onError(C);if(q){throw new Error("AUTH_USER_CANCEL")}}}}await re.onError(new Error("Auth failed"));return C.signInUser(q,re)}q.signInUser=signInUser;async function signInUserWithQrCode(C,q,re){let ae=false;if(re.qrCode==undefined){throw new Error("qrCode callback not defined")}const Ue=(async()=>{while(1){if(ae){break}const Ue=await C.invoke(new Pt.Api.auth.ExportLoginToken({apiId:Number(q.apiId),apiHash:q.apiHash,exceptIds:[]}));if(!(Ue instanceof Pt.Api.auth.LoginToken)){throw new Error("Unexpected")}const{token:lt,expires:Wt}=Ue;await Promise.race([re.qrCode({token:lt,expires:Wt}),(0,Ar.sleep)(Ir)]);await(0,Ar.sleep)(Ir)}})();const lt=new Promise((q=>{C.addEventHandler((C=>{if(C instanceof Pt.Api.UpdateLoginToken){q(undefined)}}))}));try{await Promise.race([lt,Ue])}catch(C){throw C}finally{ae=true}try{const re=await C.invoke(new Pt.Api.auth.ExportLoginToken({apiId:Number(q.apiId),apiHash:q.apiHash,exceptIds:[]}));if(re instanceof Pt.Api.auth.LoginTokenSuccess&&re.authorization instanceof Pt.Api.auth.Authorization){return re.authorization.user}else if(re instanceof Pt.Api.auth.LoginTokenMigrateTo){await C._switchDC(re.dcId);const q=await C.invoke(new Pt.Api.auth.ImportLoginToken({token:re.token}));if(q instanceof Pt.Api.auth.LoginTokenSuccess&&q.authorization instanceof Pt.Api.auth.Authorization){return q.authorization.user}else{C._log.error(`Received unknown result while scanning QR ${re.className}`);throw new Error(`Received unknown result while scanning QR ${re.className}`)}}else{C._log.error(`Received unknown result while scanning QR ${re.className}`);throw new Error(`Received unknown result while scanning QR ${re.className}`)}}catch(ae){if(ae.errorMessage==="SESSION_PASSWORD_NEEDED"){return C.signInWithPassword(q,re)}throw ae}await re.onError(new Error("QR auth failed"));throw new Error("QR auth failed")}q.signInUserWithQrCode=signInUserWithQrCode;async function sendCode(C,q,re,ae=false){try{const{apiId:Ue,apiHash:lt}=q;const Wt=await C.invoke(new Pt.Api.auth.SendCode({phoneNumber:re,apiId:Ue,apiHash:lt,settings:new Pt.Api.CodeSettings({})}));if(Wt instanceof Pt.Api.auth.SentCodeSuccess)throw new Error("logged in right after sending the code");if(!ae||Wt.type instanceof Pt.Api.auth.SentCodeTypeSms){return{phoneCodeHash:Wt.phoneCodeHash,isCodeViaApp:Wt.type instanceof Pt.Api.auth.SentCodeTypeApp}}const Ar=await C.invoke(new Pt.Api.auth.ResendCode({phoneNumber:re,phoneCodeHash:Wt.phoneCodeHash}));if(Ar instanceof Pt.Api.auth.SentCodeSuccess)throw new Error("logged in right after resending the code");return{phoneCodeHash:Ar.phoneCodeHash,isCodeViaApp:Ar.type instanceof Pt.Api.auth.SentCodeTypeApp}}catch(Ue){if(Ue.errorMessage==="AUTH_RESTART"){return C.sendCode(q,re,ae)}else{throw Ue}}}q.sendCode=sendCode;async function signInWithPassword(C,q,re){let ae=false;while(1){try{const q=await C.invoke(new Pt.Api.account.GetPassword);if(!re.password){ae=true;break}const Ue=await re.password(q.hint);if(!Ue){throw new Error("Password is empty")}const lt=await(0,Er.computeCheck)(q,Ue);const{user:Wt}=await C.invoke(new Pt.Api.auth.CheckPassword({password:lt}));return Wt}catch(C){const q=await re.onError(C);if(q){throw new Error("AUTH_USER_CANCEL")}}}if(ae){throw new Error("Account has 2FA enabled.")}return undefined}q.signInWithPassword=signInWithPassword;async function signInBot(C,q,re){const{apiId:ae,apiHash:Ue}=q;let{botAuthToken:lt}=re;if(!lt){throw new Error("a valid BotToken is required")}if(typeof lt==="function"){let C;while(true){C=await lt();if(C){lt=C;break}}}const{user:Wt}=await C.invoke(new Pt.Api.auth.ImportBotAuthorization({apiId:ae,apiHash:Ue,botAuthToken:lt}));return Wt}q.signInBot=signInBot;async function _authFlow(C,q,re){const ae="phoneNumber"in re?await C.signInUser(q,re):await C.signInBot(q,re);C._log.info("Signed in successfully as "+Wt.getDisplayName(ae))}q._authFlow=_authFlow},87237:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.inlineQuery=void 0;const ae=re(87440);const Ue=re(6743);var lt=ae.Api.messages.GetInlineBotResults;async function inlineQuery(C,q,re,Pt,Wt,Ar){q=await C.getInputEntity(q);let Er=new ae.Api.InputPeerSelf;if(Pt){Er=await C.getInputEntity(Pt)}const Ir=await C.invoke(new lt({bot:q,peer:Er,query:re,offset:Wt||"",geoPoint:Ar}));return new Ue.InlineResults(C,Ir,Pt?Er:undefined)}q.inlineQuery=inlineQuery},35054:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.buildReplyMarkup=void 0;const ae=re(87440);const Ue=re(50808);const lt=re(39093);const Pt=re(10330);function buildReplyMarkup(C,q=false){if(C==undefined){return undefined}if("SUBCLASS_OF_ID"in C){if(C.SUBCLASS_OF_ID==3806400242){return C}}if(!(0,Pt.isArrayLike)(C)){C=[[C]]}else if(!C||!(0,Pt.isArrayLike)(C[0])){C=[C]}let re=false;let Wt=false;let Ar=undefined;const Er=false;const Ir=false;const Br=[];for(const q of C){const C=[];for(let ae of q){if(ae instanceof Ue.Button){if(ae.resize!=undefined){Ar=ae.resize}if(ae.singleUse!=undefined){Ar=ae.singleUse}if(ae.selective!=undefined){Ar=ae.selective}ae=ae.button}else if(ae instanceof lt.MessageButton){ae=ae.button}const q=Ue.Button._isInline(ae);if(!re&&q){re=true}if(!Wt&&q){Wt=false}if(ae.SUBCLASS_OF_ID==195916963){C.push(ae)}}if(C){Br.push(new ae.Api.KeyboardButtonRow({buttons:C}))}}if(q&&Wt){throw new Error("You cannot use non-inline buttons here")}else if(re===Wt&&Wt){throw new Error("You cannot mix inline with normal buttons")}else if(re){return new ae.Api.ReplyInlineMarkup({rows:Br})}return new ae.Api.ReplyKeyboardMarkup({rows:Br,resize:Ar,singleUse:Er,selective:Ir})}q.buildReplyMarkup=buildReplyMarkup},41380:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.kickParticipant=q.getParticipants=q.iterParticipants=q._ParticipantsIter=void 0;const Ue=re(10330);const lt=re(40776);const Pt=re(18219);const Wt=re(87440);const Ar=ae(re(43269));const Er=re(42355);const Ir=re(29078);const Br=200;const kr=100;const Pr=100;class _ChatAction{constructor(C,q,re,ae={delay:4,autoCancel:true}){this._client=C;this._chat=q;this._action=re;this._delay=ae.delay;this.autoCancel=ae.autoCancel;this._request=undefined;this._task=null;this._running=false}[Er.inspect.custom](){return(0,Ue.betterConsoleLog)(this)}async start(){this._request=new Wt.Api.messages.SetTyping({peer:this._chat,action:this._action});this._running=true;this._update()}async stop(){this._running=false;if(this.autoCancel){await this._client.invoke(new Wt.Api.messages.SetTyping({peer:this._chat,action:new Wt.Api.SendMessageCancelAction}))}}async _update(){while(this._running){if(this._request!=undefined){await this._client.invoke(this._request)}await(0,Ue.sleep)(this._delay*1e3)}}progress(C,q){if("progress"in this._action){this._action.progress=100*Math.round(C/q)}}}_ChatAction._str_mapping={typing:new Wt.Api.SendMessageTypingAction,contact:new Wt.Api.SendMessageChooseContactAction,game:new Wt.Api.SendMessageGamePlayAction,location:new Wt.Api.SendMessageGeoLocationAction,"record-audio":new Wt.Api.SendMessageRecordAudioAction,"record-voice":new Wt.Api.SendMessageRecordAudioAction,"record-round":new Wt.Api.SendMessageRecordRoundAction,"record-video":new Wt.Api.SendMessageRecordVideoAction,audio:new Wt.Api.SendMessageUploadAudioAction({progress:1}),voice:new Wt.Api.SendMessageUploadAudioAction({progress:1}),song:new Wt.Api.SendMessageUploadAudioAction({progress:1}),round:new Wt.Api.SendMessageUploadRoundAction({progress:1}),video:new Wt.Api.SendMessageUploadVideoAction({progress:1}),photo:new Wt.Api.SendMessageUploadPhotoAction({progress:1}),document:new Wt.Api.SendMessageUploadDocumentAction({progress:1}),file:new Wt.Api.SendMessageUploadDocumentAction({progress:1}),cancel:new Wt.Api.SendMessageCancelAction};class _ParticipantsIter extends lt.RequestIter{[Er.inspect.custom](){return(0,Ue.betterConsoleLog)(this)}async _init({entity:C,filter:q,offset:re,search:ae,showTotal:Ue}){var lt,Er;if(!re){re=0}if(q&&q.constructor===Function){if([Wt.Api.ChannelParticipantsBanned,Wt.Api.ChannelParticipantsKicked,Wt.Api.ChannelParticipantsSearch,Wt.Api.ChannelParticipantsContacts].includes(q)){q=new q({q:""})}else{q=new q}}C=await this.client.getInputEntity(C);const Ir=Pt.helpers._entityType(C);if(ae&&(q||Ir!=Pt.helpers._EntityType.CHANNEL)){ae=ae.toLowerCase();this.filterEntity=C=>Pt.utils.getDisplayName(C).toLowerCase().includes(ae)||("username"in C?C.username||"":"").toLowerCase().includes(ae)}else{this.filterEntity=C=>true}this.requests=[];if(Ir==Pt.helpers._EntityType.CHANNEL){if(Ue){const q=await this.client.invoke(new Wt.Api.channels.GetFullChannel({channel:C}));if(!(q.fullChat instanceof Wt.Api.ChatFull)){this.total=q.fullChat.participantsCount}}if(this.total&&this.total<=0){return false}this.requests.push(new Wt.Api.channels.GetParticipants({channel:C,filter:q||new Wt.Api.ChannelParticipantsSearch({q:ae||""}),offset:re,limit:Br,hash:Ar.default.zero}))}else if(Ir==Pt.helpers._EntityType.CHAT){if(!("chatId"in C)){throw new Error("Found chat without id "+JSON.stringify(C))}const q=await this.client.invoke(new Wt.Api.messages.GetFullChat({chatId:C.chatId}));if(q.fullChat instanceof Wt.Api.ChatFull){if(!(q.fullChat.participants instanceof Wt.Api.ChatParticipantsForbidden)){this.total=q.fullChat.participants.participants.length}else{this.total=0;return false}const C=new Map;for(const re of q.users){C.set(re.id.toString(),re)}for(const re of q.fullChat.participants.participants){const q=C.get(re.userId.toString());if(!this.filterEntity(q)){continue}q.participant=re;(lt=this.buffer)===null||lt===void 0?void 0:lt.push(q)}return true}}else{this.total=1;if(this.limit!=0){const q=await this.client.getEntity(C);if(this.filterEntity(q)){q.participant=undefined;(Er=this.buffer)===null||Er===void 0?void 0:Er.push(q)}}return true}}async _loadNextChunk(){var C,q;if(!((C=this.requests)===null||C===void 0?void 0:C.length)){return true}this.requests[0].limit=Math.min(this.limit-this.requests[0].offset,Br);const re=[];for(const C of this.requests){re.push(await this.client.invoke(C))}for(let C=this.requests.length-1;C>=0;C--){const ae=re[C];if(ae instanceof Wt.Api.channels.ChannelParticipantsNotModified||!ae.users.length){this.requests.splice(C,1);continue}this.requests[C].offset+=ae.participants.length;const Ue=new Map;for(const C of ae.users){Ue.set(C.id.toString(),C)}for(const C of ae.participants){if(!("userId"in C)){continue}const re=Ue.get(C.userId.toString());if(this.filterEntity&&!this.filterEntity(re)){continue}re.participant=C;(q=this.buffer)===null||q===void 0?void 0:q.push(re)}}return undefined}[Symbol.asyncIterator](){return super[Symbol.asyncIterator]()}}q._ParticipantsIter=_ParticipantsIter;class _AdminLogIter extends lt.RequestIter{[Er.inspect.custom](){return(0,Ue.betterConsoleLog)(this)}async _init(C,q,re){let ae=undefined;if(re&&Object.values(re).find((C=>C===true))){ae=new Wt.Api.ChannelAdminLogEventsFilter(Object.assign({},re))}this.entity=await this.client.getInputEntity(C);const Ue=[];if(q&&q.admins){for(const C of q.admins){Ue.push(await this.client.getInputEntity(C))}}this.request=new Wt.Api.channels.GetAdminLog({channel:this.entity,q:(q===null||q===void 0?void 0:q.search)||"",minId:q===null||q===void 0?void 0:q.minId,maxId:q===null||q===void 0?void 0:q.maxId,limit:0,eventsFilter:ae,admins:Ue||undefined})}async _loadNextChunk(){if(!this.request){return true}this.request.limit=Math.min(this.left,kr);const C=await this.client.invoke(this.request);const q=new Map;for(const re of[...C.users,...C.chats]){q.set(Pt.utils.getPeerId(re),re)}const re=[];for(const q of C.events){re.push(q.id)}this.request.maxId=(0,Ue.getMinBigInt)([Ar.default.zero,...re]);for(const q of C.events){if(q.action instanceof Wt.Api.ChannelAdminLogEventActionEditMessage){}}}}function iterParticipants(C,q,{limit:re,offset:ae,search:Ue,filter:lt,showTotal:Pt=true}){return new _ParticipantsIter(C,re!==null&&re!==void 0?re:Number.MAX_SAFE_INTEGER,{},{entity:q,filter:lt,offset:ae!==null&&ae!==void 0?ae:0,search:Ue,showTotal:Pt})}q.iterParticipants=iterParticipants;async function getParticipants(C,q,re){const ae=C.iterParticipants(q,re);return await ae.collect()}q.getParticipants=getParticipants;async function kickParticipant(C,q,re){const ae=await C.getInputEntity(q);const lt=await C.getInputEntity(re);let Ar;let Er;const Br=Pt.helpers._entityType(ae);if(Br===Pt.helpers._EntityType.CHAT){Er=new Wt.Api.messages.DeleteChatUser({chatId:(0,Ue.returnBigInt)((0,Ir.getPeerId)(q)),userId:(0,Ue.returnBigInt)((0,Ir.getPeerId)(re))});Ar=await C.invoke(Er)}else if(Br===Pt.helpers._EntityType.CHANNEL){if(lt instanceof Wt.Api.InputPeerSelf){Er=new Wt.Api.channels.LeaveChannel({channel:ae});Ar=await C.invoke(Er)}else{Er=new Wt.Api.channels.EditBanned({channel:ae,participant:lt,bannedRights:new Wt.Api.ChatBannedRights({untilDate:0,viewMessages:true})});Ar=await C.invoke(Er);await(0,Ue.sleep)(500);await C.invoke(new Wt.Api.channels.EditBanned({channel:ae,participant:lt,bannedRights:new Wt.Api.ChatBannedRights({untilDate:0})}))}}else{throw new Error("You must pass either a channel or a chat")}return C._getResponseMessage(Er,Ar,q)}q.kickParticipant=kickParticipant},55314:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.getDialogs=q.iterDialogs=q._DialogsIter=void 0;const Ue=re(87440);const lt=re(40776);const Pt=re(18219);const Wt=re(56556);const Ar=ae(re(43269));const Er=re(91932);const Ir=100;function _dialogMessageKey(C,q){return""+[C instanceof Ue.Api.PeerChannel?C.channelId:undefined,q]}class _DialogsIter extends lt.RequestIter{async _init({offsetDate:C,offsetId:q,offsetPeer:re,ignorePinned:ae,ignoreMigrated:lt,folder:Pt}){this.request=new Ue.Api.messages.GetDialogs({offsetDate:C,offsetId:q,offsetPeer:re,limit:1,hash:Ar.default.zero,excludePinned:ae,folderId:Pt});if(this.limit<=0){const C=await this.client.invoke(this.request);if("count"in C){this.total=C.count}else{this.total=C.dialogs.length}return true}this.seen=new Set;this.offsetDate=C;this.ignoreMigrated=lt}[Symbol.asyncIterator](){return super[Symbol.asyncIterator]()}async _loadNextChunk(){var C;if(!this.request||!this.seen||!this.buffer){return}this.request.limit=Math.min(this.left,Ir);const q=await this.client.invoke(this.request);if(q instanceof Ue.Api.messages.DialogsNotModified){return}if("count"in q){this.total=q.count}else{this.total=q.dialogs.length}const re=new Map;const ae=new Map;for(const C of[...q.users,...q.chats]){if(C instanceof Ue.Api.UserEmpty||C instanceof Ue.Api.ChatEmpty){continue}re.set(Pt.utils.getPeerId(C),C)}for(const C of q.messages){let q=C;try{if(q&&"_finishInit"in q){q._finishInit(this.client,re,undefined)}}catch(re){console.log("msg",q);this.client._log.error("Got error while trying to finish init message with id "+C.id);if(this.client._log.canSend(Er.LogLevel.ERROR)){console.error(re)}if(this.client._errorHandler){await this.client._errorHandler(re)}}ae.set(_dialogMessageKey(q.peerId,q.id),q)}for(const C of q.dialogs){if(C instanceof Ue.Api.DialogFolder){continue}const q=ae.get(_dialogMessageKey(C.peer,C.topMessage));if(this.offsetDate!=undefined){const C=q===null||q===void 0?void 0:q.date;if(C==undefined||C>this.offsetDate){continue}}const lt=Pt.utils.getPeerId(C.peer);if(!this.seen.has(lt)){this.seen.add(lt);if(!re.has(lt)){continue}const ae=new Wt.Dialog(this.client,C,re,q);if(!this.ignoreMigrated||ae.entity!=undefined&&"migratedTo"in ae.entity){this.buffer.push(ae)}}}if(q.dialogs.length= chunkSize")}Pt-=Pt%Nr;if(PtWr){Pt=Wr}let kr;if(lt==Pt&&re.divide(Wr).eq(Mr.default.zero)&&ae%Nr==0&&(Ue==undefined||re.divide(Ue).eq(Mr.default.zero))){kr=DirectDownloadIter;C._log.info(`Starting direct file download in chunks of ${Pt} at ${re}, stride ${ae}`)}else{kr=GenericDownloadIter;C._log.info(`Starting indirect file download in chunks of ${Pt} at ${re}, stride ${ae}`)}return new kr(C,Ue,{},{fileLocation:q,dcId:Ar,offset:re,stride:ae,chunkSize:lt,requestSize:Pt,fileSize:Wt,msgData:Er})}q.iterDownload=iterDownload;function getWriter(C){if(!C||Buffer.isBuffer(C)){return new Fr.BinaryWriter(Buffer.alloc(0))}else if(typeof C=="string"){return(0,Qr.createWriteStream)(C)}else{return C}}function closeWriter(C){if("close"in C&&C.close){C.close()}}function returnWriterValue(C){if(C instanceof Fr.BinaryWriter){return C.getValue()}if(C instanceof Dr.WriteStream){if(typeof C.path=="string"){return xr.default.resolve(C.path)}else{return Buffer.from(C.path)}}}async function downloadFileV2(C,q,{outputFile:re=undefined,partSizeKb:ae=undefined,fileSize:Ue=undefined,progressCallback:lt=undefined,dcId:Wt=undefined,msgData:Ar=undefined}){var Er,Ir;if(!ae){if(!Ue){ae=64}else{ae=Br.utils.getAppropriatedPartSize(Ue)}}const kr=Math.floor(ae*1024);if(kr%Nr!=0){throw new Error("The part size must be evenly divisible by 4096")}const Pr=getWriter(re);let Qr=Mr.default.zero;try{try{for(var Fr=Pt(iterDownload(C,{file:q,requestSize:kr,dcId:Wt,msgData:Ar})),Dr;Dr=await Fr.next(),!Dr.done;){const C=Dr.value;await Pr.write(C);Qr=Qr.add(C.length);if(lt){await lt(Qr,(0,Mr.default)(Ue||Mr.default.zero))}}}catch(C){Er={error:C}}finally{try{if(Dr&&!Dr.done&&(Ir=Fr.return))await Ir.call(Fr)}finally{if(Er)throw Er.error}}return returnWriterValue(Pr)}finally{closeWriter(Pr)}}q.downloadFileV2=downloadFileV2;class Foreman{constructor(C){this.maxWorkers=C;this.activeWorkers=0}requestWorker(){this.activeWorkers++;if(this.activeWorkers>this.maxWorkers){this.deferred=createDeferred();return this.deferred.promise}return Promise.resolve()}releaseWorker(){this.activeWorkers--;if(this.deferred&&this.activeWorkers<=this.maxWorkers){this.deferred.resolve()}}}function createDeferred(){let C;const q=new Promise((q=>{C=q}));return{promise:q,resolve:C}}async function downloadMedia(C,q,re,ae,Ue){let lt;let Pt;let Wt;if(q instanceof Ar.Api.Message){Wt=q.media;Pt=q.date;lt=q.inputChat?[q.inputChat,q.id]:undefined}else{Wt=q;Pt=Date.now()}if(typeof Wt=="string"){throw new Error("not implemented")}if(Wt instanceof Ar.Api.MessageMediaWebPage){if(Wt.webpage instanceof Ar.Api.WebPage){Wt=Wt.webpage.document||Wt.webpage.photo}}if(Wt instanceof Ar.Api.MessageMediaPhoto||Wt instanceof Ar.Api.Photo){return _downloadPhoto(C,Wt,re,Pt,ae,Ue)}else if(Wt instanceof Ar.Api.MessageMediaDocument||Wt instanceof Ar.Api.Document){return _downloadDocument(C,Wt,re,Pt,ae,Ue,lt)}else if(Wt instanceof Ar.Api.MessageMediaContact){return _downloadContact(C,Wt,{})}else if(Wt instanceof Ar.Api.WebDocument||Wt instanceof Ar.Api.WebDocumentNoProxy){return _downloadWebDocument(C,Wt,{})}else{return Buffer.alloc(0)}}q.downloadMedia=downloadMedia;async function _downloadDocument(C,q,re,ae,Ue,lt,Pt){if(q instanceof Ar.Api.MessageMediaDocument){if(!q.document){return Buffer.alloc(0)}q=q.document}if(!(q instanceof Ar.Api.Document)){return Buffer.alloc(0)}let Wt;if(Ue==undefined){re=getProperFilename(re,"document","."+(Br.utils.getExtension(q)||"bin"),ae)}else{re=getProperFilename(re,"photo",".jpg",ae);Wt=getThumb(q.thumbs||[],Ue);if(Wt instanceof Ar.Api.PhotoCachedSize||Wt instanceof Ar.Api.PhotoStrippedSize){return _downloadCachedPhotoSize(Wt,re)}}return await downloadFileV2(C,new Ar.Api.InputDocumentFileLocation({id:q.id,accessHash:q.accessHash,fileReference:q.fileReference,thumbSize:Wt&&"type"in Wt?Wt.type:""}),{outputFile:re,fileSize:Wt&&"size"in Wt?(0,Mr.default)(Wt.size):q.size,progressCallback:lt,msgData:Pt})}q._downloadDocument=_downloadDocument;async function _downloadContact(C,q,re){throw new Error("not implemented")}q._downloadContact=_downloadContact;async function _downloadWebDocument(C,q,re){throw new Error("not implemented")}q._downloadWebDocument=_downloadWebDocument;function pickFileSize(C,q){if(!q||!C||!C.length){return undefined}const re=Ur.indexOf(q);let ae;for(let q=re;qC.type===Ur[q]));if(ae&&!(ae instanceof Ar.Api.PhotoPathSize)){return ae}}return undefined}function getThumb(C,q){function sortThumb(C){if(C instanceof Ar.Api.PhotoStrippedSize){return C.bytes.length}if(C instanceof Ar.Api.PhotoCachedSize){return C.bytes.length}if(C instanceof Ar.Api.PhotoSize){return C.size}if(C instanceof Ar.Api.PhotoSizeProgressive){return Math.max(...C.sizes)}if(C instanceof Ar.Api.VideoSize){return C.size}return 0}C=C.sort(((C,q)=>sortThumb(C)-sortThumb(q)));const re=[];for(const q of C){if(!(q instanceof Ar.Api.PhotoPathSize)){re.push(q)}}if(q==undefined){return re.pop()}else if(typeof q=="number"){return re[q]}else if(typeof q=="string"){for(const C of re){if("type"in C&&C.type==q){return C}}}else if(q instanceof Ar.Api.PhotoSize||q instanceof Ar.Api.PhotoCachedSize||q instanceof Ar.Api.PhotoStrippedSize||q instanceof Ar.Api.VideoSize){return q}}async function _downloadCachedPhotoSize(C,q){let re;if(C instanceof Ar.Api.PhotoStrippedSize){re=(0,Er.strippedPhotoToJpg)(C.bytes)}else{re=C.bytes}const ae=getWriter(q);try{await ae.write(re)}finally{closeWriter(ae)}return returnWriterValue(ae)}q._downloadCachedPhotoSize=_downloadCachedPhotoSize;function getProperFilename(C,q,re,ae){if(!C||typeof C!="string"){return C}if(Dr.existsSync(C)&&Dr.lstatSync(C).isDirectory()){let Ue=q+ae+re;return xr.default.join(C,Ue)}return C}async function _downloadPhoto(C,q,re,ae,Ue,lt){if(q instanceof Ar.Api.MessageMediaPhoto){if(q.photo instanceof Ar.Api.PhotoEmpty||!q.photo){return Buffer.alloc(0)}q=q.photo}if(!(q instanceof Ar.Api.Photo)){return Buffer.alloc(0)}const Pt=[...q.sizes||[],...q.videoSizes||[]];const Wt=getThumb(Pt,Ue);if(!Wt||Wt instanceof Ar.Api.PhotoSizeEmpty){return Buffer.alloc(0)}if(!ae){ae=Date.now()}re=getProperFilename(re,"photo",".jpg",ae);if(Wt instanceof Ar.Api.PhotoCachedSize||Wt instanceof Ar.Api.PhotoStrippedSize){return _downloadCachedPhotoSize(Wt,re)}let Er;if(Wt instanceof Ar.Api.PhotoSizeProgressive){Er=Math.max(...Wt.sizes)}else{Er="size"in Wt?Wt.size:512}return downloadFileV2(C,new Ar.Api.InputPhotoFileLocation({id:q.id,accessHash:q.accessHash,fileReference:q.fileReference,thumbSize:"type"in Wt?Wt.type:""}),{outputFile:re,fileSize:(0,Mr.default)(Er),progressCallback:lt,dcId:q.dcId})}q._downloadPhoto=_downloadPhoto;async function downloadProfilePhoto(C,q,re){let ae;if(typeof q=="object"&&"photo"in q){ae=q.photo}else{q=await C.getEntity(q);if("photo"in q){ae=q.photo}else{throw new Error(`Could not get photo from ${q?q.className:undefined}`)}}let Ue;let lt;if(ae instanceof Ar.Api.UserProfilePhoto||ae instanceof Ar.Api.ChatPhoto){Ue=ae.dcId;lt=new Ar.Api.InputPeerPhotoFileLocation({peer:Br.utils.getInputPeer(q),photoId:ae.photoId,big:re.isBig})}else{return Buffer.alloc(0)}return C.downloadFile(lt,{outputFile:re.outputFile,dcId:Ue})}q.downloadProfilePhoto=downloadProfilePhoto},46488:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(79896),q)},42107:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.users=q.uploads=q.updates=q.tgClient=q.telegramBaseClient=q.message=q.messageParse=q.downloads=q.dialogs=q.chats=q.buttons=q.bots=q.auth=q.twoFA=void 0;const Pt=lt(re(77472));q.twoFA=Pt;const Wt=lt(re(86769));q.auth=Wt;const Ar=lt(re(87237));q.bots=Ar;const Er=lt(re(35054));q.buttons=Er;const Ir=lt(re(41380));q.chats=Ir;const Br=lt(re(55314));q.dialogs=Br;const kr=lt(re(35130));q.downloads=kr;const Pr=lt(re(41197));q.messageParse=Pr;const Qr=lt(re(74827));q.message=Qr;const Fr=lt(re(71966));q.telegramBaseClient=Fr;const Dr=lt(re(74163));q.tgClient=Dr;const xr=lt(re(52753));q.updates=xr;const Mr=lt(re(94417));q.uploads=Mr;const Ur=lt(re(44431));q.users=Ur},41197:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q._getResponseMessage=q._parseMessageText=q._replaceWithMention=q.DEFAULT_DELIMITERS=void 0;const Ue=re(29078);const lt=re(11820);const Pt=re(18219);const Wt=re(10330);const Ar=ae(re(43269));q.DEFAULT_DELIMITERS={"**":lt.Api.MessageEntityBold,__:lt.Api.MessageEntityItalic,"~~":lt.Api.MessageEntityStrike,"`":lt.Api.MessageEntityCode,"```":lt.Api.MessageEntityPre};async function _replaceWithMention(C,q,re,ae){try{q[re]=new lt.Api.InputMessageEntityMentionName({offset:q[re].offset,length:q[re].length,userId:await C.getInputEntity(ae)});return true}catch(C){return false}}q._replaceWithMention=_replaceWithMention;async function _parseMessageText(C,q,re){if(re==false){return[q,[]]}if(re==undefined){if(C.parseMode==undefined){return[q,[]]}re=C.parseMode}else if(typeof re==="string"){re=(0,Ue.sanitizeParseMode)(re)}const[ae,Pt]=re.parse(q);for(let q=Pt.length-1;q>=0;q--){const re=Pt[q];if(re instanceof lt.Api.MessageEntityTextUrl){const ae=/^@|\+|tg:\/\/user\?id=(\d+)/.exec(re.url);if(ae){const Ue=ae[1]?Number(ae[1]):re.url;const lt=await _replaceWithMention(C,Pt,q,Ue);if(!lt){Pt.splice(q,1)}}}}return[ae,Pt]}q._parseMessageText=_parseMessageText;function _getResponseMessage(C,q,re,ae){let Er=[];let Ir=new Map;if(re instanceof lt.Api.UpdateShort){Er=[re.update]}else if(re instanceof lt.Api.Updates||re instanceof lt.Api.UpdatesCombined){Er=re.updates;for(const C of[...re.users,...re.chats]){Ir.set(Pt.utils.getPeerId(C),C)}}else{return}const Br=new Map;const kr=new Map;let Pr;for(const re of Er){if(re instanceof lt.Api.UpdateMessageID){Br.set(re.randomId.toString(),re.id)}else if(re instanceof lt.Api.UpdateNewChannelMessage||re instanceof lt.Api.UpdateNewMessage){re.message._finishInit(C,Ir,ae);if("randomId"in q||(0,Wt.isArrayLike)(q)){kr.set(re.message.id,re.message)}else{return re.message}}else if(re instanceof lt.Api.UpdateEditMessage&&"peer"in q&&(0,Wt._entityType)(q.peer)!=Wt._EntityType.CHANNEL){re.message._finishInit(C,Ir,ae);if("randomId"in q){kr.set(re.message.id,re.message)}else if("id"in q&&q.id===re.message.id){return re.message}}else if(re instanceof lt.Api.UpdateEditChannelMessage&&"peer"in q&&(0,Ue.getPeerId)(q.peer)==(0,Ue.getPeerId)(re.message.peerId)){if(q.id==re.message.id){re.message._finishInit(C,Ir,ae);return re.message}}else if(re instanceof lt.Api.UpdateNewScheduledMessage){re.message._finishInit(C,Ir,ae);Pr=re.message;kr.set(re.message.id,re.message)}else if(re instanceof lt.Api.UpdateMessagePoll){if(q.media.poll.id==re.pollId){const Ue=new lt.Api.Message({id:q.id,peerId:Pt.utils.getPeerId(q.peer),media:new lt.Api.MessageMediaPoll({poll:re.poll,results:re.results}),message:"",date:0});Ue._finishInit(C,Ir,ae);return Ue}}}if(q==undefined){return kr}let Qr;if((0,Wt.isArrayLike)(q)||typeof q=="number"||Ar.default.isInstance(q)){Qr=q}else{Qr=q.randomId}if(!Qr){if(Pr){return Pr}C._log.warn(`No randomId in ${q} to map to. returning undefined for ${re} (Message was empty)`);return undefined}if(!(0,Wt.isArrayLike)(Qr)){let ae=kr.get(Br.get(Qr.toString()));if(!ae){C._log.warn(`Request ${q.className} had missing message mapping ${re.className} (Message was empty)`)}return ae}const Fr=[];let Dr=false;for(const C of Qr){const q=Br.get(C.toString());if(!q){Dr=true;break}const re=kr.get(q);if(!re){Dr=true;break}Fr.push(re)}if(Dr){C._log.warn(`Request ${q.className} had missing message mapping ${re.className} (Message was empty)`)}const xr=[];for(const C of Qr){xr.push(kr.get(Br.get(C.toString())))}return xr}q._getResponseMessage=_getResponseMessage},74827:function(C,q,re){var ae=this&&this.__asyncValues||function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q=C[Symbol.asyncIterator],re;return q?q.call(C):(C=typeof __values==="function"?__values(C):C[Symbol.iterator](),re={},verb("next"),verb("throw"),verb("return"),re[Symbol.asyncIterator]=function(){return this},re);function verb(q){re[q]=C[q]&&function(re){return new Promise((function(ae,Ue){re=C[q](re),settle(ae,Ue,re.done,re.value)}))}}function settle(C,q,re,ae){Promise.resolve(ae).then((function(q){C({value:q,done:re})}),q)}};var Ue=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.getCommentData=q.markAsRead=q._pin=q.unpinMessage=q.pinMessage=q.deleteMessages=q.editMessage=q.forwardMessages=q.sendMessage=q.getMessages=q.iterMessages=q._IDsIter=q._MessagesIter=void 0;const lt=re(87440);const Pt=re(40776);const Wt=re(10330);const Ar=re(29078);const Er=re(18219);const Ir=re(41197);const Br=re(44431);const kr=Ue(re(43269));const Pr=re(94417);const Qr=100;class _MessagesIter extends Pt.RequestIter{async _init({entity:C,offsetId:q,minId:re,maxId:Ue,fromUser:Pt,offsetDate:Ar,addOffset:Er,filter:Ir,search:Br,replyTo:Pr}){var Fr,Dr;if(C){this.entity=await this.client.getInputEntity(C)}else{this.entity=undefined;if(this.reverse){throw new Error("Cannot reverse global search")}}if(this.reverse){q=Math.max(q,re);if(q&&Ue){if(Ue-q<=1){return false}}if(!Ue){Ue=Number.MAX_SAFE_INTEGER}}else{q=Math.max(q,Ue);if(q&&re){if(q-re<=1){return false}}}if(this.reverse){if(q){q+=1}else if(!Ar){q=1}}if(Pt){Pt=await this.client.getInputEntity(Pt)}if(!this.entity&&Pt){this.entity=new lt.Api.InputPeerEmpty}if(!Ir){Ir=new lt.Api.InputMessagesFilterEmpty}if(!this.entity){this.request=new lt.Api.messages.SearchGlobal({q:Br||"",filter:Ir,minDate:undefined,maxDate:Ar,offsetRate:undefined,offsetPeer:new lt.Api.InputPeerEmpty,offsetId:q,limit:1})}else if(Pr!==undefined){this.request=new lt.Api.messages.GetReplies({peer:this.entity,msgId:Pr,offsetId:q,offsetDate:Ar,addOffset:Er,limit:0,maxId:0,minId:0,hash:kr.default.zero})}else if(Br!==undefined||!(Ir instanceof lt.Api.InputMessagesFilterEmpty)||Pt!==undefined){this.request=new lt.Api.messages.Search({peer:this.entity,q:Br||"",filter:typeof Ir==="function"?new Ir:Ir,minDate:undefined,maxDate:Ar,offsetId:q,addOffset:Er,limit:0,maxId:0,minId:0,hash:(0,Wt.generateRandomBigInt)(),fromId:Pt});if(!(Ir instanceof lt.Api.InputMessagesFilterEmpty)&&Ar&&!Br&&!q){try{for(var xr=ae(this.client.iterMessages(this.entity,{limit:1,offsetDate:Ar})),Mr;Mr=await xr.next(),!Mr.done;){const C=Mr.value;this.request.offsetId=C.id+1}}catch(C){Fr={error:C}}finally{try{if(Mr&&!Mr.done&&(Dr=xr.return))await Dr.call(xr)}finally{if(Fr)throw Fr.error}}}}else{this.request=new lt.Api.messages.GetHistory({peer:this.entity,limit:1,offsetDate:Ar,offsetId:q,minId:0,maxId:0,addOffset:Er,hash:kr.default.zero})}if(this.limit<=0){const C=await this.client.invoke(this.request);if(C instanceof lt.Api.messages.MessagesNotModified){this.total=C.count}else{if("count"in C){this.total=C.count}else{this.total=C.messages.length}}return false}if(!this.waitTime){this.waitTime=this.limit>3e3?1:0}if(this.reverse&&!(this.request instanceof lt.Api.messages.SearchGlobal)){this.request.addOffset-=Qr}this.addOffset=Er;this.maxId=Ue;this.minId=re;this.lastId=this.reverse?0:Number.MAX_SAFE_INTEGER}async _loadNextChunk(){var C;if(!this.request){throw new Error("Request not set yet")}this.request.limit=Math.min(this.left,Qr);if(this.reverse&&this.request.limit!=Qr){if(!(this.request instanceof lt.Api.messages.SearchGlobal)){this.request.addOffset=this.addOffset-this.request.limit}}const q=await this.client.invoke(this.request);if(q instanceof lt.Api.messages.MessagesNotModified){return true}if("count"in q){this.total=q.count}else{this.total=q.messages.length}const re=new Map;for(const C of[...q.users,...q.chats]){re.set((0,Ar.getPeerId)(C),C)}const ae=this.reverse?q.messages.reverse():q.messages;for(const q of ae){if(!this._messageInRange(q)){return true}this.lastId=q.id;try{q._finishInit(this.client,re,this.entity)}catch(C){}q._entities=re;(C=this.buffer)===null||C===void 0?void 0:C.push(q)}if(q.messages.length=this.maxId){return false}}else{if(C.id>=this.lastId||C.id<=this.minId){return false}}}return true}[Symbol.asyncIterator](){return super[Symbol.asyncIterator]()}_updateOffset(C,q){if(!this.request){throw new Error("Request not set yet")}this.request.offsetId=Number(C.id);if(this.reverse){this.request.offsetId+=1}if(this.request instanceof lt.Api.messages.Search){this.request.maxDate=-1}else{if(!(this.request instanceof lt.Api.messages.SearchGlobal)){this.request.offsetDate=C.date}}if(this.request instanceof lt.Api.messages.SearchGlobal){if(C.inputChat){this.request.offsetPeer=C.inputChat}else{this.request.offsetPeer=new lt.Api.InputPeerEmpty}this.request.offsetRate=q.nextRate}}}q._MessagesIter=_MessagesIter;class _IDsIter extends Pt.RequestIter{async _init({entity:C,ids:q}){this.total=q.length;this._ids=this.reverse?q.reverse():q;this._offset=0;this._entity=C?await this.client.getInputEntity(C):undefined;this._ty=this._entity?(0,Wt._entityType)(this._entity):undefined;if(!this.waitTime){this.waitTime=this.limit>300?10:0}}[Symbol.asyncIterator](){return super[Symbol.asyncIterator]()}async _loadNextChunk(){var C,q,re;const ae=this._ids.slice(this._offset,this._offset+Qr);if(!ae.length){return false}this._offset+=Qr;let Ue;let Pt;if(this._ty==Wt._EntityType.CHANNEL){try{Pt=await this.client.invoke(new lt.Api.channels.GetMessages({channel:this._entity,id:ae}))}catch(C){if(C.errorMessage=="MESSAGE_IDS_EMPTY"){Pt=new lt.Api.messages.MessagesNotModified({count:ae.length})}else{throw C}}}else{Pt=await this.client.invoke(new lt.Api.messages.GetMessages({id:ae}));if(this._entity){Ue=await(0,Br._getPeer)(this.client,this._entity)}}if(Pt instanceof lt.Api.messages.MessagesNotModified){(C=this.buffer)===null||C===void 0?void 0:C.push(...Array(ae.length));return}const Ar=new Map;for(const C of[...Pt.users,...Pt.chats]){Ar.set(Er.utils.getPeerId(C),C)}let Ir;for(Ir of Pt.messages){if(Ir instanceof lt.Api.MessageEmpty||Ue&&Er.utils.getPeerId(Ir.peerId)!=Er.utils.getPeerId(Ue)){(q=this.buffer)===null||q===void 0?void 0:q.push(undefined)}else{const C=Ir;C._finishInit(this.client,Ar,this._entity);C._entities=Ar;(re=this.buffer)===null||re===void 0?void 0:re.push(C)}}}}q._IDsIter=_IDsIter;const Fr={limit:undefined,offsetDate:undefined,offsetId:0,maxId:0,minId:0,addOffset:0,search:undefined,filter:undefined,fromUser:undefined,waitTime:undefined,ids:undefined,reverse:false,replyTo:undefined,scheduled:false};function iterMessages(C,q,re){const{limit:ae,offsetDate:Ue,offsetId:lt,maxId:Pt,minId:Ar,addOffset:Er,search:Ir,filter:Br,fromUser:kr,waitTime:Pr,ids:Qr,reverse:Dr,replyTo:xr}=Object.assign(Object.assign({},Fr),re);if(Qr){let re;if(!(0,Wt.isArrayLike)(Qr)){re=[Qr]}else{re=Qr}return new _IDsIter(C,re.length,{reverse:Dr,waitTime:Pr},{entity:q,ids:re})}return new _MessagesIter(C,ae,{waitTime:Pr,reverse:Dr},{entity:q,offsetId:lt,minId:Ar,maxId:Pt,fromUser:kr,offsetDate:Ue,addOffset:Er,filter:Br,search:Ir,replyTo:xr})}q.iterMessages=iterMessages;async function getMessages(C,q,re){var Ue,lt;if(Object.keys(re).length==1&&re.limit===undefined){if(re.minId===undefined&&re.maxId===undefined){re.limit=undefined}else{re.limit=1}}const Pt=C.iterMessages(q,re);const Ar=re.ids;if(Ar&&!(0,Wt.isArrayLike)(Ar)){try{for(var Er=ae(Pt),Ir;Ir=await Er.next(),!Ir.done;){const C=Ir.value;return[C]}}catch(C){Ue={error:C}}finally{try{if(Ir&&!Ir.done&&(lt=Er.return))await lt.call(Er)}finally{if(Ue)throw Ue.error}}return[]}return await Pt.collect()}q.getMessages=getMessages;async function sendMessage(C,q,{message:re,replyTo:ae,attributes:Ue,parseMode:Pt,formattingEntities:Wt,linkPreview:Er=true,file:kr,thumb:Pr,forceDocument:Qr,clearDraft:Fr,buttons:Dr,silent:xr,supportStreaming:Mr,schedule:Ur,noforwards:Nr,commentTo:Lr,topMsgId:jr}={}){if(kr){return C.sendFile(q,{file:kr,caption:re?typeof re=="string"?re:re.message:"",forceDocument:Qr,clearDraft:Fr,replyTo:ae,attributes:Ue,thumb:Pr,supportsStreaming:Mr,parseMode:Pt,formattingEntities:Wt,silent:xr,scheduleDate:Ur,buttons:Dr,noforwards:Nr,commentTo:Lr,topMsgId:jr})}q=await C.getInputEntity(q);if(Lr!=undefined){const re=await getCommentData(C,q,Lr);q=re.entity;ae=re.replyTo}let Gr,Vr;let Hr=undefined;if(ae!=undefined){Hr=new lt.Api.InputReplyToMessage({replyToMsgId:(0,Ar.getMessageId)(ae),topMsgId:(0,Ar.getMessageId)(jr)})}if(re&&re instanceof lt.Api.Message){if(Dr==undefined){Gr=re.replyMarkup}else{Gr=C.buildReplyMarkup(Dr)}if(xr==undefined){xr=re.silent}if(re.media&&!(re.media instanceof lt.Api.MessageMediaWebPage)){return C.sendFile(q,{file:re.media,caption:re.message,silent:xr,replyTo:ae,buttons:Gr,formattingEntities:re.entities,scheduleDate:Ur})}Vr=new lt.Api.messages.SendMessage({peer:q,message:re.message||"",silent:xr,replyTo:Hr,replyMarkup:Gr,entities:re.entities,clearDraft:Fr,noWebpage:!(re.media instanceof lt.Api.MessageMediaWebPage),scheduleDate:Ur,noforwards:Nr});re=re.message}else{if(Wt==undefined){[re,Wt]=await(0,Ir._parseMessageText)(C,re||"",Pt)}if(!re){throw new Error("The message cannot be empty unless a file is provided")}Vr=new lt.Api.messages.SendMessage({peer:q,message:re.toString(),entities:Wt,noWebpage:!Er,replyTo:Hr,clearDraft:Fr,silent:xr,replyMarkup:C.buildReplyMarkup(Dr),scheduleDate:Ur,noforwards:Nr})}const Wr=await C.invoke(Vr);if(Wr instanceof lt.Api.UpdateShortSentMessage){const ae=new lt.Api.Message({id:Wr.id,peerId:await(0,Br._getPeer)(C,q),message:re,date:Wr.date,out:Wr.out,media:Wr.media,entities:Wr.entities,replyMarkup:Vr.replyMarkup,ttlPeriod:Wr.ttlPeriod});ae._finishInit(C,new Map,q);return ae}return C._getResponseMessage(Vr,Wr,q)}q.sendMessage=sendMessage;async function forwardMessages(C,q,{messages:re,fromPeer:ae,silent:Ue,schedule:Pt,noforwards:Er,dropAuthor:Ir}){if(!(0,Wt.isArrayLike)(re)){re=[re]}q=await C.getInputEntity(q);let Br;if(ae){ae=await C.getInputEntity(ae);Br=await C.getPeerId(ae)}const getKey=C=>{if(C instanceof lt.Api.Message){return C.chatId}let q=(0,Ar.parseID)(C);if(q){if(Br!==undefined){return Br}throw new Error("fromPeer must be given if integer IDs are used")}else{throw new Error(`Cannot forward ${C}`)}};const kr=[];for(let[Ar,Br]of(0,Wt.groupBy)(re,getKey)){let re;let Wt=[];if(typeof Br[0]=="number"){re=ae;Wt=Br}else{re=await Br[0].getInputChat();Wt=Br.map((C=>C.id))}Br.push();const Ar=new lt.Api.messages.ForwardMessages({fromPeer:re,id:Wt,toPeer:q,silent:Ue,scheduleDate:Pt,noforwards:Er,dropAuthor:Ir});const Pr=await C.invoke(Ar);kr.push(C._getResponseMessage(Ar,Pr,q))}return kr}q.forwardMessages=forwardMessages;async function editMessage(C,q,{message:re,text:ae,parseMode:Ue,formattingEntities:Pt,linkPreview:Wt=true,file:Er,forceDocument:Br,buttons:kr,schedule:Qr}){if(typeof re==="number"&&typeof ae==="undefined"&&!Er&&!Qr){throw Error("You have to provide either file or text or schedule property.")}q=await C.getInputEntity(q);let Fr;let Dr;let xr;let Mr;if(Er){const{fileHandle:q,media:re,image:ae}=await(0,Pr._fileToMedia)(C,{file:Er,forceDocument:Br});Mr=re}if(re instanceof lt.Api.Message){Fr=(0,Ar.getMessageId)(re);ae=re.message;xr=re.entities;if(kr==undefined){Dr=re.replyMarkup}else{Dr=C.buildReplyMarkup(kr)}if(re.media){Mr=(0,Ar.getInputMedia)(re.media,{forceDocument:Br})}}else{if(typeof re!=="number"){throw Error("editMessageParams.message must be either a number or a Api.Message type")}Fr=re;if(Pt==undefined){[ae,xr]=await(0,Ir._parseMessageText)(C,ae||"",Ue)}else{xr=Pt}Dr=C.buildReplyMarkup(kr)}const Ur=new lt.Api.messages.EditMessage({peer:q,id:Fr,message:ae,noWebpage:!Wt,entities:xr,media:Mr,replyMarkup:Dr,scheduleDate:Qr});const Nr=await C.invoke(Ur);return C._getResponseMessage(Ur,Nr,q)}q.editMessage=editMessage;async function deleteMessages(C,q,re,{revoke:ae=false}){let Ue=Wt._EntityType.USER;if(q){q=await C.getInputEntity(q);Ue=(0,Wt._entityType)(q)}const Pt=[];for(const C of re){if(C instanceof lt.Api.Message||C instanceof lt.Api.MessageService||C instanceof lt.Api.MessageEmpty){Pt.push(C.id)}else if(typeof C==="number"){Pt.push(C)}else{throw new Error(`Cannot convert ${C} to an integer`)}}const Ar=[];if(Ue==Wt._EntityType.CHANNEL){for(const re of Er.utils.chunks(Pt)){Ar.push(C.invoke(new lt.Api.channels.DeleteMessages({channel:q,id:re})))}}else{for(const q of Er.utils.chunks(Pt)){Ar.push(C.invoke(new lt.Api.messages.DeleteMessages({id:q,revoke:ae})))}}return Promise.all(Ar)}q.deleteMessages=deleteMessages;async function pinMessage(C,q,re,ae){return await _pin(C,q,re,false,ae===null||ae===void 0?void 0:ae.notify,ae===null||ae===void 0?void 0:ae.pmOneSide)}q.pinMessage=pinMessage;async function unpinMessage(C,q,re,ae){return await _pin(C,q,re,true,ae===null||ae===void 0?void 0:ae.notify,ae===null||ae===void 0?void 0:ae.pmOneSide)}q.unpinMessage=unpinMessage;async function _pin(C,q,re,ae,Ue=false,Pt=false){re=Er.utils.getMessageId(re)||0;if(re===0){return await C.invoke(new lt.Api.messages.UnpinAllMessages({peer:q}))}q=await C.getInputEntity(q);const Wt=new lt.Api.messages.UpdatePinnedMessage({silent:!Ue,unpin:ae,pmOneside:Pt,peer:q,id:re});const Ar=await C.invoke(Wt);if(ae||!("updates"in Ar)||"updates"in Ar&&!Ar.updates){return}return C._getResponseMessage(Wt,Ar,q)}q._pin=_pin;async function markAsRead(C,q,re,ae){let Ue=(ae===null||ae===void 0?void 0:ae.maxId)||0;const Pt=(ae===null||ae===void 0?void 0:ae.maxId)===undefined;if(Pt){if(re){if(Array.isArray(re)){Ue=Math.max(...re.map((C=>Er.utils.getMessageId(C))))}else{Ue=Er.utils.getMessageId(re)}}}q=await C.getInputEntity(q);if(ae&&!ae.clearMentions){await C.invoke(new lt.Api.messages.ReadMentions({peer:q}));if(Pt&&re===undefined){return true}}if((0,Wt._entityType)(q)===Wt._EntityType.CHANNEL){return await C.invoke(new lt.Api.channels.ReadHistory({channel:q,maxId:Ue}))}else{await C.invoke(new lt.Api.messages.ReadHistory({peer:q,maxId:Ue}));return true}}q.markAsRead=markAsRead;async function getCommentData(C,q,re){const ae=await C.invoke(new lt.Api.messages.GetDiscussionMessage({peer:q,msgId:Er.utils.getMessageId(re)}));const Ue=ae.messages.reduce(((C,q)=>C&&C.idObject.values(C).map((C=>C&&C.then((C=>{if(C){return C.disconnect()}return undefined})))))).flat());Object.values(this._exportedSenderReleaseTimeouts).forEach((C=>{Object.values(C).forEach((C=>{clearTimeout(C)}))}));this._exportedSenderPromises.clear()}get disconnected(){return!this._sender||this._sender._disconnected}async _disconnect(){var C;await((C=this._sender)===null||C===void 0?void 0:C.disconnect())}async destroy(){this._destroyed=true;await Promise.all([this.disconnect(),...Object.values(this._borrowedSenderPromises).map((C=>C.then((C=>C.disconnect()))))]);this._eventBuilders=[]}async _authKeyCallback(C,q){this.session.setAuthKey(C,q);await this.session.save()}async _cleanupExportedSender(C){if(this.session.dcId!==C){this.session.setAuthKey(undefined,C)}let q=await this._exportedSenderPromises.get(C);this._exportedSenderPromises.delete(C);await(q===null||q===void 0?void 0:q.disconnect())}async _connectSender(C,q){const re=await this.getDC(q,!!C.authKey.getKey());while(true){try{await C.connect(new this._connection({ip:re.ipAddress,port:re.port,dcId:q,loggers:this._log,proxy:this._proxy,testServers:this.testServers,socket:this.networkSocket}),false);if(this.session.dcId!==q&&!C._authenticated){this._log.info(`Exporting authorization for data center ${re.ipAddress} with layer ${Qr.LAYER}`);const ae=await this.invoke(new Er.Api.auth.ExportAuthorization({dcId:q}));this._initRequest.query=new Er.Api.auth.ImportAuthorization({id:ae.id,bytes:ae.bytes});const Ue=new Er.Api.InvokeWithLayer({layer:Qr.LAYER,query:this._initRequest});await C.send(Ue);C._authenticated=true}C.dcId=q;C.userDisconnected=false;return C}catch(q){if(q.errorMessage==="DC_ID_INVALID"){C._authenticated=true;C.userDisconnected=false;return C}if(this._errorHandler){await this._errorHandler(q)}else if(this._log.canSend(xr.LogLevel.ERROR)){console.error(q)}await(0,lt.sleep)(1e3);await C.disconnect()}}}async _borrowExportedSender(C,q,re){if(!this._exportedSenderPromises.get(C)||q){this._exportedSenderPromises.set(C,this._connectSender(re||this._createExportedSender(C),C))}let ae;try{ae=await this._exportedSenderPromises.get(C);if(!ae.isConnected()){if(ae.isConnecting){await(0,lt.sleep)(Nr);return this._borrowExportedSender(C,false,ae)}else{return this._borrowExportedSender(C,true,ae)}}}catch(q){if(this._errorHandler){await this._errorHandler(q)}if(this._log.canSend(xr.LogLevel.ERROR)){console.error(q)}return this._borrowExportedSender(C,true)}if(this._exportedSenderReleaseTimeouts.get(C)){clearTimeout(this._exportedSenderReleaseTimeouts.get(C));this._exportedSenderReleaseTimeouts.delete(C)}this._exportedSenderReleaseTimeouts.set(C,setTimeout((()=>{this._exportedSenderReleaseTimeouts.delete(C);if(ae._pendingState.values().length){console.log("sender already has some hanging states. reconnecting");ae._reconnect();this._borrowExportedSender(C,false,ae)}else{ae.disconnect()}}),Lr));return ae}_createExportedSender(C){return new Pr.MTProtoSender(this.session.getAuthKey(C),{logger:this._log,dcId:C,retries:this._connectionRetries,delay:this._retryDelay,autoReconnect:this._autoReconnect,connectTimeout:this._timeout,authKeyCallback:this._authKeyCallback.bind(this),isMainSender:C===this.session.dcId,onConnectionBreak:this._cleanupExportedSender.bind(this),client:this,securityChecks:this._securityChecks,_exportedSenderPromises:this._exportedSenderPromises,reconnectRetries:this._reconnectRetries})}getSender(C){return C?this._borrowExportedSender(C):Promise.resolve(this._sender)}async getDC(C,q){throw new Error("Cannot be called from here!")}invoke(C){throw new Error("Cannot be called from here!")}setLogLevel(C){this._log.setLevel(C)}get logger(){return this._log}set onError(C){this._errorHandler=async q=>{try{await C(q)}catch(C){if(this._log.canSend(xr.LogLevel.ERROR)){C.message=`Error ${C.message} thrown while handling top-level error: ${q.message}`;console.error(C)}}}}}q.TelegramBaseClient=TelegramBaseClient},52753:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q._updateLoop=q._dispatchUpdate=q._processUpdate=q._handleUpdate=q.catchUp=q.listEventHandlers=q.removeEventHandler=q.addEventHandler=q.on=q.StopPropagation=void 0;const ae=re(87440);const Ue=re(68722);const lt=re(18219);const Pt=re(10330);const Wt=re(91932);const Ar=9e3;const Er=1e4;const Ir=3;const Br=100;const kr=6e4;const Pr=5e3;const Qr=3e3;const Fr=1e3;class StopPropagation extends Error{}q.StopPropagation=StopPropagation;function on(C,q){return re=>{C.addEventHandler(re,q);return re}}q.on=on;function addEventHandler(C,q,ae){if(ae==undefined){const C=re(10763).Raw;ae=new C({})}ae.client=C;C._eventBuilders.push([ae,q])}q.addEventHandler=addEventHandler;function removeEventHandler(C,q,re){C._eventBuilders=C._eventBuilders.filter((function(C){return C[0]!==re&&C[1]!==q}))}q.removeEventHandler=removeEventHandler;function listEventHandlers(C){return C._eventBuilders}q.listEventHandlers=listEventHandlers;function catchUp(){}q.catchUp=catchUp;function _handleUpdate(C,q){if(typeof q==="number"){if([-1,0,1].includes(q)){_dispatchUpdate(C,{update:new Ue.UpdateConnectionState(q)});return}}C._entityCache.add(q);C.session.processEntities(q);if(q instanceof ae.Api.Updates||q instanceof ae.Api.UpdatesCombined){const re=new Map;for(const C of[...q.users,...q.chats]){re.set(lt.utils.getPeerId(C),C)}for(const ae of q.updates){_processUpdate(C,ae,q.updates,re)}}else if(q instanceof ae.Api.UpdateShort){_processUpdate(C,q.update,null)}else{_processUpdate(C,q,null)}}q._handleUpdate=_handleUpdate;function _processUpdate(C,q,re,ae){q._entities=ae||new Map;const Ue={update:q,others:re};_dispatchUpdate(C,Ue)}q._processUpdate=_processUpdate;async function _dispatchUpdate(C,q){for(const[re,ae]of C._eventBuilders){if(!re||!ae){continue}if(!re.resolved){await re.resolve(C)}let lt=q.update;if(lt){if(!C._selfInputPeer){try{await C.getMe(true)}catch(C){}}if(!(lt instanceof Ue.UpdateConnectionState)){}lt=re.build(lt,ae,C._selfInputPeer?(0,Pt.returnBigInt)(C._selfInputPeer.userId):undefined);if(lt){lt._client=C;if("_eventName"in lt){lt._setClient(C);lt.originalUpdate=q.update;lt._entities=q.update._entities}const Ue=await re.filter(lt);if(!Ue){continue}try{await ae(lt)}catch(q){if(q instanceof StopPropagation){break}if(C._errorHandler){await C._errorHandler(q)}if(C._log.canSend(Wt.LogLevel.ERROR)){console.error(q)}}}}}}q._dispatchUpdate=_dispatchUpdate;async function _updateLoop(C){let q;while(!C._destroyed){await(0,Pt.sleep)(Ar,true);if(C._destroyed)break;if(C._sender.isReconnecting||C._isSwitchingDc){q=undefined;continue}try{const ping=()=>C._sender.send(new ae.Api.PingDelayDisconnect({pingId:(0,Pt.returnBigInt)((0,Pt.getRandomInt)(Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)),disconnectDelay:kr}));const re=Date.now();const lt=q?re-q:undefined;if(!lt||lttimeout(ping,Er)),Ir,Br)}else{let q=setTimeout((()=>{_handleUpdate(C,Ue.UpdateConnectionState.disconnected);q=undefined}),Fr);await timeout(ping,Qr);if(q){clearTimeout(q);q=undefined}_handleUpdate(C,Ue.UpdateConnectionState.connected)}q=Date.now()}catch(re){if(C._errorHandler){await C._errorHandler(re)}if(C._log.canSend(Wt.LogLevel.ERROR)){console.error(re)}q=undefined;if(C._sender.isReconnecting||C._isSwitchingDc){continue}C._sender.reconnect()}if(Date.now()-(C._lastRequest||0)>30*60*1e3){try{await C.invoke(new ae.Api.updates.GetState)}catch(C){}q=undefined}}await C.disconnect()}q._updateLoop=_updateLoop;async function attempts(C,q,re){for(let ae=0;aere?undefined:Promise.reject(new Error("TIMEOUT"))))]).finally((()=>{re=true}))}},94417:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.sendFile=q._sendAlbum=q._fileToMedia=q.uploadFile=q.CustomFile=void 0;const Ue=re(87440);const lt=re(10330);const Pt=re(29078);const Wt=ae(re(45844));const Ar=re(46488);const Er=re(18219);const Ir=re(41197);const Br=re(74827);const kr=ae(re(43269));class CustomFile{constructor(C,q,re,ae){this.name=C;this.size=q;this.path=re;this.buffer=ae}}q.CustomFile=CustomFile;class CustomBuffer{constructor(C){this.options=C;if(!C.buffer&&!C.filePath){throw new Error("Either one of `buffer` or `filePath` should be specified")}}async slice(C,q){const{buffer:re,filePath:ae}=this.options;if(re){return re.slice(C,q)}else if(ae){const re=q-C;const Ue=Buffer.alloc(re);const lt=await Ar.promises.open(ae,"r");await lt.read(Ue,0,re,C);await lt.close();return Buffer.from(Ue)}return Buffer.alloc(0)}}const Pr=1024;const Qr=10*1024*1024;const Fr=null&&15*1e3;const Dr=1e3;const xr=null&&2**31;const Mr=20*1024*1024;async function getFileBuffer(C,q,re){const ae={};if(q>re&&C instanceof CustomFile){ae.filePath=C.path}else{ae.buffer=Buffer.from(await fileToBuffer(C))}return new CustomBuffer(ae)}async function uploadFile(C,q){const{file:re,onProgress:ae}=q;let{workers:Wt}=q;const{name:Ar,size:Ir}=re;const Br=(0,lt.readBigIntFromBuffer)((0,lt.generateRandomBytes)(8),true,true);const Fr=Ir>Qr;const xr=(0,Pt.getAppropriatedPartSize)((0,kr.default)(Ir))*Pr;const Ur=Math.floor((Ir+xr-1)/xr);const Nr=await getFileBuffer(re,Ir,q.maxBufferSize||Mr-1);await C.getSender(C.session.dcId);if(!Wt||!Ir){Wt=1}if(Wt>=Ur){Wt=Ur}let Lr=0;if(ae){ae(Lr)}for(let q=0;qUr){Pt=Ur}for(let Wt=q;WtIr){q=Ir}if(q==Wt*xr){break}const Pt=await Nr.slice(Wt*xr,q);re.push((async(q,re)=>{while(true){let Pt;try{Pt=await C.getSender(C.session.dcId);await Pt.send(Fr?new Ue.Api.upload.SaveBigFilePart({fileId:Br,filePart:q,fileTotalParts:Ur,bytes:re}):new Ue.Api.upload.SaveFilePart({fileId:Br,filePart:q,bytes:re}))}catch(C){if(Pt&&!Pt.isConnected()){await(0,lt.sleep)(Dr);continue}else if(C instanceof Er.errors.FloodWaitError){await(0,lt.sleep)(C.seconds*1e3);continue}throw C}if(ae){if(ae.isCanceled){throw new Error("USER_CANCELED")}Lr+=1/Ur;ae(Lr)}break}})(Wt,Pt))}await Promise.all(re)}return Fr?new Ue.Api.InputFileBig({id:Br,parts:Ur,name:Ar}):new Ue.Api.InputFile({id:Br,parts:Ur,name:Ar,md5Checksum:""})}q.uploadFile=uploadFile;async function _fileToMedia(C,{file:q,forceDocument:re,fileSize:ae,progressCallback:lt,attributes:Pt,thumb:Ir,voiceNote:Br=false,videoNote:kr=false,supportsStreaming:Pr=false,mimeType:Qr,asImage:Fr,workers:Dr=1}){if(!q){return{fileHandle:undefined,media:undefined,image:undefined}}const xr=Er.utils.isImage(q);if(Fr==undefined){Fr=xr&&!re}if(typeof q=="object"&&!Buffer.isBuffer(q)&&!(q instanceof Ue.Api.InputFile)&&!(q instanceof Ue.Api.InputFileBig)&&!(q instanceof CustomFile)&&!("read"in q)){try{return{fileHandle:undefined,media:Er.utils.getInputMedia(q,{isPhoto:Fr,attributes:Pt,forceDocument:re,voiceNote:Br,videoNote:kr,supportsStreaming:Pr}),image:Fr}}catch(C){return{fileHandle:undefined,media:undefined,image:xr}}}let Mr;let Ur;let Nr;if(q instanceof Ue.Api.InputFile||q instanceof Ue.Api.InputFileBig){Ur=q}else if(typeof q=="string"&&(q.startsWith("https://")||q.startsWith("http://"))){if(Fr){Mr=new Ue.Api.InputMediaPhotoExternal({url:q})}else{Mr=new Ue.Api.InputMediaDocumentExternal({url:q})}}else if(!(typeof q=="string")||(await Ar.promises.lstat(q)).isFile()){if(typeof q=="string"){Nr=new CustomFile(Wt.default.basename(q),(await Ar.promises.stat(q)).size,q)}else if(typeof File!=="undefined"&&q instanceof File||q instanceof CustomFile){Nr=q}else{let C;if("name"in q){C=q.name}else{C="unnamed"}if(Buffer.isBuffer(q)){Nr=new CustomFile(C,q.length,"",q)}}if(!Nr){throw new Error(`Could not create file from ${JSON.stringify(q)}`)}Ur=await uploadFile(C,{file:Nr,onProgress:lt,workers:Dr})}else{throw new Error(`"Not a valid path nor a url ${q}`)}if(Mr!=undefined){}else if(Ur==undefined){throw new Error(`Failed to convert ${q} to media. Not an existing file or an HTTP URL`)}else if(Fr){Mr=new Ue.Api.InputMediaUploadedPhoto({file:Ur})}else{let ae=Er.utils.getAttributes(q,{mimeType:Qr,attributes:Pt,forceDocument:re&&!xr,voiceNote:Br,videoNote:kr,supportsStreaming:Pr,thumb:Ir});Pt=ae.attrs;Qr=ae.mimeType;let lt;if(!Ir){lt=undefined}else{if(typeof Ir=="string"){lt=new CustomFile(Wt.default.basename(Ir),(await Ar.promises.stat(Ir)).size,Ir)}else if(typeof File!=="undefined"&&Ir instanceof File){lt=Ir}else{let C;if("name"in Ir){C=Ir.name}else{C="unnamed"}if(Buffer.isBuffer(Ir)){lt=new CustomFile(C,Ir.length,"",Ir)}}if(!lt){throw new Error(`Could not create file from ${q}`)}lt=await uploadFile(C,{file:lt,workers:1})}Mr=new Ue.Api.InputMediaUploadedDocument({file:Ur,mimeType:Qr,attributes:Pt,thumb:lt,forceFile:re&&!xr})}return{fileHandle:Ur,media:Mr,image:Fr}}q._fileToMedia=_fileToMedia;async function _sendAlbum(C,q,{file:re,caption:ae,forceDocument:lt=false,fileSize:Wt,clearDraft:Ar=false,progressCallback:kr,replyTo:Pr,attributes:Qr,thumb:Fr,parseMode:Dr,voiceNote:xr=false,videoNote:Mr=false,silent:Ur,supportsStreaming:Nr=false,scheduleDate:Lr,workers:jr=1,noforwards:Gr,commentTo:Vr,topMsgId:Hr}){q=await C.getInputEntity(q);let Wr=[];if(!Array.isArray(re)){Wr=[re]}else{Wr=re}if(!Array.isArray(ae)){if(!ae){ae=""}ae=[ae]}const $r=[];for(const q of ae){$r.push(await(0,Ir._parseMessageText)(C,q,Dr))}if(Vr!=undefined){const re=await(0,Br.getCommentData)(C,q,Vr);q=re.entity;Pr=re.replyTo}else{Pr=Er.utils.getMessageId(Pr)}if(!Qr){Qr=[]}let Kr=0;const zr=[];for(const re of Wr){let{fileHandle:ae,media:Ar,image:Er}=await _fileToMedia(C,{file:re,forceDocument:lt,fileSize:Wt,progressCallback:kr,attributes:Qr[Kr],thumb:Fr,voiceNote:xr,videoNote:Mr,supportsStreaming:Nr,workers:jr});Kr++;if(Ar instanceof Ue.Api.InputMediaUploadedPhoto||Ar instanceof Ue.Api.InputMediaPhotoExternal){const re=await C.invoke(new Ue.Api.messages.UploadMedia({peer:q,media:Ar}));if(re instanceof Ue.Api.MessageMediaPhoto){Ar=(0,Pt.getInputMedia)(re.photo)}}else if(Ar instanceof Ue.Api.InputMediaUploadedDocument){const re=await C.invoke(new Ue.Api.messages.UploadMedia({peer:q,media:Ar}));if(re instanceof Ue.Api.MessageMediaDocument){Ar=(0,Pt.getInputMedia)(re.document)}}let Ir="";let Br=[];if($r.length){[Ir,Br]=$r.shift()}zr.push(new Ue.Api.InputSingleMedia({media:Ar,message:Ir,entities:Br}))}let Jr=undefined;if(Pr!=undefined){Jr=new Ue.Api.InputReplyToMessage({replyToMsgId:(0,Pt.getMessageId)(Pr),topMsgId:(0,Pt.getMessageId)(Hr)})}const Yr=await C.invoke(new Ue.Api.messages.SendMultiMedia({peer:q,replyTo:Jr,multiMedia:zr,silent:Ur,scheduleDate:Lr,clearDraft:Ar,noforwards:Gr}));const Xr=zr.map((C=>C.randomId));return C._getResponseMessage(Xr,Yr,q)}q._sendAlbum=_sendAlbum;async function sendFile(C,q,{file:re,caption:ae,forceDocument:lt=false,fileSize:Wt,clearDraft:Ar=false,progressCallback:kr,replyTo:Pr,attributes:Qr,thumb:Fr,parseMode:Dr,formattingEntities:xr,voiceNote:Mr=false,videoNote:Ur=false,buttons:Nr,silent:Lr,supportsStreaming:jr=false,scheduleDate:Gr,workers:Vr=1,noforwards:Hr,commentTo:Wr,topMsgId:$r}){if(!re){throw new Error("You need to specify a file")}if(!ae){ae=""}q=await C.getInputEntity(q);if(Wr!=undefined){const re=await(0,Br.getCommentData)(C,q,Wr);q=re.entity;Pr=re.replyTo}else{Pr=Er.utils.getMessageId(Pr)}if(Array.isArray(re)){return await _sendAlbum(C,q,{file:re,caption:ae,replyTo:Pr,parseMode:Dr,attributes:Qr,silent:Lr,scheduleDate:Gr,supportsStreaming:jr,clearDraft:Ar,forceDocument:lt,noforwards:Hr,topMsgId:$r})}if(Array.isArray(ae)){ae=ae[0]||""}let Kr;if(xr!=undefined){Kr=xr}else{[ae,Kr]=await(0,Ir._parseMessageText)(C,ae,Dr)}const{fileHandle:zr,media:Jr,image:Yr}=await _fileToMedia(C,{file:re,forceDocument:lt,fileSize:Wt,progressCallback:kr,attributes:Qr,thumb:Fr,voiceNote:Mr,videoNote:Ur,supportsStreaming:jr,workers:Vr});if(Jr==undefined){throw new Error(`Cannot use ${re} as file.`)}const Xr=C.buildReplyMarkup(Nr);let Zr=undefined;if(Pr!=undefined){Zr=new Ue.Api.InputReplyToMessage({replyToMsgId:(0,Pt.getMessageId)(Pr),topMsgId:(0,Pt.getMessageId)($r)})}const en=new Ue.Api.messages.SendMedia({peer:q,media:Jr,replyTo:Zr,message:ae,entities:Kr,replyMarkup:Xr,silent:Lr,scheduleDate:Gr,clearDraft:Ar,noforwards:Hr});const tn=await C.invoke(en);return C._getResponseMessage(en,tn,q)}q.sendFile=sendFile;function fileToBuffer(C){if(typeof File!=="undefined"&&C instanceof File){return new Response(C).arrayBuffer()}else if(C instanceof CustomFile){if(C.buffer!=undefined){return C.buffer}else{return Ar.promises.readFile(C.path)}}else{throw new Error("Could not create buffer from file "+C)}}},44431:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q._selfId=q._getInputNotify=q._getInputDialog=q._getPeer=q.getPeerId=q._getEntityFromString=q.getInputEntity=q.getEntity=q.isUserAuthorized=q.isBot=q.getMe=q.invoke=void 0;const Ue=re(87440);const lt=re(29078);const Pt=re(10330);const Wt=re(18219);const Ar=ae(re(43269));const Er=re(91932);const Ir=re(34690);async function invoke(C,q,re,ae){if(q.classType!=="request"){throw new Error("You can only invoke MTProtoRequests")}let Ue=C._sender;if(re){Ue=await C.getSender(re)}if(ae!=undefined){Ue=ae}if(Ue==undefined){throw new Error("Cannot send requests while disconnected. You need to call .connect()")}if(Ue.userDisconnected){throw new Error("Cannot send requests while disconnected. Please reconnect.")}await C._connectedDeferred.promise;await q.resolve(C,Wt.utils);C._lastRequest=(new Date).getTime();const lt=new Ir.RequestState(q);let Ar=0;for(Ar=0;ArC.chatId));Ir=(await C.invoke(new Ue.Api.messages.GetChats({id:q}))).chats}if(Br.length){Br=(await C.invoke(new Ue.Api.channels.GetChannels({id:Br}))).chats}const kr=new Map;for(const C of Er){kr.set((0,lt.getPeerId)(C),C)}for(const C of Br){kr.set((0,lt.getPeerId)(C),C)}for(const C of Ir){kr.set((0,lt.getPeerId)(C),C)}const Pr=[];for(const q of Wt){if(typeof q==="string"){Pr.push(await _getEntityFromString(C,q))}else if(!(q instanceof Ue.Api.InputPeerSelf)){Pr.push(kr.get((0,lt.getPeerId)(q)))}else{for(const[C,q]of kr.entries()){if(q instanceof Ue.Api.User&&q.self){Pr.push(q);break}}}}return re?Pr[0]:Pr}q.getEntity=getEntity;async function getInputEntity(C,q){try{return Wt.utils.getInputPeer(q)}catch(C){}try{if(typeof q=="string"){const re=(0,lt.parseID)(q);if(re){const re=C._entityCache.get(q);if(re){return re}}}if(typeof q==="number"||typeof q==="bigint"||Ar.default.isInstance(q)){const re=C._entityCache.get(q.toString());if(re){return re}}if(typeof q=="object"&&!Ar.default.isInstance(q)&&q.SUBCLASS_OF_ID===47470215){const re=C._entityCache.get(Wt.utils.getPeerId(q));if(re){return re}}}catch(C){}if(typeof q=="string"){if(["me","this","self"].includes(q)){return new Ue.Api.InputPeerSelf}}try{if(q!=undefined){return C.session.getInputEntity(q)}}catch(C){}if(typeof q==="string"){return Wt.utils.getInputPeer(await _getEntityFromString(C,q))}if(typeof q==="number"){q=(0,Pt.returnBigInt)(q)}q=Wt.utils.getPeer(q);if(q instanceof Ue.Api.PeerUser){const re=await C.invoke(new Ue.Api.users.GetUsers({id:[new Ue.Api.InputUser({userId:q.userId,accessHash:Ar.default.zero})]}));if(re.length&&!(re[0]instanceof Ue.Api.UserEmpty)){return Wt.utils.getInputPeer(re[0])}}else if(q instanceof Ue.Api.PeerChat){return new Ue.Api.InputPeerChat({chatId:q.chatId})}else if(q instanceof Ue.Api.PeerChannel){try{const re=await C.invoke(new Ue.Api.channels.GetChannels({id:[new Ue.Api.InputChannel({channelId:q.channelId,accessHash:Ar.default.zero})]}));return Wt.utils.getInputPeer(re.chats[0])}catch(q){if(C._errorHandler){await C._errorHandler(q)}if(C._log.canSend(Er.LogLevel.ERROR)){console.error(q)}}}throw new Error(`Could not find the input entity for ${JSON.stringify(q)}.\n Please read https://`+"docs.telethon.dev/en/stable/concepts/entities.html to"+" find out more details.")}q.getInputEntity=getInputEntity;async function _getEntityFromString(C,q){const re=Wt.utils.parsePhone(q);if(re){try{const q=await C.invoke(new Ue.Api.contacts.GetContacts({hash:Ar.default.zero}));if(!(q instanceof Ue.Api.contacts.ContactsNotModified)){for(const C of q.users){if(C instanceof Ue.Api.User&&C.phone===re){return C}}}}catch(C){if(C.errorMessage==="BOT_METHOD_INVALID"){throw new Error("Cannot get entity by phone number as a "+"bot (try using integer IDs, not strings)")}throw C}}const ae=Wt.utils.parseID(q);if(ae!=undefined){return getInputEntity(C,ae)}else if(["me","this"].includes(q.toLowerCase())){return C.getMe()}else{const{username:re,isInvite:ae}=Wt.utils.parseUsername(q);if(ae){const q=await C.invoke(new Ue.Api.messages.CheckChatInvite({hash:re}));if(q instanceof Ue.Api.ChatInvite){throw new Error("Cannot get entity from a channel (or group) "+"that you are not part of. Join the group and retry")}else if(q instanceof Ue.Api.ChatInviteAlready){return q.chat}}else if(re){try{const q=await C.invoke(new Ue.Api.contacts.ResolveUsername({username:re}));const ae=Wt.utils.getPeerId(q.peer,false);if(q.peer instanceof Ue.Api.PeerUser){for(const C of q.users){if((0,Pt.returnBigInt)(C.id).equals((0,Pt.returnBigInt)(ae))){return C}}}else{for(const C of q.chats){if((0,Pt.returnBigInt)(C.id).equals((0,Pt.returnBigInt)(ae))){return C}}}}catch(C){if(C.errorMessage==="USERNAME_NOT_OCCUPIED"){throw new Error(`No user has "${re}" as username`)}throw C}}}throw new Error(`Cannot find any entity corresponding to "${q}"`)}q._getEntityFromString=_getEntityFromString;async function getPeerId(C,q,re=true){if(typeof q=="string"){const ae=(0,lt.parseID)(q);if(ae){return Wt.utils.getPeerId(q,re)}else{q=await C.getInputEntity(q)}}if(typeof q=="number"||typeof q=="bigint"||Ar.default.isInstance(q)){return Wt.utils.getPeerId(q,re)}if(q.SUBCLASS_OF_ID==47470215||q.SUBCLASS_OF_ID==3374092470){q=await C.getInputEntity(q)}if(q instanceof Ue.Api.InputPeerSelf){q=await C.getMe(true)}return Wt.utils.getPeerId(q,re)}q.getPeerId=getPeerId;async function _getPeer(C,q){if(!q){return undefined}const[re,ae]=Wt.utils.resolveId((0,Pt.returnBigInt)(await C.getPeerId(q)));return new ae({userId:re,channelId:re,chatId:re})}q._getPeer=_getPeer;async function _getInputDialog(C,q){try{if(q.SUBCLASS_OF_ID==2719782805){q.peer=await C.getInputEntity(q.peer);return q}else if(q.SUBCLASS_OF_ID==3374092470){return new Ue.Api.InputDialogPeer({peer:q})}}catch(C){}return new Ue.Api.InputDialogPeer({peer:q})}q._getInputDialog=_getInputDialog;async function _getInputNotify(C,q){try{if(q.SUBCLASS_OF_ID==1486362133){if(q instanceof Ue.Api.InputNotifyPeer){q.peer=await C.getInputEntity(q.peer)}return q}}catch(C){}return new Ue.Api.InputNotifyPeer({peer:await C.getInputEntity(q)})}q._getInputNotify=_getInputNotify;function _selfId(C){return C._selfInputPeer?C._selfInputPeer.userId:undefined}q._selfId=_selfId},42964:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.AuthKey=void 0;const ae=re(10330);const Ue=re(21470);const lt=re(10330);class AuthKey{constructor(C,q){if(!q||!C){return}this._key=C;this._hash=q;const re=new Ue.BinaryReader(q);this.auxHash=re.readLong(false);re.read(4);this.keyId=re.readLong(false)}async setKey(C){if(!C){this._key=this.auxHash=this.keyId=this._hash=undefined;return}if(C instanceof AuthKey){this._key=C._key;this.auxHash=C.auxHash;this.keyId=C.keyId;this._hash=C._hash;return}this._key=C;this._hash=await(0,ae.sha1)(this._key);const q=new Ue.BinaryReader(this._hash);this.auxHash=q.readLong(false);q.read(4);this.keyId=q.readLong(false)}async waitForKey(){while(!this.keyId){await(0,lt.sleep)(20)}}getKey(){return this._key}async calcNewNonceHash(C,q){if(this.auxHash){const re=(0,ae.toSignedLittleBuffer)(C,32);const Ue=Buffer.alloc(1);Ue.writeUInt8(q,0);const lt=Buffer.concat([re,Buffer.concat([Ue,(0,ae.readBufferFromBigInt)(this.auxHash,8,true)])]);const Pt=(await(0,ae.sha1)(lt)).slice(4,20);return(0,ae.readBigIntFromBuffer)(Pt,true,true)}throw new Error("Auth key not set")}equals(C){var q;return C instanceof this.constructor&&this._key&&Buffer.isBuffer(C.getKey())&&((q=C.getKey())===null||q===void 0?void 0:q.equals(this._key))}}q.AuthKey=AuthKey},77222:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.CTR=void 0;const Pt=lt(re(28556));class CTR{constructor(C,q){if(!Buffer.isBuffer(C)||!Buffer.isBuffer(q)||q.length!==16){throw new Error("Key and iv need to be a buffer")}this.cipher=Pt.createCipheriv("AES-256-CTR",C,q)}encrypt(C){return Buffer.from(this.cipher.update(C))}}q.CTR=CTR},11833:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.Factorizator=void 0;const Ue=ae(re(43269));const lt=re(10330);class Factorizator{static gcd(C,q){while(q.neq(Ue.default.zero)){const re=q;q=C.remainder(q);C=re}return C}static factorize(C){if(C.remainder(2).equals(Ue.default.zero)){return{p:(0,Ue.default)(2),q:C.divide((0,Ue.default)(2))}}let q=Ue.default.randBetween((0,Ue.default)(1),C.minus(1));const re=Ue.default.randBetween((0,Ue.default)(1),C.minus(1));const ae=Ue.default.randBetween((0,Ue.default)(1),C.minus(1));let Pt=Ue.default.one;let Wt=Ue.default.one;let Ar=Ue.default.one;let Er=Ue.default.zero;let Ir=Ue.default.zero;let Br;while(Pt.eq(Ue.default.one)){Er=q;for(let ae=0;(0,Ue.default)(ae).lesser(Wt);ae++){q=(0,lt.modExp)(q,(0,Ue.default)(2),C).add(re).remainder(C)}Br=Ue.default.zero;while(Br.lesser(Wt)&&Pt.eq(Ue.default.one)){Ir=q;const kr=Ue.default.min(ae,Wt.minus(Br));for(let ae=0;(0,Ue.default)(ae).lesser(kr);ae++){q=(0,lt.modExp)(q,(0,Ue.default)(2),C).add(re).remainder(C);Ar=Ar.multiply(Er.minus(q).abs()).remainder(C)}Pt=Factorizator.gcd(Ar,C);Br=Br.add(ae)}Wt=Wt.multiply(2)}if(Pt.eq(C)){while(true){Ir=(0,lt.modExp)(Ir,(0,Ue.default)(2),C).add(re).remainder(C);Pt=Factorizator.gcd(Er.minus(Ir).abs(),C);if(Pt.greater(1)){break}}}const kr=Pt;Ar=C.divide(Pt);return kr{Object.defineProperty(q,"__esModule",{value:true});q.IGE=void 0;const ae=re(10330);const{IGE:Ue}=re(51835);class IGENEW{constructor(C,q){this.ige=new Ue(C,q)}decryptIge(C){return ae.convertToLittle(this.ige.decrypt(C))}encryptIge(C){const q=C.length%16;if(q){C=Buffer.concat([C,ae.generateRandomBytes(16-q)])}return ae.convertToLittle(this.ige.encrypt(C))}}q.IGE=IGENEW},81071:function(C,q,re){var ae=this&&this.__rest||function(C,q){var re={};for(var ae in C)if(Object.prototype.hasOwnProperty.call(C,ae)&&q.indexOf(ae)<0)re[ae]=C[ae];if(C!=null&&typeof Object.getOwnPropertySymbols==="function")for(var Ue=0,ae=Object.getOwnPropertySymbols(C);Ue{var{fingerprint:re}=C,Ue=ae(C,["fingerprint"]);q._serverKeys.set(re.toString(),Ue)}));async function encrypt(C,re){const ae=q._serverKeys.get(C.toString());if(!ae){return undefined}const Ue=(0,Pt.generateRandomBytes)(235-re.length);const Wt=Buffer.concat([await(0,Pt.sha1)(re),re,Ue]);const Ar=(0,Pt.readBigIntFromBuffer)(Wt,false);const Er=(0,Pt.modExp)(Ar,(0,lt.default)(ae.e),ae.n);return(0,Pt.readBufferFromBigInt)(Er,256,false)}q.encrypt=encrypt},57664:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.ab2i=q.i2ab=q.isBigEndian=q.ab2iBig=q.ab2iLow=q.i2abBig=q.i2abLow=void 0;function i2abLow(C){const q=new Uint8Array(C.length*4);let re=0;for(let ae=0;ae>>24;q[re++]=Ue>>16&255;q[re++]=Ue>>8&255;q[re++]=Ue&255}return q.buffer}q.i2abLow=i2abLow;function i2abBig(C){return C.buffer}q.i2abBig=i2abBig;function ab2iLow(C){const q=new Uint8Array(C);const re=new Uint32Array(q.length/4);for(let C=0;C=0;C--){if(this._counter[C]===255){this._counter[C]=0}else{this._counter[C]++;break}}}}q.Counter=Counter;class CTR{constructor(C,q){if(!(q instanceof Counter)){q=new Counter(q)}this._counter=q;this._remainingCounter=undefined;this._remainingCounterIndex=16;this._aes=new Ue.default((0,Pt.getWords)(C))}update(C){return this.encrypt(C)}encrypt(C){const q=Buffer.from(C);for(let C=0;C{Object.defineProperty(q,"__esModule",{value:true});q.xor=q.getWords=q.s2i=void 0;function s2i(C,q){return C.charCodeAt(q)<<24^C.charCodeAt(q+1)<<16^C.charCodeAt(q+2)<<8^C.charCodeAt(q+3)}q.s2i=s2i;function getWords(C){if(C instanceof Uint32Array){return C}if(typeof C==="string"){if(C.length%4!==0)for(let q=C.length%4;q<=4;q++)C+="\0x00";const q=new Uint32Array(C.length/4);for(let re=0;re{Object.defineProperty(q,"__esModule",{value:true});q.BadMessageError=q.CdnFileTamperedError=q.SecurityError=q.InvalidBufferError=q.InvalidChecksumError=q.TypeNotFoundError=q.ReadCancelledError=void 0;class ReadCancelledError extends Error{constructor(){super("The read operation was cancelled.")}}q.ReadCancelledError=ReadCancelledError;class TypeNotFoundError extends Error{constructor(C,q){super(`Could not find a matching Constructor ID for the TLObject that was supposed to be\n read with ID ${C}. Most likely, a TLObject was trying to be read when\n it should not be read. Remaining bytes: ${q.length}`);if(typeof alert!=="undefined"){alert(`Missing MTProto Entity: Please, make sure to add TL definition for ID ${C}`)}this.invalidConstructorId=C;this.remaining=q}}q.TypeNotFoundError=TypeNotFoundError;class InvalidChecksumError extends Error{constructor(C,q){super(`Invalid checksum (${C} when ${q} was expected). This packet should be skipped.`);this.checksum=C;this.validChecksum=q}}q.InvalidChecksumError=InvalidChecksumError;class InvalidBufferError extends Error{constructor(C){let q=undefined;if(C.length===4){q=-C.readInt32LE(0);super(`Invalid response buffer (HTTP code ${q})`)}else{super(`Invalid response buffer (too short ${C})`)}this.code=q;this.payload=C}}q.InvalidBufferError=InvalidBufferError;class SecurityError extends Error{constructor(...C){if(!C.length){C=["A security check failed."]}super(...C)}}q.SecurityError=SecurityError;class CdnFileTamperedError extends SecurityError{constructor(){super("The CDN file has been altered and its download cancelled.")}}q.CdnFileTamperedError=CdnFileTamperedError;class BadMessageError extends Error{constructor(C,q){let re=BadMessageError.ErrorMessages[q]||`Unknown error code (this should not happen): ${q}.`;re+=` Caused by ${C.className}`;super(re);this.errorMessage=re;this.code=q}}q.BadMessageError=BadMessageError;BadMessageError.ErrorMessages={16:"msg_id too low (most likely, client time is wrong it would be worthwhile to "+"synchronize it using msg_id notifications and re-send the original message "+"with the “correct” msg_id or wrap it in a container with a new msg_id if the "+"original message had waited too long on the client to be transmitted).",17:"msg_id too high (similar to the previous case, the client time has to be "+"synchronized, and the message re-sent with the correct msg_id).",18:"Incorrect two lower order msg_id bits (the server expects client message msg_id "+"to be divisible by 4).",19:"Container msg_id is the same as msg_id of a previously received message "+"(this must never happen).",20:"Message too old, and it cannot be verified whether the server has received a "+"message with this msg_id or not.",32:"msg_seqno too low (the server has already received a message with a lower "+"msg_id but with either a higher or an equal and odd seqno).",33:"msg_seqno too high (similarly, there is a message with a higher msg_id but with "+"either a lower or an equal and odd seqno).",34:"An even msg_seqno expected (irrelevant message), but odd received.",35:"Odd msg_seqno expected (relevant message), but even received.",48:"Incorrect server salt (in this case, the bad_server_salt response is received with "+"the correct salt, and the message is to be re-sent with it).",64:"Invalid container."}},39122:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.TimedOutError=q.ServerError=q.FloodError=q.AuthKeyError=q.NotFoundError=q.ForbiddenError=q.UnauthorizedError=q.BadRequestError=q.InvalidDCError=q.RPCError=void 0;const ae=re(78229);class RPCError extends ae.CustomError{constructor(C,q,re){super("{0}: {1}{2}".replace("{0}",(re===null||re===void 0?void 0:re.toString())||"").replace("{1}",C||"").replace("{2}",RPCError._fmtRequest(q)));this.code=re;this.errorMessage=C}static _fmtRequest(C){if(C){return` (caused by ${C.className})`}else{return""}}}q.RPCError=RPCError;class InvalidDCError extends RPCError{constructor(C,q,re){super(C,q,re);this.code=re||303;this.errorMessage=C||"ERROR_SEE_OTHER"}}q.InvalidDCError=InvalidDCError;class BadRequestError extends RPCError{constructor(){super(...arguments);this.code=400;this.errorMessage="BAD_REQUEST"}}q.BadRequestError=BadRequestError;class UnauthorizedError extends RPCError{constructor(){super(...arguments);this.code=401;this.errorMessage="UNAUTHORIZED"}}q.UnauthorizedError=UnauthorizedError;class ForbiddenError extends RPCError{constructor(){super(...arguments);this.code=403;this.errorMessage="FORBIDDEN"}}q.ForbiddenError=ForbiddenError;class NotFoundError extends RPCError{constructor(){super(...arguments);this.code=404;this.errorMessage="NOT_FOUND"}}q.NotFoundError=NotFoundError;class AuthKeyError extends RPCError{constructor(){super(...arguments);this.code=406;this.errorMessage="AUTH_KEY"}}q.AuthKeyError=AuthKeyError;class FloodError extends RPCError{constructor(){super(...arguments);this.code=420;this.errorMessage="FLOOD"}}q.FloodError=FloodError;class ServerError extends RPCError{constructor(){super(...arguments);this.code=500;this.errorMessage="INTERNAL"}}q.ServerError=ServerError;class TimedOutError extends RPCError{constructor(){super(...arguments);this.code=503;this.errorMessage="Timeout"}}q.TimedOutError=TimedOutError},85264:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.rpcErrorRe=q.MsgWaitError=q.EmailUnconfirmedError=q.NetworkMigrateError=q.FileMigrateError=q.FloodTestPhoneWaitError=q.FloodWaitError=q.SlowModeWaitError=q.PhoneMigrateError=q.UserMigrateError=void 0;const ae=re(39122);class UserMigrateError extends ae.InvalidDCError{constructor(C){const q=Number(C.capture||0);super(`The user whose identity is being used to execute queries is associated with DC ${q}`+ae.RPCError._fmtRequest(C.request),C.request);this.message=`The user whose identity is being used to execute queries is associated with DC ${q}`+ae.RPCError._fmtRequest(C.request);this.newDc=q}}q.UserMigrateError=UserMigrateError;class PhoneMigrateError extends ae.InvalidDCError{constructor(C){const q=Number(C.capture||0);super(`The phone number a user is trying to use for authorization is associated with DC ${q}`+ae.RPCError._fmtRequest(C.request),C.request);this.message=`The phone number a user is trying to use for authorization is associated with DC ${q}`+ae.RPCError._fmtRequest(C.request);this.newDc=q}}q.PhoneMigrateError=PhoneMigrateError;class SlowModeWaitError extends ae.FloodError{constructor(C){const q=Number(C.capture||0);super(`A wait of ${q} seconds is required before sending another message in this chat`+ae.RPCError._fmtRequest(C.request),C.request);this.message=`A wait of ${q} seconds is required before sending another message in this chat`+ae.RPCError._fmtRequest(C.request);this.seconds=q}}q.SlowModeWaitError=SlowModeWaitError;class FloodWaitError extends ae.FloodError{constructor(C){const q=Number(C.capture||0);super(`A wait of ${q} seconds is required`+ae.RPCError._fmtRequest(C.request),C.request);this.message=`A wait of ${q} seconds is required`+ae.RPCError._fmtRequest(C.request);this.seconds=q}}q.FloodWaitError=FloodWaitError;class FloodTestPhoneWaitError extends ae.FloodError{constructor(C){const q=Number(C.capture||0);super(`A wait of ${q} seconds is required in the test servers`+ae.RPCError._fmtRequest(C.request),C.request);this.message=`A wait of ${q} seconds is required in the test servers`+ae.RPCError._fmtRequest(C.request);this.seconds=q}}q.FloodTestPhoneWaitError=FloodTestPhoneWaitError;class FileMigrateError extends ae.InvalidDCError{constructor(C){const q=Number(C.capture||0);super(`The file to be accessed is currently stored in DC ${q}`+ae.RPCError._fmtRequest(C.request),C.request);this.message=`The file to be accessed is currently stored in DC ${q}`+ae.RPCError._fmtRequest(C.request);this.newDc=q}}q.FileMigrateError=FileMigrateError;class NetworkMigrateError extends ae.InvalidDCError{constructor(C){const q=Number(C.capture||0);super(`The source IP address is associated with DC ${q}`+ae.RPCError._fmtRequest(C.request),C.request);this.message=`The source IP address is associated with DC ${q}`+ae.RPCError._fmtRequest(C.request);this.newDc=q}}q.NetworkMigrateError=NetworkMigrateError;class EmailUnconfirmedError extends ae.BadRequestError{constructor(C){const q=Number(C.capture||0);super(`Email unconfirmed, the length of the code must be ${q}${ae.RPCError._fmtRequest(C.request)}`,C.request,400);this.message=`Email unconfirmed, the length of the code must be ${q}${ae.RPCError._fmtRequest(C.request)}`;this.codeLength=q}}q.EmailUnconfirmedError=EmailUnconfirmedError;class MsgWaitError extends ae.FloodError{constructor(C){super(`Message failed to be sent.${ae.RPCError._fmtRequest(C.request)}`,C.request);this.message=`Message failed to be sent.${ae.RPCError._fmtRequest(C.request)}`}}q.MsgWaitError=MsgWaitError;q.rpcErrorRe=new Map([[/FILE_MIGRATE_(\d+)/,FileMigrateError],[/FLOOD_TEST_PHONE_WAIT_(\d+)/,FloodTestPhoneWaitError],[/FLOOD_WAIT_(\d+)/,FloodWaitError],[/FLOOD_PREMIUM_WAIT_(\d+)/,FloodWaitError],[/MSG_WAIT_(.*)/,MsgWaitError],[/PHONE_MIGRATE_(\d+)/,PhoneMigrateError],[/SLOWMODE_WAIT_(\d+)/,SlowModeWaitError],[/USER_MIGRATE_(\d+)/,UserMigrateError],[/NETWORK_MIGRATE_(\d+)/,NetworkMigrateError],[/EMAIL_UNCONFIRMED_(\d+)/,EmailUnconfirmedError]])},37819:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});q.RPCMessageToError=void 0;const lt=re(39122);const Pt=re(85264);function RPCMessageToError(C,q){for(const[re,ae]of Pt.rpcErrorRe){const Ue=C.errorMessage.match(re);if(Ue){const C=Ue.length===2?parseInt(Ue[1]):null;return new ae({request:q,capture:C})}}return new lt.RPCError(C.errorMessage,q,C.errorCode)}q.RPCMessageToError=RPCMessageToError;Ue(re(11138),q);Ue(re(39122),q);Ue(re(85264),q)},63856:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.NewMessageEvent=q.NewMessage=void 0;const ae=re(10336);const Ue=re(87440);const lt=re(91932);class NewMessage extends ae.EventBuilder{constructor(C={}){let{chats:q,func:re,incoming:ae,outgoing:Ue,fromUsers:lt,forwards:Pt,pattern:Wt,blacklistChats:Ar=false}=C;if(ae&&Ue){ae=Ue=undefined}else if(ae!=undefined&&Ue==undefined){Ue=!ae}else if(Ue!=undefined&&ae==undefined){ae=!Ue}else if(Ue==false&&ae==false){throw new Error("Don't create an event handler if you don't want neither incoming nor outgoing!")}super({chats:q,blacklistChats:Ar,func:re});this.incoming=ae;this.outgoing=Ue;this.fromUsers=lt;this.forwards=Pt;this.pattern=Wt;this._noCheck=[ae,Ue,q,Wt,lt,Pt,re].every((C=>C==undefined))}async _resolve(C){await super._resolve(C);this.fromUsers=await(0,ae._intoIdSet)(C,this.fromUsers)}build(C,q,re){if(C instanceof Ue.Api.UpdateNewMessage||C instanceof Ue.Api.UpdateNewChannelMessage){if(!(C.message instanceof Ue.Api.Message)){return undefined}const q=new NewMessageEvent(C.message,C);this.addAttributes(q);return q}else if(C instanceof Ue.Api.UpdateShortMessage){return new NewMessageEvent(new Ue.Api.Message({out:C.out,mentioned:C.mentioned,mediaUnread:C.mediaUnread,silent:C.silent,id:C.id,peerId:new Ue.Api.PeerUser({userId:C.userId}),fromId:new Ue.Api.PeerUser({userId:C.out?re:C.userId}),message:C.message,date:C.date,fwdFrom:C.fwdFrom,viaBotId:C.viaBotId,replyTo:C.replyTo,entities:C.entities,ttlPeriod:C.ttlPeriod}),C)}else if(C instanceof Ue.Api.UpdateShortChatMessage){return new NewMessageEvent(new Ue.Api.Message({out:C.out,mentioned:C.mentioned,mediaUnread:C.mediaUnread,silent:C.silent,id:C.id,peerId:new Ue.Api.PeerChat({chatId:C.chatId}),fromId:new Ue.Api.PeerUser({userId:C.out?re:C.fromId}),message:C.message,date:C.date,fwdFrom:C.fwdFrom,viaBotId:C.viaBotId,replyTo:C.replyTo,entities:C.entities,ttlPeriod:C.ttlPeriod}),C)}}filter(C){var q;if(this._noCheck){return C}if(this.incoming&&C.message.out){return}if(this.outgoing&&!C.message.out){return}if(this.forwards!=undefined){if(this.forwards!=!!C.message.fwdFrom){return}}if(this.fromUsers!=undefined){if(!C.message.senderId||!this.fromUsers.includes(C.message.senderId.toString())){return}}if(this.pattern){const re=(q=C.message.message)===null||q===void 0?void 0:q.match(this.pattern);if(!re){return}C.message.patternMatch=re}return super.filter(C)}addAttributes(C){}}q.NewMessage=NewMessage;class NewMessageEvent extends ae.EventCommon{constructor(C,q){super({msgId:C.id,chatPeer:C.peerId,broadcast:C.post});this.originalUpdate=q;this.message=C}_setClient(C){super._setClient(C);const q=this.message;try{q._finishInit(C,this.originalUpdate._entities||new Map,undefined)}catch(re){C._log.error("Got error while trying to finish init message with id "+q.id);if(C._errorHandler){C._errorHandler(re)}if(C._log.canSend(lt.LogLevel.ERROR)){console.error(re)}}}}q.NewMessageEvent=NewMessageEvent},10763:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Raw=void 0;const ae=re(10336);class Raw extends ae.EventBuilder{constructor(C){super({func:C.func});this.types=C.types}async resolve(C){this.resolved=true}build(C){return C}filter(C){if(this.types){let q=false;for(const re of this.types){if(C instanceof re){q=true;break}}if(!q){return}}return super.filter(C)}}q.Raw=Raw},10336:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.EventCommonSender=q.EventCommon=q.EventBuilder=q._intoIdSet=void 0;const Ue=re(87440);const lt=re(15026);const Pt=re(10330);const Wt=re(18219);const Ar=re(70446);const Er=ae(re(43269));const Ir=re(29078);async function _intoIdSet(C,q){if(q==undefined){return undefined}if(!(0,Pt.isArrayLike)(q)){q=[q]}const re=new Set;for(let ae of q){if(typeof ae=="number"||typeof ae=="bigint"||typeof ae=="string"&&(0,Ir.parseID)(ae)||Er.default.isInstance(ae)){ae=(0,Pt.returnBigInt)(ae);if(ae.lesser(0)){re.add(ae.toString())}else{re.add(Wt.utils.getPeerId(new Ue.Api.PeerUser({userId:ae})));re.add(Wt.utils.getPeerId(new Ue.Api.PeerChat({chatId:ae})));re.add(Wt.utils.getPeerId(new Ue.Api.PeerChannel({channelId:ae})))}}else if(typeof ae=="object"&&ae.SUBCLASS_OF_ID==47470215){re.add(Wt.utils.getPeerId(ae))}else{ae=await C.getInputEntity(ae);if(ae instanceof Ue.Api.InputPeerSelf){ae=await C.getMe(true)}re.add(Wt.utils.getPeerId(ae))}}return Array.from(re)}q._intoIdSet=_intoIdSet;class EventBuilder{constructor(C){var q;this.chats=(q=C.chats)===null||q===void 0?void 0:q.map((C=>C.toString()));this.blacklistChats=C.blacklistChats||false;this.resolved=false;this.func=C.func}build(C,q,re){if(C)return C}async resolve(C){if(this.resolved){return}await this._resolve(C);this.resolved=true}async _resolve(C){this.chats=await _intoIdSet(C,this.chats)}filter(C){if(!this.resolved){return}if(this.chats!=undefined){if(C.chatId==undefined){return}const q=this.chats.includes(C.chatId.toString());if(q==this.blacklistChats){return}}if(this.func&&!this.func(C)){return}return C}}q.EventBuilder=EventBuilder;class EventCommon extends lt.ChatGetter{constructor({chatPeer:C=undefined,msgId:q=undefined,broadcast:re=undefined}){super();this._eventName="Event";lt.ChatGetter.initChatClass(this,{chatPeer:C,broadcast:re});this._entities=new Map;this._client=undefined;this._messageId=q}_setClient(C){this._client=C}get client(){return this._client}}q.EventCommon=EventCommon;class EventCommonSender extends Ar.SenderGetter{constructor({chatPeer:C=undefined,msgId:q=undefined,broadcast:re=undefined}){super();this._eventName="Event";lt.ChatGetter.initChatClass(this,{chatPeer:C,broadcast:re});Ar.SenderGetter.initChatClass(this,{chatPeer:C,broadcast:re});this._entities=new Map;this._client=undefined;this._messageId=q}_setClient(C){this._client=C}get client(){return this._client}}q.EventCommonSender=EventCommonSender},15737:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.NewMessageEvent=q.NewMessage=q.Raw=void 0;var ae=re(10763);Object.defineProperty(q,"Raw",{enumerable:true,get:function(){return ae.Raw}});var Ue=re(63856);Object.defineProperty(q,"NewMessage",{enumerable:true,get:function(){return Ue.NewMessage}});Object.defineProperty(q,"NewMessageEvent",{enumerable:true,get:function(){return Ue.NewMessageEvent}})},31923:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.AsyncQueue=void 0;class AsyncQueue{constructor(){this._queue=[];this.canPush=true;this.resolvePush=C=>{};this.resolveGet=C=>{};this.canGet=new Promise((C=>{this.resolveGet=C}))}async push(C){await this.canPush;this._queue.push(C);this.resolveGet(true);this.canPush=new Promise((C=>{this.resolvePush=C}))}async pop(){await this.canGet;const C=this._queue.pop();this.resolvePush(true);this.canGet=new Promise((C=>{this.resolveGet=C}));return C}}q.AsyncQueue=AsyncQueue},4262:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.BinaryReader=void 0;const ae=re(37819);const Ue=re(29842);const lt=re(59415);const Pt=re(10330);class BinaryReader{constructor(C){this.stream=C;this._last=undefined;this.offset=0}readByte(){return this.read(1)[0]}readInt(C=true){let q;if(C){q=this.stream.readInt32LE(this.offset)}else{q=this.stream.readUInt32LE(this.offset)}this.offset+=4;return q}readLong(C=true){return this.readLargeInt(64,C)}readFloat(){return this.read(4).readFloatLE(0)}readDouble(){return this.read(8).readDoubleLE(0)}readLargeInt(C,q=true){const re=this.read(Math.floor(C/8));return(0,Pt.readBigIntFromBuffer)(re,true,q)}read(C=-1,q=true){if(C===-1){C=this.stream.length-this.offset}const re=this.stream.slice(this.offset,this.offset+C);this.offset+=C;if(q&&re.length!==C){throw Error(`No more data left to read (need ${C}, got ${re.length}: ${re}); last read ${this._last}`)}this._last=re;return re}getBuffer(){return this.stream}tgReadBytes(){const C=this.readByte();let q;let re;if(C===254){re=this.readByte()|this.readByte()<<8|this.readByte()<<16;q=re%4}else{re=C;q=(re+1)%4}const ae=this.read(re);if(q>0){q=4-q;this.read(q)}return ae}tgReadString(){return this.tgReadBytes().toString("utf-8")}tgReadBool(){const C=this.readInt(false);if(C===2574415285){return true}else if(C===3162085175){return false}else{throw new Error(`Invalid boolean code ${C.toString(16)}`)}}tgReadDate(){const C=this.readInt();return new Date(C*1e3)}tgReadObject(){const C=this.readInt(false);let q=lt.tlobjects[C];if(q===undefined){const re=C;if(re===2574415285){return true}else if(re===3162085175){return false}else if(re===481674261){const C=[];const q=this.readInt();for(let re=0;re{Object.defineProperty(q,"__esModule",{value:true});q.BinaryWriter=void 0;class BinaryWriter{constructor(C){this._buffers=[C]}write(C){this._buffers.push(C)}getValue(){return Buffer.concat(this._buffers)}}q.BinaryWriter=BinaryWriter},64303:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});class Deferred{constructor(){this.promise=new Promise(((C,q)=>{this.reject=q;this.resolve=C}))}static resolved(C){const q=new Deferred;q.resolve(C);return q}}q["default"]=Deferred},91932:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Logger=q.LogLevel=void 0;const ae=re(60720);var Ue;(function(C){C["NONE"]="none";C["ERROR"]="error";C["WARN"]="warn";C["INFO"]="info";C["DEBUG"]="debug"})(Ue=q.LogLevel||(q.LogLevel={}));class Logger{constructor(C){this.levels=["error","warn","info","debug"];this._logLevel=C||Ue.INFO;this.isBrowser=!ae.isNode;if(!this.isBrowser){this.colors={start:"",warn:"",info:"",debug:"",error:"",end:""}}else{this.colors={start:"%c",warn:"color : #ff00ff",info:"color : #ffff00",debug:"color : #00ffff",error:"color : #ff0000",end:""}}this.messageFormat="[%t] [%l] - [%m]";this.tzOffset=(new Date).getTimezoneOffset()*6e4}canSend(C){return this._logLevel?this.levels.indexOf(this._logLevel)>=this.levels.indexOf(C):false}warn(C){this._log(Ue.WARN,C,this.colors.warn)}info(C){this._log(Ue.INFO,C,this.colors.info)}debug(C){this._log(Ue.DEBUG,C,this.colors.debug)}error(C){this._log(Ue.ERROR,C,this.colors.error)}format(C,q){return this.messageFormat.replace("%t",this.getDateTime()).replace("%l",q.toUpperCase()).replace("%m",C)}get logLevel(){return this._logLevel}setLevel(C){this._logLevel=C}static setLevel(C){console.log("Logger.setLevel is deprecated, it will has no effect. Please, use client.setLogLevel instead.")}_log(C,q,re){if(this.canSend(C)){this.log(C,q,re)}else{return}}log(C,q,re){if(!this.isBrowser){console.log(re+this.format(q,C)+this.colors.end)}else{console.log(this.colors.start+this.format(q,C),re)}}getDateTime(){return new Date(Date.now()-this.tzOffset).toISOString().slice(0,-1)}}q.Logger=Logger},23003:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.MessagePacker=void 0;const ae=re(29842);const Ue=re(29842);const lt=re(3254);const Pt=new Set(["messages.SendMessage","messages.SendMedia","messages.SendMultiMedia","messages.ForwardMessages","messages.SendInlineBotResult"]);class MessagePacker{constructor(C,q){this._state=C;this._queue=[];this._pendingStates=[];this._ready=new Promise((C=>{this.setReady=C}));this._log=q}values(){return this._queue}append(C,q=true,re=false){var ae,Ue;if(C&&Pt.has(C.request.className)){if(re){for(let q=0;q=0;q--){if(Pt.has((Ue=this._queue[q])===null||Ue===void 0?void 0:Ue.request.className)){C.after=this._queue[q];break}}}}if(re){this._queue.unshift(C)}else{this._queue.push(C)}if(q&&this.setReady){this.setReady(true)}if(C&&C.request.CONSTRUCTOR_ID!==1658238041){this._pendingStates.push(C);C.promise.catch((C=>{})).finally((()=>{this._pendingStates=this._pendingStates.filter((q=>q!==C))}))}}prepend(C){C.reverse().forEach((C=>{this.append(C,false,true)}));if(this.setReady){this.setReady(true)}}extend(C){C.forEach((C=>{this.append(C,false)}));if(this.setReady){this.setReady(true)}}clear(){this._queue=[];this.append(undefined)}async wait(){if(!this._queue.length){this._ready=new Promise((C=>{this.setReady=C}));await this._ready}}async get(){if(!this._queue[this._queue.length-1]){this._queue=this._queue.filter(Boolean);return undefined}let C;let q=new lt.BinaryWriter(Buffer.alloc(0));const re=[];let Pt=0;while(this._queue.length&&re.length<=ae.MessageContainer.MAXIMUM_LENGTH){const C=this._queue.shift();if(!C){continue}Pt+=C.data.length+Ue.TLMessage.SIZE_OVERHEAD;if(Pt<=ae.MessageContainer.MAXIMUM_SIZE){let ae;if(C.after){ae=C.after.msgId}if(C.after){ae=C.after.msgId}C.msgId=await this._state.writeDataAsMessage(q,C.data,C.request.classType==="request",ae);this._log.debug(`Assigned msgId = ${C.msgId} to ${C.request.className||C.request.constructor.name}`);re.push(C);continue}if(re.length){this._queue.unshift(C);break}this._log.warn(`Message payload for ${C.request.className||C.request.constructor.name} is too long ${C.data.length} and cannot be sent`);C.promise.reject("Request Payload is too big");Pt=0}if(!re.length){return null}if(re.length>1){const Ue=Buffer.alloc(8);Ue.writeUInt32LE(ae.MessageContainer.CONSTRUCTOR_ID,0);Ue.writeInt32LE(re.length,4);C=Buffer.concat([Ue,q.getValue()]);q=new lt.BinaryWriter(Buffer.alloc(0));const Pt=await this._state.writeDataAsMessage(q,C,false);for(const C of re){C.containerId=Pt}}C=q.getValue();return{batch:re,data:C}}}q.MessagePacker=MessagePacker},8688:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.PendingState=void 0;class PendingState{constructor(){this._pending=new Map}set(C,q){this._pending.set(C.toString(),q)}get(C){return this._pending.get(C.toString())}getAndDelete(C){const q=this.get(C);this.delete(C);return q}values(){return Array.from(this._pending.values())}delete(C){this._pending.delete(C.toString())}clear(){this._pending.clear()}}q.PendingState=PendingState},61568:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.PromisedNetSockets=void 0;const Pt=lt(re(64989));const Wt=re(90363);const Ar=re(82626);const Er=new Ar.Mutex;const Ir=new Error("NetSocket was closed");class PromisedNetSockets{constructor(C){this.client=undefined;this.closed=true;this.stream=Buffer.alloc(0);if(C){if(!("MTProxy"in C)){if(!C.ip||!C.port||!C.socksType){throw new Error(`Invalid sockets params: ip=${C.ip}, port=${C.port}, socksType=${C.socksType}`)}this.proxy=C}}}async readExactly(C){let q=Buffer.alloc(0);while(true){const re=await this.read(C);q=Buffer.concat([q,re]);C=C-re.length;if(!C||C===-437){return q}}}async read(C){if(this.closed){throw Ir}await this.canRead;if(this.closed){throw Ir}const q=this.stream.slice(0,C);this.stream=this.stream.slice(C);if(this.stream.length===0){this.canRead=new Promise((C=>{this.resolveRead=C}))}return q}async readAll(){if(this.closed||!await this.canRead){throw Ir}const C=this.stream;this.stream=Buffer.alloc(0);this.canRead=new Promise((C=>{this.resolveRead=C}));return C}async connect(C,q){this.stream=Buffer.alloc(0);let re=false;if(this.proxy){const ae=await Wt.SocksClient.createConnection({proxy:{host:this.proxy.ip,port:this.proxy.port,type:this.proxy.socksType,userId:this.proxy.username,password:this.proxy.password},command:"connect",timeout:(this.proxy.timeout||5)*1e3,destination:{host:q,port:C}});this.client=ae.socket;re=true}else{this.client=new Pt.Socket}this.canRead=new Promise((C=>{this.resolveRead=C}));this.closed=false;return new Promise(((ae,Ue)=>{if(this.client){if(re){this.receive();ae(this)}else{this.client.connect(C,q,(()=>{this.receive();ae(this)}))}this.client.on("error",Ue);this.client.on("close",(()=>{if(this.client&&this.client.destroyed){if(this.resolveRead){this.resolveRead(false)}this.closed=true}}))}}))}write(C){if(this.closed){throw Ir}if(this.client){this.client.write(C)}}async close(){if(this.client){await this.client.destroy();this.client.unref()}this.closed=true}async receive(){if(this.client){this.client.on("data",(async C=>{const q=await Er.acquire();try{let q;this.stream=Buffer.concat([this.stream,C]);if(this.resolveRead){this.resolveRead(true)}}finally{q()}}))}}toString(){return"PromisedNetSocket"}}q.PromisedNetSockets=PromisedNetSockets},91083:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.PromisedWebSockets=void 0;const ae=re(29751);const Ue=re(82626);const lt=re(60720);const Pt=new Ue.Mutex;const Wt=new Error("WebSocket was closed");class PromisedWebSockets{constructor(){this.client=undefined;this.stream=Buffer.alloc(0);this.closed=true}async readExactly(C){let q=Buffer.alloc(0);while(true){const re=await this.read(C);q=Buffer.concat([q,re]);C=C-re.length;if(!C){return q}}}async read(C){if(this.closed){throw Wt}await this.canRead;if(this.closed){throw Wt}const q=this.stream.slice(0,C);this.stream=this.stream.slice(C);if(this.stream.length===0){this.canRead=new Promise((C=>{this.resolveRead=C}))}return q}async readAll(){if(this.closed||!await this.canRead){throw Wt}const C=this.stream;this.stream=Buffer.alloc(0);this.canRead=new Promise((C=>{this.resolveRead=C}));return C}getWebSocketLink(C,q,re){if(q===443){return`wss://${C}:${q}/apiws${re?"_test":""}`}else{return`ws://${C}:${q}/apiws${re?"_test":""}`}}async connect(C,q,re=false){this.stream=Buffer.alloc(0);this.canRead=new Promise((C=>{this.resolveRead=C}));this.closed=false;this.website=this.getWebSocketLink(q,C,re);this.client=new ae.w3cwebsocket(this.website,"binary");return new Promise(((C,q)=>{if(this.client){this.client.onopen=()=>{this.receive();C(this)};this.client.onerror=C=>{q(C)};this.client.onclose=()=>{if(this.resolveRead){this.resolveRead(false)}this.closed=true};if(lt.isBrowser){window.addEventListener("offline",(async()=>{await this.close();if(this.resolveRead){this.resolveRead(false)}}))}}}))}write(C){if(this.closed){throw Wt}if(this.client){this.client.send(C)}}async close(){if(this.client){await this.client.close()}this.closed=true}async receive(){if(this.client){this.client.onmessage=async C=>{const q=await Pt.acquire();try{let q;q=Buffer.from(await new Response(C.data).arrayBuffer());this.stream=Buffer.concat([this.stream,q]);if(this.resolveRead){this.resolveRead(true)}}finally{q()}}}}toString(){return"PromisedWebSocket"}}q.PromisedWebSockets=PromisedWebSockets},32741:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.HTMLParser=void 0;const ae=re(75368);const Ue=re(87440);const lt=re(18219);class HTMLToTelegramParser{constructor(){this.text="";this.entities=[];this._buildingEntities=new Map;this._openTags=[];this._openTagsMeta=[]}onopentag(C,q){this._openTags.unshift(C);this._openTagsMeta.unshift(undefined);let re;const ae={};if(C=="strong"||C=="b"){re=Ue.Api.MessageEntityBold}else if(C=="spoiler"){re=Ue.Api.MessageEntitySpoiler}else if(C=="em"||C=="i"){re=Ue.Api.MessageEntityItalic}else if(C=="u"){re=Ue.Api.MessageEntityUnderline}else if(C=="del"||C=="s"){re=Ue.Api.MessageEntityStrike}else if(C=="blockquote"){re=Ue.Api.MessageEntityBlockquote;if(q.expandable!==undefined){ae.collapsed=true}}else if(C=="code"){const C=this._buildingEntities.get("pre");if(C&&C instanceof Ue.Api.MessageEntityPre){try{C.language=q.class.slice("language-".length,q.class.length)}catch(C){}}else{re=Ue.Api.MessageEntityCode}}else if(C=="pre"){re=Ue.Api.MessageEntityPre;ae["language"]=""}else if(C=="a"){let C=q.href;if(!C){return}if(C.startsWith("mailto:")){C=C.slice("mailto:".length,C.length);re=Ue.Api.MessageEntityEmail}else{re=Ue.Api.MessageEntityTextUrl;ae["url"]=C;C=undefined}this._openTagsMeta.shift();this._openTagsMeta.unshift(C)}else if(C=="tg-emoji"){re=Ue.Api.MessageEntityCustomEmoji;ae["documentId"]=q["emoji-id"]}if(re&&!this._buildingEntities.has(C)){this._buildingEntities.set(C,new re(Object.assign({offset:this.text.length,length:0},ae)))}}ontext(C){const q=this._openTags.length>0?this._openTags[0]:"";if(q=="a"){const q=this._openTagsMeta[0];if(q){C=q}}for(let[q,re]of this._buildingEntities){re.length+=C.length}this.text+=C}onclosetag(C){this._openTagsMeta.shift();this._openTags.shift();const q=this._buildingEntities.get(C);if(q){this._buildingEntities.delete(C);this.entities.push(q)}}onattribute(C,q,re){}oncdataend(){}oncdatastart(){}oncomment(C){}oncommentend(){}onend(){}onerror(C){}onopentagname(C){}onparserinit(C){}onprocessinginstruction(C,q){}onreset(){}}class HTMLParser{static parse(C){if(!C){return[C,[]]}const q=new HTMLToTelegramParser;const re=new ae.Parser(q);re.write(C);re.end();const Ue=lt.helpers.stripText(q.text,q.entities);return[Ue,q.entities]}static unparse(C,q,re=0,ae){if(!C||!q||!q.length){return C}if(ae==undefined){ae=C.length}const lt=[];let Pt=0;for(let Wt=0;Wt=re+ae){break}let Er=Ar.offset-re;if(Er>Pt){lt.push(C.slice(Pt,Er))}else if(Er${kr}`)}else if(Ar instanceof Ue.Api.MessageEntitySpoiler){lt.push(`${kr}`)}else if(Ar instanceof Ue.Api.MessageEntityItalic){lt.push(`${kr}`)}else if(Ar instanceof Ue.Api.MessageEntityCode){lt.push(`${kr}`)}else if(Ar instanceof Ue.Api.MessageEntityUnderline){lt.push(`${kr}`)}else if(Ar instanceof Ue.Api.MessageEntityStrike){lt.push(`${kr}`)}else if(Ar instanceof Ue.Api.MessageEntityBlockquote){lt.push(`
${kr}
`)}else if(Ar instanceof Ue.Api.MessageEntityPre){if(Ar.language){lt.push(`
${kr}
`)}else{lt.push(`
${kr}
`)}}else if(Ar instanceof Ue.Api.MessageEntityEmail){lt.push(`${kr}`)}else if(Ar instanceof Ue.Api.MessageEntityUrl){lt.push(`${kr}`)}else if(Ar instanceof Ue.Api.MessageEntityTextUrl){lt.push(`${kr}`)}else if(Ar instanceof Ue.Api.MessageEntityMentionName){lt.push(`${kr}`)}else if(Ar instanceof Ue.Api.MessageEntityCustomEmoji){lt.push(`${kr}`)}else{Ir=true}Pt=Er+(Ir?0:Br)}lt.push(C.slice(Pt,C.length));return lt.join("")}}q.HTMLParser=HTMLParser},21470:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.AsyncQueue=q.MessagePacker=q.PromisedNetSockets=q.PromisedWebSockets=q.BinaryReader=q.BinaryWriter=q.Logger=void 0;var ae=re(91932);Object.defineProperty(q,"Logger",{enumerable:true,get:function(){return ae.Logger}});var Ue=re(3254);Object.defineProperty(q,"BinaryWriter",{enumerable:true,get:function(){return Ue.BinaryWriter}});var lt=re(4262);Object.defineProperty(q,"BinaryReader",{enumerable:true,get:function(){return lt.BinaryReader}});var Pt=re(91083);Object.defineProperty(q,"PromisedWebSockets",{enumerable:true,get:function(){return Pt.PromisedWebSockets}});var Wt=re(61568);Object.defineProperty(q,"PromisedNetSockets",{enumerable:true,get:function(){return Wt.PromisedNetSockets}});var Ar=re(23003);Object.defineProperty(q,"MessagePacker",{enumerable:true,get:function(){return Ar.MessagePacker}});var Er=re(31923);Object.defineProperty(q,"AsyncQueue",{enumerable:true,get:function(){return Er.AsyncQueue}})},94069:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.MarkdownParser=void 0;const ae=re(41197);class MarkdownParser{static parse(C){let q=0;const re={};for(const C in ae.DEFAULT_DELIMITERS){re[C]=false}const Ue=[];const lt={};while(q-1&&(Pt===-1||ae{lt.set(re[C].className,C)}));for(const C of q){const q=C.offset;const re=C.offset+C.length;const ae=lt.get(C.className);if(ae){Ue.push([q,ae]);Ue.push([re,ae])}}Ue=Ue.sort(((C,q)=>C[0]-q[0]));while(Ue.length){const[q,re]=Ue.pop();C=C.slice(0,q)+re+C.slice(q)}return C}}q.MarkdownParser=MarkdownParser},88757:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.MarkdownV2Parser=void 0;const ae=re(32741);class MarkdownV2Parser{static parse(C){C=C.replace(/\*(.*?)\*/g,"$1");C=C.replace(/__(.*?)__/g,"$1");C=C.replace(/~(.*?)~/g,"$1");C=C.replace(/-(.*?)-/g,"$1");C=C.replace(/```([\s\S]*?)```/g,"
$1
");C=C.replace(/`(.*?)`/g,"$1");C=C.replace(/\|\|(.*?)\|\|/g,"$1");C=C.replace(/(?$1');C=C.replace(/!\[([^\]]+)\]\(tg:\/\/emoji\?id=(\d+)\)/g,'$1');return ae.HTMLParser.parse(C)}static unparse(C,q){C=ae.HTMLParser.unparse(C,q);C=C.replace(/(.*?)<\/b>/g,"*$1*");C=C.replace(/(.*?)<\/u>/g,"__$1__");C=C.replace(/(.*?)<\/code>/g,"`$1`");C=C.replace(/
(.*?)<\/pre>/g,"```$1```");C=C.replace(/(.*?)<\/s>/g,"~$1~");C=C.replace(/(.*?)<\/i>/g,"-$1-");C=C.replace(/(.*?)<\/spoiler>/g,"||$1||");C=C.replace(/([^<]+)<\/a>/g,"[$2]($1)");C=C.replace(/([^<]+)<\/tg-emoji>/g,"![$2](tg://emoji?id=$1)");return C}}q.MarkdownV2Parser=MarkdownV2Parser},64989:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(69278),q)},90363:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(42474),q)},18219:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.client=q.password=q.tl=q.helpers=q.extensions=q.sessions=q.errors=q.utils=q.Logger=q.version=q.Connection=q.TelegramClient=q.Api=void 0;var Pt=re(87440);Object.defineProperty(q,"Api",{enumerable:true,get:function(){return Pt.Api}});const Wt=lt(re(87440));q.tl=Wt;var Ar=re(74163);Object.defineProperty(q,"TelegramClient",{enumerable:true,get:function(){return Ar.TelegramClient}});var Er=re(68722);Object.defineProperty(q,"Connection",{enumerable:true,get:function(){return Er.Connection}});var Ir=re(20163);Object.defineProperty(q,"version",{enumerable:true,get:function(){return Ir.version}});var Br=re(91932);Object.defineProperty(q,"Logger",{enumerable:true,get:function(){return Br.Logger}});const kr=lt(re(29078));q.utils=kr;const Pr=lt(re(37819));q.errors=Pr;const Qr=lt(re(85773));q.sessions=Qr;const Fr=lt(re(21470));q.extensions=Fr;const Dr=lt(re(10330));q.helpers=Dr;const xr=lt(re(42107));q.client=xr;const Mr=lt(re(79138));q.password=Mr},42355:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.inspect=void 0;var ae=re(39023);Object.defineProperty(q,"inspect",{enumerable:true,get:function(){return ae.inspect}})},29941:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.doAuthentication=void 0;const Ue=re(10330);const lt=re(87440);const Pt=re(37819);const Wt=re(11833);const Ar=re(81071);const Er=re(54254);const Ir=ae(re(43269));const Br=re(21470);const kr=re(42964);const Pr=20;async function doAuthentication(C,q){let re=(0,Ue.generateRandomBytes)(16);const ae=(0,Ue.readBigIntFromBuffer)(re,false,true);const Qr=await C.send(new lt.Api.ReqPqMulti({nonce:ae}));q.debug("Starting authKey generation step 1");if(!(Qr instanceof lt.Api.ResPQ)){throw new Pt.SecurityError(`Step 1 answer was ${Qr}`)}if(Qr.nonce.neq(ae)){throw new Pt.SecurityError("Step 1 invalid nonce from server")}const Fr=(0,Ue.readBigIntFromBuffer)(Qr.pq,false,true);q.debug("Finished authKey generation step 1");const{p:Dr,q:xr}=Wt.Factorizator.factorize(Fr);const Mr=(0,Ue.getByteArray)(Dr);const Ur=(0,Ue.getByteArray)(xr);re=(0,Ue.generateRandomBytes)(32);const Nr=(0,Ue.readBigIntFromBuffer)(re,true,true);const Lr=new lt.Api.PQInnerData({pq:(0,Ue.getByteArray)(Fr),p:Mr,q:Ur,nonce:Qr.nonce,serverNonce:Qr.serverNonce,newNonce:Nr}).getBytes();if(Lr.length>144){throw new Pt.SecurityError("Step 1 invalid nonce from server")}let jr;let Gr;for(const C of Qr.serverPublicKeyFingerprints){Gr=Ar._serverKeys.get(C.toString());if(Gr!==undefined){jr=C;break}}if(jr===undefined||Gr===undefined){throw new Pt.SecurityError("Step 2 could not find a valid key for fingerprints")}const Vr=(0,Ue.generateRandomBytes)(192-Lr.length);const Hr=Buffer.concat([Lr,Vr]);const Wr=Buffer.from(Hr).reverse();let $r;for(let C=0;C{if(this._pendingAck.size){const C=new Br.RequestState(new Ur({msgIds:Array(...this._pendingAck)}));this._sendQueue.append(C);this._lastAcks.push(C);if(this._lastAcks.length>=10){this._lastAcks.shift()}this._pendingAck.clear()}};appendAcks();this._log.debug(`Waiting for messages to send... ${this.isReconnecting}`);await this._sendQueue.wait();appendAcks();const C=await this._sendQueue.get();this._log.debug(`Got ${C===null||C===void 0?void 0:C.batch.length} message(s) to send`);if(this.isReconnecting){this._log.debug("Reconnecting");this._sendLoopHandle=undefined;return}if(!C){continue}let{data:q}=C;const{batch:re}=C;this._log.debug(`Encrypting ${re.length} message(s) in ${q.length} bytes for sending`);this._log.debug(`Sending   ${re.map((C=>C.request.className))}`);q=await this._state.encryptMessageData(q);for(const C of re){if(!Array.isArray(C)){if(C.request.classType==="request"){this._pendingState.set(C.msgId,C)}}else{for(const q of C){if(q.request.classType==="request"){this._pendingState.set(q.msgId,q)}}}}try{await this._connection.send(q)}catch(C){if(!this.userDisconnected){this._log.debug(`Connection closed while sending data ${C}`);if(this._log.canSend(Dr.LogLevel.DEBUG)){console.error(C)}this.reconnect()}this._sendLoopHandle=undefined;return}this._log.debug("Encrypted messages put in a queue to be sent")}this._sendLoopHandle=undefined}async _recvLoop(){let C;let q;while(this._userConnected&&!this.isReconnecting){this._log.debug("Receiving items from the network...");try{C=await this._connection.recv()}catch(C){if(this._currentRetries>this._reconnectRetries){for(const C of this._pendingState.values()){C.reject("Maximum reconnection retries reached. Aborting!")}this.userDisconnected=true;return}if(!this.userDisconnected){this._log.warn("Connection closed while receiving data");if(this._log.canSend(Dr.LogLevel.WARN)){console.error(C)}this.reconnect()}this._recvLoopHandle=undefined;return}try{q=await this._state.decryptMessageData(C)}catch(C){this._log.debug(`Error while receiving items from the network ${C}`);if(C instanceof Qr.TypeNotFoundError){this._log.info(`Type ${C.invalidConstructorId} not found, remaining data ${C.remaining}`);continue}else if(C instanceof Qr.SecurityError){this._log.warn(`Security error while unpacking a received message: ${C}`);continue}else if(C instanceof Qr.InvalidBufferError){if(C.code===404){this._handleBadAuthKey()}else{this._log.warn(`Invalid buffer ${C.code} for dc ${this._dcId}`);this.reconnect()}this._recvLoopHandle=undefined;return}else{this._log.error("Unhandled error while receiving data");if(this._client._errorHandler){await this._client._errorHandler(C)}if(this._log.canSend(Dr.LogLevel.ERROR)){console.log(C)}this.reconnect();this._recvLoopHandle=undefined;return}}try{await this._processMessage(q)}catch(C){if(C instanceof Qr.RPCError){if(C.message==="AUTH_KEY_UNREGISTERED"||C.message==="SESSION_REVOKED"){this._handleBadAuthKey(true)}}else{this._log.error("Unhandled error while receiving data");if(this._client._errorHandler){await this._client._errorHandler(C)}if(this._log.canSend(Dr.LogLevel.ERROR)){console.log(C)}}}this._currentRetries=0}this._recvLoopHandle=undefined}_handleBadAuthKey(C=false){if(C&&this._isMainSender){return}this._log.warn(`Broken authorization key for dc ${this._dcId}, resetting...`);if(this._isMainSender&&this._updateCallback){this._updateCallback(this._client,new Fr.UpdateConnectionState(Fr.UpdateConnectionState.broken))}else if(!this._isMainSender&&this._onConnectionBreak){this._onConnectionBreak(this._dcId)}}async _processMessage(C){this._pendingAck.add(C.msgId);C.obj=await C.obj;let q=this._handlers[C.obj.CONSTRUCTOR_ID.toString()];if(!q){q=this._handleUpdate.bind(this)}await q(C)}_popStates(C){var q;const re=this._pendingState.getAndDelete(C);if(re){return[re]}const ae=[];for(const re of this._pendingState.values()){if((q=re.containerId)===null||q===void 0?void 0:q.equals(C)){ae.push(re.msgId)}}if(ae.length){const C=[];for(const q of ae){C.push(this._pendingState.getAndDelete(q))}return C}for(const q of this._lastAcks){if(q.msgId===C){return[q]}}return[]}_handleRPCResult(C){const q=C.obj;const re=this._pendingState.getAndDelete(q.reqMsgId);this._log.debug(`Handling RPC result for message ${q.reqMsgId}`);if(!re){try{const C=new Pt.BinaryReader(q.body);if(!(C.tgReadObject()instanceof Ar.Api.upload.File)){throw new Qr.TypeNotFoundError(0,Buffer.alloc(0))}}catch(C){if(C instanceof Qr.TypeNotFoundError){this._log.info(`Received response without parent request: ${q.body}`);return}throw C}return}if(q.error){const C=(0,Qr.RPCMessageToError)(q.error,re.request);this._sendQueue.append(new Br.RequestState(new Ur({msgIds:[re.msgId]})));re.reject(C);throw C}else{try{const C=new Pt.BinaryReader(q.body);const ae=re.request.readResult(C);this._log.debug(`Handling RPC result ${ae===null||ae===void 0?void 0:ae.className}`);re.resolve(ae)}catch(C){re.reject(C);throw C}}}async _handleContainer(C){this._log.debug("Handling container");for(const q of C.obj.messages){await this._processMessage(q)}}async _handleGzipPacked(C){this._log.debug("Handling gzipped data");const q=new Pt.BinaryReader(C.obj.data);C.obj=q.tgReadObject();await this._processMessage(C)}async _handleUpdate(C){if(C.obj.SUBCLASS_OF_ID!==2331323052){this._log.warn(`Note: ${C.obj.className} is not an update, not dispatching it`);return}this._log.debug("Handling update "+C.obj.className);if(this._updateCallback){this._updateCallback(this._client,C.obj)}}async _handlePong(C){const q=C.obj;this._log.debug(`Handling pong for message ${q.msgId}`);const re=this._pendingState.get(q.msgId.toString());this._pendingState.delete(q.msgId.toString());if(re){re.resolve(q)}}async _handleBadServerSalt(C){const q=C.obj;this._log.debug(`Handling bad salt for message ${q.badMsgId}`);this._state.salt=q.newServerSalt;const re=this._popStates(q.badMsgId);this._sendQueue.extend(re);this._log.debug(`${re.length} message(s) will be resent`)}async _handleBadNotification(C){const q=C.obj;const re=this._popStates(q.badMsgId);this._log.debug(`Handling bad msg ${JSON.stringify(q)}`);if([16,17].includes(q.errorCode)){const q=this._state.updateTimeOffset((0,Er.default)(C.msgId));this._log.info(`System clock is wrong, set time offset to ${q}s`)}else if(q.errorCode===32){this._state._sequence+=64}else if(q.errorCode===33){this._state._sequence-=16}else{for(const C of re){C.reject(new Qr.BadMessageError(C.request,q.errorCode))}return}this._sendQueue.extend(re);this._log.debug(`${re.length} messages will be resent due to bad msg`)}async _handleDetailedInfo(C){const q=C.obj.answerMsgId;this._log.debug(`Handling detailed info for message ${q}`);this._pendingAck.add(q)}async _handleNewDetailedInfo(C){const q=C.obj.answerMsgId;this._log.debug(`Handling new detailed info for message ${q}`);this._pendingAck.add(q)}async _handleNewSessionCreated(C){this._log.debug("Handling new session created");this._state.salt=C.obj.serverSalt}_handleAck(){}async _handleFutureSalts(C){this._log.debug(`Handling future salts for message ${C.msgId}`);const q=this._pendingState.getAndDelete(C.msgId);if(q){q.resolve(C.obj)}}async _handleStateForgotten(C){this._sendQueue.append(new Br.RequestState(new Ar.Api.MsgsStateInfo({reqMsgId:C.msgId,info:String.fromCharCode(1).repeat(C.obj.msgIds)})))}async _handleMsgAll(C){}reconnect(){if(this._userConnected&&!this.isReconnecting){this.isReconnecting=true;this._currentRetries++;if(this._isMainSender){this._log.debug("Reconnecting all senders");for(const C of this._exportedSenderPromises.values()){C.then((C=>{if(C&&!C._isMainSender){C.reconnect()}})).catch((C=>{this._log.warn("Error getting sender to reconnect to")}))}}(0,Ir.sleep)(1e3).then((()=>{this._log.info("Started reconnecting");this._reconnect()}))}}async _reconnect(){try{this._log.warn("[Reconnect] Closing current connection...");await this._disconnect()}catch(C){this._log.warn("Error happened while disconnecting");if(this._client._errorHandler){await this._client._errorHandler(C)}if(this._log.canSend(Dr.LogLevel.ERROR)){console.error(C)}}this._log.debug(`Adding ${this._sendQueue._pendingStates.length} old request to resend`);for(let C=0;C500){this.msgIds.shift()}this.msgIds.push(Fr.toString());const Dr=Pr.readInt();Pr.readInt();const xr=Pr.tgReadObject();return new Ar.TLMessage(Fr,Dr,xr)}_getNewMsgId(){const C=(new Date).getTime()/1e3+this.timeOffset;const q=Math.floor((C-Math.floor(C))*1e9);let re=(0,Ue.default)(Math.floor(C)).shiftLeft((0,Ue.default)(32)).or((0,Ue.default)(q).shiftLeft((0,Ue.default)(2)));if(this._lastMsgId.greaterOrEquals(re)){re=this._lastMsgId.add((0,Ue.default)(4))}this._lastMsgId=re;return re}updateTimeOffset(C){const q=this._getNewMsgId();const re=this.timeOffset;const ae=Math.floor((new Date).getTime()/1e3);const lt=C.shiftRight((0,Ue.default)(32)).toJSNumber();this.timeOffset=lt-ae;if(this.timeOffset!==re){this._lastMsgId=Ue.default.zero;this._log.debug(`Updated time offset (old offset ${re}, bad ${q}, good ${C}, new ${this.timeOffset})`)}return this.timeOffset}_getSeqNo(C){if(C){const C=this._sequence*2+1;this._sequence+=1;return C}else{return this._sequence*2}}}q.MTProtoState=MTProtoState},34690:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.RequestState=void 0;const Ue=ae(re(64303));class RequestState{constructor(C){this.containerId=undefined;this.msgId=undefined;this.request=C;this.data=C.getBytes();this.after=undefined;this.result=undefined;this.finished=new Ue.default;this.resetPromise()}isReady(){if(!this.after){return true}return this.after.finished.promise}resetPromise(){var C;(C=this.reject)===null||C===void 0?void 0:C.call(this);this.promise=new Promise(((C,q)=>{this.resolve=C;this.reject=q}))}}q.RequestState=RequestState},40859:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ObfuscatedConnection=q.PacketCodec=q.Connection=void 0;const ae=re(21470);class Connection{constructor({ip:C,port:q,dcId:re,loggers:Ue,proxy:lt,socket:Pt,testServers:Wt}){this._ip=C;this._port=q;this._dcId=re;this._log=Ue;this._proxy=lt;this._connected=false;this._sendTask=undefined;this._recvTask=undefined;this._codec=undefined;this._obfuscation=undefined;this._sendArray=new ae.AsyncQueue;this._recvArray=new ae.AsyncQueue;this.socket=new Pt(lt);this._testServers=Wt}async _connect(){this._log.debug("Connecting");this._codec=new this.PacketCodecClass(this);await this.socket.connect(this._port,this._ip,this._testServers);this._log.debug("Finished connecting");await this._initConn()}async connect(){await this._connect();this._connected=true;if(!this._sendTask){this._sendTask=this._sendLoop()}this._recvTask=this._recvLoop()}async disconnect(){if(!this._connected){return}this._connected=false;void this._recvArray.push(undefined);await this.socket.close()}async send(C){if(!this._connected){throw new Error("Not connected")}await this._sendArray.push(C)}async recv(){while(this._connected){const C=await this._recvArray.pop();if(C){return C}}throw new Error("Not connected")}async _sendLoop(){try{while(this._connected){const C=await this._sendArray.pop();if(!C){this._sendTask=undefined;return}await this._send(C)}}catch(C){this._log.info("The server closed the connection while sending")}}isConnected(){return this._connected}async _recvLoop(){let C;while(this._connected){try{C=await this._recv();if(!C){throw new Error("no data received")}}catch(C){this._log.info("connection closed");this.disconnect();return}await this._recvArray.push(C)}}async _initConn(){if(this._codec.tag){await this.socket.write(this._codec.tag)}}async _send(C){const q=this._codec.encodePacket(C);this.socket.write(q)}async _recv(){return await this._codec.readPacket(this.socket)}toString(){return`${this._ip}:${this._port}/${this.constructor.name.replace("Connection","")}`}}q.Connection=Connection;class ObfuscatedConnection extends Connection{constructor(){super(...arguments);this.ObfuscatedIO=undefined}async _initConn(){this._obfuscation=new this.ObfuscatedIO(this);await this._obfuscation.initHeader();this.socket.write(this._obfuscation.header)}async _send(C){this._obfuscation.write(this._codec.encodePacket(C))}async _recv(){return await this._codec.readPacket(this._obfuscation)}}q.ObfuscatedConnection=ObfuscatedConnection;class PacketCodec{constructor(C){this._conn=C}encodePacket(C){throw new Error("Not Implemented")}async readPacket(C){throw new Error("Not Implemented")}}q.PacketCodec=PacketCodec},90106:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.ConnectionTCPAbridged=q.AbridgedPacketCodec=void 0;const Ue=re(10330);const lt=re(40859);const Pt=ae(re(43269));class AbridgedPacketCodec extends lt.PacketCodec{constructor(C){super(C);this.tag=AbridgedPacketCodec.tag;this.obfuscateTag=AbridgedPacketCodec.obfuscateTag}encodePacket(C){let q=C.length>>2;let re;if(q<127){const C=Buffer.alloc(1);C.writeUInt8(q,0);re=C}else{re=Buffer.concat([Buffer.from("7f","hex"),(0,Ue.readBufferFromBigInt)((0,Pt.default)(q),3)])}return Buffer.concat([re,C])}async readPacket(C){const q=await C.read(1);let re=q[0];if(re>=127){re=Buffer.concat([await C.read(3),Buffer.alloc(1)]).readInt32LE(0)}return C.read(re<<2)}}q.AbridgedPacketCodec=AbridgedPacketCodec;AbridgedPacketCodec.tag=Buffer.from("ef","hex");AbridgedPacketCodec.obfuscateTag=Buffer.from("efefefef","hex");class ConnectionTCPAbridged extends lt.Connection{constructor(){super(...arguments);this.PacketCodecClass=AbridgedPacketCodec}}q.ConnectionTCPAbridged=ConnectionTCPAbridged},30761:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ConnectionTCPFull=q.FullPacketCodec=void 0;const ae=re(40859);const Ue=re(10330);const lt=re(37819);class FullPacketCodec extends ae.PacketCodec{constructor(C){super(C);this._sendCounter=0}encodePacket(C){const q=C.length+12;const re=Buffer.alloc(8);re.writeInt32LE(q,0);re.writeInt32LE(this._sendCounter,4);C=Buffer.concat([re,C]);const ae=Buffer.alloc(4);ae.writeUInt32LE((0,Ue.crc32)(C),0);this._sendCounter+=1;return Buffer.concat([C,ae])}async readPacket(C){const q=await C.readExactly(8);if(q===undefined){return Buffer.alloc(0)}const re=q.readInt32LE(0);if(re<0){const q=await C.readExactly(4);throw new lt.InvalidBufferError(q)}let ae=await C.readExactly(re-8);const Pt=ae.slice(-4).readUInt32LE(0);ae=ae.slice(0,-4);const Wt=(0,Ue.crc32)(Buffer.concat([q,ae]));if(!(Wt===Pt)){throw new lt.InvalidChecksumError(Pt,Wt)}return ae}}q.FullPacketCodec=FullPacketCodec;class ConnectionTCPFull extends ae.Connection{constructor(){super(...arguments);this.PacketCodecClass=FullPacketCodec}}q.ConnectionTCPFull=ConnectionTCPFull},49713:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ConnectionTCPMTProxyAbridged=q.TCPMTProxy=void 0;const ae=re(40859);const Ue=re(90106);const lt=re(10330);const Pt=re(77222);class MTProxyIO{constructor(C){this.header=undefined;this.connection=C.socket;this._packetClass=C.PacketCodecClass;this._secret=C._secret;this._dcId=C._dcId}async initHeader(){let C=this._secret;const q=C.length==17&&C[0]==221;C=q?C.slice(1):C;if(C.length!=16){throw new Error("MTProxy secret must be a hex-string representing 16 bytes")}const re=[Buffer.from("50567247","hex"),Buffer.from("474554","hex"),Buffer.from("504f5354","hex"),Buffer.from("eeeeeeee","hex")];let ae;while(true){ae=(0,lt.generateRandomBytes)(64);if(ae[0]!==239&&!ae.slice(4,8).equals(Buffer.alloc(4))){let C=true;for(const q of re){if(q.equals(ae.slice(0,4))){C=false;break}}if(C){break}}}ae=ae.toJSON().data;const Ue=Buffer.from(ae.slice(8,56)).reverse();const Wt=await(0,lt.sha256)(Buffer.concat([Buffer.from(ae.slice(8,40)),C]));const Ar=Buffer.from(ae.slice(40,56));const Er=await(0,lt.sha256)(Buffer.concat([Buffer.from(Ue.slice(0,32)),C]));const Ir=Buffer.from(Ue.slice(32,48));const Br=new Pt.CTR(Wt,Ar);const kr=new Pt.CTR(Er,Ir);ae=Buffer.concat([Buffer.from(ae.slice(0,56)),this._packetClass.obfuscateTag,Buffer.from(ae.slice(60))]);const Pr=Buffer.alloc(2);Pr.writeInt8(this._dcId,0);ae=Buffer.concat([Buffer.from(ae.slice(0,60)),Pr,Buffer.from(ae.slice(62))]);ae=Buffer.concat([Buffer.from(ae.slice(0,56)),Buffer.from(Br.encrypt(ae).slice(56,64)),Buffer.from(ae.slice(64))]);this.header=ae;this._encrypt=Br;this._decrypt=kr}async read(C){const q=await this.connection.readExactly(C);return this._decrypt.encrypt(q)}write(C){this.connection.write(this._encrypt.encrypt(C))}}class TCPMTProxy extends ae.ObfuscatedConnection{constructor({ip:C,port:q,dcId:re,loggers:ae,proxy:Ue,socket:lt,testServers:Pt}){super({ip:Ue.ip,port:Ue.port,dcId:re,loggers:ae,socket:lt,proxy:Ue,testServers:Pt});this.ObfuscatedIO=MTProxyIO;if(!("MTProxy"in Ue)){throw new Error("This connection only supports MPTProxies")}if(!Ue.secret){throw new Error("You need to provide the secret for the MTProxy")}if(Ue.secret&&Ue.secret.match(/^[0-9a-f]+$/i)){this._secret=Buffer.from(Ue.secret,"hex")}else{this._secret=Buffer.from(Ue.secret,"base64")}}}q.TCPMTProxy=TCPMTProxy;class ConnectionTCPMTProxyAbridged extends TCPMTProxy{constructor(){super(...arguments);this.PacketCodecClass=Ue.AbridgedPacketCodec}}q.ConnectionTCPMTProxyAbridged=ConnectionTCPMTProxyAbridged},33038:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ConnectionTCPObfuscated=void 0;const ae=re(10330);const Ue=re(40859);const lt=re(90106);const Pt=re(77222);class ObfuscatedIO{constructor(C){this.header=undefined;this.connection=C.socket;this._packetClass=C.PacketCodecClass}async initHeader(){const C=[Buffer.from("50567247","hex"),Buffer.from("474554","hex"),Buffer.from("504f5354","hex"),Buffer.from("eeeeeeee","hex")];let q;while(true){q=(0,ae.generateRandomBytes)(64);if(q[0]!==239&&!q.slice(4,8).equals(Buffer.alloc(4))){let re=true;for(const ae of C){if(ae.equals(q.slice(0,4))){re=false;break}}if(re){break}}}q=q.toJSON().data;const re=Buffer.from(q.slice(8,56)).reverse();const Ue=Buffer.from(q.slice(8,40));const lt=Buffer.from(q.slice(40,56));const Wt=Buffer.from(re.slice(0,32));const Ar=Buffer.from(re.slice(32,48));const Er=new Pt.CTR(Ue,lt);const Ir=new Pt.CTR(Wt,Ar);q=Buffer.concat([Buffer.from(q.slice(0,56)),this._packetClass.obfuscateTag,Buffer.from(q.slice(60))]);q=Buffer.concat([Buffer.from(q.slice(0,56)),Buffer.from(Er.encrypt(q).slice(56,64)),Buffer.from(q.slice(64))]);this.header=q;this._encrypt=Er;this._decrypt=Ir}async read(C){const q=await this.connection.readExactly(C);return this._decrypt.encrypt(q)}write(C){this.connection.write(this._encrypt.encrypt(C))}}class ConnectionTCPObfuscated extends Ue.ObfuscatedConnection{constructor(){super(...arguments);this.ObfuscatedIO=ObfuscatedIO;this.PacketCodecClass=lt.AbridgedPacketCodec}}q.ConnectionTCPObfuscated=ConnectionTCPObfuscated},90583:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ConnectionTCPObfuscated=q.ConnectionTCPAbridged=q.ConnectionTCPFull=q.Connection=void 0;var ae=re(40859);Object.defineProperty(q,"Connection",{enumerable:true,get:function(){return ae.Connection}});var Ue=re(30761);Object.defineProperty(q,"ConnectionTCPFull",{enumerable:true,get:function(){return Ue.ConnectionTCPFull}});var lt=re(90106);Object.defineProperty(q,"ConnectionTCPAbridged",{enumerable:true,get:function(){return lt.ConnectionTCPAbridged}});var Pt=re(33038);Object.defineProperty(q,"ConnectionTCPObfuscated",{enumerable:true,get:function(){return Pt.ConnectionTCPObfuscated}})},68722:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ConnectionTCPObfuscated=q.ConnectionTCPAbridged=q.ConnectionTCPFull=q.Connection=q.UpdateConnectionState=q.MTProtoSender=q.doAuthentication=q.MTProtoPlainSender=void 0;var ae=re(68278);Object.defineProperty(q,"MTProtoPlainSender",{enumerable:true,get:function(){return ae.MTProtoPlainSender}});var Ue=re(29941);Object.defineProperty(q,"doAuthentication",{enumerable:true,get:function(){return Ue.doAuthentication}});var lt=re(83714);Object.defineProperty(q,"MTProtoSender",{enumerable:true,get:function(){return lt.MTProtoSender}});class UpdateConnectionState{constructor(C){this.state=C}}q.UpdateConnectionState=UpdateConnectionState;UpdateConnectionState.disconnected=-1;UpdateConnectionState.connected=1;UpdateConnectionState.broken=0;var Pt=re(90583);Object.defineProperty(q,"Connection",{enumerable:true,get:function(){return Pt.Connection}});Object.defineProperty(q,"ConnectionTCPFull",{enumerable:true,get:function(){return Pt.ConnectionTCPFull}});Object.defineProperty(q,"ConnectionTCPAbridged",{enumerable:true,get:function(){return Pt.ConnectionTCPAbridged}});Object.defineProperty(q,"ConnectionTCPObfuscated",{enumerable:true,get:function(){return Pt.ConnectionTCPObfuscated}})},60720:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.isNode=q.isBrowser=q.isDeno=void 0;q.isDeno="Deno"in globalThis;q.isBrowser=!q.isDeno&&typeof window!=="undefined";q.isNode=!q.isBrowser},40776:function(C,q,re){var ae=this&&this.__asyncValues||function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q=C[Symbol.asyncIterator],re;return q?q.call(C):(C=typeof __values==="function"?__values(C):C[Symbol.iterator](),re={},verb("next"),verb("throw"),verb("return"),re[Symbol.asyncIterator]=function(){return this},re);function verb(q){re[q]=C[q]&&function(re){return new Promise((function(ae,Ue){re=C[q](re),settle(ae,Ue,re.done,re.value)}))}}function settle(C,q,re,ae){Promise.resolve(ae).then((function(q){C({value:q,done:re})}),q)}};Object.defineProperty(q,"__esModule",{value:true});q.RequestIter=void 0;const Ue=re(10330);const lt=re(18219);class RequestIter{constructor(C,q,re={},ae={}){this.client=C;this.reverse=re.reverse;this.waitTime=re.waitTime;this.limit=Math.max(!q?Number.MAX_SAFE_INTEGER:q,0);this.left=this.limit;this.buffer=undefined;this.kwargs=ae;this.index=0;this.total=undefined;this.lastLoad=0}async _init(C){}[Symbol.asyncIterator](){this.buffer=undefined;this.index=0;this.lastLoad=0;this.left=this.limit;return{next:async()=>{if(this.buffer==undefined){this.buffer=[];if(await this._init(this.kwargs)){this.left=this.buffer.length}}if(this.left<=0){return{value:undefined,done:true}}if(this.index==this.buffer.length){if(this.waitTime){await(0,Ue.sleep)(this.waitTime-((new Date).getTime()/1e3-this.lastLoad))}this.lastLoad=(new Date).getTime()/1e3;this.index=0;this.buffer=[];const C=await this._loadNextChunk();if(C===false){return{value:undefined,done:true}}if(C){this.left=this.buffer.length}}if(!this.buffer||!this.buffer.length){return{value:undefined,done:true}}const C=this.buffer[this.index];this.left-=1;this.index+=1;return{value:C,done:false}}}}async collect(){var C,q;const re=new lt.helpers.TotalList;try{for(var Ue=ae(this),Pt;Pt=await Ue.next(),!Pt.done;){const C=Pt.value;re.push(C)}}catch(q){C={error:q}}finally{try{if(Pt&&!Pt.done&&(q=Ue.return))await q.call(Ue)}finally{if(C)throw C.error}}re.total=this.total;return re}async _loadNextChunk(){throw new Error("Not Implemented")}}q.RequestIter=RequestIter},6755:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.Session=void 0;class Session{}q.Session=Session},26778:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.MemorySession=void 0;const Ue=re(6755);const lt=re(87440);const Pt=ae(re(43269));const Wt=re(29078);const Ar=re(10330);const Er=re(18219);class MemorySession extends Ue.Session{constructor(){super();this._serverAddress=undefined;this._dcId=0;this._port=undefined;this._takeoutId=undefined;this._entities=new Set;this._updateStates={}}setDC(C,q,re){this._dcId=C|0;this._serverAddress=q;this._port=re}get dcId(){return this._dcId}get serverAddress(){return this._serverAddress}get port(){return this._port}get authKey(){return this._authKey}set authKey(C){this._authKey=C}get takeoutId(){return this._takeoutId}set takeoutId(C){this._takeoutId=C}getAuthKey(C){if(C&&C!==this.dcId){return undefined}return this.authKey}setAuthKey(C,q){if(q&&q!==this.dcId){return undefined}this.authKey=C}close(){}save(){}async load(){}delete(){}_entityValuesToRow(C,q,re,ae,Ue){return[C,q,re,ae,Ue]}_entityToRow(C){if(!(C.classType==="constructor")){return}let q;let re;try{q=(0,Wt.getInputPeer)(C,false);re=(0,Wt.getPeerId)(q)}catch(C){return}let ae;if(q instanceof lt.Api.InputPeerUser||q instanceof lt.Api.InputPeerChannel){ae=q.accessHash}else if(q instanceof lt.Api.InputPeerChat){ae=Pt.default.zero}else{return}let Ue=C.username;if(Ue){Ue=Ue.toLowerCase()}const Ar=C.phone;const Er=(0,Wt.getDisplayName)(C);return this._entityValuesToRow(re,ae,Ue,Ar,Er)}_entitiesToRows(C){let q=[];if(!(C.classType==="constructor")&&(0,Ar.isArrayLike)(C)){q=C}else{if(typeof C==="object"){if("user"in C){q.push(C.user)}if("chat"in C){q.push(C.chat)}if("channel"in C){q.push(C.channel)}if("chats"in C&&(0,Ar.isArrayLike)(C.chats)){q=q.concat(C.chats)}if("users"in C&&(0,Ar.isArrayLike)(C.users)){q=q.concat(C.users)}}}const re=[];for(const C of q){const q=this._entityToRow(C);if(q){re.push(q)}}return re}processEntities(C){const q=this._entitiesToRows(C);for(const C of q){this._entities.add(C)}}getEntityRowsByPhone(C){for(const q of this._entities){if(q[3]===C){return[q[0],q[1]]}}}getEntityRowsByUsername(C){for(const q of this._entities){if(q[2]===C){return[q[0],q[1]]}}}getEntityRowsByName(C){for(const q of this._entities){if(q[4]===C){return[q[0],q[1]]}}}getEntityRowsById(C,q=true){if(q){for(const q of this._entities){if(q[0]===C){return[q[0],q[1]]}}}else{const q=[Er.utils.getPeerId(new lt.Api.PeerUser({userId:(0,Ar.returnBigInt)(C)})),Er.utils.getPeerId(new lt.Api.PeerChat({chatId:(0,Ar.returnBigInt)(C)})),Er.utils.getPeerId(new lt.Api.PeerChannel({channelId:(0,Ar.returnBigInt)(C)}))];for(const C of this._entities){if(q.includes(C[0])){return[C[0],C[1]]}}}}getInputEntity(C){let q;if(typeof C==="object"&&!Pt.default.isInstance(C)&&C.SUBCLASS_OF_ID){if(C.SUBCLASS_OF_ID==3374092470||C.SUBCLASS_OF_ID==3865689926||C.SUBCLASS_OF_ID==1089602301){return C}return Er.utils.getInputPeer(C)}else{if(typeof C==="object"){C=Er.utils.getPeerId(C);q=true}else{q=false}}if(Pt.default.isInstance(C)||typeof C=="bigint"||typeof C=="number"){C=C.toString()}let re=undefined;if(typeof C==="string"){const ae=Er.utils.parsePhone(C);if(ae){re=this.getEntityRowsByPhone(ae)}else{const{username:q,isInvite:ae}=Er.utils.parseUsername(C);if(q&&!ae){re=this.getEntityRowsByUsername(q)}}if(!re){const ae=Er.utils.parseID(C);if(ae){re=this.getEntityRowsById(ae,q)}}if(!re){re=this.getEntityRowsByName(C)}}if(re){let C=re[0];const q=(0,Pt.default)(re[1]);const ae=Er.utils.resolveId((0,Ar.returnBigInt)(C));C=ae[0];const Ue=ae[1];if(Ue===lt.Api.PeerUser){return new lt.Api.InputPeerUser({userId:C,accessHash:q})}else if(Ue===lt.Api.PeerChat){return new lt.Api.InputPeerChat({chatId:C})}else if(Ue===lt.Api.PeerChannel){return new lt.Api.InputPeerChannel({channelId:C,accessHash:q})}}else{throw new Error("Could not find input entity with key "+C)}throw new Error("Could not find input entity with key "+C)}}q.MemorySession=MemorySession},58938:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.StoreSession=void 0;const Ue=re(26778);const lt=ae(re(30977));const Pt=re(42964);class StoreSession extends Ue.MemorySession{constructor(C,q=":"){super();if(C==="session"){throw new Error("Session name can't be 'session'. Please use a different name.")}if(typeof localStorage==="undefined"||localStorage===null){const q=re(64753).LocalStorage;this.store=lt.default.area(C,new q("./"+C))}else{this.store=lt.default.area(C,localStorage)}if(q==undefined){q=":"}this.sessionName=C+q}async load(){let C=this.store.get(this.sessionName+"authKey");if(C&&typeof C==="object"){this._authKey=new Pt.AuthKey;if("data"in C){C=Buffer.from(C.data)}await this._authKey.setKey(C)}const q=this.store.get(this.sessionName+"dcId");if(q){this._dcId=q}const re=this.store.get(this.sessionName+"port");if(re){this._port=re}const ae=this.store.get(this.sessionName+"serverAddress");if(ae){this._serverAddress=ae}}setDC(C,q,re){this.store.set(this.sessionName+"dcId",C);this.store.set(this.sessionName+"port",re);this.store.set(this.sessionName+"serverAddress",q);super.setDC(C,q,re)}set authKey(C){this._authKey=C;this.store.set(this.sessionName+"authKey",C===null||C===void 0?void 0:C.getKey())}get authKey(){return this._authKey}processEntities(C){const q=this._entitiesToRows(C);if(!q){return}for(const C of q){C.push((new Date).getTime().toString());this.store.set(this.sessionName+C[0],C)}}getEntityRowsById(C,q=true){return this.store.get(this.sessionName+C.toString())}}q.StoreSession=StoreSession},66514:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.StringSession=void 0;const ae=re(26778);const Ue=re(21470);const lt=re(42964);const Pt="1";class StringSession extends ae.MemorySession{constructor(C){super();if(C){if(C[0]!==Pt){throw new Error("Not a valid string")}C=C.slice(1);const q=StringSession.decode(C);const re=new Ue.BinaryReader(q);this._dcId=re.read(1).readUInt8(0);if(C.length==352){const C=re.read(4);this._serverAddress=C[0].toString()+"."+C[1].toString()+"."+C[2].toString()+"."+C[3].toString()}else{const C=re.read(2).readInt16BE(0);if(C>100){re.offset-=2;this._serverAddress=re.read(16).toString("hex").match(/.{1,4}/g).map((C=>C.replace(/^0+/,""))).join(":").replace(/0000\:/g,":").replace(/:{2,}/g,"::")}else{this._serverAddress=re.read(C).toString()}}this._port=re.read(2).readInt16BE(0);this._key=re.read(-1)}}static encode(C){return C.toString("base64")}static decode(C){return Buffer.from(C,"base64")}async load(){if(this._key){this._authKey=new lt.AuthKey;await this._authKey.setKey(this._key)}}save(){if(!this.authKey||!this.serverAddress||!this.port){return""}const C=this.authKey.getKey();if(!C){return""}const q=Buffer.from([this.dcId]);const re=Buffer.from(this.serverAddress);const ae=Buffer.alloc(2);ae.writeInt16BE(re.length,0);const Ue=Buffer.alloc(2);Ue.writeInt16BE(this.port,0);return Pt+StringSession.encode(Buffer.concat([q,ae,re,Ue,C]))}}q.StringSession=StringSession},85773:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Session=q.StoreSession=q.StringSession=q.MemorySession=void 0;var ae=re(26778);Object.defineProperty(q,"MemorySession",{enumerable:true,get:function(){return ae.MemorySession}});var Ue=re(66514);Object.defineProperty(q,"StringSession",{enumerable:true,get:function(){return Ue.StringSession}});var lt=re(58938);Object.defineProperty(q,"StoreSession",{enumerable:true,get:function(){return lt.StoreSession}});var Pt=re(6755);Object.defineProperty(q,"Session",{enumerable:true,get:function(){return Pt.Session}})},64753:(C,q,re)=>{var ae;ae={value:true};q.LocalStorage=void 0;q.LocalStorage=re(80347).LocalStorage},59415:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.tlobjects=q.LAYER=void 0;q.LAYER=193;const ae=re(87440);const Ue={};q.tlobjects=Ue;for(const C of Object.values(ae.Api)){if("CONSTRUCTOR_ID"in C){Ue[C.CONSTRUCTOR_ID]=C}else{for(const q of Object.values(C)){Ue[q.CONSTRUCTOR_ID]=q}}}},11820:(C,q,re)=>{const{inspect:ae}=re(42355);const Ue=re(43269);const{generateRandomBytes:lt,readBigIntFromBuffer:Pt,isArrayLike:Wt,betterConsoleLog:Ar}=re(10330);const Er=re(66164);const Ir=re(87113);function generateRandomBigInt(){return Pt(lt(8),false,true)}const{parseTl:Br,serializeBytes:kr,serializeDate:Pr}=re(66695);const{toSignedLittleBuffer:Qr}=re(10330);const Fr=new Set(["chatId,int"]);const Dr=new Set(["discardEncryption"]);const xr=new Set(["InputPeer","InputChannel","InputUser","InputDialogPeer","InputNotifyPeer","InputMedia","InputPhoto","InputMessage","InputDocument","InputChatPhoto"]);class CastError extends Error{constructor(C,q,re,...ae){const Ue="Found wrong type for "+C+". expected "+q+" but received "+re+".If you think this is a mistake please report it.";super(Ue,...ae);if(Error.captureStackTrace){Error.captureStackTrace(this,CastError)}this.name="CastError"}}const Mr=typeof self!=="undefined"&&self.localStorage!==undefined;const Ur="GramJs:apiCache";function buildApiFromTlSchema(){let C;const q=Mr&&loadFromCache();if(q){C=q}else{C=loadFromTlSchemas();if(Mr){localStorage.setItem(Ur,JSON.stringify(C))}}return createClasses("all",C)}function loadFromCache(){const C=localStorage.getItem(Ur);return C&&JSON.parse(C)}function loadFromTlSchemas(){const[C,q]=extractParams(Er);const[re,ae]=extractParams(Ir);const Ue=[].concat(C,re);const lt=[].concat(q,ae);return[].concat(Ue,lt)}function extractParams(C){const q=Br(C,109);const re=[];const ae=[];for(const C of q){C.isFunction?ae.push(C):re.push(C)}return[re,ae]}function argToBytes(C,q,re,ae){switch(q){case"int":const q=Buffer.alloc(4);q.writeInt32LE(C,0);return q;case"long":return Qr(C,8);case"int128":return Qr(C,16);case"int256":return Qr(C,32);case"double":const Ue=Buffer.alloc(8);Ue.writeDoubleLE(C,0);return Ue;case"string":return kr(C);case"Bool":return C?Buffer.from("b5757299","hex"):Buffer.from("379779bc","hex");case"true":return Buffer.alloc(0);case"bytes":return kr(C);case"date":return Pr(C);default:if(C===undefined||typeof C.getBytes!=="function"){throw new Error(`Required object ${re} of ${ae} is undefined`)}return C.getBytes()}}async function getInputFromResolve(C,q,re,ae){switch(ae){case"InputPeer":return C.getInputPeer(await q.getInputEntity(re));case"InputChannel":return C.getInputChannel(await q.getInputEntity(re));case"InputUser":return C.getInputUser(await q.getInputEntity(re));case"InputDialogPeer":return await q._getInputDialog(re);case"InputNotifyPeer":return await q._getInputNotify(re);case"InputMedia":return C.getInputMedia(re);case"InputPhoto":return C.getInputPhoto(re);case"InputMessage":return C.getInputMessage(re);case"InputDocument":return C.getInputDocument(re);case"InputChatPhoto":return C.getInputChatPhoto(re);case"chatId,int":return await q.getPeerId(re,false);default:throw new Error("unsupported peer type : "+ae)}}function getArgFromReader(C,q){if(q.isVector){if(q.useVectorId){C.readInt()}const re=[];const ae=C.readInt();q.isVector=false;for(let Ue=0;UeargToBytes(q,Pt[C].type,kr)))))}else if(Pt[C].flagIndicator){if(!Object.values(Pt).some((C=>C.isFlag))){re.push(Buffer.alloc(4))}else{let q=0;for(const re in Pt){if(Pt[re].isFlag&&C===Pt[re].flagName){if(this[re]===false&&Pt[re].type!=="Bool"||this[re]===undefined||this[re]===null){q|=0}else{q|=1</);if(q){C.readInt();const re=[];const ae=C.readInt();if(q[1]==="int"){for(let q=0;q{C.exports=`boolFalse#bc799737 = Bool;\nboolTrue#997275b5 = Bool;\ntrue#3fedd339 = True;\nvector#1cb5c415 {t:Type} # [ t ] = Vector t;\nerror#c4b9f9bb code:int text:string = Error;\nnull#56730bcc = Null;\ninputPeerEmpty#7f3b18ea = InputPeer;\ninputPeerSelf#7da07ec9 = InputPeer;\ninputPeerChat#35a95cb9 chat_id:long = InputPeer;\ninputPeerUser#dde8a54c user_id:long access_hash:long = InputPeer;\ninputPeerChannel#27bcbbfc channel_id:long access_hash:long = InputPeer;\ninputPeerUserFromMessage#a87b0a1c peer:InputPeer msg_id:int user_id:long = InputPeer;\ninputPeerChannelFromMessage#bd2a0840 peer:InputPeer msg_id:int channel_id:long = InputPeer;\ninputUserEmpty#b98886cf = InputUser;\ninputUserSelf#f7c1b13f = InputUser;\ninputUser#f21158c6 user_id:long access_hash:long = InputUser;\ninputUserFromMessage#1da448e2 peer:InputPeer msg_id:int user_id:long = InputUser;\ninputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact;\ninputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile;\ninputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile;\ninputFileStoryDocument#62dc8b48 id:InputDocument = InputFile;\ninputMediaEmpty#9664f57f = InputMedia;\ninputMediaUploadedPhoto#1e287d04 flags:# spoiler:flags.2?true file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia;\ninputMediaPhoto#b3ba0635 flags:# spoiler:flags.1?true id:InputPhoto ttl_seconds:flags.0?int = InputMedia;\ninputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia;\ninputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia;\ninputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true force_file:flags.4?true spoiler:flags.5?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia;\ninputMediaDocument#33473058 flags:# spoiler:flags.2?true id:InputDocument ttl_seconds:flags.0?int query:flags.1?string = InputMedia;\ninputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia;\ninputMediaPhotoExternal#e5bbfe1a flags:# spoiler:flags.1?true url:string ttl_seconds:flags.0?int = InputMedia;\ninputMediaDocumentExternal#fb52dc99 flags:# spoiler:flags.1?true url:string ttl_seconds:flags.0?int = InputMedia;\ninputMediaGame#d33f43f3 id:InputGame = InputMedia;\ninputMediaInvoice#405fef0d flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:flags.3?string provider_data:DataJSON start_param:flags.1?string extended_media:flags.2?InputMedia = InputMedia;\ninputMediaGeoLive#971fa843 flags:# stopped:flags.0?true geo_point:InputGeoPoint heading:flags.2?int period:flags.1?int proximity_notification_radius:flags.3?int = InputMedia;\ninputMediaPoll#f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector solution:flags.1?string solution_entities:flags.1?Vector = InputMedia;\ninputMediaDice#e66fbf7b emoticon:string = InputMedia;\ninputMediaStory#89fdd778 peer:InputPeer id:int = InputMedia;\ninputMediaWebPage#c21b8849 flags:# force_large_media:flags.0?true force_small_media:flags.1?true optional:flags.2?true url:string = InputMedia;\ninputMediaPaidMedia#c4103386 flags:# stars_amount:long extended_media:Vector payload:flags.0?string = InputMedia;\ninputChatPhotoEmpty#1ca48f57 = InputChatPhoto;\ninputChatUploadedPhoto#bdcdaec0 flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.3?VideoSize = InputChatPhoto;\ninputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto;\ninputGeoPointEmpty#e4c123d6 = InputGeoPoint;\ninputGeoPoint#48222faf flags:# lat:double long:double accuracy_radius:flags.0?int = InputGeoPoint;\ninputPhotoEmpty#1cd7bf0d = InputPhoto;\ninputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto;\ninputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation;\ninputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation;\ninputDocumentFileLocation#bad07584 id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;\ninputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation;\ninputTakeoutFileLocation#29be5899 = InputFileLocation;\ninputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation;\ninputPhotoLegacyFileLocation#d83466f3 id:long access_hash:long file_reference:bytes volume_id:long local_id:int secret:long = InputFileLocation;\ninputPeerPhotoFileLocation#37257e99 flags:# big:flags.0?true peer:InputPeer photo_id:long = InputFileLocation;\ninputStickerSetThumb#9d84f3db stickerset:InputStickerSet thumb_version:int = InputFileLocation;\ninputGroupCallStream#598a92a flags:# call:InputGroupCall time_ms:long scale:int video_channel:flags.0?int video_quality:flags.0?int = InputFileLocation;\npeerUser#59511722 user_id:long = Peer;\npeerChat#36c6019a chat_id:long = Peer;\npeerChannel#a2a5371e channel_id:long = Peer;\nstorage.fileUnknown#aa963b05 = storage.FileType;\nstorage.filePartial#40bc6f52 = storage.FileType;\nstorage.fileJpeg#7efe0e = storage.FileType;\nstorage.fileGif#cae1aadf = storage.FileType;\nstorage.filePng#a4f63c0 = storage.FileType;\nstorage.filePdf#ae1e508d = storage.FileType;\nstorage.fileMp3#528a0677 = storage.FileType;\nstorage.fileMov#4b09ebbc = storage.FileType;\nstorage.fileMp4#b3cea0e4 = storage.FileType;\nstorage.fileWebp#1081464c = storage.FileType;\nuserEmpty#d3bc4b7a id:long = User;\nuser#83314fca flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true close_friend:flags2.2?true stories_hidden:flags2.3?true stories_unavailable:flags2.4?true contact_require_premium:flags2.10?true bot_business:flags2.11?true bot_has_main_app:flags2.13?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector stories_max_id:flags2.5?int color:flags2.8?PeerColor profile_color:flags2.9?PeerColor bot_active_users:flags2.12?int = User;\nuserProfilePhotoEmpty#4f11bae1 = UserProfilePhoto;\nuserProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto;\nuserStatusEmpty#9d05049 = UserStatus;\nuserStatusOnline#edb93949 expires:int = UserStatus;\nuserStatusOffline#8c703f was_online:int = UserStatus;\nuserStatusRecently#7b197dc8 flags:# by_me:flags.0?true = UserStatus;\nuserStatusLastWeek#541a1d1a flags:# by_me:flags.0?true = UserStatus;\nuserStatusLastMonth#65899777 flags:# by_me:flags.0?true = UserStatus;\nchatEmpty#29562865 id:long = Chat;\nchat#41cbf256 flags:# creator:flags.0?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true noforwards:flags.25?true id:long title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat;\nchatForbidden#6592a1a7 id:long title:string = Chat;\nchannel#fe4478bd flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true forum:flags.30?true flags2:# stories_hidden:flags2.1?true stories_hidden_min:flags2.2?true stories_unavailable:flags2.3?true signature_profiles:flags2.12?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int restriction_reason:flags.9?Vector admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int usernames:flags2.0?Vector stories_max_id:flags2.4?int color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int subscription_until_date:flags2.11?int = Chat;\nchannelForbidden#17d493d5 flags:# broadcast:flags.5?true megagroup:flags.8?true id:long access_hash:long title:string until_date:flags.16?int = Chat;\nchatFull#2633421b flags:# can_set_username:flags.7?true has_scheduled:flags.8?true translations_disabled:flags.19?true id:long about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:flags.13?ExportedChatInvite bot_info:flags.3?Vector pinned_msg_id:flags.6?int folder_id:flags.11?int call:flags.12?InputGroupCall ttl_period:flags.14?int groupcall_default_join_as:flags.15?Peer theme_emoticon:flags.16?string requests_pending:flags.17?int recent_requesters:flags.17?Vector available_reactions:flags.18?ChatReactions reactions_limit:flags.20?int = ChatFull;\nchannelFull#bbab348d flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true flags2:# can_delete_channel:flags2.0?true antispam:flags2.1?true participants_hidden:flags2.2?true translations_disabled:flags2.3?true stories_pinned_available:flags2.5?true view_forum_as_messages:flags2.6?true restricted_sponsored:flags2.11?true can_view_revenue:flags2.12?true paid_media_allowed:flags2.14?true can_view_stars_revenue:flags2.15?true paid_reactions_available:flags2.16?true id:long about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:flags.23?ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?long migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?long location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int call:flags.21?InputGroupCall ttl_period:flags.24?int pending_suggestions:flags.25?Vector groupcall_default_join_as:flags.26?Peer theme_emoticon:flags.27?string requests_pending:flags.28?int recent_requesters:flags.28?Vector default_send_as:flags.29?Peer available_reactions:flags.30?ChatReactions reactions_limit:flags2.13?int stories:flags2.4?PeerStories wallpaper:flags2.7?WallPaper boosts_applied:flags2.8?int boosts_unrestrict:flags2.9?int emojiset:flags2.10?StickerSet = ChatFull;\nchatParticipant#c02d4007 user_id:long inviter_id:long date:int = ChatParticipant;\nchatParticipantCreator#e46bcee4 user_id:long = ChatParticipant;\nchatParticipantAdmin#a0933f5b user_id:long inviter_id:long date:int = ChatParticipant;\nchatParticipantsForbidden#8763d3e1 flags:# chat_id:long self_participant:flags.0?ChatParticipant = ChatParticipants;\nchatParticipants#3cbc93f8 chat_id:long participants:Vector version:int = ChatParticipants;\nchatPhotoEmpty#37c1011c = ChatPhoto;\nchatPhoto#1c6e1c11 flags:# has_video:flags.0?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = ChatPhoto;\nmessageEmpty#90a6ca84 flags:# id:int peer_id:flags.0?Peer = Message;\nmessage#94345242 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true flags2:# offline:flags2.1?true video_processing_pending:flags2.4?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long via_business_bot_id:flags2.0?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector ttl_period:flags.25?int quick_reply_shortcut_id:flags.30?int effect:flags2.2?long factcheck:flags2.3?FactCheck = Message;\nmessageService#2b085862 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction ttl_period:flags.25?int = Message;\nmessageMediaEmpty#3ded6320 = MessageMedia;\nmessageMediaPhoto#695150d7 flags:# spoiler:flags.3?true photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia;\nmessageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia;\nmessageMediaContact#70322949 phone_number:string first_name:string last_name:string vcard:string user_id:long = MessageMedia;\nmessageMediaUnsupported#9f84f49e = MessageMedia;\nmessageMediaDocument#dd570bd5 flags:# nopremium:flags.3?true spoiler:flags.4?true video:flags.6?true round:flags.7?true voice:flags.8?true document:flags.0?Document alt_documents:flags.5?Vector ttl_seconds:flags.2?int = MessageMedia;\nmessageMediaWebPage#ddf10c3b flags:# force_large_media:flags.0?true force_small_media:flags.1?true manual:flags.3?true safe:flags.4?true webpage:WebPage = MessageMedia;\nmessageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia;\nmessageMediaGame#fdb19008 game:Game = MessageMedia;\nmessageMediaInvoice#f6a548d3 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string extended_media:flags.4?MessageExtendedMedia = MessageMedia;\nmessageMediaGeoLive#b940c666 flags:# geo:GeoPoint heading:flags.0?int period:int proximity_notification_radius:flags.1?int = MessageMedia;\nmessageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia;\nmessageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia;\nmessageMediaStory#68cb6283 flags:# via_mention:flags.1?true peer:Peer id:int story:flags.0?StoryItem = MessageMedia;\nmessageMediaGiveaway#aa073beb flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.2?true channels:Vector countries_iso2:flags.1?Vector prize_description:flags.3?string quantity:int months:flags.4?int stars:flags.5?long until_date:int = MessageMedia;\nmessageMediaGiveawayResults#ceaa3ea1 flags:# only_new_subscribers:flags.0?true refunded:flags.2?true channel_id:long additional_peers_count:flags.3?int launch_msg_id:int winners_count:int unclaimed_count:int winners:Vector months:flags.4?int stars:flags.5?long prize_description:flags.1?string until_date:int = MessageMedia;\nmessageMediaPaidMedia#a8852491 stars_amount:long extended_media:Vector = MessageMedia;\nmessageActionEmpty#b6aef7b0 = MessageAction;\nmessageActionChatCreate#bd47cbad title:string users:Vector = MessageAction;\nmessageActionChatEditTitle#b5a1ce5a title:string = MessageAction;\nmessageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction;\nmessageActionChatDeletePhoto#95e3fbef = MessageAction;\nmessageActionChatAddUser#15cefd00 users:Vector = MessageAction;\nmessageActionChatDeleteUser#a43f30cc user_id:long = MessageAction;\nmessageActionChatJoinedByLink#31224c3 inviter_id:long = MessageAction;\nmessageActionChannelCreate#95d2ac92 title:string = MessageAction;\nmessageActionChatMigrateTo#e1037f92 channel_id:long = MessageAction;\nmessageActionChannelMigrateFrom#ea3948e9 title:string chat_id:long = MessageAction;\nmessageActionPinMessage#94bd38ed = MessageAction;\nmessageActionHistoryClear#9fbab604 = MessageAction;\nmessageActionGameScore#92a72876 game_id:long score:int = MessageAction;\nmessageActionPaymentSentMe#8f31b327 flags:# recurring_init:flags.2?true recurring_used:flags.3?true currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction;\nmessageActionPaymentSent#96163f56 flags:# recurring_init:flags.2?true recurring_used:flags.3?true currency:string total_amount:long invoice_slug:flags.0?string = MessageAction;\nmessageActionPhoneCall#80e11a7f flags:# video:flags.2?true call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction;\nmessageActionScreenshotTaken#4792929b = MessageAction;\nmessageActionCustomAction#fae69f56 message:string = MessageAction;\nmessageActionBotAllowed#c516d679 flags:# attach_menu:flags.1?true from_request:flags.3?true domain:flags.0?string app:flags.2?BotApp = MessageAction;\nmessageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction;\nmessageActionSecureValuesSent#d95c6154 types:Vector = MessageAction;\nmessageActionContactSignUp#f3f25f76 = MessageAction;\nmessageActionGeoProximityReached#98e0d697 from_id:Peer to_id:Peer distance:int = MessageAction;\nmessageActionGroupCall#7a0d7f42 flags:# call:InputGroupCall duration:flags.0?int = MessageAction;\nmessageActionInviteToGroupCall#502f92f7 call:InputGroupCall users:Vector = MessageAction;\nmessageActionSetMessagesTTL#3c134d7b flags:# period:int auto_setting_from:flags.0?long = MessageAction;\nmessageActionGroupCallScheduled#b3a07661 call:InputGroupCall schedule_date:int = MessageAction;\nmessageActionSetChatTheme#aa786345 emoticon:string = MessageAction;\nmessageActionChatJoinedByRequest#ebbca3cb = MessageAction;\nmessageActionWebViewDataSentMe#47dd8079 text:string data:string = MessageAction;\nmessageActionWebViewDataSent#b4c38cb5 text:string = MessageAction;\nmessageActionGiftPremium#6c6274fa flags:# currency:string amount:long months:int crypto_currency:flags.0?string crypto_amount:flags.0?long message:flags.1?TextWithEntities = MessageAction;\nmessageActionTopicCreate#d999256 flags:# title:string icon_color:int icon_emoji_id:flags.0?long = MessageAction;\nmessageActionTopicEdit#c0944820 flags:# title:flags.0?string icon_emoji_id:flags.1?long closed:flags.2?Bool hidden:flags.3?Bool = MessageAction;\nmessageActionSuggestProfilePhoto#57de635e photo:Photo = MessageAction;\nmessageActionRequestedPeer#31518e9b button_id:int peers:Vector = MessageAction;\nmessageActionSetChatWallPaper#5060a3f4 flags:# same:flags.0?true for_both:flags.1?true wallpaper:WallPaper = MessageAction;\nmessageActionGiftCode#56d03994 flags:# via_giveaway:flags.0?true unclaimed:flags.2?true boost_peer:flags.1?Peer months:int slug:string currency:flags.2?string amount:flags.2?long crypto_currency:flags.3?string crypto_amount:flags.3?long message:flags.4?TextWithEntities = MessageAction;\nmessageActionGiveawayLaunch#a80f51e4 flags:# stars:flags.0?long = MessageAction;\nmessageActionGiveawayResults#87e2f155 flags:# stars:flags.0?true winners_count:int unclaimed_count:int = MessageAction;\nmessageActionBoostApply#cc02aa6d boosts:int = MessageAction;\nmessageActionRequestedPeerSentMe#93b31848 button_id:int peers:Vector = MessageAction;\nmessageActionPaymentRefunded#41b3e202 flags:# peer:Peer currency:string total_amount:long payload:flags.0?bytes charge:PaymentCharge = MessageAction;\nmessageActionGiftStars#45d5b021 flags:# currency:string amount:long stars:long crypto_currency:flags.0?string crypto_amount:flags.0?long transaction_id:flags.1?string = MessageAction;\nmessageActionPrizeStars#b00c47a2 flags:# unclaimed:flags.0?true stars:long transaction_id:string boost_peer:Peer giveaway_msg_id:int = MessageAction;\nmessageActionStarGift#8557637 flags:# name_hidden:flags.0?true saved:flags.2?true converted:flags.3?true gift:StarGift message:flags.1?TextWithEntities convert_stars:flags.4?long = MessageAction;\ndialog#d58a08c6 flags:# pinned:flags.2?true unread_mark:flags.3?true view_forum_as_messages:flags.6?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int ttl_period:flags.5?int = Dialog;\ndialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog;\nphotoEmpty#2331b22d id:long = Photo;\nphoto#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector video_sizes:flags.1?Vector dc_id:int = Photo;\nphotoSizeEmpty#e17e23c type:string = PhotoSize;\nphotoSize#75c78e60 type:string w:int h:int size:int = PhotoSize;\nphotoCachedSize#21e1ad6 type:string w:int h:int bytes:bytes = PhotoSize;\nphotoStrippedSize#e0b0bc2e type:string bytes:bytes = PhotoSize;\nphotoSizeProgressive#fa3efb95 type:string w:int h:int sizes:Vector = PhotoSize;\nphotoPathSize#d8214d41 type:string bytes:bytes = PhotoSize;\ngeoPointEmpty#1117dd5f = GeoPoint;\ngeoPoint#b2a2f663 flags:# long:double lat:double access_hash:long accuracy_radius:flags.0?int = GeoPoint;\nauth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;\nauth.sentCodeSuccess#2390fe44 authorization:auth.Authorization = auth.SentCode;\nauth.authorization#2ea2c0d4 flags:# setup_password_required:flags.1?true otherwise_relogin_days:flags.1?int tmp_sessions:flags.0?int future_auth_token:flags.2?bytes user:User = auth.Authorization;\nauth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization;\nauth.exportedAuthorization#b434e2b8 id:long bytes:bytes = auth.ExportedAuthorization;\ninputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer;\ninputNotifyUsers#193b4417 = InputNotifyPeer;\ninputNotifyChats#4a95e84e = InputNotifyPeer;\ninputNotifyBroadcasts#b1db7c7e = InputNotifyPeer;\ninputNotifyForumTopic#5c467992 peer:InputPeer top_msg_id:int = InputNotifyPeer;\ninputPeerNotifySettings#cacb6ae2 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_sound:flags.8?NotificationSound = InputPeerNotifySettings;\npeerNotifySettings#99622c0c flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int ios_sound:flags.3?NotificationSound android_sound:flags.4?NotificationSound other_sound:flags.5?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_ios_sound:flags.8?NotificationSound stories_android_sound:flags.9?NotificationSound stories_other_sound:flags.10?NotificationSound = PeerNotifySettings;\npeerSettings#acd66c5e flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true business_bot_paused:flags.11?true business_bot_can_reply:flags.12?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int business_bot_id:flags.13?long business_bot_manage_url:flags.13?string = PeerSettings;\nwallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper;\nwallPaperNoFile#e0804116 id:long flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper;\ninputReportReasonSpam#58dbcab8 = ReportReason;\ninputReportReasonViolence#1e22c78d = ReportReason;\ninputReportReasonPornography#2e59d922 = ReportReason;\ninputReportReasonChildAbuse#adf44ee3 = ReportReason;\ninputReportReasonOther#c1e4a2b1 = ReportReason;\ninputReportReasonCopyright#9b89f93a = ReportReason;\ninputReportReasonGeoIrrelevant#dbd4feed = ReportReason;\ninputReportReasonFake#f5ddd6e7 = ReportReason;\ninputReportReasonIllegalDrugs#a8eb2be = ReportReason;\ninputReportReasonPersonalDetails#9ec7863d = ReportReason;\nuserFull#1f58e369 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int = UserFull;\ncontact#145ade0b user_id:long mutual:Bool = Contact;\nimportedContact#c13e3c50 user_id:long client_id:long = ImportedContact;\ncontactStatus#16d9703b user_id:long status:UserStatus = ContactStatus;\ncontacts.contactsNotModified#b74ba9d2 = contacts.Contacts;\ncontacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts;\ncontacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts;\ncontacts.blocked#ade1591 blocked:Vector chats:Vector users:Vector = contacts.Blocked;\ncontacts.blockedSlice#e1664194 count:int blocked:Vector chats:Vector users:Vector = contacts.Blocked;\nmessages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs;\nmessages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs;\nmessages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs;\nmessages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages;\nmessages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector chats:Vector users:Vector = messages.Messages;\nmessages.channelMessages#c776ba4e flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector topics:Vector chats:Vector users:Vector = messages.Messages;\nmessages.messagesNotModified#74535f21 count:int = messages.Messages;\nmessages.chats#64ff9fd5 chats:Vector = messages.Chats;\nmessages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats;\nmessages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull;\nmessages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;\ninputMessagesFilterEmpty#57e2f66c = MessagesFilter;\ninputMessagesFilterPhotos#9609a51c = MessagesFilter;\ninputMessagesFilterVideo#9fc00e65 = MessagesFilter;\ninputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter;\ninputMessagesFilterDocument#9eddf188 = MessagesFilter;\ninputMessagesFilterUrl#7ef0dd87 = MessagesFilter;\ninputMessagesFilterGif#ffc86587 = MessagesFilter;\ninputMessagesFilterVoice#50f5c392 = MessagesFilter;\ninputMessagesFilterMusic#3751b49e = MessagesFilter;\ninputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter;\ninputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter;\ninputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter;\ninputMessagesFilterRoundVideo#b549da53 = MessagesFilter;\ninputMessagesFilterMyMentions#c1f8e69a = MessagesFilter;\ninputMessagesFilterGeo#e7026d0d = MessagesFilter;\ninputMessagesFilterContacts#e062db83 = MessagesFilter;\ninputMessagesFilterPinned#1bb00451 = MessagesFilter;\nupdateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update;\nupdateMessageID#4e90bfd6 id:int random_id:long = Update;\nupdateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update;\nupdateUserTyping#c01e857f user_id:long action:SendMessageAction = Update;\nupdateChatUserTyping#83487af0 chat_id:long from_id:Peer action:SendMessageAction = Update;\nupdateChatParticipants#7761198 participants:ChatParticipants = Update;\nupdateUserStatus#e5bdf8de user_id:long status:UserStatus = Update;\nupdateUserName#a7848924 user_id:long first_name:string last_name:string usernames:Vector = Update;\nupdateNewAuthorization#8951abef flags:# unconfirmed:flags.0?true hash:long date:flags.0?int device:flags.0?string location:flags.0?string = Update;\nupdateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update;\nupdateEncryptedChatTyping#1710f156 chat_id:int = Update;\nupdateEncryption#b4a2e88d chat:EncryptedChat date:int = Update;\nupdateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update;\nupdateChatParticipantAdd#3dda5451 chat_id:long user_id:long inviter_id:long date:int version:int = Update;\nupdateChatParticipantDelete#e32f3d77 chat_id:long user_id:long version:int = Update;\nupdateDcOptions#8e5e9873 dc_options:Vector = Update;\nupdateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update;\nupdateServiceNotification#ebe46819 flags:# popup:flags.0?true invert_media:flags.2?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update;\nupdatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update;\nupdateUserPhone#5492a13 user_id:long phone:string = Update;\nupdateReadHistoryInbox#9c974fdf flags:# folder_id:flags.0?int peer:Peer max_id:int still_unread_count:int pts:int pts_count:int = Update;\nupdateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update;\nupdateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update;\nupdateReadMessagesContents#f8227181 flags:# messages:Vector pts:int pts_count:int date:flags.0?int = Update;\nupdateChannelTooLong#108d941f flags:# channel_id:long pts:flags.0?int = Update;\nupdateChannel#635b4c09 channel_id:long = Update;\nupdateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update;\nupdateReadChannelInbox#922e6e10 flags:# folder_id:flags.0?int channel_id:long max_id:int still_unread_count:int pts:int = Update;\nupdateDeleteChannelMessages#c32d5b12 channel_id:long messages:Vector pts:int pts_count:int = Update;\nupdateChannelMessageViews#f226ac08 channel_id:long id:int views:int = Update;\nupdateChatParticipantAdmin#d7ca61a2 chat_id:long user_id:long is_admin:Bool version:int = Update;\nupdateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update;\nupdateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true emojis:flags.1?true order:Vector = Update;\nupdateStickerSets#31c24808 flags:# masks:flags.0?true emojis:flags.1?true = Update;\nupdateSavedGifs#9375341e = Update;\nupdateBotInlineQuery#496f379c flags:# query_id:long user_id:long query:string geo:flags.0?GeoPoint peer_type:flags.1?InlineQueryPeerType offset:string = Update;\nupdateBotInlineSend#12f12a07 flags:# user_id:long query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update;\nupdateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update;\nupdateBotCallbackQuery#b9cfc48d flags:# query_id:long user_id:long peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;\nupdateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update;\nupdateInlineBotCallbackQuery#691e9052 flags:# query_id:long user_id:long msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update;\nupdateReadChannelOutbox#b75f99a9 channel_id:long max_id:int = Update;\nupdateDraftMessage#1b49ec6d flags:# peer:Peer top_msg_id:flags.0?int draft:DraftMessage = Update;\nupdateReadFeaturedStickers#571d2742 = Update;\nupdateRecentStickers#9a422c20 = Update;\nupdateConfig#a229dd06 = Update;\nupdatePtsChanged#3354678f = Update;\nupdateChannelWebPage#2f2ba99f channel_id:long webpage:WebPage pts:int pts_count:int = Update;\nupdateDialogPinned#6e6fe51c flags:# pinned:flags.0?true folder_id:flags.1?int peer:DialogPeer = Update;\nupdatePinnedDialogs#fa0f3ca2 flags:# folder_id:flags.1?int order:flags.0?Vector = Update;\nupdateBotWebhookJSON#8317c0c3 data:DataJSON = Update;\nupdateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update;\nupdateBotShippingQuery#b5aefd7d query_id:long user_id:long payload:bytes shipping_address:PostAddress = Update;\nupdateBotPrecheckoutQuery#8caa9a96 flags:# query_id:long user_id:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update;\nupdatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update;\nupdateLangPackTooLong#46560264 lang_code:string = Update;\nupdateLangPack#56022f4d difference:LangPackDifference = Update;\nupdateFavedStickers#e511996d = Update;\nupdateChannelReadMessagesContents#ea29055d flags:# channel_id:long top_msg_id:flags.0?int messages:Vector = Update;\nupdateContactsReset#7084a7be = Update;\nupdateChannelAvailableMessages#b23fc698 channel_id:long available_min_id:int = Update;\nupdateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update;\nupdateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = Update;\nupdateChatDefaultBannedRights#54c01850 peer:Peer default_banned_rights:ChatBannedRights version:int = Update;\nupdateFolderPeers#19360dc0 folder_peers:Vector pts:int pts_count:int = Update;\nupdatePeerSettings#6a7e7366 peer:Peer settings:PeerSettings = Update;\nupdatePeerLocated#b4afcfb0 peers:Vector = Update;\nupdateNewScheduledMessage#39a51dfb message:Message = Update;\nupdateDeleteScheduledMessages#f2a71983 flags:# peer:Peer messages:Vector sent_messages:flags.0?Vector = Update;\nupdateTheme#8216fba3 theme:Theme = Update;\nupdateGeoLiveViewed#871fb939 peer:Peer msg_id:int = Update;\nupdateLoginToken#564fe691 = Update;\nupdateMessagePollVote#24f40e77 poll_id:long peer:Peer options:Vector qts:int = Update;\nupdateDialogFilter#26ffde7d flags:# id:int filter:flags.0?DialogFilter = Update;\nupdateDialogFilterOrder#a5d72105 order:Vector = Update;\nupdateDialogFilters#3504914f = Update;\nupdatePhoneCallSignalingData#2661bf09 phone_call_id:long data:bytes = Update;\nupdateChannelMessageForwards#d29a27f4 channel_id:long id:int forwards:int = Update;\nupdateReadChannelDiscussionInbox#d6b19546 flags:# channel_id:long top_msg_id:int read_max_id:int broadcast_id:flags.0?long broadcast_post:flags.0?int = Update;\nupdateReadChannelDiscussionOutbox#695c9e7c channel_id:long top_msg_id:int read_max_id:int = Update;\nupdatePeerBlocked#ebe07752 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true peer_id:Peer = Update;\nupdateChannelUserTyping#8c88c923 flags:# channel_id:long top_msg_id:flags.0?int from_id:Peer action:SendMessageAction = Update;\nupdatePinnedMessages#ed85eab5 flags:# pinned:flags.0?true peer:Peer messages:Vector pts:int pts_count:int = Update;\nupdatePinnedChannelMessages#5bb98608 flags:# pinned:flags.0?true channel_id:long messages:Vector pts:int pts_count:int = Update;\nupdateChat#f89a6a4e chat_id:long = Update;\nupdateGroupCallParticipants#f2ebdb4e call:InputGroupCall participants:Vector version:int = Update;\nupdateGroupCall#14b24500 chat_id:long call:GroupCall = Update;\nupdatePeerHistoryTTL#bb9bb9a5 flags:# peer:Peer ttl_period:flags.0?int = Update;\nupdateChatParticipant#d087663a flags:# chat_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChatParticipant new_participant:flags.1?ChatParticipant invite:flags.2?ExportedChatInvite qts:int = Update;\nupdateChannelParticipant#985d3abb flags:# via_chatlist:flags.3?true channel_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChannelParticipant new_participant:flags.1?ChannelParticipant invite:flags.2?ExportedChatInvite qts:int = Update;\nupdateBotStopped#c4870a49 user_id:long date:int stopped:Bool qts:int = Update;\nupdateGroupCallConnection#b783982 flags:# presentation:flags.0?true params:DataJSON = Update;\nupdateBotCommands#4d712f2e peer:Peer bot_id:long commands:Vector = Update;\nupdatePendingJoinRequests#7063c3db peer:Peer requests_pending:int recent_requesters:Vector = Update;\nupdateBotChatInviteRequester#11dfa986 peer:Peer date:int user_id:long about:string invite:ExportedChatInvite qts:int = Update;\nupdateMessageReactions#5e1b3cb8 flags:# peer:Peer msg_id:int top_msg_id:flags.0?int reactions:MessageReactions = Update;\nupdateAttachMenuBots#17b7a20b = Update;\nupdateWebViewResultSent#1592b79d query_id:long = Update;\nupdateBotMenuButton#14b85813 bot_id:long button:BotMenuButton = Update;\nupdateSavedRingtones#74d8be99 = Update;\nupdateTranscribedAudio#84cd5a flags:# pending:flags.0?true peer:Peer msg_id:int transcription_id:long text:string = Update;\nupdateReadFeaturedEmojiStickers#fb4c496c = Update;\nupdateUserEmojiStatus#28373599 user_id:long emoji_status:EmojiStatus = Update;\nupdateRecentEmojiStatuses#30f443db = Update;\nupdateRecentReactions#6f7863f4 = Update;\nupdateMoveStickerSetToTop#86fccf85 flags:# masks:flags.0?true emojis:flags.1?true stickerset:long = Update;\nupdateMessageExtendedMedia#d5a41724 peer:Peer msg_id:int extended_media:Vector = Update;\nupdateChannelPinnedTopic#192efbe3 flags:# pinned:flags.0?true channel_id:long topic_id:int = Update;\nupdateChannelPinnedTopics#fe198602 flags:# channel_id:long order:flags.0?Vector = Update;\nupdateUser#20529438 user_id:long = Update;\nupdateAutoSaveSettings#ec05b097 = Update;\nupdateStory#75b3b798 peer:Peer story:StoryItem = Update;\nupdateReadStories#f74e932b peer:Peer max_id:int = Update;\nupdateStoryID#1bf335b9 id:int random_id:long = Update;\nupdateStoriesStealthMode#2c084dc1 stealth_mode:StoriesStealthMode = Update;\nupdateSentStoryReaction#7d627683 peer:Peer story_id:int reaction:Reaction = Update;\nupdateBotChatBoost#904dd49c peer:Peer boost:Boost qts:int = Update;\nupdateChannelViewForumAsMessages#7b68920 channel_id:long enabled:Bool = Update;\nupdatePeerWallpaper#ae3f101d flags:# wallpaper_overridden:flags.1?true peer:Peer wallpaper:flags.0?WallPaper = Update;\nupdateBotMessageReaction#ac21d3ce peer:Peer msg_id:int date:int actor:Peer old_reactions:Vector new_reactions:Vector qts:int = Update;\nupdateBotMessageReactions#9cb7759 peer:Peer msg_id:int date:int reactions:Vector qts:int = Update;\nupdateSavedDialogPinned#aeaf9e74 flags:# pinned:flags.0?true peer:DialogPeer = Update;\nupdatePinnedSavedDialogs#686c85a6 flags:# order:flags.0?Vector = Update;\nupdateSavedReactionTags#39c67432 = Update;\nupdateSmsJob#f16269d4 job_id:string = Update;\nupdateQuickReplies#f9470ab2 quick_replies:Vector = Update;\nupdateNewQuickReply#f53da717 quick_reply:QuickReply = Update;\nupdateDeleteQuickReply#53e6f1ec shortcut_id:int = Update;\nupdateQuickReplyMessage#3e050d0f message:Message = Update;\nupdateDeleteQuickReplyMessages#566fe7cd shortcut_id:int messages:Vector = Update;\nupdateBotBusinessConnect#8ae5c97a connection:BotBusinessConnection qts:int = Update;\nupdateBotNewBusinessMessage#9ddb347c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update;\nupdateBotEditBusinessMessage#7df587c flags:# connection_id:string message:Message reply_to_message:flags.0?Message qts:int = Update;\nupdateBotDeleteBusinessMessage#a02a982e connection_id:string peer:Peer messages:Vector qts:int = Update;\nupdateNewStoryReaction#1824e40b story_id:int peer:Peer reaction:Reaction = Update;\nupdateBroadcastRevenueTransactions#dfd961f5 peer:Peer balances:BroadcastRevenueBalances = Update;\nupdateStarsBalance#fb85198 balance:long = Update;\nupdateBusinessBotCallbackQuery#1ea2fda7 flags:# query_id:long user_id:long connection_id:string message:Message reply_to_message:flags.2?Message chat_instance:long data:flags.0?bytes = Update;\nupdateStarsRevenueStatus#a584b019 peer:Peer status:StarsRevenueStatus = Update;\nupdateBotPurchasedPaidMedia#283bd312 user_id:long payload:string qts:int = Update;\nupdatePaidReactionPrivacy#51ca7aec private:Bool = Update;\nupdateBotSubscriptionExpire#2d13c6ee user_id:long payload:string invoice_slug:string until_date:int qts:int = Update;\nupdates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State;\nupdates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference;\nupdates.difference#f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference;\nupdates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference;\nupdates.differenceTooLong#4afe8f6d pts:int = updates.Difference;\nupdatesTooLong#e317af7e = Updates;\nupdateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector ttl_period:flags.25?int = Updates;\nupdateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector ttl_period:flags.25?int = Updates;\nupdateShort#78d4dec1 update:Update date:int = Updates;\nupdatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates;\nupdates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates;\nupdateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector ttl_period:flags.25?int = Updates;\nphotos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos;\nphotos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos;\nphotos.photo#20212ca8 photo:Photo users:Vector = photos.Photo;\nupload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File;\nupload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File;\ndcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true this_port_only:flags.5?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption;\nconfig#cc1a241e flags:# default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true force_try_ipv6:flags.14?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int channels_read_media_period:int tmp_sessions:flags.0?int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int base_lang_pack_version:flags.2?int reactions_default:flags.15?Reaction autologin_token:flags.16?string = Config;\nnearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc;\nhelp.appUpdate#ccbbce30 flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector document:flags.1?Document url:flags.2?string sticker:flags.3?Document = help.AppUpdate;\nhelp.noAppUpdate#c45a6536 = help.AppUpdate;\nhelp.inviteText#18cb9f78 message:string = help.InviteText;\nencryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat;\nencryptedChatWaiting#66b25953 id:int access_hash:long date:int admin_id:long participant_id:long = EncryptedChat;\nencryptedChatRequested#48f1d94c flags:# folder_id:flags.0?int id:int access_hash:long date:int admin_id:long participant_id:long g_a:bytes = EncryptedChat;\nencryptedChat#61f0d4c7 id:int access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long = EncryptedChat;\nencryptedChatDiscarded#1e1c7c45 flags:# history_deleted:flags.0?true id:int = EncryptedChat;\ninputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat;\nencryptedFileEmpty#c21f497e = EncryptedFile;\nencryptedFile#a8008cd8 id:long access_hash:long size:long dc_id:int key_fingerprint:int = EncryptedFile;\ninputEncryptedFileEmpty#1837c364 = InputEncryptedFile;\ninputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile;\ninputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile;\ninputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile;\nencryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage;\nencryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage;\nmessages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig;\nmessages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig;\nmessages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage;\nmessages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage;\ninputDocumentEmpty#72f0eaae = InputDocument;\ninputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument;\ndocumentEmpty#36f8c871 id:long = Document;\ndocument#8fd4c4d8 flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:long thumbs:flags.0?Vector video_thumbs:flags.1?Vector dc_id:int attributes:Vector = Document;\nhelp.support#17c6b5f6 phone_number:string user:User = help.Support;\nnotifyPeer#9fd40bd8 peer:Peer = NotifyPeer;\nnotifyUsers#b4c83b4c = NotifyPeer;\nnotifyChats#c007cec3 = NotifyPeer;\nnotifyBroadcasts#d612e8ef = NotifyPeer;\nnotifyForumTopic#226e6308 peer:Peer top_msg_id:int = NotifyPeer;\nsendMessageTypingAction#16bf744e = SendMessageAction;\nsendMessageCancelAction#fd5ec8f5 = SendMessageAction;\nsendMessageRecordVideoAction#a187d66f = SendMessageAction;\nsendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction;\nsendMessageRecordAudioAction#d52f73f7 = SendMessageAction;\nsendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction;\nsendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction;\nsendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction;\nsendMessageGeoLocationAction#176f8ba1 = SendMessageAction;\nsendMessageChooseContactAction#628cbc6f = SendMessageAction;\nsendMessageGamePlayAction#dd6a8f48 = SendMessageAction;\nsendMessageRecordRoundAction#88f27fbc = SendMessageAction;\nsendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction;\nspeakingInGroupCallAction#d92c2285 = SendMessageAction;\nsendMessageHistoryImportAction#dbda9246 progress:int = SendMessageAction;\nsendMessageChooseStickerAction#b05ac6b1 = SendMessageAction;\nsendMessageEmojiInteraction#25972bcb emoticon:string msg_id:int interaction:DataJSON = SendMessageAction;\nsendMessageEmojiInteractionSeen#b665902e emoticon:string = SendMessageAction;\ncontacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found;\ninputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey;\ninputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey;\ninputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey;\ninputPrivacyKeyPhoneP2P#db9e70d2 = InputPrivacyKey;\ninputPrivacyKeyForwards#a4dd4c08 = InputPrivacyKey;\ninputPrivacyKeyProfilePhoto#5719bacc = InputPrivacyKey;\ninputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey;\ninputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey;\ninputPrivacyKeyVoiceMessages#aee69d68 = InputPrivacyKey;\ninputPrivacyKeyAbout#3823cc40 = InputPrivacyKey;\ninputPrivacyKeyBirthday#d65a11cc = InputPrivacyKey;\ninputPrivacyKeyStarGiftsAutoSave#e1732341 = InputPrivacyKey;\nprivacyKeyStatusTimestamp#bc2eab30 = PrivacyKey;\nprivacyKeyChatInvite#500e6dfa = PrivacyKey;\nprivacyKeyPhoneCall#3d662b7b = PrivacyKey;\nprivacyKeyPhoneP2P#39491cc8 = PrivacyKey;\nprivacyKeyForwards#69ec56a3 = PrivacyKey;\nprivacyKeyProfilePhoto#96151fed = PrivacyKey;\nprivacyKeyPhoneNumber#d19ae46d = PrivacyKey;\nprivacyKeyAddedByPhone#42ffd42b = PrivacyKey;\nprivacyKeyVoiceMessages#697f414 = PrivacyKey;\nprivacyKeyAbout#a486b761 = PrivacyKey;\nprivacyKeyBirthday#2000a518 = PrivacyKey;\nprivacyKeyStarGiftsAutoSave#2ca4fdf8 = PrivacyKey;\ninputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule;\ninputPrivacyValueAllowAll#184b35ce = InputPrivacyRule;\ninputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule;\ninputPrivacyValueDisallowContacts#ba52007 = InputPrivacyRule;\ninputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule;\ninputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule;\ninputPrivacyValueAllowChatParticipants#840649cf chats:Vector = InputPrivacyRule;\ninputPrivacyValueDisallowChatParticipants#e94f0f86 chats:Vector = InputPrivacyRule;\ninputPrivacyValueAllowCloseFriends#2f453e49 = InputPrivacyRule;\ninputPrivacyValueAllowPremium#77cdc9f1 = InputPrivacyRule;\ninputPrivacyValueAllowBots#5a4fcce5 = InputPrivacyRule;\ninputPrivacyValueDisallowBots#c4e57915 = InputPrivacyRule;\nprivacyValueAllowContacts#fffe1bac = PrivacyRule;\nprivacyValueAllowAll#65427b82 = PrivacyRule;\nprivacyValueAllowUsers#b8905fb2 users:Vector = PrivacyRule;\nprivacyValueDisallowContacts#f888fa1a = PrivacyRule;\nprivacyValueDisallowAll#8b73e763 = PrivacyRule;\nprivacyValueDisallowUsers#e4621141 users:Vector = PrivacyRule;\nprivacyValueAllowChatParticipants#6b134e8e chats:Vector = PrivacyRule;\nprivacyValueDisallowChatParticipants#41c87565 chats:Vector = PrivacyRule;\nprivacyValueAllowCloseFriends#f7e8d89b = PrivacyRule;\nprivacyValueAllowPremium#ece9814b = PrivacyRule;\nprivacyValueAllowBots#21461b5d = PrivacyRule;\nprivacyValueDisallowBots#f6a5f82f = PrivacyRule;\naccount.privacyRules#50a04e45 rules:Vector chats:Vector users:Vector = account.PrivacyRules;\naccountDaysTTL#b8d0afdf days:int = AccountDaysTTL;\ndocumentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute;\ndocumentAttributeAnimated#11b58939 = DocumentAttribute;\ndocumentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute;\ndocumentAttributeVideo#43c57c48 flags:# round_message:flags.0?true supports_streaming:flags.1?true nosound:flags.3?true duration:double w:int h:int preload_prefix_size:flags.2?int video_start_ts:flags.4?double video_codec:flags.5?string = DocumentAttribute;\ndocumentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute;\ndocumentAttributeFilename#15590068 file_name:string = DocumentAttribute;\ndocumentAttributeHasStickers#9801d2f7 = DocumentAttribute;\ndocumentAttributeCustomEmoji#fd149899 flags:# free:flags.0?true text_color:flags.1?true alt:string stickerset:InputStickerSet = DocumentAttribute;\nmessages.stickersNotModified#f1749a22 = messages.Stickers;\nmessages.stickers#30a6ec7e hash:long stickers:Vector = messages.Stickers;\nstickerPack#12b299d4 emoticon:string documents:Vector = StickerPack;\nmessages.allStickersNotModified#e86602c3 = messages.AllStickers;\nmessages.allStickers#cdbbcebb hash:long sets:Vector = messages.AllStickers;\nmessages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages;\nwebPageEmpty#211a1788 flags:# id:long url:flags.0?string = WebPage;\nwebPagePending#b0d13e47 flags:# id:long url:flags.0?string date:int = WebPage;\nwebPage#e89c45b2 flags:# has_large_media:flags.13?true id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector = WebPage;\nwebPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage;\nauthorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?true unconfirmed:flags.5?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization;\naccount.authorizations#4bff8ea0 authorization_ttl_days:int authorizations:Vector = account.Authorizations;\naccount.password#957b50fb flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes pending_reset_date:flags.5?int login_email_pattern:flags.6?string = account.Password;\naccount.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings;\naccount.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings;\nauth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery;\nreceivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage;\nchatInviteExported#a22cbd96 flags:# revoked:flags.0?true permanent:flags.5?true request_needed:flags.6?true link:string admin_id:long date:int start_date:flags.4?int expire_date:flags.1?int usage_limit:flags.2?int usage:flags.3?int requested:flags.7?int subscription_expired:flags.10?int title:flags.8?string subscription_pricing:flags.9?StarsSubscriptionPricing = ExportedChatInvite;\nchatInvitePublicJoinRequests#ed107ab7 = ExportedChatInvite;\nchatInviteAlready#5a686d7c chat:Chat = ChatInvite;\nchatInvite#fe65389d flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true request_needed:flags.6?true verified:flags.7?true scam:flags.8?true fake:flags.9?true can_refulfill_subscription:flags.11?true title:string about:flags.5?string photo:Photo participants_count:int participants:flags.4?Vector color:int subscription_pricing:flags.10?StarsSubscriptionPricing subscription_form_id:flags.12?long = ChatInvite;\nchatInvitePeek#61695cb0 chat:Chat expires:int = ChatInvite;\ninputStickerSetEmpty#ffb62b95 = InputStickerSet;\ninputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet;\ninputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet;\ninputStickerSetAnimatedEmoji#28703c8 = InputStickerSet;\ninputStickerSetDice#e67f520e emoticon:string = InputStickerSet;\ninputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet;\ninputStickerSetPremiumGifts#c88b3b02 = InputStickerSet;\ninputStickerSetEmojiGenericAnimations#4c4d4ce = InputStickerSet;\ninputStickerSetEmojiDefaultStatuses#29d0f5ee = InputStickerSet;\ninputStickerSetEmojiDefaultTopicIcons#44c1f8e9 = InputStickerSet;\ninputStickerSetEmojiChannelDefaultStatuses#49748553 = InputStickerSet;\nstickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true emojis:flags.7?true text_color:flags.9?true channel_emoji_status:flags.10?true creator:flags.11?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet;\nmessages.stickerSet#6e153f16 set:StickerSet packs:Vector keywords:Vector documents:Vector = messages.StickerSet;\nmessages.stickerSetNotModified#d3f924eb = messages.StickerSet;\nbotCommand#c27ac8c7 command:string description:string = BotCommand;\nbotInfo#36607333 flags:# has_preview_medias:flags.6?true user_id:flags.0?long description:flags.1?string description_photo:flags.4?Photo description_document:flags.5?Document commands:flags.2?Vector menu_button:flags.3?BotMenuButton privacy_policy_url:flags.7?string app_settings:flags.8?BotAppSettings = BotInfo;\nkeyboardButton#a2fa4880 text:string = KeyboardButton;\nkeyboardButtonUrl#258aff05 text:string url:string = KeyboardButton;\nkeyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;\nkeyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton;\nkeyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton;\nkeyboardButtonSwitchInline#93b9fbb5 flags:# same_peer:flags.0?true text:string query:string peer_types:flags.1?Vector = KeyboardButton;\nkeyboardButtonGame#50f41ccf text:string = KeyboardButton;\nkeyboardButtonBuy#afd93fbb text:string = KeyboardButton;\nkeyboardButtonUrlAuth#10b78d29 flags:# text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton;\ninputKeyboardButtonUrlAuth#d02e7fd4 flags:# request_write_access:flags.0?true text:string fwd_text:flags.1?string url:string bot:InputUser = KeyboardButton;\nkeyboardButtonRequestPoll#bbc7515d flags:# quiz:flags.0?Bool text:string = KeyboardButton;\ninputKeyboardButtonUserProfile#e988037b text:string user_id:InputUser = KeyboardButton;\nkeyboardButtonUserProfile#308660c1 text:string user_id:long = KeyboardButton;\nkeyboardButtonWebView#13767230 text:string url:string = KeyboardButton;\nkeyboardButtonSimpleWebView#a0c0505c text:string url:string = KeyboardButton;\nkeyboardButtonRequestPeer#53d7bfd8 text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton;\ninputKeyboardButtonRequestPeer#c9662d05 flags:# name_requested:flags.0?true username_requested:flags.1?true photo_requested:flags.2?true text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButton;\nkeyboardButtonCopy#75d2698e text:string copy_text:string = KeyboardButton;\nkeyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow;\nreplyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup;\nreplyKeyboardForceReply#86b40b08 flags:# single_use:flags.1?true selective:flags.2?true placeholder:flags.3?string = ReplyMarkup;\nreplyKeyboardMarkup#85dd99d1 flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true persistent:flags.4?true rows:Vector placeholder:flags.3?string = ReplyMarkup;\nreplyInlineMarkup#48a30254 rows:Vector = ReplyMarkup;\nmessageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity;\nmessageEntityMention#fa04579d offset:int length:int = MessageEntity;\nmessageEntityHashtag#6f635b0d offset:int length:int = MessageEntity;\nmessageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity;\nmessageEntityUrl#6ed02538 offset:int length:int = MessageEntity;\nmessageEntityEmail#64e475c2 offset:int length:int = MessageEntity;\nmessageEntityBold#bd610bc9 offset:int length:int = MessageEntity;\nmessageEntityItalic#826f8b60 offset:int length:int = MessageEntity;\nmessageEntityCode#28a20571 offset:int length:int = MessageEntity;\nmessageEntityPre#73924be0 offset:int length:int language:string = MessageEntity;\nmessageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity;\nmessageEntityMentionName#dc7b1140 offset:int length:int user_id:long = MessageEntity;\ninputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity;\nmessageEntityPhone#9b69e34b offset:int length:int = MessageEntity;\nmessageEntityCashtag#4c4e743f offset:int length:int = MessageEntity;\nmessageEntityUnderline#9c4e7e8b offset:int length:int = MessageEntity;\nmessageEntityStrike#bf0693d4 offset:int length:int = MessageEntity;\nmessageEntityBankCard#761e6af4 offset:int length:int = MessageEntity;\nmessageEntitySpoiler#32ca960f offset:int length:int = MessageEntity;\nmessageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity;\nmessageEntityBlockquote#f1ccaaac flags:# collapsed:flags.0?true offset:int length:int = MessageEntity;\ninputChannelEmpty#ee8c1e86 = InputChannel;\ninputChannel#f35aec28 channel_id:long access_hash:long = InputChannel;\ninputChannelFromMessage#5b934f9d peer:InputPeer msg_id:int channel_id:long = InputChannel;\ncontacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer;\nmessageRange#ae30253 min_id:int max_id:int = MessageRange;\nupdates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference;\nupdates.channelDifferenceTooLong#a4bcc6fe flags:# final:flags.0?true timeout:flags.1?int dialog:Dialog messages:Vector chats:Vector users:Vector = updates.ChannelDifference;\nupdates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference;\nchannelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter;\nchannelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter;\nchannelParticipant#cb397619 flags:# user_id:long date:int subscription_until_date:flags.0?int = ChannelParticipant;\nchannelParticipantSelf#4f607bef flags:# via_request:flags.0?true user_id:long inviter_id:long date:int subscription_until_date:flags.1?int = ChannelParticipant;\nchannelParticipantCreator#2fe601d3 flags:# user_id:long admin_rights:ChatAdminRights rank:flags.0?string = ChannelParticipant;\nchannelParticipantAdmin#34c3bb53 flags:# can_edit:flags.0?true self:flags.1?true user_id:long inviter_id:flags.1?long promoted_by:long date:int admin_rights:ChatAdminRights rank:flags.2?string = ChannelParticipant;\nchannelParticipantBanned#6df8014e flags:# left:flags.0?true peer:Peer kicked_by:long date:int banned_rights:ChatBannedRights = ChannelParticipant;\nchannelParticipantLeft#1b03f006 peer:Peer = ChannelParticipant;\nchannelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter;\nchannelParticipantsAdmins#b4608969 = ChannelParticipantsFilter;\nchannelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter;\nchannelParticipantsBots#b0d1865b = ChannelParticipantsFilter;\nchannelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter;\nchannelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter;\nchannelParticipantsContacts#bb6ae88d q:string = ChannelParticipantsFilter;\nchannelParticipantsMentions#e04b5ceb flags:# q:flags.0?string top_msg_id:flags.1?int = ChannelParticipantsFilter;\nchannels.channelParticipants#9ab0feaf count:int participants:Vector chats:Vector users:Vector = channels.ChannelParticipants;\nchannels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants;\nchannels.channelParticipant#dfb80317 participant:ChannelParticipant chats:Vector users:Vector = channels.ChannelParticipant;\nhelp.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService;\nmessages.savedGifsNotModified#e8025ca2 = messages.SavedGifs;\nmessages.savedGifs#84a02a0d hash:long gifs:Vector = messages.SavedGifs;\ninputBotInlineMessageMediaAuto#3380c786 flags:# invert_media:flags.3?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;\ninputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true invert_media:flags.3?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;\ninputBotInlineMessageMediaGeo#96929a85 flags:# geo_point:InputGeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;\ninputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;\ninputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;\ninputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;\ninputBotInlineMessageMediaInvoice#d7e78225 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;\ninputBotInlineMessageMediaWebPage#bddcc510 flags:# invert_media:flags.3?true force_large_media:flags.4?true force_small_media:flags.5?true optional:flags.6?true message:string entities:flags.1?Vector url:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage;\ninputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult;\ninputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult;\ninputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult;\ninputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult;\nbotInlineMessageMediaAuto#764cf810 flags:# invert_media:flags.3?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage;\nbotInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true invert_media:flags.3?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage;\nbotInlineMessageMediaGeo#51846fd flags:# geo:GeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = BotInlineMessage;\nbotInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage;\nbotInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage;\nbotInlineMessageMediaInvoice#354a9b09 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument currency:string total_amount:long reply_markup:flags.2?ReplyMarkup = BotInlineMessage;\nbotInlineMessageMediaWebPage#809ad9a6 flags:# invert_media:flags.3?true force_large_media:flags.4?true force_small_media:flags.5?true manual:flags.7?true safe:flags.8?true message:string entities:flags.1?Vector url:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage;\nbotInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult;\nbotInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult;\nmessages.botResults#e021f2f6 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM switch_webview:flags.3?InlineBotWebView results:Vector cache_time:int users:Vector = messages.BotResults;\nexportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink;\nmessageFwdHeader#4e4df4bb flags:# imported:flags.7?true saved_out:flags.11?true from_id:flags.0?Peer from_name:flags.5?string date:int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int saved_from_id:flags.8?Peer saved_from_name:flags.9?string saved_date:flags.10?int psa_type:flags.6?string = MessageFwdHeader;\nauth.codeTypeSms#72a3158c = auth.CodeType;\nauth.codeTypeCall#741cd3e3 = auth.CodeType;\nauth.codeTypeFlashCall#226ccefb = auth.CodeType;\nauth.codeTypeMissedCall#d61ad6ee = auth.CodeType;\nauth.codeTypeFragmentSms#6ed998c = auth.CodeType;\nauth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType;\nauth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType;\nauth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType;\nauth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType;\nauth.sentCodeTypeMissedCall#82006484 prefix:string length:int = auth.SentCodeType;\nauth.sentCodeTypeEmailCode#f450f59b flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true email_pattern:string length:int reset_available_period:flags.3?int reset_pending_date:flags.4?int = auth.SentCodeType;\nauth.sentCodeTypeSetUpEmailRequired#a5491dea flags:# apple_signin_allowed:flags.0?true google_signin_allowed:flags.1?true = auth.SentCodeType;\nauth.sentCodeTypeFragmentSms#d9565c39 url:string length:int = auth.SentCodeType;\nauth.sentCodeTypeFirebaseSms#9fd736 flags:# nonce:flags.0?bytes play_integrity_project_id:flags.2?long play_integrity_nonce:flags.2?bytes receipt:flags.1?string push_timeout:flags.1?int length:int = auth.SentCodeType;\nauth.sentCodeTypeSmsWord#a416ac81 flags:# beginning:flags.0?string = auth.SentCodeType;\nauth.sentCodeTypeSmsPhrase#b37794af flags:# beginning:flags.0?string = auth.SentCodeType;\nmessages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer;\nmessages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData;\ninputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID;\ninputBotInlineMessageID64#b6d915d7 dc_id:int owner_id:long id:int access_hash:long = InputBotInlineMessageID;\ninlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM;\nmessages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs;\ntopPeer#edcdc05b peer:Peer rating:double = TopPeer;\ntopPeerCategoryBotsPM#ab661b5b = TopPeerCategory;\ntopPeerCategoryBotsInline#148677e2 = TopPeerCategory;\ntopPeerCategoryCorrespondents#637b7ed = TopPeerCategory;\ntopPeerCategoryGroups#bd17a14a = TopPeerCategory;\ntopPeerCategoryChannels#161d9628 = TopPeerCategory;\ntopPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory;\ntopPeerCategoryForwardUsers#a8406ca9 = TopPeerCategory;\ntopPeerCategoryForwardChats#fbeec0f0 = TopPeerCategory;\ntopPeerCategoryBotsApp#fd9e7bec = TopPeerCategory;\ntopPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers;\ncontacts.topPeersNotModified#de266ef5 = contacts.TopPeers;\ncontacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers;\ncontacts.topPeersDisabled#b52c939d = contacts.TopPeers;\ndraftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage;\ndraftMessage#2d65321f flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo message:string entities:flags.3?Vector media:flags.5?InputMedia date:int effect:flags.7?long = DraftMessage;\nmessages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers;\nmessages.featuredStickers#be382906 flags:# premium:flags.0?true hash:long count:int sets:Vector unread:Vector = messages.FeaturedStickers;\nmessages.recentStickersNotModified#b17f890 = messages.RecentStickers;\nmessages.recentStickers#88d37c56 hash:long packs:Vector stickers:Vector dates:Vector = messages.RecentStickers;\nmessages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers;\nmessages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult;\nmessages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult;\nstickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered;\nstickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered;\nstickerSetFullCovered#40d13c0e set:StickerSet packs:Vector keywords:Vector documents:Vector = StickerSetCovered;\nstickerSetNoCovered#77b15d1c set:StickerSet = StickerSetCovered;\nmaskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords;\ninputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia;\ninputStickeredMediaDocument#438865b id:InputDocument = InputStickeredMedia;\ngame#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game;\ninputGameID#32c3e77 id:long access_hash:long = InputGame;\ninputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame;\nhighScore#73a379eb pos:int user_id:long score:int = HighScore;\nmessages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores;\ntextEmpty#dc3d824f = RichText;\ntextPlain#744694e0 text:string = RichText;\ntextBold#6724abc4 text:RichText = RichText;\ntextItalic#d912a59c text:RichText = RichText;\ntextUnderline#c12622c4 text:RichText = RichText;\ntextStrike#9bf8bb95 text:RichText = RichText;\ntextFixed#6c3f19b9 text:RichText = RichText;\ntextUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText;\ntextEmail#de5a0dd6 text:RichText email:string = RichText;\ntextConcat#7e6260d7 texts:Vector = RichText;\ntextSubscript#ed6a8504 text:RichText = RichText;\ntextSuperscript#c7fb5e01 text:RichText = RichText;\ntextMarked#34b8621 text:RichText = RichText;\ntextPhone#1ccb966a text:RichText phone:string = RichText;\ntextImage#81ccf4f document_id:long w:int h:int = RichText;\ntextAnchor#35553762 text:RichText name:string = RichText;\npageBlockUnsupported#13567e8a = PageBlock;\npageBlockTitle#70abc3fd text:RichText = PageBlock;\npageBlockSubtitle#8ffa9a1f text:RichText = PageBlock;\npageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock;\npageBlockHeader#bfd064ec text:RichText = PageBlock;\npageBlockSubheader#f12bb6e1 text:RichText = PageBlock;\npageBlockParagraph#467a0766 text:RichText = PageBlock;\npageBlockPreformatted#c070d93e text:RichText language:string = PageBlock;\npageBlockFooter#48870999 text:RichText = PageBlock;\npageBlockDivider#db20b188 = PageBlock;\npageBlockAnchor#ce0d37b0 name:string = PageBlock;\npageBlockList#e4e88011 items:Vector = PageBlock;\npageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock;\npageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock;\npageBlockPhoto#1759c560 flags:# photo_id:long caption:PageCaption url:flags.0?string webpage_id:flags.0?long = PageBlock;\npageBlockVideo#7c8fe7b6 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:PageCaption = PageBlock;\npageBlockCover#39f23300 cover:PageBlock = PageBlock;\npageBlockEmbed#a8718dc5 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:flags.5?int h:flags.5?int caption:PageCaption = PageBlock;\npageBlockEmbedPost#f259a80b url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:PageCaption = PageBlock;\npageBlockCollage#65a0fa4d items:Vector caption:PageCaption = PageBlock;\npageBlockSlideshow#31f9590 items:Vector caption:PageCaption = PageBlock;\npageBlockChannel#ef1751b5 channel:Chat = PageBlock;\npageBlockAudio#804361ea audio_id:long caption:PageCaption = PageBlock;\npageBlockKicker#1e148390 text:RichText = PageBlock;\npageBlockTable#bf4dea82 flags:# bordered:flags.0?true striped:flags.1?true title:RichText rows:Vector = PageBlock;\npageBlockOrderedList#9a8ae1e1 items:Vector = PageBlock;\npageBlockDetails#76768bed flags:# open:flags.0?true blocks:Vector title:RichText = PageBlock;\npageBlockRelatedArticles#16115a96 title:RichText articles:Vector = PageBlock;\npageBlockMap#a44f3ef6 geo:GeoPoint zoom:int w:int h:int caption:PageCaption = PageBlock;\nphoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason;\nphoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason;\nphoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason;\nphoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason;\ndataJSON#7d748d04 data:string = DataJSON;\nlabeledPrice#cb296bf8 label:string amount:long = LabeledPrice;\ninvoice#49ee584 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true recurring:flags.9?true currency:string prices:Vector max_tip_amount:flags.8?long suggested_tip_amounts:flags.8?Vector terms_url:flags.10?string subscription_period:flags.11?int = Invoice;\npaymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge;\npostAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress;\npaymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo;\npaymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials;\nwebDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument;\nwebDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument;\ninputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument;\ninputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation;\ninputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation;\ninputWebFileAudioAlbumThumbLocation#f46fe924 flags:# small:flags.2?true document:flags.0?InputDocument title:flags.1?string performer:flags.1?string = InputWebFileLocation;\nupload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile;\npayments.paymentForm#a0058751 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON additional_methods:flags.6?Vector saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?Vector users:Vector = payments.PaymentForm;\npayments.paymentFormStars#7bf6b15c flags:# form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice users:Vector = payments.PaymentForm;\npayments.paymentFormStarGift#b425cfe1 form_id:long invoice:Invoice = payments.PaymentForm;\npayments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo;\npayments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult;\npayments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult;\npayments.paymentReceipt#70c4fe03 flags:# date:int bot_id:long provider_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption tip_amount:flags.3?long currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt;\npayments.paymentReceiptStars#dabbf83a flags:# date:int bot_id:long title:string description:string photo:flags.2?WebDocument invoice:Invoice currency:string total_amount:long transaction_id:string users:Vector = payments.PaymentReceipt;\npayments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo;\ninputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials;\ninputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials;\ninputPaymentCredentialsApplePay#aa1c39f payment_data:DataJSON = InputPaymentCredentials;\ninputPaymentCredentialsGooglePay#8ac32801 payment_token:DataJSON = InputPaymentCredentials;\naccount.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword;\nshippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption;\ninputStickerSetItem#32da9e9c flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords keywords:flags.1?string = InputStickerSetItem;\ninputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall;\nphoneCallEmpty#5366c915 id:long = PhoneCall;\nphoneCallWaiting#c5226f17 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall;\nphoneCallRequested#14b0ed0c flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall;\nphoneCallAccepted#3660c311 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_b:bytes protocol:PhoneCallProtocol = PhoneCall;\nphoneCall#30535af5 flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:long participant_id:long g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int custom_parameters:flags.7?DataJSON = PhoneCall;\nphoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall;\nphoneConnection#9cc123c7 flags:# tcp:flags.0?true id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection;\nphoneConnectionWebrtc#635fe375 flags:# turn:flags.0?true stun:flags.1?true id:long ip:string ipv6:string port:int username:string password:string = PhoneConnection;\nphoneCallProtocol#fc878fc8 flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int library_versions:Vector = PhoneCallProtocol;\nphone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall;\nupload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile;\nupload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile;\ncdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey;\ncdnConfig#5725e40a public_keys:Vector = CdnConfig;\nlangPackString#cad181f6 key:string value:string = LangPackString;\nlangPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString;\nlangPackStringDeleted#2979eeb2 key:string = LangPackString;\nlangPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference;\nlangPackLanguage#eeca5ce3 flags:# official:flags.0?true rtl:flags.2?true beta:flags.3?true name:string native_name:string lang_code:string base_lang_code:flags.1?string plural_code:string strings_count:int translated_count:int translations_url:string = LangPackLanguage;\nchannelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangePhoto#434bd2af prev_photo:Photo new_photo:Photo = ChannelAdminLogEventAction;\nchannelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction;\nchannelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction;\nchannelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction;\nchannelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction;\nchannelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction;\nchannelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction;\nchannelAdminLogEventActionDefaultBannedRights#2df5fc0a prev_banned_rights:ChatBannedRights new_banned_rights:ChatBannedRights = ChannelAdminLogEventAction;\nchannelAdminLogEventActionStopPoll#8f079643 message:Message = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeLinkedChat#50c7ac8 prev_value:long new_value:long = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeLocation#e6b76ae prev_value:ChannelLocation new_value:ChannelLocation = ChannelAdminLogEventAction;\nchannelAdminLogEventActionToggleSlowMode#53909779 prev_value:int new_value:int = ChannelAdminLogEventAction;\nchannelAdminLogEventActionStartGroupCall#23209745 call:InputGroupCall = ChannelAdminLogEventAction;\nchannelAdminLogEventActionDiscardGroupCall#db9f9140 call:InputGroupCall = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantMute#f92424d2 participant:GroupCallParticipant = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantUnmute#e64429c0 participant:GroupCallParticipant = ChannelAdminLogEventAction;\nchannelAdminLogEventActionToggleGroupCallSetting#56d6a247 join_muted:Bool = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantJoinByInvite#fe9fc158 flags:# via_chatlist:flags.0?true invite:ExportedChatInvite = ChannelAdminLogEventAction;\nchannelAdminLogEventActionExportedInviteDelete#5a50fca4 invite:ExportedChatInvite = ChannelAdminLogEventAction;\nchannelAdminLogEventActionExportedInviteRevoke#410a134e invite:ExportedChatInvite = ChannelAdminLogEventAction;\nchannelAdminLogEventActionExportedInviteEdit#e90ebb59 prev_invite:ExportedChatInvite new_invite:ExportedChatInvite = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantVolume#3e7f6847 participant:GroupCallParticipant = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeHistoryTTL#6e941a38 prev_value:int new_value:int = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantJoinByRequest#afb6144a invite:ExportedChatInvite approved_by:long = ChannelAdminLogEventAction;\nchannelAdminLogEventActionToggleNoForwards#cb2ac766 new_value:Bool = ChannelAdminLogEventAction;\nchannelAdminLogEventActionSendMessage#278f2868 message:Message = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeAvailableReactions#be4e0ef8 prev_value:ChatReactions new_value:ChatReactions = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeUsernames#f04fb3a9 prev_value:Vector new_value:Vector = ChannelAdminLogEventAction;\nchannelAdminLogEventActionToggleForum#2cc6383 new_value:Bool = ChannelAdminLogEventAction;\nchannelAdminLogEventActionCreateTopic#58707d28 topic:ForumTopic = ChannelAdminLogEventAction;\nchannelAdminLogEventActionEditTopic#f06fe208 prev_topic:ForumTopic new_topic:ForumTopic = ChannelAdminLogEventAction;\nchannelAdminLogEventActionDeleteTopic#ae168909 topic:ForumTopic = ChannelAdminLogEventAction;\nchannelAdminLogEventActionPinTopic#5d8d353b flags:# prev_topic:flags.0?ForumTopic new_topic:flags.1?ForumTopic = ChannelAdminLogEventAction;\nchannelAdminLogEventActionToggleAntiSpam#64f36dfc new_value:Bool = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangePeerColor#5796e780 prev_value:PeerColor new_value:PeerColor = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeProfilePeerColor#5e477b25 prev_value:PeerColor new_value:PeerColor = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeWallpaper#31bb5d52 prev_value:WallPaper new_value:WallPaper = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeEmojiStatus#3ea9feb1 prev_value:EmojiStatus new_value:EmojiStatus = ChannelAdminLogEventAction;\nchannelAdminLogEventActionChangeEmojiStickerSet#46d840ab prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction;\nchannelAdminLogEventActionToggleSignatureProfiles#60a79c79 new_value:Bool = ChannelAdminLogEventAction;\nchannelAdminLogEventActionParticipantSubExtend#64642db3 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction;\nchannelAdminLogEvent#1fad68cd id:long date:int user_id:long action:ChannelAdminLogEventAction = ChannelAdminLogEvent;\nchannels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults;\nchannelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true group_call:flags.14?true invites:flags.15?true send:flags.16?true forums:flags.17?true sub_extend:flags.18?true = ChannelAdminLogEventsFilter;\npopularContact#5ce14175 client_id:long importers:int = PopularContact;\nmessages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers;\nmessages.favedStickers#2cb51097 hash:long packs:Vector stickers:Vector = messages.FavedStickers;\nrecentMeUrlUnknown#46e1d13d url:string = RecentMeUrl;\nrecentMeUrlUser#b92c09e2 url:string user_id:long = RecentMeUrl;\nrecentMeUrlChat#b2da71d2 url:string chat_id:long = RecentMeUrl;\nrecentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl;\nrecentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl;\nhelp.recentMeUrls#e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls;\ninputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia;\nwebAuthorization#a6f8f452 hash:long bot_id:long domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization;\naccount.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations;\ninputMessageID#a676a322 id:int = InputMessage;\ninputMessageReplyTo#bad88395 id:int = InputMessage;\ninputMessagePinned#86872538 = InputMessage;\ninputMessageCallbackQuery#acfa1a7e id:int query_id:long = InputMessage;\ninputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer;\ninputDialogPeerFolder#64600527 folder_id:int = InputDialogPeer;\ndialogPeer#e56dbf05 peer:Peer = DialogPeer;\ndialogPeerFolder#514519e2 folder_id:int = DialogPeer;\nmessages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;\nmessages.foundStickerSets#8af09dd2 hash:long sets:Vector = messages.FoundStickerSets;\nfileHash#f39b035c offset:long limit:int hash:bytes = FileHash;\ninputClientProxy#75588b3f address:string port:int = InputClientProxy;\nhelp.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate;\nhelp.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate;\ninputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile;\ninputSecureFile#5367e5be id:long access_hash:long = InputSecureFile;\nsecureFileEmpty#64199744 = SecureFile;\nsecureFile#7d09c27e id:long access_hash:long size:long dc_id:int date:int file_hash:bytes secret:bytes = SecureFile;\nsecureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData;\nsecurePlainPhone#7d6099dd phone:string = SecurePlainData;\nsecurePlainEmail#21ec5a5f email:string = SecurePlainData;\nsecureValueTypePersonalDetails#9d2a81e3 = SecureValueType;\nsecureValueTypePassport#3dac6a00 = SecureValueType;\nsecureValueTypeDriverLicense#6e425c4 = SecureValueType;\nsecureValueTypeIdentityCard#a0d0744b = SecureValueType;\nsecureValueTypeInternalPassport#99a48f23 = SecureValueType;\nsecureValueTypeAddress#cbe31e26 = SecureValueType;\nsecureValueTypeUtilityBill#fc36954e = SecureValueType;\nsecureValueTypeBankStatement#89137c0d = SecureValueType;\nsecureValueTypeRentalAgreement#8b883488 = SecureValueType;\nsecureValueTypePassportRegistration#99e3806a = SecureValueType;\nsecureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType;\nsecureValueTypePhone#b320aadb = SecureValueType;\nsecureValueTypeEmail#8e3ca7ee = SecureValueType;\nsecureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue;\ninputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue;\nsecureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash;\nsecureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError;\nsecureValueErrorFrontSide#be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError;\nsecureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError;\nsecureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError;\nsecureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError;\nsecureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError;\nsecureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError;\nsecureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError;\nsecureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError;\nsecureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted;\naccount.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm;\naccount.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode;\nhelp.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo;\nhelp.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo;\nsavedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact;\naccount.takeout#4dba4501 id:long = account.Takeout;\npasswordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo;\npasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo;\nsecurePasswordKdfAlgoUnknown#4a8537 = SecurePasswordKdfAlgo;\nsecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo;\nsecurePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo;\nsecureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings;\ninputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP;\ninputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP;\nsecureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType;\nsecureRequiredTypeOneOf#27477b4 types:Vector = SecureRequiredType;\nhelp.passportConfigNotModified#bfb9f457 = help.PassportConfig;\nhelp.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig;\ninputAppEvent#1d1b1245 time:double type:string peer:long data:JSONValue = InputAppEvent;\njsonObjectValue#c0de1bd9 key:string value:JSONValue = JSONObjectValue;\njsonNull#3f6d7b68 = JSONValue;\njsonBool#c7345e6a value:Bool = JSONValue;\njsonNumber#2be0dfa4 value:double = JSONValue;\njsonString#b71e767a value:string = JSONValue;\njsonArray#f7444763 value:Vector = JSONValue;\njsonObject#99c1d49d value:Vector = JSONValue;\npageTableCell#34566b6a flags:# header:flags.0?true align_center:flags.3?true align_right:flags.4?true valign_middle:flags.5?true valign_bottom:flags.6?true text:flags.7?RichText colspan:flags.1?int rowspan:flags.2?int = PageTableCell;\npageTableRow#e0c0c5e5 cells:Vector = PageTableRow;\npageCaption#6f747657 text:RichText credit:RichText = PageCaption;\npageListItemText#b92fb6cd text:RichText = PageListItem;\npageListItemBlocks#25e073fc blocks:Vector = PageListItem;\npageListOrderedItemText#5e068047 num:string text:RichText = PageListOrderedItem;\npageListOrderedItemBlocks#98dd8936 num:string blocks:Vector = PageListOrderedItem;\npageRelatedArticle#b390dc08 flags:# url:string webpage_id:long title:flags.0?string description:flags.1?string photo_id:flags.2?long author:flags.3?string published_date:flags.4?int = PageRelatedArticle;\npage#98657f0d flags:# part:flags.0?true rtl:flags.1?true v2:flags.2?true url:string blocks:Vector photos:Vector documents:Vector views:flags.3?int = Page;\nhelp.supportName#8c05f1c9 name:string = help.SupportName;\nhelp.userInfoEmpty#f3ae2eed = help.UserInfo;\nhelp.userInfo#1eb3758 message:string entities:Vector author:string date:int = help.UserInfo;\npollAnswer#ff16e2ca text:TextWithEntities option:bytes = PollAnswer;\npoll#58747131 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:TextWithEntities answers:Vector close_period:flags.4?int close_date:flags.5?int = Poll;\npollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters;\npollResults#7adf2420 flags:# min:flags.0?true results:flags.1?Vector total_voters:flags.2?int recent_voters:flags.3?Vector solution:flags.4?string solution_entities:flags.4?Vector = PollResults;\nchatOnlines#f041e250 onlines:int = ChatOnlines;\nstatsURL#47a971e0 url:string = StatsURL;\nchatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true anonymous:flags.10?true manage_call:flags.11?true other:flags.12?true manage_topics:flags.13?true post_stories:flags.14?true edit_stories:flags.15?true delete_stories:flags.16?true = ChatAdminRights;\nchatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true manage_topics:flags.18?true send_photos:flags.19?true send_videos:flags.20?true send_roundvideos:flags.21?true send_audios:flags.22?true send_voices:flags.23?true send_docs:flags.24?true send_plain:flags.25?true until_date:int = ChatBannedRights;\ninputWallPaper#e630b979 id:long access_hash:long = InputWallPaper;\ninputWallPaperSlug#72091c80 slug:string = InputWallPaper;\ninputWallPaperNoFile#967a462e id:long = InputWallPaper;\naccount.wallPapersNotModified#1c199183 = account.WallPapers;\naccount.wallPapers#cdc3858c hash:long wallpapers:Vector = account.WallPapers;\ncodeSettings#ad253d78 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true allow_missed_call:flags.5?true allow_firebase:flags.7?true unknown_number:flags.9?true logout_tokens:flags.6?Vector token:flags.8?string app_sandbox:flags.8?Bool = CodeSettings;\nwallPaperSettings#372efcd0 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?int intensity:flags.3?int rotation:flags.4?int emoticon:flags.7?string = WallPaperSettings;\nautoDownloadSettings#baa57628 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true stories_preload:flags.4?true photo_size_max:int video_size_max:long file_size_max:long video_upload_maxbitrate:int small_queue_active_operations_max:int large_queue_active_operations_max:int = AutoDownloadSettings;\naccount.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings;\nemojiKeyword#d5b3b9f9 keyword:string emoticons:Vector = EmojiKeyword;\nemojiKeywordDeleted#236df622 keyword:string emoticons:Vector = EmojiKeyword;\nemojiKeywordsDifference#5cc761bd lang_code:string from_version:int version:int keywords:Vector = EmojiKeywordsDifference;\nemojiURL#a575739d url:string = EmojiURL;\nemojiLanguage#b3fb5361 lang_code:string = EmojiLanguage;\nfolder#ff544e65 flags:# autofill_new_broadcasts:flags.0?true autofill_public_groups:flags.1?true autofill_new_correspondents:flags.2?true id:int title:string photo:flags.3?ChatPhoto = Folder;\ninputFolderPeer#fbd2c296 peer:InputPeer folder_id:int = InputFolderPeer;\nfolderPeer#e9baa668 peer:Peer folder_id:int = FolderPeer;\nmessages.searchCounter#e844ebff flags:# inexact:flags.1?true filter:MessagesFilter count:int = messages.SearchCounter;\nurlAuthResultRequest#92d33a0e flags:# request_write_access:flags.0?true bot:User domain:string = UrlAuthResult;\nurlAuthResultAccepted#8f8c0e4e url:string = UrlAuthResult;\nurlAuthResultDefault#a9d6db1f = UrlAuthResult;\nchannelLocationEmpty#bfb5ad8b = ChannelLocation;\nchannelLocation#209b82db geo_point:GeoPoint address:string = ChannelLocation;\npeerLocated#ca461b5d peer:Peer expires:int distance:int = PeerLocated;\npeerSelfLocated#f8ec284b expires:int = PeerLocated;\nrestrictionReason#d072acb4 platform:string reason:string text:string = RestrictionReason;\ninputTheme#3c5693e9 id:long access_hash:long = InputTheme;\ninputThemeSlug#f5890df1 slug:string = InputTheme;\ntheme#a00e67d6 flags:# creator:flags.0?true default:flags.1?true for_chat:flags.5?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?Vector emoticon:flags.6?string installs_count:flags.4?int = Theme;\naccount.themesNotModified#f41eb622 = account.Themes;\naccount.themes#9a3d8c6d hash:long themes:Vector = account.Themes;\nauth.loginToken#629f1980 expires:int token:bytes = auth.LoginToken;\nauth.loginTokenMigrateTo#68e9916 dc_id:int token:bytes = auth.LoginToken;\nauth.loginTokenSuccess#390d5c5e authorization:auth.Authorization = auth.LoginToken;\naccount.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitive_can_change:flags.1?true = account.ContentSettings;\nmessages.inactiveChats#a927fec5 dates:Vector chats:Vector users:Vector = messages.InactiveChats;\nbaseThemeClassic#c3a12462 = BaseTheme;\nbaseThemeDay#fbd81688 = BaseTheme;\nbaseThemeNight#b7b31ea8 = BaseTheme;\nbaseThemeTinted#6d5f77ee = BaseTheme;\nbaseThemeArctic#5b11125a = BaseTheme;\ninputThemeSettings#8fde504f flags:# message_colors_animated:flags.2?true base_theme:BaseTheme accent_color:int outbox_accent_color:flags.3?int message_colors:flags.0?Vector wallpaper:flags.1?InputWallPaper wallpaper_settings:flags.1?WallPaperSettings = InputThemeSettings;\nthemeSettings#fa58b6d4 flags:# message_colors_animated:flags.2?true base_theme:BaseTheme accent_color:int outbox_accent_color:flags.3?int message_colors:flags.0?Vector wallpaper:flags.1?WallPaper = ThemeSettings;\nwebPageAttributeTheme#54b56617 flags:# documents:flags.0?Vector settings:flags.1?ThemeSettings = WebPageAttribute;\nwebPageAttributeStory#2e94c3e7 flags:# peer:Peer id:int story:flags.0?StoryItem = WebPageAttribute;\nwebPageAttributeStickerSet#50cc03d3 flags:# emojis:flags.0?true text_color:flags.1?true stickers:Vector = WebPageAttribute;\nmessages.votesList#4899484e flags:# count:int votes:Vector chats:Vector users:Vector next_offset:flags.0?string = messages.VotesList;\nbankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl;\npayments.bankCardData#3e24e573 title:string open_urls:Vector = payments.BankCardData;\ndialogFilter#5fb5523b flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter;\ndialogFilterDefault#363293ae = DialogFilter;\ndialogFilterChatlist#9fe28ea4 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string color:flags.27?int pinned_peers:Vector include_peers:Vector = DialogFilter;\ndialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested;\nstatsDateRangeDays#b637edaf min_date:int max_date:int = StatsDateRangeDays;\nstatsAbsValueAndPrev#cb43acde current:double previous:double = StatsAbsValueAndPrev;\nstatsPercentValue#cbce2fe0 part:double total:double = StatsPercentValue;\nstatsGraphAsync#4a27eb2d token:string = StatsGraph;\nstatsGraphError#bedc9822 error:string = StatsGraph;\nstatsGraph#8ea464b6 flags:# json:DataJSON zoom_token:flags.0?string = StatsGraph;\nstats.broadcastStats#396ca5fc period:StatsDateRangeDays followers:StatsAbsValueAndPrev views_per_post:StatsAbsValueAndPrev shares_per_post:StatsAbsValueAndPrev reactions_per_post:StatsAbsValueAndPrev views_per_story:StatsAbsValueAndPrev shares_per_story:StatsAbsValueAndPrev reactions_per_story:StatsAbsValueAndPrev enabled_notifications:StatsPercentValue growth_graph:StatsGraph followers_graph:StatsGraph mute_graph:StatsGraph top_hours_graph:StatsGraph interactions_graph:StatsGraph iv_interactions_graph:StatsGraph views_by_source_graph:StatsGraph new_followers_by_source_graph:StatsGraph languages_graph:StatsGraph reactions_by_emotion_graph:StatsGraph story_interactions_graph:StatsGraph story_reactions_by_emotion_graph:StatsGraph recent_posts_interactions:Vector = stats.BroadcastStats;\nhelp.promoDataEmpty#98f6ac75 expires:int = help.PromoData;\nhelp.promoData#8c39793f flags:# proxy:flags.0?true expires:int peer:Peer chats:Vector users:Vector psa_type:flags.1?string psa_message:flags.2?string = help.PromoData;\nvideoSize#de33b094 flags:# type:string w:int h:int size:int video_start_ts:flags.0?double = VideoSize;\nvideoSizeEmojiMarkup#f85c413c emoji_id:long background_colors:Vector = VideoSize;\nvideoSizeStickerMarkup#da082fe stickerset:InputStickerSet sticker_id:long background_colors:Vector = VideoSize;\nstatsGroupTopPoster#9d04af9b user_id:long messages:int avg_chars:int = StatsGroupTopPoster;\nstatsGroupTopAdmin#d7584c87 user_id:long deleted:int kicked:int banned:int = StatsGroupTopAdmin;\nstatsGroupTopInviter#535f779d user_id:long invitations:int = StatsGroupTopInviter;\nstats.megagroupStats#ef7ff916 period:StatsDateRangeDays members:StatsAbsValueAndPrev messages:StatsAbsValueAndPrev viewers:StatsAbsValueAndPrev posters:StatsAbsValueAndPrev growth_graph:StatsGraph members_graph:StatsGraph new_members_by_source_graph:StatsGraph languages_graph:StatsGraph messages_graph:StatsGraph actions_graph:StatsGraph top_hours_graph:StatsGraph weekdays_graph:StatsGraph top_posters:Vector top_admins:Vector top_inviters:Vector users:Vector = stats.MegagroupStats;\nglobalPrivacySettings#734c4ccb flags:# archive_and_mute_new_noncontact_peers:flags.0?true keep_archived_unmuted:flags.1?true keep_archived_folders:flags.2?true hide_read_marks:flags.3?true new_noncontact_peers_require_premium:flags.4?true = GlobalPrivacySettings;\nhelp.countryCode#4203c5ef flags:# country_code:string prefixes:flags.0?Vector patterns:flags.1?Vector = help.CountryCode;\nhelp.country#c3878e23 flags:# hidden:flags.0?true iso2:string default_name:string name:flags.1?string country_codes:Vector = help.Country;\nhelp.countriesListNotModified#93cc1f32 = help.CountriesList;\nhelp.countriesList#87d0759e countries:Vector hash:int = help.CountriesList;\nmessageViews#455b853d flags:# views:flags.0?int forwards:flags.1?int replies:flags.2?MessageReplies = MessageViews;\nmessages.messageViews#b6c4f543 views:Vector chats:Vector users:Vector = messages.MessageViews;\nmessages.discussionMessage#a6341782 flags:# messages:Vector max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int unread_count:int chats:Vector users:Vector = messages.DiscussionMessage;\nmessageReplyHeader#afbc09db flags:# reply_to_scheduled:flags.2?true forum_topic:flags.3?true quote:flags.9?true reply_to_msg_id:flags.4?int reply_to_peer_id:flags.0?Peer reply_from:flags.5?MessageFwdHeader reply_media:flags.8?MessageMedia reply_to_top_id:flags.1?int quote_text:flags.6?string quote_entities:flags.7?Vector quote_offset:flags.10?int = MessageReplyHeader;\nmessageReplyStoryHeader#e5af939 peer:Peer story_id:int = MessageReplyHeader;\nmessageReplies#83d60fc2 flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector channel_id:flags.0?long max_id:flags.2?int read_max_id:flags.3?int = MessageReplies;\npeerBlocked#e8fd8014 peer_id:Peer date:int = PeerBlocked;\nstats.messageStats#7fe91c14 views_graph:StatsGraph reactions_by_emotion_graph:StatsGraph = stats.MessageStats;\ngroupCallDiscarded#7780bcb4 id:long access_hash:long duration:int = GroupCall;\ngroupCall#d597650c flags:# join_muted:flags.1?true can_change_join_muted:flags.2?true join_date_asc:flags.6?true schedule_start_subscribed:flags.8?true can_start_video:flags.9?true record_video_active:flags.11?true rtmp_stream:flags.12?true listeners_hidden:flags.13?true id:long access_hash:long participants_count:int title:flags.3?string stream_dc_id:flags.4?int record_start_date:flags.5?int schedule_date:flags.7?int unmuted_video_count:flags.10?int unmuted_video_limit:int version:int = GroupCall;\ninputGroupCall#d8aa840f id:long access_hash:long = InputGroupCall;\ngroupCallParticipant#eba636fe flags:# muted:flags.0?true left:flags.1?true can_self_unmute:flags.2?true just_joined:flags.4?true versioned:flags.5?true min:flags.8?true muted_by_you:flags.9?true volume_by_admin:flags.10?true self:flags.12?true video_joined:flags.15?true peer:Peer date:int active_date:flags.3?int source:int volume:flags.7?int about:flags.11?string raise_hand_rating:flags.13?long video:flags.6?GroupCallParticipantVideo presentation:flags.14?GroupCallParticipantVideo = GroupCallParticipant;\nphone.groupCall#9e727aad call:GroupCall participants:Vector participants_next_offset:string chats:Vector users:Vector = phone.GroupCall;\nphone.groupParticipants#f47751b6 count:int participants:Vector next_offset:string chats:Vector users:Vector version:int = phone.GroupParticipants;\ninlineQueryPeerTypeSameBotPM#3081ed9d = InlineQueryPeerType;\ninlineQueryPeerTypePM#833c0fac = InlineQueryPeerType;\ninlineQueryPeerTypeChat#d766c50a = InlineQueryPeerType;\ninlineQueryPeerTypeMegagroup#5ec4be43 = InlineQueryPeerType;\ninlineQueryPeerTypeBroadcast#6334ee9a = InlineQueryPeerType;\ninlineQueryPeerTypeBotPM#e3b2d0c = InlineQueryPeerType;\nmessages.historyImport#1662af0b id:long = messages.HistoryImport;\nmessages.historyImportParsed#5e0fb7b9 flags:# pm:flags.0?true group:flags.1?true title:flags.2?string = messages.HistoryImportParsed;\nmessages.affectedFoundMessages#ef8d3e6c pts:int pts_count:int offset:int messages:Vector = messages.AffectedFoundMessages;\nchatInviteImporter#8c5adfd9 flags:# requested:flags.0?true via_chatlist:flags.3?true user_id:long date:int about:flags.2?string approved_by:flags.1?long = ChatInviteImporter;\nmessages.exportedChatInvites#bdc62dcc count:int invites:Vector users:Vector = messages.ExportedChatInvites;\nmessages.exportedChatInvite#1871be50 invite:ExportedChatInvite users:Vector = messages.ExportedChatInvite;\nmessages.exportedChatInviteReplaced#222600ef invite:ExportedChatInvite new_invite:ExportedChatInvite users:Vector = messages.ExportedChatInvite;\nmessages.chatInviteImporters#81b6b00a count:int importers:Vector users:Vector = messages.ChatInviteImporters;\nchatAdminWithInvites#f2ecef23 admin_id:long invites_count:int revoked_invites_count:int = ChatAdminWithInvites;\nmessages.chatAdminsWithInvites#b69b72d7 admins:Vector users:Vector = messages.ChatAdminsWithInvites;\nmessages.checkedHistoryImportPeer#a24de717 confirm_text:string = messages.CheckedHistoryImportPeer;\nphone.joinAsPeers#afe5623f peers:Vector chats:Vector users:Vector = phone.JoinAsPeers;\nphone.exportedGroupCallInvite#204bd158 link:string = phone.ExportedGroupCallInvite;\ngroupCallParticipantVideoSourceGroup#dcb118b7 semantics:string sources:Vector = GroupCallParticipantVideoSourceGroup;\ngroupCallParticipantVideo#67753ac8 flags:# paused:flags.0?true endpoint:string source_groups:Vector audio_source:flags.1?int = GroupCallParticipantVideo;\nstickers.suggestedShortName#85fea03f short_name:string = stickers.SuggestedShortName;\nbotCommandScopeDefault#2f6cb2ab = BotCommandScope;\nbotCommandScopeUsers#3c4f04d8 = BotCommandScope;\nbotCommandScopeChats#6fe1a881 = BotCommandScope;\nbotCommandScopeChatAdmins#b9aa606a = BotCommandScope;\nbotCommandScopePeer#db9d897d peer:InputPeer = BotCommandScope;\nbotCommandScopePeerAdmins#3fd863d1 peer:InputPeer = BotCommandScope;\nbotCommandScopePeerUser#a1321f3 peer:InputPeer user_id:InputUser = BotCommandScope;\naccount.resetPasswordFailedWait#e3779861 retry_date:int = account.ResetPasswordResult;\naccount.resetPasswordRequestedWait#e9effc7d until_date:int = account.ResetPasswordResult;\naccount.resetPasswordOk#e926d63e = account.ResetPasswordResult;\nsponsoredMessage#4d93a990 flags:# recommended:flags.5?true can_report:flags.12?true random_id:bytes url:string title:string message:string entities:flags.1?Vector photo:flags.6?Photo media:flags.14?MessageMedia color:flags.13?PeerColor button_text:string sponsor_info:flags.7?string additional_info:flags.8?string = SponsoredMessage;\nmessages.sponsoredMessages#c9ee1d87 flags:# posts_between:flags.0?int messages:Vector chats:Vector users:Vector = messages.SponsoredMessages;\nmessages.sponsoredMessagesEmpty#1839490f = messages.SponsoredMessages;\nsearchResultsCalendarPeriod#c9b0539f date:int min_msg_id:int max_msg_id:int count:int = SearchResultsCalendarPeriod;\nmessages.searchResultsCalendar#147ee23c flags:# inexact:flags.0?true count:int min_date:int min_msg_id:int offset_id_offset:flags.1?int periods:Vector messages:Vector chats:Vector users:Vector = messages.SearchResultsCalendar;\nsearchResultPosition#7f648b67 msg_id:int date:int offset:int = SearchResultsPosition;\nmessages.searchResultsPositions#53b22baf count:int positions:Vector = messages.SearchResultsPositions;\nchannels.sendAsPeers#f496b0c6 peers:Vector chats:Vector users:Vector = channels.SendAsPeers;\nusers.userFull#3b6d152e full_user:UserFull chats:Vector users:Vector = users.UserFull;\nmessages.peerSettings#6880b94d settings:PeerSettings chats:Vector users:Vector = messages.PeerSettings;\nauth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut;\nreactionCount#a3d1cb80 flags:# chosen_order:flags.0?int reaction:Reaction count:int = ReactionCount;\nmessageReactions#a339f0b flags:# min:flags.0?true can_see_list:flags.2?true reactions_as_tags:flags.3?true results:Vector recent_reactions:flags.1?Vector top_reactors:flags.4?Vector = MessageReactions;\nmessages.messageReactionsList#31bd492d flags:# count:int reactions:Vector chats:Vector users:Vector next_offset:flags.0?string = messages.MessageReactionsList;\navailableReaction#c077ec01 flags:# inactive:flags.0?true premium:flags.2?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;\nmessages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;\nmessages.availableReactions#768e3aad hash:int reactions:Vector = messages.AvailableReactions;\nmessagePeerReaction#8c79b63c flags:# big:flags.0?true unread:flags.1?true my:flags.2?true peer_id:Peer date:int reaction:Reaction = MessagePeerReaction;\ngroupCallStreamChannel#80eb48af channel:int scale:int last_timestamp_ms:long = GroupCallStreamChannel;\nphone.groupCallStreamChannels#d0e482b2 channels:Vector = phone.GroupCallStreamChannels;\nphone.groupCallStreamRtmpUrl#2dbf3432 url:string key:string = phone.GroupCallStreamRtmpUrl;\nattachMenuBotIconColor#4576f3f0 name:string color:int = AttachMenuBotIconColor;\nattachMenuBotIcon#b2a7386b flags:# name:string icon:Document colors:flags.0?Vector = AttachMenuBotIcon;\nattachMenuBot#d90d8dfe flags:# inactive:flags.0?true has_settings:flags.1?true request_write_access:flags.2?true show_in_attach_menu:flags.3?true show_in_side_menu:flags.4?true side_menu_disclaimer_needed:flags.5?true bot_id:long short_name:string peer_types:flags.3?Vector icons:Vector = AttachMenuBot;\nattachMenuBotsNotModified#f1d88a5c = AttachMenuBots;\nattachMenuBots#3c4301c0 hash:long bots:Vector users:Vector = AttachMenuBots;\nattachMenuBotsBot#93bf667f bot:AttachMenuBot users:Vector = AttachMenuBotsBot;\nwebViewResultUrl#4d22ff98 flags:# fullsize:flags.1?true fullscreen:flags.2?true query_id:flags.0?long url:string = WebViewResult;\nwebViewMessageSent#c94511c flags:# msg_id:flags.0?InputBotInlineMessageID = WebViewMessageSent;\nbotMenuButtonDefault#7533a588 = BotMenuButton;\nbotMenuButtonCommands#4258c205 = BotMenuButton;\nbotMenuButton#c7b57ce6 text:string url:string = BotMenuButton;\naccount.savedRingtonesNotModified#fbf6e8b1 = account.SavedRingtones;\naccount.savedRingtones#c1e92cc5 hash:long ringtones:Vector = account.SavedRingtones;\nnotificationSoundDefault#97e8bebe = NotificationSound;\nnotificationSoundNone#6f0c34df = NotificationSound;\nnotificationSoundLocal#830b9ae4 title:string data:string = NotificationSound;\nnotificationSoundRingtone#ff6c8049 id:long = NotificationSound;\naccount.savedRingtone#b7263f6d = account.SavedRingtone;\naccount.savedRingtoneConverted#1f307eb7 document:Document = account.SavedRingtone;\nattachMenuPeerTypeSameBotPM#7d6be90e = AttachMenuPeerType;\nattachMenuPeerTypeBotPM#c32bfa1a = AttachMenuPeerType;\nattachMenuPeerTypePM#f146d31f = AttachMenuPeerType;\nattachMenuPeerTypeChat#509113f = AttachMenuPeerType;\nattachMenuPeerTypeBroadcast#7bfbdefc = AttachMenuPeerType;\ninputInvoiceMessage#c5b56859 peer:InputPeer msg_id:int = InputInvoice;\ninputInvoiceSlug#c326caef slug:string = InputInvoice;\ninputInvoicePremiumGiftCode#98986c0d purpose:InputStorePaymentPurpose option:PremiumGiftCodeOption = InputInvoice;\ninputInvoiceStars#65f00ce3 purpose:InputStorePaymentPurpose = InputInvoice;\ninputInvoiceChatInviteSubscription#34e793f1 hash:string = InputInvoice;\ninputInvoiceStarGift#25d8c1d8 flags:# hide_name:flags.0?true user_id:InputUser gift_id:long message:flags.1?TextWithEntities = InputInvoice;\npayments.exportedInvoice#aed0cbd9 url:string = payments.ExportedInvoice;\nmessages.transcribedAudio#cfb9d957 flags:# pending:flags.0?true transcription_id:long text:string trial_remains_num:flags.1?int trial_remains_until_date:flags.1?int = messages.TranscribedAudio;\nhelp.premiumPromo#5334759c status_text:string status_entities:Vector video_sections:Vector videos:Vector period_options:Vector users:Vector = help.PremiumPromo;\ninputStorePaymentPremiumSubscription#a6751e66 flags:# restore:flags.0?true upgrade:flags.1?true = InputStorePaymentPurpose;\ninputStorePaymentGiftPremium#616f7fe8 user_id:InputUser currency:string amount:long = InputStorePaymentPurpose;\ninputStorePaymentPremiumGiftCode#fb790393 flags:# users:Vector boost_peer:flags.0?InputPeer currency:string amount:long message:flags.1?TextWithEntities = InputStorePaymentPurpose;\ninputStorePaymentPremiumGiveaway#160544ca flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.3?true boost_peer:InputPeer additional_peers:flags.1?Vector countries_iso2:flags.2?Vector prize_description:flags.4?string random_id:long until_date:int currency:string amount:long = InputStorePaymentPurpose;\ninputStorePaymentStarsTopup#dddd0f56 stars:long currency:string amount:long = InputStorePaymentPurpose;\ninputStorePaymentStarsGift#1d741ef7 user_id:InputUser stars:long currency:string amount:long = InputStorePaymentPurpose;\ninputStorePaymentStarsGiveaway#751f08fa flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.3?true stars:long boost_peer:InputPeer additional_peers:flags.1?Vector countries_iso2:flags.2?Vector prize_description:flags.4?string random_id:long until_date:int currency:string amount:long users:int = InputStorePaymentPurpose;\npremiumGiftOption#74c34319 flags:# months:int currency:string amount:long bot_url:string store_product:flags.0?string = PremiumGiftOption;\npaymentFormMethod#88f8f21b url:string title:string = PaymentFormMethod;\nemojiStatusEmpty#2de11aae = EmojiStatus;\nemojiStatus#929b619d document_id:long = EmojiStatus;\nemojiStatusUntil#fa30a8c7 document_id:long until:int = EmojiStatus;\naccount.emojiStatusesNotModified#d08ce645 = account.EmojiStatuses;\naccount.emojiStatuses#90c467d1 hash:long statuses:Vector = account.EmojiStatuses;\nreactionEmpty#79f5d419 = Reaction;\nreactionEmoji#1b2286b8 emoticon:string = Reaction;\nreactionCustomEmoji#8935fc73 document_id:long = Reaction;\nreactionPaid#523da4eb = Reaction;\nchatReactionsNone#eafc32bc = ChatReactions;\nchatReactionsAll#52928bca flags:# allow_custom:flags.0?true = ChatReactions;\nchatReactionsSome#661d4037 reactions:Vector = ChatReactions;\nmessages.reactionsNotModified#b06fdbdf = messages.Reactions;\nmessages.reactions#eafdf716 hash:long reactions:Vector = messages.Reactions;\nemailVerifyPurposeLoginSetup#4345be73 phone_number:string phone_code_hash:string = EmailVerifyPurpose;\nemailVerifyPurposeLoginChange#527d22eb = EmailVerifyPurpose;\nemailVerifyPurposePassport#bbf51685 = EmailVerifyPurpose;\nemailVerificationCode#922e55a9 code:string = EmailVerification;\nemailVerificationGoogle#db909ec2 token:string = EmailVerification;\nemailVerificationApple#96d074fd token:string = EmailVerification;\naccount.emailVerified#2b96cd1b email:string = account.EmailVerified;\naccount.emailVerifiedLogin#e1bb0d61 email:string sent_code:auth.SentCode = account.EmailVerified;\npremiumSubscriptionOption#5f2d1df2 flags:# current:flags.1?true can_purchase_upgrade:flags.2?true transaction:flags.3?string months:int currency:string amount:long bot_url:string store_product:flags.0?string = PremiumSubscriptionOption;\nsendAsPeer#b81c7034 flags:# premium_required:flags.0?true peer:Peer = SendAsPeer;\nmessageExtendedMediaPreview#ad628cc8 flags:# w:flags.0?int h:flags.0?int thumb:flags.1?PhotoSize video_duration:flags.2?int = MessageExtendedMedia;\nmessageExtendedMedia#ee479c64 media:MessageMedia = MessageExtendedMedia;\nstickerKeyword#fcfeb29c document_id:long keyword:Vector = StickerKeyword;\nusername#b4073647 flags:# editable:flags.0?true active:flags.1?true username:string = Username;\nforumTopicDeleted#23f109b id:int = ForumTopic;\nforumTopic#71701da9 flags:# my:flags.1?true closed:flags.2?true pinned:flags.3?true short:flags.5?true hidden:flags.6?true id:int date:int title:string icon_color:int icon_emoji_id:flags.0?long top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int from_id:Peer notify_settings:PeerNotifySettings draft:flags.4?DraftMessage = ForumTopic;\nmessages.forumTopics#367617d3 flags:# order_by_create_date:flags.0?true count:int topics:Vector messages:Vector chats:Vector users:Vector pts:int = messages.ForumTopics;\ndefaultHistoryTTL#43b46b20 period:int = DefaultHistoryTTL;\nexportedContactToken#41bf109b url:string expires:int = ExportedContactToken;\nrequestPeerTypeUser#5f3b8a00 flags:# bot:flags.0?Bool premium:flags.1?Bool = RequestPeerType;\nrequestPeerTypeChat#c9f06e1b flags:# creator:flags.0?true bot_participant:flags.5?true has_username:flags.3?Bool forum:flags.4?Bool user_admin_rights:flags.1?ChatAdminRights bot_admin_rights:flags.2?ChatAdminRights = RequestPeerType;\nrequestPeerTypeBroadcast#339bef6c flags:# creator:flags.0?true has_username:flags.3?Bool user_admin_rights:flags.1?ChatAdminRights bot_admin_rights:flags.2?ChatAdminRights = RequestPeerType;\nemojiListNotModified#481eadfa = EmojiList;\nemojiList#7a1e11d1 hash:long document_id:Vector = EmojiList;\nemojiGroup#7a9abda9 title:string icon_emoji_id:long emoticons:Vector = EmojiGroup;\nemojiGroupGreeting#80d26cc7 title:string icon_emoji_id:long emoticons:Vector = EmojiGroup;\nemojiGroupPremium#93bcf34 title:string icon_emoji_id:long = EmojiGroup;\nmessages.emojiGroupsNotModified#6fb4ad87 = messages.EmojiGroups;\nmessages.emojiGroups#881fb94b hash:int groups:Vector = messages.EmojiGroups;\ntextWithEntities#751f3146 text:string entities:Vector = TextWithEntities;\nmessages.translateResult#33db32f8 result:Vector = messages.TranslatedText;\nautoSaveSettings#c84834ce flags:# photos:flags.0?true videos:flags.1?true video_max_size:flags.2?long = AutoSaveSettings;\nautoSaveException#81602d47 peer:Peer settings:AutoSaveSettings = AutoSaveException;\naccount.autoSaveSettings#4c3e069d users_settings:AutoSaveSettings chats_settings:AutoSaveSettings broadcasts_settings:AutoSaveSettings exceptions:Vector chats:Vector users:Vector = account.AutoSaveSettings;\nhelp.appConfigNotModified#7cde641d = help.AppConfig;\nhelp.appConfig#dd18782e hash:int config:JSONValue = help.AppConfig;\ninputBotAppID#a920bd7a id:long access_hash:long = InputBotApp;\ninputBotAppShortName#908c0407 bot_id:InputUser short_name:string = InputBotApp;\nbotAppNotModified#5da674b7 = BotApp;\nbotApp#95fcd1d6 flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document hash:long = BotApp;\nmessages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true has_settings:flags.2?true app:BotApp = messages.BotApp;\ninlineBotWebView#b57295d5 text:string url:string = InlineBotWebView;\nreadParticipantDate#4a4ff172 user_id:long date:int = ReadParticipantDate;\ninputChatlistDialogFilter#f3e0da33 filter_id:int = InputChatlist;\nexportedChatlistInvite#c5181ac flags:# title:string url:string peers:Vector = ExportedChatlistInvite;\nchatlists.exportedChatlistInvite#10e6e3a6 filter:DialogFilter invite:ExportedChatlistInvite = chatlists.ExportedChatlistInvite;\nchatlists.exportedInvites#10ab6dc7 invites:Vector chats:Vector users:Vector = chatlists.ExportedInvites;\nchatlists.chatlistInviteAlready#fa87f659 filter_id:int missing_peers:Vector already_peers:Vector chats:Vector users:Vector = chatlists.ChatlistInvite;\nchatlists.chatlistInvite#1dcd839d flags:# title:string emoticon:flags.0?string peers:Vector chats:Vector users:Vector = chatlists.ChatlistInvite;\nchatlists.chatlistUpdates#93bd878d missing_peers:Vector chats:Vector users:Vector = chatlists.ChatlistUpdates;\nbots.botInfo#e8a775b0 name:string about:string description:string = bots.BotInfo;\nmessagePeerVote#b6cc2d5c peer:Peer option:bytes date:int = MessagePeerVote;\nmessagePeerVoteInputOption#74cda504 peer:Peer date:int = MessagePeerVote;\nmessagePeerVoteMultiple#4628f6e6 peer:Peer options:Vector date:int = MessagePeerVote;\nstoryViews#8d595cd6 flags:# has_viewers:flags.1?true views_count:int forwards_count:flags.2?int reactions:flags.3?Vector reactions_count:flags.4?int recent_viewers:flags.0?Vector = StoryViews;\nstoryItemDeleted#51e6ee4f id:int = StoryItem;\nstoryItemSkipped#ffadc913 flags:# close_friends:flags.8?true id:int date:int expire_date:int = StoryItem;\nstoryItem#79b26a24 flags:# pinned:flags.5?true public:flags.7?true close_friends:flags.8?true min:flags.9?true noforwards:flags.10?true edited:flags.11?true contacts:flags.12?true selected_contacts:flags.13?true out:flags.16?true id:int date:int from_id:flags.18?Peer fwd_from:flags.17?StoryFwdHeader expire_date:int caption:flags.0?string entities:flags.1?Vector media:MessageMedia media_areas:flags.14?Vector privacy:flags.2?Vector views:flags.3?StoryViews sent_reaction:flags.15?Reaction = StoryItem;\nstories.allStoriesNotModified#1158fe3e flags:# state:string stealth_mode:StoriesStealthMode = stories.AllStories;\nstories.allStories#6efc5e81 flags:# has_more:flags.0?true count:int state:string peer_stories:Vector chats:Vector users:Vector stealth_mode:StoriesStealthMode = stories.AllStories;\nstories.stories#63c3dd0a flags:# count:int stories:Vector pinned_to_top:flags.0?Vector chats:Vector users:Vector = stories.Stories;\nstoryView#b0bdeac5 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true user_id:long date:int reaction:flags.2?Reaction = StoryView;\nstoryViewPublicForward#9083670b flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true message:Message = StoryView;\nstoryViewPublicRepost#bd74cf49 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true peer_id:Peer story:StoryItem = StoryView;\nstories.storyViewsList#59d78fc5 flags:# count:int views_count:int forwards_count:int reactions_count:int views:Vector chats:Vector users:Vector next_offset:flags.0?string = stories.StoryViewsList;\nstories.storyViews#de9eed1d views:Vector users:Vector = stories.StoryViews;\ninputReplyToMessage#22c0f6d5 flags:# reply_to_msg_id:int top_msg_id:flags.0?int reply_to_peer_id:flags.1?InputPeer quote_text:flags.2?string quote_entities:flags.3?Vector quote_offset:flags.4?int = InputReplyTo;\ninputReplyToStory#5881323a peer:InputPeer story_id:int = InputReplyTo;\nexportedStoryLink#3fc9053b link:string = ExportedStoryLink;\nstoriesStealthMode#712e27fd flags:# active_until_date:flags.0?int cooldown_until_date:flags.1?int = StoriesStealthMode;\nmediaAreaCoordinates#cfc9e002 flags:# x:double y:double w:double h:double rotation:double radius:flags.0?double = MediaAreaCoordinates;\nmediaAreaVenue#be82db9c coordinates:MediaAreaCoordinates geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MediaArea;\ninputMediaAreaVenue#b282217f coordinates:MediaAreaCoordinates query_id:long result_id:string = MediaArea;\nmediaAreaGeoPoint#cad5452d flags:# coordinates:MediaAreaCoordinates geo:GeoPoint address:flags.0?GeoPointAddress = MediaArea;\nmediaAreaSuggestedReaction#14455871 flags:# dark:flags.0?true flipped:flags.1?true coordinates:MediaAreaCoordinates reaction:Reaction = MediaArea;\nmediaAreaChannelPost#770416af coordinates:MediaAreaCoordinates channel_id:long msg_id:int = MediaArea;\ninputMediaAreaChannelPost#2271f2bf coordinates:MediaAreaCoordinates channel:InputChannel msg_id:int = MediaArea;\nmediaAreaUrl#37381085 coordinates:MediaAreaCoordinates url:string = MediaArea;\nmediaAreaWeather#49a6549c coordinates:MediaAreaCoordinates emoji:string temperature_c:double color:int = MediaArea;\npeerStories#9a35e999 flags:# peer:Peer max_read_id:flags.0?int stories:Vector = PeerStories;\nstories.peerStories#cae68768 stories:PeerStories chats:Vector users:Vector = stories.PeerStories;\nmessages.webPage#fd5e12bd webpage:WebPage chats:Vector users:Vector = messages.WebPage;\npremiumGiftCodeOption#257e962b flags:# users:int months:int store_product:flags.0?string store_quantity:flags.1?int currency:string amount:long = PremiumGiftCodeOption;\npayments.checkedGiftCode#284a1096 flags:# via_giveaway:flags.2?true from_id:flags.4?Peer giveaway_msg_id:flags.3?int to_id:flags.0?long date:int months:int used_date:flags.1?int chats:Vector users:Vector = payments.CheckedGiftCode;\npayments.giveawayInfo#4367daa0 flags:# participating:flags.0?true preparing_results:flags.3?true start_date:int joined_too_early_date:flags.1?int admin_disallowed_chat_id:flags.2?long disallowed_country:flags.4?string = payments.GiveawayInfo;\npayments.giveawayInfoResults#e175e66f flags:# winner:flags.0?true refunded:flags.1?true start_date:int gift_code_slug:flags.3?string stars_prize:flags.4?long finish_date:int winners_count:int activated_count:flags.2?int = payments.GiveawayInfo;\nprepaidGiveaway#b2539d54 id:long months:int quantity:int date:int = PrepaidGiveaway;\nprepaidStarsGiveaway#9a9d77e0 id:long stars:long quantity:int boosts:int date:int = PrepaidGiveaway;\nboost#4b3e14d6 flags:# gift:flags.1?true giveaway:flags.2?true unclaimed:flags.3?true id:string user_id:flags.0?long giveaway_msg_id:flags.2?int date:int expires:int used_gift_slug:flags.4?string multiplier:flags.5?int stars:flags.6?long = Boost;\npremium.boostsList#86f8613c flags:# count:int boosts:Vector next_offset:flags.0?string users:Vector = premium.BoostsList;\nmyBoost#c448415c flags:# slot:int peer:flags.0?Peer date:int expires:int cooldown_until_date:flags.1?int = MyBoost;\npremium.myBoosts#9ae228e2 my_boosts:Vector chats:Vector users:Vector = premium.MyBoosts;\npremium.boostsStatus#4959427a flags:# my_boost:flags.2?true level:int current_level_boosts:int boosts:int gift_boosts:flags.4?int next_level_boosts:flags.0?int premium_audience:flags.1?StatsPercentValue boost_url:string prepaid_giveaways:flags.3?Vector my_boost_slots:flags.2?Vector = premium.BoostsStatus;\nstoryFwdHeader#b826e150 flags:# modified:flags.3?true from:flags.0?Peer from_name:flags.1?string story_id:flags.2?int = StoryFwdHeader;\npostInteractionCountersMessage#e7058e7f msg_id:int views:int forwards:int reactions:int = PostInteractionCounters;\npostInteractionCountersStory#8a480e27 story_id:int views:int forwards:int reactions:int = PostInteractionCounters;\nstats.storyStats#50cd067c views_graph:StatsGraph reactions_by_emotion_graph:StatsGraph = stats.StoryStats;\npublicForwardMessage#1f2bf4a message:Message = PublicForward;\npublicForwardStory#edf3add0 peer:Peer story:StoryItem = PublicForward;\nstats.publicForwards#93037e20 flags:# count:int forwards:Vector next_offset:flags.0?string chats:Vector users:Vector = stats.PublicForwards;\npeerColor#b54b5acf flags:# color:flags.0?int background_emoji_id:flags.1?long = PeerColor;\nhelp.peerColorSet#26219a58 colors:Vector = help.PeerColorSet;\nhelp.peerColorProfileSet#767d61eb palette_colors:Vector bg_colors:Vector story_colors:Vector = help.PeerColorSet;\nhelp.peerColorOption#adec6ebe flags:# hidden:flags.0?true color_id:int colors:flags.1?help.PeerColorSet dark_colors:flags.2?help.PeerColorSet channel_min_level:flags.3?int group_min_level:flags.4?int = help.PeerColorOption;\nhelp.peerColorsNotModified#2ba1f5ce = help.PeerColors;\nhelp.peerColors#f8ed08 hash:int colors:Vector = help.PeerColors;\nstoryReaction#6090d6d5 peer_id:Peer date:int reaction:Reaction = StoryReaction;\nstoryReactionPublicForward#bbab2643 message:Message = StoryReaction;\nstoryReactionPublicRepost#cfcd0f13 peer_id:Peer story:StoryItem = StoryReaction;\nstories.storyReactionsList#aa5f789c flags:# count:int reactions:Vector chats:Vector users:Vector next_offset:flags.0?string = stories.StoryReactionsList;\nsavedDialog#bd87cb6c flags:# pinned:flags.2?true peer:Peer top_message:int = SavedDialog;\nmessages.savedDialogs#f83ae221 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.SavedDialogs;\nmessages.savedDialogsSlice#44ba9dd9 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.SavedDialogs;\nmessages.savedDialogsNotModified#c01f6fe8 count:int = messages.SavedDialogs;\nsavedReactionTag#cb6ff828 flags:# reaction:Reaction title:flags.0?string count:int = SavedReactionTag;\nmessages.savedReactionTagsNotModified#889b59ef = messages.SavedReactionTags;\nmessages.savedReactionTags#3259950a tags:Vector hash:long = messages.SavedReactionTags;\noutboxReadDate#3bb842ac date:int = OutboxReadDate;\nsmsjobs.eligibleToJoin#dc8b44cf terms_url:string monthly_sent_sms:int = smsjobs.EligibilityToJoin;\nsmsjobs.status#2aee9191 flags:# allow_international:flags.0?true recent_sent:int recent_since:int recent_remains:int total_sent:int total_since:int last_gift_slug:flags.1?string terms_url:string = smsjobs.Status;\nsmsJob#e6a1eeb8 job_id:string phone_number:string text:string = SmsJob;\nbusinessWeeklyOpen#120b1ab9 start_minute:int end_minute:int = BusinessWeeklyOpen;\nbusinessWorkHours#8c92b098 flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector = BusinessWorkHours;\nbusinessLocation#ac5c1af7 flags:# geo_point:flags.0?GeoPoint address:string = BusinessLocation;\ninputBusinessRecipients#6f8b32aa flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = InputBusinessRecipients;\nbusinessRecipients#21108ff7 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector = BusinessRecipients;\nbusinessAwayMessageScheduleAlways#c9b9e2b9 = BusinessAwayMessageSchedule;\nbusinessAwayMessageScheduleOutsideWorkHours#c3f2f501 = BusinessAwayMessageSchedule;\nbusinessAwayMessageScheduleCustom#cc4d9ecc start_date:int end_date:int = BusinessAwayMessageSchedule;\ninputBusinessGreetingMessage#194cb3b shortcut_id:int recipients:InputBusinessRecipients no_activity_days:int = InputBusinessGreetingMessage;\nbusinessGreetingMessage#e519abab shortcut_id:int recipients:BusinessRecipients no_activity_days:int = BusinessGreetingMessage;\ninputBusinessAwayMessage#832175e0 flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:InputBusinessRecipients = InputBusinessAwayMessage;\nbusinessAwayMessage#ef156a5c flags:# offline_only:flags.0?true shortcut_id:int schedule:BusinessAwayMessageSchedule recipients:BusinessRecipients = BusinessAwayMessage;\ntimezone#ff9289f5 id:string name:string utc_offset:int = Timezone;\nhelp.timezonesListNotModified#970708cc = help.TimezonesList;\nhelp.timezonesList#7b74ed71 timezones:Vector hash:int = help.TimezonesList;\nquickReply#697102b shortcut_id:int shortcut:string top_message:int count:int = QuickReply;\ninputQuickReplyShortcut#24596d41 shortcut:string = InputQuickReplyShortcut;\ninputQuickReplyShortcutId#1190cf1 shortcut_id:int = InputQuickReplyShortcut;\nmessages.quickReplies#c68d6695 quick_replies:Vector messages:Vector chats:Vector users:Vector = messages.QuickReplies;\nmessages.quickRepliesNotModified#5f91eb5b = messages.QuickReplies;\nconnectedBot#bd068601 flags:# can_reply:flags.0?true bot_id:long recipients:BusinessBotRecipients = ConnectedBot;\naccount.connectedBots#17d7f87b connected_bots:Vector users:Vector = account.ConnectedBots;\nmessages.dialogFilters#2ad93719 flags:# tags_enabled:flags.0?true filters:Vector = messages.DialogFilters;\nbirthday#6c8e1e06 flags:# day:int month:int year:flags.0?int = Birthday;\nbotBusinessConnection#896433b4 flags:# can_reply:flags.0?true disabled:flags.1?true connection_id:string user_id:long dc_id:int date:int = BotBusinessConnection;\ninputBusinessIntro#9c469cd flags:# title:string description:string sticker:flags.0?InputDocument = InputBusinessIntro;\nbusinessIntro#5a0a066d flags:# title:string description:string sticker:flags.0?Document = BusinessIntro;\nmessages.myStickers#faff629d count:int sets:Vector = messages.MyStickers;\ninputCollectibleUsername#e39460a9 username:string = InputCollectible;\ninputCollectiblePhone#a2e214a4 phone:string = InputCollectible;\nfragment.collectibleInfo#6ebdff91 purchase_date:int currency:string amount:long crypto_currency:string crypto_amount:long url:string = fragment.CollectibleInfo;\ninputBusinessBotRecipients#c4e5921e flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = InputBusinessBotRecipients;\nbusinessBotRecipients#b88cf373 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector exclude_users:flags.6?Vector = BusinessBotRecipients;\ncontactBirthday#1d998733 contact_id:long birthday:Birthday = ContactBirthday;\ncontacts.contactBirthdays#114ff30d contacts:Vector users:Vector = contacts.ContactBirthdays;\nmissingInvitee#628c9224 flags:# premium_would_allow_invite:flags.0?true premium_required_for_pm:flags.1?true user_id:long = MissingInvitee;\nmessages.invitedUsers#7f5defa6 updates:Updates missing_invitees:Vector = messages.InvitedUsers;\ninputBusinessChatLink#11679fa7 flags:# message:string entities:flags.0?Vector title:flags.1?string = InputBusinessChatLink;\nbusinessChatLink#b4ae666f flags:# link:string message:string entities:flags.0?Vector title:flags.1?string views:int = BusinessChatLink;\naccount.businessChatLinks#ec43a2d1 links:Vector chats:Vector users:Vector = account.BusinessChatLinks;\naccount.resolvedBusinessChatLinks#9a23af21 flags:# peer:Peer message:string entities:flags.0?Vector chats:Vector users:Vector = account.ResolvedBusinessChatLinks;\nrequestedPeerUser#d62ff46a flags:# user_id:long first_name:flags.0?string last_name:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer;\nrequestedPeerChat#7307544f flags:# chat_id:long title:flags.0?string photo:flags.2?Photo = RequestedPeer;\nrequestedPeerChannel#8ba403e4 flags:# channel_id:long title:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer;\nsponsoredMessageReportOption#430d3150 text:string option:bytes = SponsoredMessageReportOption;\nchannels.sponsoredMessageReportResultChooseOption#846f9e42 title:string options:Vector = channels.SponsoredMessageReportResult;\nchannels.sponsoredMessageReportResultAdsHidden#3e3bcf2f = channels.SponsoredMessageReportResult;\nchannels.sponsoredMessageReportResultReported#ad798849 = channels.SponsoredMessageReportResult;\nstats.broadcastRevenueStats#5407e297 top_hours_graph:StatsGraph revenue_graph:StatsGraph balances:BroadcastRevenueBalances usd_rate:double = stats.BroadcastRevenueStats;\nstats.broadcastRevenueWithdrawalUrl#ec659737 url:string = stats.BroadcastRevenueWithdrawalUrl;\nbroadcastRevenueTransactionProceeds#557e2cc4 amount:long from_date:int to_date:int = BroadcastRevenueTransaction;\nbroadcastRevenueTransactionWithdrawal#5a590978 flags:# pending:flags.0?true failed:flags.2?true amount:long date:int provider:string transaction_date:flags.1?int transaction_url:flags.1?string = BroadcastRevenueTransaction;\nbroadcastRevenueTransactionRefund#42d30d2e amount:long date:int provider:string = BroadcastRevenueTransaction;\nstats.broadcastRevenueTransactions#87158466 count:int transactions:Vector = stats.BroadcastRevenueTransactions;\nreactionNotificationsFromContacts#bac3a61a = ReactionNotificationsFrom;\nreactionNotificationsFromAll#4b9e22a0 = ReactionNotificationsFrom;\nreactionsNotifySettings#56e34970 flags:# messages_notify_from:flags.0?ReactionNotificationsFrom stories_notify_from:flags.1?ReactionNotificationsFrom sound:NotificationSound show_previews:Bool = ReactionsNotifySettings;\nbroadcastRevenueBalances#c3ff71e7 flags:# withdrawal_enabled:flags.0?true current_balance:long available_balance:long overall_revenue:long = BroadcastRevenueBalances;\navailableEffect#93c3e27e flags:# premium_required:flags.2?true id:long emoticon:string static_icon_id:flags.0?long effect_sticker_id:long effect_animation_id:flags.1?long = AvailableEffect;\nmessages.availableEffectsNotModified#d1ed9a5b = messages.AvailableEffects;\nmessages.availableEffects#bddb616e hash:int effects:Vector documents:Vector = messages.AvailableEffects;\nfactCheck#b89bfccf flags:# need_check:flags.0?true country:flags.1?string text:flags.1?TextWithEntities hash:long = FactCheck;\nstarsTransactionPeerUnsupported#95f2bfe4 = StarsTransactionPeer;\nstarsTransactionPeerAppStore#b457b375 = StarsTransactionPeer;\nstarsTransactionPeerPlayMarket#7b560a0b = StarsTransactionPeer;\nstarsTransactionPeerPremiumBot#250dbaf8 = StarsTransactionPeer;\nstarsTransactionPeerFragment#e92fd902 = StarsTransactionPeer;\nstarsTransactionPeer#d80da15d peer:Peer = StarsTransactionPeer;\nstarsTransactionPeerAds#60682812 = StarsTransactionPeer;\nstarsTransactionPeerAPI#f9677aad = StarsTransactionPeer;\nstarsTopupOption#bd915c0 flags:# extended:flags.1?true stars:long store_product:flags.0?string currency:string amount:long = StarsTopupOption;\nstarsTransaction#35d4f276 flags:# refund:flags.3?true pending:flags.4?true failed:flags.6?true gift:flags.10?true reaction:flags.11?true id:string stars:long date:int peer:StarsTransactionPeer title:flags.0?string description:flags.1?string photo:flags.2?WebDocument transaction_date:flags.5?int transaction_url:flags.5?string bot_payload:flags.7?bytes msg_id:flags.8?int extended_media:flags.9?Vector subscription_period:flags.12?int giveaway_post_id:flags.13?int stargift:flags.14?StarGift floodskip_number:flags.15?int = StarsTransaction;\npayments.starsStatus#bbfa316c flags:# balance:long subscriptions:flags.1?Vector subscriptions_next_offset:flags.2?string subscriptions_missing_balance:flags.4?long history:flags.3?Vector next_offset:flags.0?string chats:Vector users:Vector = payments.StarsStatus;\nfoundStory#e87acbc0 peer:Peer story:StoryItem = FoundStory;\nstories.foundStories#e2de7737 flags:# count:int stories:Vector next_offset:flags.0?string chats:Vector users:Vector = stories.FoundStories;\ngeoPointAddress#de4c5d93 flags:# country_iso2:string state:flags.0?string city:flags.1?string street:flags.2?string = GeoPointAddress;\nstarsRevenueStatus#79342946 flags:# withdrawal_enabled:flags.0?true current_balance:long available_balance:long overall_revenue:long next_withdrawal_at:flags.1?int = StarsRevenueStatus;\npayments.starsRevenueStats#c92bb73b revenue_graph:StatsGraph status:StarsRevenueStatus usd_rate:double = payments.StarsRevenueStats;\npayments.starsRevenueWithdrawalUrl#1dab80b7 url:string = payments.StarsRevenueWithdrawalUrl;\npayments.starsRevenueAdsAccountUrl#394e7f21 url:string = payments.StarsRevenueAdsAccountUrl;\ninputStarsTransaction#206ae6d1 flags:# refund:flags.0?true id:string = InputStarsTransaction;\nstarsGiftOption#5e0589f1 flags:# extended:flags.1?true stars:long store_product:flags.0?string currency:string amount:long = StarsGiftOption;\nbots.popularAppBots#1991b13b flags:# next_offset:flags.0?string users:Vector = bots.PopularAppBots;\nbotPreviewMedia#23e91ba3 date:int media:MessageMedia = BotPreviewMedia;\nbots.previewInfo#ca71d64 media:Vector lang_codes:Vector = bots.PreviewInfo;\nstarsSubscriptionPricing#5416d58 period:int amount:long = StarsSubscriptionPricing;\nstarsSubscription#2e6eab1a flags:# canceled:flags.0?true can_refulfill:flags.1?true missing_balance:flags.2?true bot_canceled:flags.7?true id:string peer:Peer until_date:int pricing:StarsSubscriptionPricing chat_invite_hash:flags.3?string title:flags.4?string photo:flags.5?WebDocument invoice_slug:flags.6?string = StarsSubscription;\nmessageReactor#4ba3a95a flags:# top:flags.0?true my:flags.1?true anonymous:flags.2?true peer_id:flags.3?Peer count:int = MessageReactor;\nstarsGiveawayOption#94ce852a flags:# extended:flags.0?true default:flags.1?true stars:long yearly_boosts:int store_product:flags.2?string currency:string amount:long winners:Vector = StarsGiveawayOption;\nstarsGiveawayWinnersOption#54236209 flags:# default:flags.0?true users:int per_user_stars:long = StarsGiveawayWinnersOption;\nstarGift#49c577cd flags:# limited:flags.0?true sold_out:flags.1?true birthday:flags.2?true id:long sticker:Document stars:long availability_remains:flags.0?int availability_total:flags.0?int convert_stars:long first_sale_date:flags.1?int last_sale_date:flags.1?int = StarGift;\npayments.starGiftsNotModified#a388a368 = payments.StarGifts;\npayments.starGifts#901689ea hash:int gifts:Vector = payments.StarGifts;\nuserStarGift#eea49a6e flags:# name_hidden:flags.0?true unsaved:flags.5?true from_id:flags.1?long date:int gift:StarGift message:flags.2?TextWithEntities msg_id:flags.3?int convert_stars:flags.4?long = UserStarGift;\npayments.userStarGifts#6b65b517 flags:# count:int gifts:Vector next_offset:flags.0?string users:Vector = payments.UserStarGifts;\nmessageReportOption#7903e3d9 text:string option:bytes = MessageReportOption;\nreportResultChooseOption#f0e4e0b6 title:string options:Vector = ReportResult;\nreportResultAddComment#6f09ac31 flags:# optional:flags.0?true option:bytes = ReportResult;\nreportResultReported#8db33c4b = ReportResult;\nmessages.botPreparedInlineMessage#8ecf0511 id:string expire_date:int = messages.BotPreparedInlineMessage;\nmessages.preparedInlineMessage#ff57708d query_id:long result:BotInlineResult peer_types:Vector cache_time:int users:Vector = messages.PreparedInlineMessage;\nbotAppSettings#c99b1950 flags:# placeholder_path:flags.0?bytes background_color:flags.1?int background_dark_color:flags.2?int header_color:flags.3?int header_dark_color:flags.4?int = BotAppSettings;\n---functions---\ninvokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;\ninvokeAfterMsgs#3dc4b4f0 {X:Type} msg_ids:Vector query:!X = X;\ninitConnection#c1cd5ea9 {X:Type} flags:# api_id:int device_model:string system_version:string app_version:string system_lang_code:string lang_pack:string lang_code:string proxy:flags.0?InputClientProxy params:flags.1?JSONValue query:!X = X;\ninvokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X;\ninvokeWithoutUpdates#bf9459b7 {X:Type} query:!X = X;\ninvokeWithMessagesRange#365275f2 {X:Type} range:MessageRange query:!X = X;\ninvokeWithTakeout#aca9fd2e {X:Type} takeout_id:long query:!X = X;\ninvokeWithBusinessConnection#dd289f8e {X:Type} connection_id:string query:!X = X;\ninvokeWithGooglePlayIntegrity#1df92984 {X:Type} nonce:string token:string query:!X = X;\ninvokeWithApnsSecret#0dae54f8 {X:Type} nonce:string secret:string query:!X = X;\nauth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode;\nauth.signUp#aac7b717 flags:# no_joined_notifications:flags.0?true phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization;\nauth.signIn#8d52a951 flags:# phone_number:string phone_code_hash:string phone_code:flags.0?string email_verification:flags.1?EmailVerification = auth.Authorization;\nauth.logOut#3e72ba19 = auth.LoggedOut;\nauth.resetAuthorizations#9fab0d1a = Bool;\nauth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization;\nauth.importAuthorization#a57a7dad id:long bytes:bytes = auth.Authorization;\nauth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool;\nauth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;\nauth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization;\nauth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;\nauth.recoverPassword#37096c70 flags:# code:string new_settings:flags.0?account.PasswordInputSettings = auth.Authorization;\nauth.resendCode#cae47523 flags:# phone_number:string phone_code_hash:string reason:flags.0?string = auth.SentCode;\nauth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;\nauth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector = Bool;\nauth.exportLoginToken#b7e085fe api_id:int api_hash:string except_ids:Vector = auth.LoginToken;\nauth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken;\nauth.acceptLoginToken#e894ad4d token:bytes = Authorization;\nauth.checkRecoveryPassword#d36bf79 code:string = Bool;\nauth.importWebTokenAuthorization#2db873a9 api_id:int api_hash:string web_auth_token:string = auth.Authorization;\nauth.requestFirebaseSms#8e39261e flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string play_integrity_token:flags.2?string ios_push_secret:flags.1?string = Bool;\nauth.resetLoginEmail#7e960193 phone_number:string phone_code_hash:string = auth.SentCode;\nauth.reportMissingCode#cb9deff6 phone_number:string phone_code_hash:string mnc:string = Bool;\naccount.registerDevice#ec86017a flags:# no_muted:flags.0?true token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector = Bool;\naccount.unregisterDevice#6a0d3206 token_type:int token:string other_uids:Vector = Bool;\naccount.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool;\naccount.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings;\naccount.resetNotifySettings#db7e1747 = Bool;\naccount.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;\naccount.updateStatus#6628562c offline:Bool = Bool;\naccount.getWallPapers#7967d36 hash:long = account.WallPapers;\naccount.reportPeer#c5ba3d86 peer:InputPeer reason:ReportReason message:string = Bool;\naccount.checkUsername#2714d86c username:string = Bool;\naccount.updateUsername#3e0bdd7c username:string = User;\naccount.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;\naccount.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector = account.PrivacyRules;\naccount.deleteAccount#a2c0cf74 flags:# reason:string password:flags.0?InputCheckPasswordSRP = Bool;\naccount.getAccountTTL#8fc711d = AccountDaysTTL;\naccount.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;\naccount.sendChangePhoneCode#82574ae5 phone_number:string settings:CodeSettings = auth.SentCode;\naccount.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;\naccount.updateDeviceLocked#38df3532 period:int = Bool;\naccount.getAuthorizations#e320c158 = account.Authorizations;\naccount.resetAuthorization#df77f3bc hash:long = Bool;\naccount.getPassword#548a30f5 = account.Password;\naccount.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings;\naccount.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool;\naccount.sendConfirmPhoneCode#1b3faa88 hash:string settings:CodeSettings = auth.SentCode;\naccount.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;\naccount.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword;\naccount.getWebAuthorizations#182e6d6f = account.WebAuthorizations;\naccount.resetWebAuthorization#2d01b9ef hash:long = Bool;\naccount.resetWebAuthorizations#682d2594 = Bool;\naccount.getAllSecureValues#b288bc7d = Vector;\naccount.getSecureValue#73665bc2 types:Vector = Vector;\naccount.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue;\naccount.deleteSecureValue#b880bc4b types:Vector = Bool;\naccount.getAuthorizationForm#a929597a bot_id:long scope:string public_key:string = account.AuthorizationForm;\naccount.acceptAuthorization#f3ed4c73 bot_id:long scope:string public_key:string value_hashes:Vector credentials:SecureCredentialsEncrypted = Bool;\naccount.sendVerifyPhoneCode#a5a356f9 phone_number:string settings:CodeSettings = auth.SentCode;\naccount.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool;\naccount.sendVerifyEmailCode#98e037bb purpose:EmailVerifyPurpose email:string = account.SentEmailCode;\naccount.verifyEmail#32da4cf purpose:EmailVerifyPurpose verification:EmailVerification = account.EmailVerified;\naccount.initTakeoutSession#8ef3eab0 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?long = account.Takeout;\naccount.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool;\naccount.confirmPasswordEmail#8fdf1920 code:string = Bool;\naccount.resendPasswordEmail#7a7f2a15 = Bool;\naccount.cancelPasswordEmail#c1cbd5b6 = Bool;\naccount.getContactSignUpNotification#9f07c728 = Bool;\naccount.setContactSignUpNotification#cff43f61 silent:Bool = Bool;\naccount.getNotifyExceptions#53577479 flags:# compare_sound:flags.1?true compare_stories:flags.2?true peer:flags.0?InputNotifyPeer = Updates;\naccount.getWallPaper#fc8ddbea wallpaper:InputWallPaper = WallPaper;\naccount.uploadWallPaper#e39a8f03 flags:# for_chat:flags.0?true file:InputFile mime_type:string settings:WallPaperSettings = WallPaper;\naccount.saveWallPaper#6c5a5b37 wallpaper:InputWallPaper unsave:Bool settings:WallPaperSettings = Bool;\naccount.installWallPaper#feed5769 wallpaper:InputWallPaper settings:WallPaperSettings = Bool;\naccount.resetWallPapers#bb3b9804 = Bool;\naccount.getAutoDownloadSettings#56da0b3f = account.AutoDownloadSettings;\naccount.saveAutoDownloadSettings#76f36233 flags:# low:flags.0?true high:flags.1?true settings:AutoDownloadSettings = Bool;\naccount.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document;\naccount.createTheme#652e4400 flags:# slug:string title:string document:flags.2?InputDocument settings:flags.3?Vector = Theme;\naccount.updateTheme#2bf40ccc flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?Vector = Theme;\naccount.saveTheme#f257106c theme:InputTheme unsave:Bool = Bool;\naccount.installTheme#c727bb3b flags:# dark:flags.0?true theme:flags.1?InputTheme format:flags.2?string base_theme:flags.3?BaseTheme = Bool;\naccount.getTheme#3a5869ec format:string theme:InputTheme = Theme;\naccount.getThemes#7206e458 format:string hash:long = account.Themes;\naccount.setContentSettings#b574b16b flags:# sensitive_enabled:flags.0?true = Bool;\naccount.getContentSettings#8b9b4dae = account.ContentSettings;\naccount.getMultiWallPapers#65ad71dc wallpapers:Vector = Vector;\naccount.getGlobalPrivacySettings#eb2b4cf6 = GlobalPrivacySettings;\naccount.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings;\naccount.reportProfilePhoto#fa8cc6f5 peer:InputPeer photo_id:InputPhoto reason:ReportReason message:string = Bool;\naccount.resetPassword#9308ce1b = account.ResetPasswordResult;\naccount.declinePasswordReset#4c9409f6 = Bool;\naccount.getChatThemes#d638de89 hash:long = account.Themes;\naccount.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool;\naccount.changeAuthorizationSettings#40f48462 flags:# confirmed:flags.3?true hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;\naccount.getSavedRingtones#e1902288 hash:long = account.SavedRingtones;\naccount.saveRingtone#3dea5b03 id:InputDocument unsave:Bool = account.SavedRingtone;\naccount.uploadRingtone#831a83a2 file:InputFile file_name:string mime_type:string = Document;\naccount.updateEmojiStatus#fbd3de6b emoji_status:EmojiStatus = Bool;\naccount.getDefaultEmojiStatuses#d6753386 hash:long = account.EmojiStatuses;\naccount.getRecentEmojiStatuses#f578105 hash:long = account.EmojiStatuses;\naccount.clearRecentEmojiStatuses#18201aae = Bool;\naccount.reorderUsernames#ef500eab order:Vector = Bool;\naccount.toggleUsername#58d6b376 username:string active:Bool = Bool;\naccount.getDefaultProfilePhotoEmojis#e2750328 hash:long = EmojiList;\naccount.getDefaultGroupPhotoEmojis#915860ae hash:long = EmojiList;\naccount.getAutoSaveSettings#adcbbcda = account.AutoSaveSettings;\naccount.saveAutoSaveSettings#d69b8361 flags:# users:flags.0?true chats:flags.1?true broadcasts:flags.2?true peer:flags.3?InputPeer settings:AutoSaveSettings = Bool;\naccount.deleteAutoSaveExceptions#53bc0020 = Bool;\naccount.invalidateSignInCodes#ca8ae8ba codes:Vector = Bool;\naccount.updateColor#7cefa15d flags:# for_profile:flags.1?true color:flags.2?int background_emoji_id:flags.0?long = Bool;\naccount.getDefaultBackgroundEmojis#a60ab9ce hash:long = EmojiList;\naccount.getChannelDefaultEmojiStatuses#7727a7d5 hash:long = account.EmojiStatuses;\naccount.getChannelRestrictedStatusEmojis#35a9e0d5 hash:long = EmojiList;\naccount.updateBusinessWorkHours#4b00e066 flags:# business_work_hours:flags.0?BusinessWorkHours = Bool;\naccount.updateBusinessLocation#9e6b131a flags:# geo_point:flags.1?InputGeoPoint address:flags.0?string = Bool;\naccount.updateBusinessGreetingMessage#66cdafc4 flags:# message:flags.0?InputBusinessGreetingMessage = Bool;\naccount.updateBusinessAwayMessage#a26a7fa5 flags:# message:flags.0?InputBusinessAwayMessage = Bool;\naccount.updateConnectedBot#43d8521d flags:# can_reply:flags.0?true deleted:flags.1?true bot:InputUser recipients:InputBusinessBotRecipients = Updates;\naccount.getConnectedBots#4ea4c80f = account.ConnectedBots;\naccount.getBotBusinessConnection#76a86270 connection_id:string = Updates;\naccount.updateBusinessIntro#a614d034 flags:# intro:flags.0?InputBusinessIntro = Bool;\naccount.toggleConnectedBotPaused#646e1097 peer:InputPeer paused:Bool = Bool;\naccount.disablePeerConnectedBot#5e437ed9 peer:InputPeer = Bool;\naccount.updateBirthday#cc6e0c11 flags:# birthday:flags.0?Birthday = Bool;\naccount.createBusinessChatLink#8851e68e link:InputBusinessChatLink = BusinessChatLink;\naccount.editBusinessChatLink#8c3410af slug:string link:InputBusinessChatLink = BusinessChatLink;\naccount.deleteBusinessChatLink#60073674 slug:string = Bool;\naccount.getBusinessChatLinks#6f70dde1 = account.BusinessChatLinks;\naccount.resolveBusinessChatLink#5492e5ee slug:string = account.ResolvedBusinessChatLinks;\naccount.updatePersonalChannel#d94305e0 channel:InputChannel = Bool;\naccount.toggleSponsoredMessages#b9d9a38d enabled:Bool = Bool;\naccount.getReactionsNotifySettings#6dd654c = ReactionsNotifySettings;\naccount.setReactionsNotifySettings#316ce548 settings:ReactionsNotifySettings = ReactionsNotifySettings;\nusers.getUsers#d91a548 id:Vector = Vector;\nusers.getFullUser#b60f5918 id:InputUser = users.UserFull;\nusers.setSecureValueErrors#90c894b5 id:InputUser errors:Vector = Bool;\nusers.getIsPremiumRequiredToContact#a622aa10 id:Vector = Vector;\ncontacts.getContactIDs#7adc669d hash:long = Vector;\ncontacts.getStatuses#c4a353ee = Vector;\ncontacts.getContacts#5dd69e12 hash:long = contacts.Contacts;\ncontacts.importContacts#2c800be5 contacts:Vector = contacts.ImportedContacts;\ncontacts.deleteContacts#96a0e00 id:Vector = Updates;\ncontacts.deleteByPhones#1013fd9e phones:Vector = Bool;\ncontacts.block#2e2e8734 flags:# my_stories_from:flags.0?true id:InputPeer = Bool;\ncontacts.unblock#b550d328 flags:# my_stories_from:flags.0?true id:InputPeer = Bool;\ncontacts.getBlocked#9a868f80 flags:# my_stories_from:flags.0?true offset:int limit:int = contacts.Blocked;\ncontacts.search#11f812d8 q:string limit:int = contacts.Found;\ncontacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer;\ncontacts.getTopPeers#973478b6 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true forward_users:flags.4?true forward_chats:flags.5?true groups:flags.10?true channels:flags.15?true bots_app:flags.16?true offset:int limit:int hash:long = contacts.TopPeers;\ncontacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool;\ncontacts.resetSaved#879537f1 = Bool;\ncontacts.getSaved#82f1e39f = Vector;\ncontacts.toggleTopPeers#8514bdda enabled:Bool = Bool;\ncontacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0?true id:InputUser first_name:string last_name:string phone:string = Updates;\ncontacts.acceptContact#f831a20f id:InputUser = Updates;\ncontacts.getLocated#d348bc44 flags:# background:flags.1?true geo_point:InputGeoPoint self_expires:flags.0?int = Updates;\ncontacts.blockFromReplies#29a8962c flags:# delete_message:flags.0?true delete_history:flags.1?true report_spam:flags.2?true msg_id:int = Updates;\ncontacts.resolvePhone#8af94344 phone:string = contacts.ResolvedPeer;\ncontacts.exportContactToken#f8654027 = ExportedContactToken;\ncontacts.importContactToken#13005788 token:string = User;\ncontacts.editCloseFriends#ba6705f0 id:Vector = Bool;\ncontacts.setBlocked#94c65c76 flags:# my_stories_from:flags.0?true id:Vector limit:int = Bool;\ncontacts.getBirthdays#daeda864 = contacts.ContactBirthdays;\nmessages.getMessages#63c66506 id:Vector = messages.Messages;\nmessages.getDialogs#a0f4cb4f flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.Dialogs;\nmessages.getHistory#4423e6c5 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages;\nmessages.search#29ee847a flags:# peer:InputPeer q:string from_id:flags.0?InputPeer saved_peer_id:flags.2?InputPeer saved_reaction:flags.3?Vector top_msg_id:flags.1?int filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages;\nmessages.readHistory#e306d3a peer:InputPeer max_id:int = messages.AffectedMessages;\nmessages.deleteHistory#b08f922a flags:# just_clear:flags.0?true revoke:flags.1?true peer:InputPeer max_id:int min_date:flags.2?int max_date:flags.3?int = messages.AffectedHistory;\nmessages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector = messages.AffectedMessages;\nmessages.receivedMessages#5a954c0 max_id:int = Vector;\nmessages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool;\nmessages.sendMessage#983f9745 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true allow_paid_floodskip:flags.19?true peer:InputPeer reply_to:flags.0?InputReplyTo message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates;\nmessages.sendMedia#7852834e flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true allow_paid_floodskip:flags.19?true peer:InputPeer reply_to:flags.0?InputReplyTo media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates;\nmessages.forwardMessages#d5039208 flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true allow_paid_floodskip:flags.19?true from_peer:InputPeer id:Vector random_id:Vector to_peer:InputPeer top_msg_id:flags.9?int schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates;\nmessages.reportSpam#cf1592db peer:InputPeer = Bool;\nmessages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings;\nmessages.report#fc78af9b peer:InputPeer id:Vector option:bytes message:string = ReportResult;\nmessages.getChats#49e9528f id:Vector = messages.Chats;\nmessages.getFullChat#aeb00b34 chat_id:long = messages.ChatFull;\nmessages.editChatTitle#73783ffd chat_id:long title:string = Updates;\nmessages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates;\nmessages.addChatUser#cbc6d107 chat_id:long user_id:InputUser fwd_limit:int = messages.InvitedUsers;\nmessages.deleteChatUser#a2185cab flags:# revoke_history:flags.0?true chat_id:long user_id:InputUser = Updates;\nmessages.createChat#92ceddd4 flags:# users:Vector title:string ttl_period:flags.0?int = messages.InvitedUsers;\nmessages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig;\nmessages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat;\nmessages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat;\nmessages.discardEncryption#f393aea0 flags:# delete_history:flags.0?true chat_id:int = Bool;\nmessages.setEncryptedTyping#791451ed peer:InputEncryptedChat typing:Bool = Bool;\nmessages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool;\nmessages.sendEncrypted#44fa7a15 flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage;\nmessages.sendEncryptedFile#5559481d flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage;\nmessages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage;\nmessages.receivedQueue#55a5bb66 max_qts:int = Vector;\nmessages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool;\nmessages.readMessageContents#36a73f77 id:Vector = messages.AffectedMessages;\nmessages.getStickers#d5a5d3a1 emoticon:string hash:long = messages.Stickers;\nmessages.getAllStickers#b8a0a1a8 hash:long = messages.AllStickers;\nmessages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector = MessageMedia;\nmessages.exportChatInvite#a455de90 flags:# legacy_revoke_permanent:flags.2?true request_needed:flags.3?true peer:InputPeer expire_date:flags.0?int usage_limit:flags.1?int title:flags.4?string subscription_pricing:flags.5?StarsSubscriptionPricing = ExportedChatInvite;\nmessages.checkChatInvite#3eadb1bb hash:string = ChatInvite;\nmessages.importChatInvite#6c50051c hash:string = Updates;\nmessages.getStickerSet#c8a0ec74 stickerset:InputStickerSet hash:int = messages.StickerSet;\nmessages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult;\nmessages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool;\nmessages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates;\nmessages.getMessagesViews#5784d3e1 peer:InputPeer id:Vector increment:Bool = messages.MessageViews;\nmessages.editChatAdmin#a85bd1c2 chat_id:long user_id:InputUser is_admin:Bool = Bool;\nmessages.migrateChat#a2875319 chat_id:long = Updates;\nmessages.searchGlobal#4bc6589a flags:# broadcasts_only:flags.1?true folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;\nmessages.reorderStickerSets#78337739 flags:# masks:flags.0?true emojis:flags.1?true order:Vector = Bool;\nmessages.getDocumentByHash#b1f2061f sha256:bytes size:long mime_type:string = Document;\nmessages.getSavedGifs#5cf09635 hash:long = messages.SavedGifs;\nmessages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool;\nmessages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults;\nmessages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool;\nmessages.sendInlineBotResult#3ebee86a flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates;\nmessages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData;\nmessages.editMessage#dfd14005 flags:# no_webpage:flags.1?true invert_media:flags.16?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector schedule_date:flags.15?int quick_reply_shortcut_id:flags.17?int = Updates;\nmessages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true invert_media:flags.16?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector = Bool;\nmessages.getBotCallbackAnswer#9342ca07 flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes password:flags.2?InputCheckPasswordSRP = messages.BotCallbackAnswer;\nmessages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;\nmessages.getPeerDialogs#e470bcfd peers:Vector = messages.PeerDialogs;\nmessages.saveDraft#d372c5ce flags:# no_webpage:flags.1?true invert_media:flags.6?true reply_to:flags.4?InputReplyTo peer:InputPeer message:string entities:flags.3?Vector media:flags.5?InputMedia effect:flags.7?long = Bool;\nmessages.getAllDrafts#6a3f8d65 = Updates;\nmessages.getFeaturedStickers#64780b14 hash:long = messages.FeaturedStickers;\nmessages.readFeaturedStickers#5b118126 id:Vector = Bool;\nmessages.getRecentStickers#9da9403b flags:# attached:flags.0?true hash:long = messages.RecentStickers;\nmessages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool;\nmessages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool;\nmessages.getArchivedStickers#57f17692 flags:# masks:flags.0?true emojis:flags.1?true offset_id:long limit:int = messages.ArchivedStickers;\nmessages.getMaskStickers#640f82b8 hash:long = messages.AllStickers;\nmessages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector;\nmessages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates;\nmessages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool;\nmessages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores;\nmessages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores;\nmessages.getCommonChats#e40ca104 user_id:InputUser max_id:long limit:int = messages.Chats;\nmessages.getWebPage#8d9692a3 url:string hash:int = messages.WebPage;\nmessages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool;\nmessages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int order:Vector = Bool;\nmessages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs;\nmessages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector = Bool;\nmessages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool;\nmessages.uploadMedia#14967978 flags:# business_connection_id:flags.0?string peer:InputPeer media:InputMedia = MessageMedia;\nmessages.sendScreenshotNotification#a1405817 peer:InputPeer reply_to:InputReplyTo random_id:long = Updates;\nmessages.getFavedStickers#4f1aaa9 hash:long = messages.FavedStickers;\nmessages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool;\nmessages.getUnreadMentions#f107e790 flags:# peer:InputPeer top_msg_id:flags.0?int offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;\nmessages.readMentions#36e5bf4d flags:# peer:InputPeer top_msg_id:flags.0?int = messages.AffectedHistory;\nmessages.getRecentLocations#702a40e0 peer:InputPeer limit:int hash:long = messages.Messages;\nmessages.sendMultiMedia#37b74355 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true update_stickersets_order:flags.15?true invert_media:flags.16?true allow_paid_floodskip:flags.19?true peer:InputPeer reply_to:flags.0?InputReplyTo multi_media:Vector schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut effect:flags.18?long = Updates;\nmessages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile;\nmessages.searchStickerSets#35705b8a flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets;\nmessages.getSplitRanges#1cff7e08 = Vector;\nmessages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogPeer = Bool;\nmessages.getDialogUnreadMarks#22e24e22 = Vector;\nmessages.clearAllDrafts#7e58ee9c = Bool;\nmessages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true unpin:flags.1?true pm_oneside:flags.2?true peer:InputPeer id:int = Updates;\nmessages.sendVote#10ea6184 peer:InputPeer msg_id:int options:Vector = Updates;\nmessages.getPollResults#73bb643b peer:InputPeer msg_id:int = Updates;\nmessages.getOnlines#6e2be050 peer:InputPeer = ChatOnlines;\nmessages.editChatAbout#def60797 peer:InputPeer about:string = Bool;\nmessages.editChatDefaultBannedRights#a5866b41 peer:InputPeer banned_rights:ChatBannedRights = Updates;\nmessages.getEmojiKeywords#35a0e062 lang_code:string = EmojiKeywordsDifference;\nmessages.getEmojiKeywordsDifference#1508b6af lang_code:string from_version:int = EmojiKeywordsDifference;\nmessages.getEmojiKeywordsLanguages#4e9963b2 lang_codes:Vector = Vector;\nmessages.getEmojiURL#d5b10c26 lang_code:string = EmojiURL;\nmessages.getSearchCounters#1bbcf300 flags:# peer:InputPeer saved_peer_id:flags.2?InputPeer top_msg_id:flags.0?int filters:Vector = Vector;\nmessages.requestUrlAuth#198fb446 flags:# peer:flags.1?InputPeer msg_id:flags.1?int button_id:flags.1?int url:flags.2?string = UrlAuthResult;\nmessages.acceptUrlAuth#b12c7125 flags:# write_allowed:flags.0?true peer:flags.1?InputPeer msg_id:flags.1?int button_id:flags.1?int url:flags.2?string = UrlAuthResult;\nmessages.hidePeerSettingsBar#4facb138 peer:InputPeer = Bool;\nmessages.getScheduledHistory#f516760b peer:InputPeer hash:long = messages.Messages;\nmessages.getScheduledMessages#bdbb0464 peer:InputPeer id:Vector = messages.Messages;\nmessages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector = Updates;\nmessages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector = Updates;\nmessages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList;\nmessages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector = Bool;\nmessages.getDialogFilters#efd48c89 = messages.DialogFilters;\nmessages.getSuggestedDialogFilters#a29cd42c = Vector;\nmessages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool;\nmessages.updateDialogFiltersOrder#c563c1e4 order:Vector = Bool;\nmessages.getOldFeaturedStickers#7ed094a1 offset:int limit:int hash:long = messages.FeaturedStickers;\nmessages.getReplies#22ddd30c peer:InputPeer msg_id:int offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages;\nmessages.getDiscussionMessage#446972fd peer:InputPeer msg_id:int = messages.DiscussionMessage;\nmessages.readDiscussion#f731a9f4 peer:InputPeer msg_id:int read_max_id:int = Bool;\nmessages.unpinAllMessages#ee22b9a8 flags:# peer:InputPeer top_msg_id:flags.0?int = messages.AffectedHistory;\nmessages.deleteChat#5bd0ee50 chat_id:long = Bool;\nmessages.deletePhoneCallHistory#f9cbe409 flags:# revoke:flags.0?true = messages.AffectedFoundMessages;\nmessages.checkHistoryImport#43fe19f3 import_head:string = messages.HistoryImportParsed;\nmessages.initHistoryImport#34090c3b peer:InputPeer file:InputFile media_count:int = messages.HistoryImport;\nmessages.uploadImportedMedia#2a862092 peer:InputPeer import_id:long file_name:string media:InputMedia = MessageMedia;\nmessages.startHistoryImport#b43df344 peer:InputPeer import_id:long = Bool;\nmessages.getExportedChatInvites#a2b5a3f6 flags:# revoked:flags.3?true peer:InputPeer admin_id:InputUser offset_date:flags.2?int offset_link:flags.2?string limit:int = messages.ExportedChatInvites;\nmessages.getExportedChatInvite#73746f5c peer:InputPeer link:string = messages.ExportedChatInvite;\nmessages.editExportedChatInvite#bdca2f75 flags:# revoked:flags.2?true peer:InputPeer link:string expire_date:flags.0?int usage_limit:flags.1?int request_needed:flags.3?Bool title:flags.4?string = messages.ExportedChatInvite;\nmessages.deleteRevokedExportedChatInvites#56987bd5 peer:InputPeer admin_id:InputUser = Bool;\nmessages.deleteExportedChatInvite#d464a42b peer:InputPeer link:string = Bool;\nmessages.getAdminsWithInvites#3920e6ef peer:InputPeer = messages.ChatAdminsWithInvites;\nmessages.getChatInviteImporters#df04dd4e flags:# requested:flags.0?true subscription_expired:flags.3?true peer:InputPeer link:flags.1?string q:flags.2?string offset_date:int offset_user:InputUser limit:int = messages.ChatInviteImporters;\nmessages.setHistoryTTL#b80e5fe4 peer:InputPeer period:int = Updates;\nmessages.checkHistoryImportPeer#5dc60f03 peer:InputPeer = messages.CheckedHistoryImportPeer;\nmessages.setChatTheme#e63be13f peer:InputPeer emoticon:string = Updates;\nmessages.getMessageReadParticipants#31c1c44f peer:InputPeer msg_id:int = Vector;\nmessages.getSearchResultsCalendar#6aa3f6bd flags:# peer:InputPeer saved_peer_id:flags.2?InputPeer filter:MessagesFilter offset_id:int offset_date:int = messages.SearchResultsCalendar;\nmessages.getSearchResultsPositions#9c7f2f10 flags:# peer:InputPeer saved_peer_id:flags.2?InputPeer filter:MessagesFilter offset_id:int limit:int = messages.SearchResultsPositions;\nmessages.hideChatJoinRequest#7fe7e815 flags:# approved:flags.0?true peer:InputPeer user_id:InputUser = Updates;\nmessages.hideAllChatJoinRequests#e085f4ea flags:# approved:flags.0?true peer:InputPeer link:flags.1?string = Updates;\nmessages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;\nmessages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;\nmessages.sendReaction#d30d78d4 flags:# big:flags.1?true add_to_recent:flags.2?true peer:InputPeer msg_id:int reaction:flags.0?Vector = Updates;\nmessages.getMessagesReactions#8bba90e6 peer:InputPeer id:Vector = Updates;\nmessages.getMessageReactionsList#461b3f48 flags:# peer:InputPeer id:int reaction:flags.0?Reaction offset:flags.1?string limit:int = messages.MessageReactionsList;\nmessages.setChatAvailableReactions#864b2581 flags:# peer:InputPeer available_reactions:ChatReactions reactions_limit:flags.0?int paid_enabled:flags.1?Bool = Updates;\nmessages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;\nmessages.setDefaultReaction#4f47a016 reaction:Reaction = Bool;\nmessages.translateText#63183030 flags:# peer:flags.0?InputPeer id:flags.0?Vector text:flags.1?Vector to_lang:string = messages.TranslatedText;\nmessages.getUnreadReactions#3223495b flags:# peer:InputPeer top_msg_id:flags.0?int offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;\nmessages.readReactions#54aa7f8e flags:# peer:InputPeer top_msg_id:flags.0?int = messages.AffectedHistory;\nmessages.searchSentMedia#107e31a0 q:string filter:MessagesFilter limit:int = messages.Messages;\nmessages.getAttachMenuBots#16fcc2cb hash:long = AttachMenuBots;\nmessages.getAttachMenuBot#77216192 bot:InputUser = AttachMenuBotsBot;\nmessages.toggleBotInAttachMenu#69f59d69 flags:# write_allowed:flags.0?true bot:InputUser enabled:Bool = Bool;\nmessages.requestWebView#269dc2c1 flags:# from_bot_menu:flags.4?true silent:flags.5?true compact:flags.7?true fullscreen:flags.8?true peer:InputPeer bot:InputUser url:flags.1?string start_param:flags.3?string theme_params:flags.2?DataJSON platform:string reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = WebViewResult;\nmessages.prolongWebView#b0d81a83 flags:# silent:flags.5?true peer:InputPeer bot:InputUser query_id:long reply_to:flags.0?InputReplyTo send_as:flags.13?InputPeer = Bool;\nmessages.requestSimpleWebView#413a3e73 flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true compact:flags.7?true fullscreen:flags.8?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = WebViewResult;\nmessages.sendWebViewResultMessage#a4314f5 bot_query_id:string result:InputBotInlineResult = WebViewMessageSent;\nmessages.sendWebViewData#dc0242c8 bot:InputUser random_id:long button_text:string data:string = Updates;\nmessages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio;\nmessages.rateTranscribedAudio#7f1d072f peer:InputPeer msg_id:int transcription_id:long good:Bool = Bool;\nmessages.getCustomEmojiDocuments#d9ab0f54 document_id:Vector = Vector;\nmessages.getEmojiStickers#fbfca18f hash:long = messages.AllStickers;\nmessages.getFeaturedEmojiStickers#ecf6736 hash:long = messages.FeaturedStickers;\nmessages.reportReaction#3f64c076 peer:InputPeer id:int reaction_peer:InputPeer = Bool;\nmessages.getTopReactions#bb8125ba limit:int hash:long = messages.Reactions;\nmessages.getRecentReactions#39461db2 limit:int hash:long = messages.Reactions;\nmessages.clearRecentReactions#9dfeefb4 = Bool;\nmessages.getExtendedMedia#84f80814 peer:InputPeer id:Vector = Updates;\nmessages.setDefaultHistoryTTL#9eb51445 period:int = Bool;\nmessages.getDefaultHistoryTTL#658b7188 = DefaultHistoryTTL;\nmessages.sendBotRequestedPeer#91b2d060 peer:InputPeer msg_id:int button_id:int requested_peers:Vector = Updates;\nmessages.getEmojiGroups#7488ce5b hash:int = messages.EmojiGroups;\nmessages.getEmojiStatusGroups#2ecd56cd hash:int = messages.EmojiGroups;\nmessages.getEmojiProfilePhotoGroups#21a548f3 hash:int = messages.EmojiGroups;\nmessages.searchCustomEmoji#2c11c0d7 emoticon:string hash:long = EmojiList;\nmessages.togglePeerTranslations#e47cb579 flags:# disabled:flags.0?true peer:InputPeer = Bool;\nmessages.getBotApp#34fdc5c3 app:InputBotApp hash:long = messages.BotApp;\nmessages.requestAppWebView#53618bce flags:# write_allowed:flags.0?true compact:flags.7?true fullscreen:flags.8?true peer:InputPeer app:InputBotApp start_param:flags.1?string theme_params:flags.2?DataJSON platform:string = WebViewResult;\nmessages.setChatWallPaper#8ffacae1 flags:# for_both:flags.3?true revert:flags.4?true peer:InputPeer wallpaper:flags.0?InputWallPaper settings:flags.2?WallPaperSettings id:flags.1?int = Updates;\nmessages.searchEmojiStickerSets#92b4494c flags:# exclude_featured:flags.0?true q:string hash:long = messages.FoundStickerSets;\nmessages.getSavedDialogs#5381d21a flags:# exclude_pinned:flags.0?true offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.SavedDialogs;\nmessages.getSavedHistory#3d9a414d peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages;\nmessages.deleteSavedHistory#6e98102b flags:# peer:InputPeer max_id:int min_date:flags.2?int max_date:flags.3?int = messages.AffectedHistory;\nmessages.getPinnedSavedDialogs#d63d94e0 = messages.SavedDialogs;\nmessages.toggleSavedDialogPin#ac81bbde flags:# pinned:flags.0?true peer:InputDialogPeer = Bool;\nmessages.reorderPinnedSavedDialogs#8b716587 flags:# force:flags.0?true order:Vector = Bool;\nmessages.getSavedReactionTags#3637e05b flags:# peer:flags.0?InputPeer hash:long = messages.SavedReactionTags;\nmessages.updateSavedReactionTag#60297dec flags:# reaction:Reaction title:flags.0?string = Bool;\nmessages.getDefaultTagReactions#bdf93428 hash:long = messages.Reactions;\nmessages.getOutboxReadDate#8c4bfe5d peer:InputPeer msg_id:int = OutboxReadDate;\nmessages.getQuickReplies#d483f2a8 hash:long = messages.QuickReplies;\nmessages.reorderQuickReplies#60331907 order:Vector = Bool;\nmessages.checkQuickReplyShortcut#f1d0fbd3 shortcut:string = Bool;\nmessages.editQuickReplyShortcut#5c003cef shortcut_id:int shortcut:string = Bool;\nmessages.deleteQuickReplyShortcut#3cc04740 shortcut_id:int = Bool;\nmessages.getQuickReplyMessages#94a495c3 flags:# shortcut_id:int id:flags.0?Vector hash:long = messages.Messages;\nmessages.sendQuickReplyMessages#6c750de1 peer:InputPeer shortcut_id:int id:Vector random_id:Vector = Updates;\nmessages.deleteQuickReplyMessages#e105e910 shortcut_id:int id:Vector = Updates;\nmessages.toggleDialogFilterTags#fd2dda49 enabled:Bool = Bool;\nmessages.getMyStickers#d0b5e1fc offset_id:long limit:int = messages.MyStickers;\nmessages.getEmojiStickerGroups#1dd840f5 hash:int = messages.EmojiGroups;\nmessages.getAvailableEffects#dea20a39 hash:int = messages.AvailableEffects;\nmessages.editFactCheck#589ee75 peer:InputPeer msg_id:int text:TextWithEntities = Updates;\nmessages.deleteFactCheck#d1da940c peer:InputPeer msg_id:int = Updates;\nmessages.getFactCheck#b9cdc5ee peer:InputPeer msg_id:Vector = Vector;\nmessages.requestMainWebView#c9e01e7b flags:# compact:flags.7?true fullscreen:flags.8?true peer:InputPeer bot:InputUser start_param:flags.1?string theme_params:flags.0?DataJSON platform:string = WebViewResult;\nmessages.sendPaidReaction#9dd6a67b flags:# peer:InputPeer msg_id:int count:int random_id:long private:flags.0?Bool = Updates;\nmessages.togglePaidReactionPrivacy#849ad397 peer:InputPeer msg_id:int private:Bool = Bool;\nmessages.getPaidReactionPrivacy#472455aa = Updates;\nmessages.viewSponsoredMessage#673ad8f1 peer:InputPeer random_id:bytes = Bool;\nmessages.clickSponsoredMessage#f093465 flags:# media:flags.0?true fullscreen:flags.1?true peer:InputPeer random_id:bytes = Bool;\nmessages.reportSponsoredMessage#1af3dbb8 peer:InputPeer random_id:bytes option:bytes = channels.SponsoredMessageReportResult;\nmessages.getSponsoredMessages#9bd2f439 peer:InputPeer = messages.SponsoredMessages;\nmessages.savePreparedInlineMessage#f21f7f2f flags:# result:InputBotInlineResult user_id:InputUser peer_types:flags.0?Vector = messages.BotPreparedInlineMessage;\nmessages.getPreparedInlineMessage#857ebdb8 bot:InputUser id:string = messages.PreparedInlineMessage;\nupdates.getState#edd4882a = updates.State;\nupdates.getDifference#19c2f763 flags:# pts:int pts_limit:flags.1?int pts_total_limit:flags.0?int date:int qts:int qts_limit:flags.2?int = updates.Difference;\nupdates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;\nphotos.updateProfilePhoto#9e82039 flags:# fallback:flags.0?true bot:flags.1?InputUser id:InputPhoto = photos.Photo;\nphotos.uploadProfilePhoto#388a3b5 flags:# fallback:flags.3?true bot:flags.5?InputUser file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.4?VideoSize = photos.Photo;\nphotos.deletePhotos#87cf7f2f id:Vector = Vector;\nphotos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos;\nphotos.uploadContactProfilePhoto#e14c4a71 flags:# suggest:flags.3?true save:flags.4?true user_id:InputUser file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.5?VideoSize = photos.Photo;\nupload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool;\nupload.getFile#be5335be flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:long limit:int = upload.File;\nupload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool;\nupload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile;\nupload.getCdnFile#395f69da file_token:bytes offset:long limit:int = upload.CdnFile;\nupload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector;\nupload.getCdnFileHashes#91dc3f31 file_token:bytes offset:long = Vector;\nupload.getFileHashes#9156982a location:InputFileLocation offset:long = Vector;\nhelp.getConfig#c4f9186b = Config;\nhelp.getNearestDc#1fb33026 = NearestDc;\nhelp.getAppUpdate#522d5a7d source:string = help.AppUpdate;\nhelp.getInviteText#4d392343 = help.InviteText;\nhelp.getSupport#9cdf08cd = help.Support;\nhelp.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool;\nhelp.getCdnConfig#52029342 = CdnConfig;\nhelp.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls;\nhelp.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate;\nhelp.acceptTermsOfService#ee72f79a id:DataJSON = Bool;\nhelp.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo;\nhelp.getAppConfig#61e3f854 hash:int = help.AppConfig;\nhelp.saveAppLog#6f02f748 events:Vector = Bool;\nhelp.getPassportConfig#c661ad08 hash:int = help.PassportConfig;\nhelp.getSupportName#d360e72c = help.SupportName;\nhelp.getUserInfo#38a08d3 user_id:InputUser = help.UserInfo;\nhelp.editUserInfo#66b91b70 user_id:InputUser message:string entities:Vector = help.UserInfo;\nhelp.getPromoData#c0977421 = help.PromoData;\nhelp.hidePromoData#1e251c95 peer:InputPeer = Bool;\nhelp.dismissSuggestion#f50dbaa1 peer:InputPeer suggestion:string = Bool;\nhelp.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList;\nhelp.getPremiumPromo#b81b93d4 = help.PremiumPromo;\nhelp.getPeerColors#da80f42f hash:int = help.PeerColors;\nhelp.getPeerProfileColors#abcfa9fd hash:int = help.PeerColors;\nhelp.getTimezonesList#49b30240 hash:int = help.TimezonesList;\nchannels.readHistory#cc104937 channel:InputChannel max_id:int = Bool;\nchannels.deleteMessages#84c1fd4e channel:InputChannel id:Vector = messages.AffectedMessages;\nchannels.reportSpam#f44a8315 channel:InputChannel participant:InputPeer id:Vector = Bool;\nchannels.getMessages#ad8c9a23 channel:InputChannel id:Vector = messages.Messages;\nchannels.getParticipants#77ced9d0 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:long = channels.ChannelParticipants;\nchannels.getParticipant#a0ab6cc6 channel:InputChannel participant:InputPeer = channels.ChannelParticipant;\nchannels.getChannels#a7f6bbb id:Vector = messages.Chats;\nchannels.getFullChannel#8736a09 channel:InputChannel = messages.ChatFull;\nchannels.createChannel#91006707 flags:# broadcast:flags.0?true megagroup:flags.1?true for_import:flags.3?true forum:flags.5?true title:string about:string geo_point:flags.2?InputGeoPoint address:flags.2?string ttl_period:flags.4?int = Updates;\nchannels.editAdmin#d33c8902 channel:InputChannel user_id:InputUser admin_rights:ChatAdminRights rank:string = Updates;\nchannels.editTitle#566decd0 channel:InputChannel title:string = Updates;\nchannels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates;\nchannels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool;\nchannels.updateUsername#3514b3de channel:InputChannel username:string = Bool;\nchannels.joinChannel#24b524c5 channel:InputChannel = Updates;\nchannels.leaveChannel#f836aa95 channel:InputChannel = Updates;\nchannels.inviteToChannel#c9e33d54 channel:InputChannel users:Vector = messages.InvitedUsers;\nchannels.deleteChannel#c0111fe3 channel:InputChannel = Updates;\nchannels.exportMessageLink#e63fadeb flags:# grouped:flags.0?true thread:flags.1?true channel:InputChannel id:int = ExportedMessageLink;\nchannels.toggleSignatures#418d549c flags:# signatures_enabled:flags.0?true profiles_enabled:flags.1?true channel:InputChannel = Updates;\nchannels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true for_personal:flags.2?true = messages.Chats;\nchannels.editBanned#96e6cd81 channel:InputChannel participant:InputPeer banned_rights:ChatBannedRights = Updates;\nchannels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults;\nchannels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool;\nchannels.readMessageContents#eab5dc38 channel:InputChannel id:Vector = Bool;\nchannels.deleteHistory#9baa9647 flags:# for_everyone:flags.0?true channel:InputChannel max_id:int = Updates;\nchannels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates;\nchannels.getLeftChannels#8341ecc0 offset:int = messages.Chats;\nchannels.getGroupsForDiscussion#f5dad378 = messages.Chats;\nchannels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool;\nchannels.editCreator#8f38cd1f channel:InputChannel user_id:InputUser password:InputCheckPasswordSRP = Updates;\nchannels.editLocation#58e63f6d channel:InputChannel geo_point:InputGeoPoint address:string = Bool;\nchannels.toggleSlowMode#edd49ef0 channel:InputChannel seconds:int = Updates;\nchannels.getInactiveChannels#11e831ee = messages.InactiveChats;\nchannels.convertToGigagroup#b290c69 channel:InputChannel = Updates;\nchannels.getSendAs#dc770ee peer:InputPeer = channels.SendAsPeers;\nchannels.deleteParticipantHistory#367544db channel:InputChannel participant:InputPeer = messages.AffectedHistory;\nchannels.toggleJoinToSend#e4cb9580 channel:InputChannel enabled:Bool = Updates;\nchannels.toggleJoinRequest#4c2985b6 channel:InputChannel enabled:Bool = Updates;\nchannels.reorderUsernames#b45ced1d channel:InputChannel order:Vector = Bool;\nchannels.toggleUsername#50f24105 channel:InputChannel username:string active:Bool = Bool;\nchannels.deactivateAllUsernames#a245dd3 channel:InputChannel = Bool;\nchannels.toggleForum#a4298b29 channel:InputChannel enabled:Bool = Updates;\nchannels.createForumTopic#f40c0224 flags:# channel:InputChannel title:string icon_color:flags.0?int icon_emoji_id:flags.3?long random_id:long send_as:flags.2?InputPeer = Updates;\nchannels.getForumTopics#de560d1 flags:# channel:InputChannel q:flags.0?string offset_date:int offset_id:int offset_topic:int limit:int = messages.ForumTopics;\nchannels.getForumTopicsByID#b0831eb9 channel:InputChannel topics:Vector = messages.ForumTopics;\nchannels.editForumTopic#f4dfa185 flags:# channel:InputChannel topic_id:int title:flags.0?string icon_emoji_id:flags.1?long closed:flags.2?Bool hidden:flags.3?Bool = Updates;\nchannels.updatePinnedForumTopic#6c2d9026 channel:InputChannel topic_id:int pinned:Bool = Updates;\nchannels.deleteTopicHistory#34435f2d channel:InputChannel top_msg_id:int = messages.AffectedHistory;\nchannels.reorderPinnedForumTopics#2950a18f flags:# force:flags.0?true channel:InputChannel order:Vector = Updates;\nchannels.toggleAntiSpam#68f3e4eb channel:InputChannel enabled:Bool = Updates;\nchannels.reportAntiSpamFalsePositive#a850a693 channel:InputChannel msg_id:int = Bool;\nchannels.toggleParticipantsHidden#6a6e7854 channel:InputChannel enabled:Bool = Updates;\nchannels.updateColor#d8aa3671 flags:# for_profile:flags.1?true channel:InputChannel color:flags.2?int background_emoji_id:flags.0?long = Updates;\nchannels.toggleViewForumAsMessages#9738bb15 channel:InputChannel enabled:Bool = Updates;\nchannels.getChannelRecommendations#25a71742 flags:# channel:flags.0?InputChannel = messages.Chats;\nchannels.updateEmojiStatus#f0d3e6a8 channel:InputChannel emoji_status:EmojiStatus = Updates;\nchannels.setBoostsToUnblockRestrictions#ad399cee channel:InputChannel boosts:int = Updates;\nchannels.setEmojiStickers#3cd930b7 channel:InputChannel stickerset:InputStickerSet = Bool;\nchannels.restrictSponsoredMessages#9ae91519 channel:InputChannel restricted:Bool = Updates;\nchannels.searchPosts#d19f987b hashtag:string offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;\nbots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON;\nbots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;\nbots.setBotCommands#517165a scope:BotCommandScope lang_code:string commands:Vector = Bool;\nbots.resetBotCommands#3d8de0f9 scope:BotCommandScope lang_code:string = Bool;\nbots.getBotCommands#e34c0dd6 scope:BotCommandScope lang_code:string = Vector;\nbots.setBotMenuButton#4504d54f user_id:InputUser button:BotMenuButton = Bool;\nbots.getBotMenuButton#9c60eb28 user_id:InputUser = BotMenuButton;\nbots.setBotBroadcastDefaultAdminRights#788464e1 admin_rights:ChatAdminRights = Bool;\nbots.setBotGroupDefaultAdminRights#925ec9ea admin_rights:ChatAdminRights = Bool;\nbots.setBotInfo#10cf3123 flags:# bot:flags.2?InputUser lang_code:string name:flags.3?string about:flags.0?string description:flags.1?string = Bool;\nbots.getBotInfo#dcd914fd flags:# bot:flags.0?InputUser lang_code:string = bots.BotInfo;\nbots.reorderUsernames#9709b1c2 bot:InputUser order:Vector = Bool;\nbots.toggleUsername#53ca973 bot:InputUser username:string active:Bool = Bool;\nbots.canSendMessage#1359f4e6 bot:InputUser = Bool;\nbots.allowSendMessage#f132e3ef bot:InputUser = Updates;\nbots.invokeWebViewCustomMethod#87fc5e7 bot:InputUser custom_method:string params:DataJSON = DataJSON;\nbots.getPopularAppBots#c2510192 offset:string limit:int = bots.PopularAppBots;\nbots.addPreviewMedia#17aeb75a bot:InputUser lang_code:string media:InputMedia = BotPreviewMedia;\nbots.editPreviewMedia#8525606f bot:InputUser lang_code:string media:InputMedia new_media:InputMedia = BotPreviewMedia;\nbots.deletePreviewMedia#2d0135b3 bot:InputUser lang_code:string media:Vector = Bool;\nbots.reorderPreviewMedias#b627f3aa bot:InputUser lang_code:string order:Vector = Bool;\nbots.getPreviewInfo#423ab3ad bot:InputUser lang_code:string = bots.PreviewInfo;\nbots.getPreviewMedias#a2a5594d bot:InputUser = Vector;\nbots.updateUserEmojiStatus#ed9f30c5 user_id:InputUser emoji_status:EmojiStatus = Bool;\nbots.toggleUserEmojiStatusPermission#6de6392 bot:InputUser enabled:Bool = Bool;\nbots.checkDownloadFileParams#50077589 bot:InputUser file_name:string url:string = Bool;\npayments.getPaymentForm#37148dbb flags:# invoice:InputInvoice theme_params:flags.0?DataJSON = payments.PaymentForm;\npayments.getPaymentReceipt#2478d1cc peer:InputPeer msg_id:int = payments.PaymentReceipt;\npayments.validateRequestedInfo#b6c8f12b flags:# save:flags.0?true invoice:InputInvoice info:PaymentRequestedInfo = payments.ValidatedRequestedInfo;\npayments.sendPaymentForm#2d03522f flags:# form_id:long invoice:InputInvoice requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials tip_amount:flags.2?long = payments.PaymentResult;\npayments.getSavedInfo#227d824b = payments.SavedInfo;\npayments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool;\npayments.getBankCardData#2e79d779 number:string = payments.BankCardData;\npayments.exportInvoice#f91b065 invoice_media:InputMedia = payments.ExportedInvoice;\npayments.assignAppStoreTransaction#80ed747d receipt:bytes purpose:InputStorePaymentPurpose = Updates;\npayments.assignPlayMarketTransaction#dffd50d3 receipt:DataJSON purpose:InputStorePaymentPurpose = Updates;\npayments.canPurchasePremium#9fc19eb6 purpose:InputStorePaymentPurpose = Bool;\npayments.getPremiumGiftCodeOptions#2757ba54 flags:# boost_peer:flags.0?InputPeer = Vector;\npayments.checkGiftCode#8e51b4c1 slug:string = payments.CheckedGiftCode;\npayments.applyGiftCode#f6e26854 slug:string = Updates;\npayments.getGiveawayInfo#f4239425 peer:InputPeer msg_id:int = payments.GiveawayInfo;\npayments.launchPrepaidGiveaway#5ff58f20 peer:InputPeer giveaway_id:long purpose:InputStorePaymentPurpose = Updates;\npayments.getStarsTopupOptions#c00ec7d3 = Vector;\npayments.getStarsStatus#104fcfa7 peer:InputPeer = payments.StarsStatus;\npayments.getStarsTransactions#69da4557 flags:# inbound:flags.0?true outbound:flags.1?true ascending:flags.2?true subscription_id:flags.3?string peer:InputPeer offset:string limit:int = payments.StarsStatus;\npayments.sendStarsForm#7998c914 form_id:long invoice:InputInvoice = payments.PaymentResult;\npayments.refundStarsCharge#25ae8f4a user_id:InputUser charge_id:string = Updates;\npayments.getStarsRevenueStats#d91ffad6 flags:# dark:flags.0?true peer:InputPeer = payments.StarsRevenueStats;\npayments.getStarsRevenueWithdrawalUrl#13bbe8b3 peer:InputPeer stars:long password:InputCheckPasswordSRP = payments.StarsRevenueWithdrawalUrl;\npayments.getStarsRevenueAdsAccountUrl#d1d7efc5 peer:InputPeer = payments.StarsRevenueAdsAccountUrl;\npayments.getStarsTransactionsByID#27842d2e peer:InputPeer id:Vector = payments.StarsStatus;\npayments.getStarsGiftOptions#d3c96bc8 flags:# user_id:flags.0?InputUser = Vector;\npayments.getStarsSubscriptions#32512c5 flags:# missing_balance:flags.0?true peer:InputPeer offset:string = payments.StarsStatus;\npayments.changeStarsSubscription#c7770878 flags:# peer:InputPeer subscription_id:string canceled:flags.0?Bool = Bool;\npayments.fulfillStarsSubscription#cc5bebb3 peer:InputPeer subscription_id:string = Bool;\npayments.getStarsGiveawayOptions#bd1efd3e = Vector;\npayments.getStarGifts#c4563590 hash:int = payments.StarGifts;\npayments.getUserStarGifts#5e72c7e1 user_id:InputUser offset:string limit:int = payments.UserStarGifts;\npayments.saveStarGift#87acf08e flags:# unsave:flags.0?true user_id:InputUser msg_id:int = Bool;\npayments.convertStarGift#421e027 user_id:InputUser msg_id:int = Bool;\npayments.botCancelStarsSubscription#57f9ece6 flags:# restore:flags.0?true user_id:InputUser invoice_slug:flags.1?string charge_id:flags.2?string = Bool;\nstickers.createStickerSet#9021ab67 flags:# masks:flags.0?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet;\nstickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet;\nstickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet;\nstickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet;\nstickers.setStickerSetThumb#a76a5392 flags:# stickerset:InputStickerSet thumb:flags.0?InputDocument thumb_document_id:flags.1?long = messages.StickerSet;\nstickers.checkShortName#284b3639 short_name:string = Bool;\nstickers.suggestShortName#4dafc503 title:string = stickers.SuggestedShortName;\nstickers.changeSticker#f5537ebc flags:# sticker:InputDocument emoji:flags.0?string mask_coords:flags.1?MaskCoords keywords:flags.2?string = messages.StickerSet;\nstickers.renameStickerSet#124b1c00 stickerset:InputStickerSet title:string = messages.StickerSet;\nstickers.deleteStickerSet#87704394 stickerset:InputStickerSet = Bool;\nstickers.replaceSticker#4696459a sticker:InputDocument new_sticker:InputStickerSetItem = messages.StickerSet;\nphone.getCallConfig#55451fa9 = DataJSON;\nphone.requestCall#42ff96ed flags:# video:flags.0?true user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall;\nphone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall;\nphone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall;\nphone.receivedCall#17d54f61 peer:InputPhoneCall = Bool;\nphone.discardCall#b2cbc1c0 flags:# video:flags.0?true peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates;\nphone.setCallRating#59ead627 flags:# user_initiative:flags.0?true peer:InputPhoneCall rating:int comment:string = Updates;\nphone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool;\nphone.sendSignalingData#ff7a9383 peer:InputPhoneCall data:bytes = Bool;\nphone.createGroupCall#48cdc6d8 flags:# rtmp_stream:flags.2?true peer:InputPeer random_id:int title:flags.0?string schedule_date:flags.1?int = Updates;\nphone.joinGroupCall#b132ff7b flags:# muted:flags.0?true video_stopped:flags.2?true call:InputGroupCall join_as:InputPeer invite_hash:flags.1?string params:DataJSON = Updates;\nphone.leaveGroupCall#500377f9 call:InputGroupCall source:int = Updates;\nphone.inviteToGroupCall#7b393160 call:InputGroupCall users:Vector = Updates;\nphone.discardGroupCall#7a777135 call:InputGroupCall = Updates;\nphone.toggleGroupCallSettings#74bbb43d flags:# reset_invite_hash:flags.1?true call:InputGroupCall join_muted:flags.0?Bool = Updates;\nphone.getGroupCall#41845db call:InputGroupCall limit:int = phone.GroupCall;\nphone.getGroupParticipants#c558d8ab call:InputGroupCall ids:Vector sources:Vector offset:string limit:int = phone.GroupParticipants;\nphone.checkGroupCall#b59cf977 call:InputGroupCall sources:Vector = Vector;\nphone.toggleGroupCallRecord#f128c708 flags:# start:flags.0?true video:flags.2?true call:InputGroupCall title:flags.1?string video_portrait:flags.2?Bool = Updates;\nphone.editGroupCallParticipant#a5273abf flags:# call:InputGroupCall participant:InputPeer muted:flags.0?Bool volume:flags.1?int raise_hand:flags.2?Bool video_stopped:flags.3?Bool video_paused:flags.4?Bool presentation_paused:flags.5?Bool = Updates;\nphone.editGroupCallTitle#1ca6ac0a call:InputGroupCall title:string = Updates;\nphone.getGroupCallJoinAs#ef7c213a peer:InputPeer = phone.JoinAsPeers;\nphone.exportGroupCallInvite#e6aa647f flags:# can_self_unmute:flags.0?true call:InputGroupCall = phone.ExportedGroupCallInvite;\nphone.toggleGroupCallStartSubscription#219c34e6 call:InputGroupCall subscribed:Bool = Updates;\nphone.startScheduledGroupCall#5680e342 call:InputGroupCall = Updates;\nphone.saveDefaultGroupCallJoinAs#575e1f8c peer:InputPeer join_as:InputPeer = Bool;\nphone.joinGroupCallPresentation#cbea6bc4 call:InputGroupCall params:DataJSON = Updates;\nphone.leaveGroupCallPresentation#1c50d144 call:InputGroupCall = Updates;\nphone.getGroupCallStreamChannels#1ab21940 call:InputGroupCall = phone.GroupCallStreamChannels;\nphone.getGroupCallStreamRtmpUrl#deb3abbf peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl;\nphone.saveCallLog#41248786 peer:InputPhoneCall file:InputFile = Bool;\nlangpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference;\nlangpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector = Vector;\nlangpack.getDifference#cd984aa5 lang_pack:string lang_code:string from_version:int = LangPackDifference;\nlangpack.getLanguages#42c6978f lang_pack:string = Vector;\nlangpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLanguage;\nfolders.editPeerFolders#6847d0ab folder_peers:Vector = Updates;\nstats.getBroadcastStats#ab42441a flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastStats;\nstats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph;\nstats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats;\nstats.getMessagePublicForwards#5f150144 channel:InputChannel msg_id:int offset:string limit:int = stats.PublicForwards;\nstats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;\nstats.getStoryStats#374fef40 flags:# dark:flags.0?true peer:InputPeer id:int = stats.StoryStats;\nstats.getStoryPublicForwards#a6437ef6 peer:InputPeer id:int offset:string limit:int = stats.PublicForwards;\nstats.getBroadcastRevenueStats#f788ee19 flags:# dark:flags.0?true peer:InputPeer = stats.BroadcastRevenueStats;\nstats.getBroadcastRevenueWithdrawalUrl#9df4faad peer:InputPeer password:InputCheckPasswordSRP = stats.BroadcastRevenueWithdrawalUrl;\nstats.getBroadcastRevenueTransactions#70990b6d peer:InputPeer offset:int limit:int = stats.BroadcastRevenueTransactions;\nchatlists.exportChatlistInvite#8472478e chatlist:InputChatlist title:string peers:Vector = chatlists.ExportedChatlistInvite;\nchatlists.deleteExportedInvite#719c5c5e chatlist:InputChatlist slug:string = Bool;\nchatlists.editExportedInvite#653db63d flags:# chatlist:InputChatlist slug:string title:flags.1?string peers:flags.2?Vector = ExportedChatlistInvite;\nchatlists.getExportedInvites#ce03da83 chatlist:InputChatlist = chatlists.ExportedInvites;\nchatlists.checkChatlistInvite#41c10fff slug:string = chatlists.ChatlistInvite;\nchatlists.joinChatlistInvite#a6b1e39a slug:string peers:Vector = Updates;\nchatlists.getChatlistUpdates#89419521 chatlist:InputChatlist = chatlists.ChatlistUpdates;\nchatlists.joinChatlistUpdates#e089f8f5 chatlist:InputChatlist peers:Vector = Updates;\nchatlists.hideChatlistUpdates#66e486fb chatlist:InputChatlist = Bool;\nchatlists.getLeaveChatlistSuggestions#fdbcd714 chatlist:InputChatlist = Vector;\nchatlists.leaveChatlist#74fae13a chatlist:InputChatlist peers:Vector = Updates;\nstories.canSendStory#c7dfdfdd peer:InputPeer = Bool;\nstories.sendStory#e4e6694b flags:# pinned:flags.2?true noforwards:flags.4?true fwd_modified:flags.7?true peer:InputPeer media:InputMedia media_areas:flags.5?Vector caption:flags.0?string entities:flags.1?Vector privacy_rules:Vector random_id:long period:flags.3?int fwd_from_id:flags.6?InputPeer fwd_from_story:flags.6?int = Updates;\nstories.editStory#b583ba46 flags:# peer:InputPeer id:int media:flags.0?InputMedia media_areas:flags.3?Vector caption:flags.1?string entities:flags.1?Vector privacy_rules:flags.2?Vector = Updates;\nstories.deleteStories#ae59db5f peer:InputPeer id:Vector = Vector;\nstories.togglePinned#9a75a1ef peer:InputPeer id:Vector pinned:Bool = Vector;\nstories.getAllStories#eeb0d625 flags:# next:flags.1?true hidden:flags.2?true state:flags.0?string = stories.AllStories;\nstories.getPinnedStories#5821a5dc peer:InputPeer offset_id:int limit:int = stories.Stories;\nstories.getStoriesArchive#b4352016 peer:InputPeer offset_id:int limit:int = stories.Stories;\nstories.getStoriesByID#5774ca74 peer:InputPeer id:Vector = stories.Stories;\nstories.toggleAllStoriesHidden#7c2557c4 hidden:Bool = Bool;\nstories.readStories#a556dac8 peer:InputPeer max_id:int = Vector;\nstories.incrementStoryViews#b2028afb peer:InputPeer id:Vector = Bool;\nstories.getStoryViewsList#7ed23c57 flags:# just_contacts:flags.0?true reactions_first:flags.2?true forwards_first:flags.3?true peer:InputPeer q:flags.1?string id:int offset:string limit:int = stories.StoryViewsList;\nstories.getStoriesViews#28e16cc8 peer:InputPeer id:Vector = stories.StoryViews;\nstories.exportStoryLink#7b8def20 peer:InputPeer id:int = ExportedStoryLink;\nstories.report#19d8eb45 peer:InputPeer id:Vector option:bytes message:string = ReportResult;\nstories.activateStealthMode#57bbd166 flags:# past:flags.0?true future:flags.1?true = Updates;\nstories.sendReaction#7fd736b2 flags:# add_to_recent:flags.0?true peer:InputPeer story_id:int reaction:Reaction = Updates;\nstories.getPeerStories#2c4ada50 peer:InputPeer = stories.PeerStories;\nstories.getAllReadPeerStories#9b5ae7f9 = Updates;\nstories.getPeerMaxIDs#535983c3 id:Vector = Vector;\nstories.getChatsToSend#a56a8b60 = messages.Chats;\nstories.togglePeerStoriesHidden#bd0415c4 peer:InputPeer hidden:Bool = Bool;\nstories.getStoryReactionsList#b9b2881f flags:# forwards_first:flags.2?true peer:InputPeer id:int reaction:flags.0?Reaction offset:flags.1?string limit:int = stories.StoryReactionsList;\nstories.togglePinnedToTop#b297e9b peer:InputPeer id:Vector = Bool;\nstories.searchPosts#d1810907 flags:# hashtag:flags.0?string area:flags.1?MediaArea peer:flags.2?InputPeer offset:string limit:int = stories.FoundStories;\npremium.getBoostsList#60f67660 flags:# gifts:flags.0?true peer:InputPeer offset:string limit:int = premium.BoostsList;\npremium.getMyBoosts#be77b4a = premium.MyBoosts;\npremium.applyBoost#6b7da746 flags:# slots:flags.0?Vector peer:InputPeer = premium.MyBoosts;\npremium.getBoostsStatus#42f1f61 peer:InputPeer = premium.BoostsStatus;\npremium.getUserBoosts#39854d1f peer:InputPeer user_id:InputUser = premium.BoostsList;\nsmsjobs.isEligibleToJoin#edc39d0 = smsjobs.EligibilityToJoin;\nsmsjobs.join#a74ece2d = Bool;\nsmsjobs.leave#9898ad73 = Bool;\nsmsjobs.updateSettings#93fa0bf flags:# allow_international:flags.0?true = Bool;\nsmsjobs.getStatus#10a698e8 = smsjobs.Status;\nsmsjobs.getSmsJob#778d902f job_id:string = SmsJob;\nsmsjobs.finishJob#4f1ebf24 flags:# job_id:string error:flags.0?string = Bool;\nfragment.getCollectibleInfo#be1e85ba collectible:InputCollectible = fragment.CollectibleInfo;\n`},82500:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.GZIPPacked=void 0;const ae=re(87440);const Ue=re(43585);class GZIPPacked{constructor(C){this.data=C;this.CONSTRUCTOR_ID=812830625;this.classType="constructor"}static async gzipIfSmaller(C,q){if(C&&q.length>512){const C=await new GZIPPacked(q).toBytes();if(C.length{Object.defineProperty(q,"__esModule",{value:true});q.MessageContainer=void 0;const ae=re(30973);class MessageContainer{constructor(C){this.CONSTRUCTOR_ID=1945237724;this.messages=C;this.classType="constructor"}static async fromReader(C){const q=[];const re=C.readInt();for(let Ue=0;Ue{Object.defineProperty(q,"__esModule",{value:true});q.RPCResult=void 0;const ae=re(11820);const Ue=re(29842);class RPCResult{constructor(C,q,re){this.CONSTRUCTOR_ID=4082920705;this.reqMsgId=C;this.body=q;this.error=re;this.classType="constructor"}static async fromReader(C){const q=C.readLong();const re=C.readInt(false);if(re===ae.Api.RpcError.CONSTRUCTOR_ID){return new RPCResult(q,undefined,ae.Api.RpcError.fromReader(C))}if(re===Ue.GZIPPacked.CONSTRUCTOR_ID){return new RPCResult(q,(await Ue.GZIPPacked.fromReader(C)).data)}C.seek(-4);return new RPCResult(q,C.read(),undefined)}}q.RPCResult=RPCResult;RPCResult.CONSTRUCTOR_ID=4082920705;RPCResult.classType="constructor"},30973:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.TLMessage=void 0;class TLMessage{constructor(C,q,re){this.msgId=C;this.seqNo=q;this.obj=re;this.classType="constructor"}}q.TLMessage=TLMessage;TLMessage.SIZE_OVERHEAD=12;TLMessage.classType="constructor"},29842:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.GZIPPacked=q.MessageContainer=q.TLMessage=q.RPCResult=q.coreObjects=void 0;const ae=re(30973);Object.defineProperty(q,"TLMessage",{enumerable:true,get:function(){return ae.TLMessage}});const Ue=re(98828);Object.defineProperty(q,"RPCResult",{enumerable:true,get:function(){return Ue.RPCResult}});const lt=re(61530);Object.defineProperty(q,"MessageContainer",{enumerable:true,get:function(){return lt.MessageContainer}});const Pt=re(82500);Object.defineProperty(q,"GZIPPacked",{enumerable:true,get:function(){return Pt.GZIPPacked}});q.coreObjects=new Map([[Ue.RPCResult.CONSTRUCTOR_ID,Ue.RPCResult],[Pt.GZIPPacked.CONSTRUCTOR_ID,Pt.GZIPPacked],[lt.MessageContainer.CONSTRUCTOR_ID,lt.MessageContainer]])},50808:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Button=void 0;const ae=re(11820);const Ue=re(18219);const lt=re(10330);const Pt=re(42355);class Button{constructor(C,q,re,ae){this.button=C;this.resize=q;this.singleUse=re;this.selective=ae}[Pt.inspect.custom](){return(0,lt.betterConsoleLog)(this)}static _isInline(C){return C instanceof ae.Api.KeyboardButtonCallback||C instanceof ae.Api.KeyboardButtonSwitchInline||C instanceof ae.Api.KeyboardButtonUrl||C instanceof ae.Api.KeyboardButtonUrlAuth||C instanceof ae.Api.InputKeyboardButtonUrlAuth}static inline(C,q){if(!q){q=Buffer.from(C,"utf-8")}if(q.length>64){throw new Error("Too many bytes for the data")}return new ae.Api.KeyboardButtonCallback({text:C,data:q})}static switchInline(C,q="",re=false){return new ae.Api.KeyboardButtonSwitchInline({text:C,query:q,samePeer:re})}static url(C,q){return new ae.Api.KeyboardButtonUrl({text:C,url:q||C})}static auth(C,q,re,lt,Pt){return new ae.Api.InputKeyboardButtonUrlAuth({text:C,url:q||C,bot:Ue.utils.getInputUser(re||new ae.Api.InputUserSelf),requestWriteAccess:lt,fwdText:Pt})}static text(C,q,re,Ue){return new this(new ae.Api.KeyboardButton({text:C}),q,re,Ue)}static requestLocation(C,q,re,Ue){return new this(new ae.Api.KeyboardButtonRequestGeoLocation({text:C}),q,re,Ue)}static requestPhone(C,q,re,Ue){return new this(new ae.Api.KeyboardButtonRequestPhone({text:C}),q,re,Ue)}static requestPoll(C,q,re,Ue){return new this(new ae.Api.KeyboardButtonRequestPoll({text:C}),q,re,Ue)}static clear(){return new ae.Api.ReplyKeyboardHide({})}static forceReply(){return new ae.Api.ReplyKeyboardForceReply({})}}q.Button=Button},16077:function(C,q,re){var ae=this&&this.__asyncValues||function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q=C[Symbol.asyncIterator],re;return q?q.call(C):(C=typeof __values==="function"?__values(C):C[Symbol.iterator](),re={},verb("next"),verb("throw"),verb("return"),re[Symbol.asyncIterator]=function(){return this},re);function verb(q){re[q]=C[q]&&function(re){return new Promise((function(ae,Ue){re=C[q](re),settle(ae,Ue,re.done,re.value)}))}}function settle(C,q,re,ae){Promise.resolve(ae).then((function(q){C({value:q,done:re})}),q)}};Object.defineProperty(q,"__esModule",{value:true});q.ChatGetter=void 0;const Ue=re(18219);const lt=re(11820);const Pt=re(10330);const Wt=re(42355);class ChatGetter{[Wt.inspect.custom](){return(0,Pt.betterConsoleLog)(this)}static initChatClass(C,{chatPeer:q,inputChat:re,chat:ae,broadcast:Ue}){C._chatPeer=q;C._inputChat=re;C._chat=ae;C._broadcast=Ue;C._client=undefined}get chat(){return this._chat}async getChat(){var C;if(!this._chat||"min"in this._chat&&await this.getInputChat()){try{if(this._inputChat){this._chat=await((C=this._client)===null||C===void 0?void 0:C.getEntity(this._inputChat))}}catch(C){await this._refetchChat()}}return this._chat}get inputChat(){if(!this._inputChat&&this._chatPeer&&this._client){try{this._inputChat=this._client._entityCache.get(Ue.utils.getPeerId(this._chatPeer))}catch(C){}}return this._inputChat}async getInputChat(){var C,q;if(!this.inputChat&&this.chatId&&this._client){try{const lt=this.chatId;try{for(var re=ae(this._client.iterDialogs({limit:100})),Ue;Ue=await re.next(),!Ue.done;){const C=Ue.value;if(C.id.eq(lt)){this._chat=C.entity;this._inputChat=C.inputEntity;break}}}catch(q){C={error:q}}finally{try{if(Ue&&!Ue.done&&(q=re.return))await q.call(re)}finally{if(C)throw C.error}}}catch(C){}return this._inputChat}return this._inputChat}get chatId(){return this._chatPeer?(0,Pt.returnBigInt)(Ue.utils.getPeerId(this._chatPeer)):undefined}get isPrivate(){return this._chatPeer?this._chatPeer instanceof lt.Api.PeerUser:undefined}get isGroup(){if(!this._broadcast&&this.chat&&"broadcast"in this.chat){this._broadcast=Boolean(this.chat.broadcast)}if(this._chatPeer instanceof lt.Api.PeerChannel){if(this._broadcast===undefined){return undefined}else{return!this._broadcast}}return this._chatPeer instanceof lt.Api.PeerChat}get isChannel(){return this._chatPeer instanceof lt.Api.PeerChannel}async _refetchChat(){}}q.ChatGetter=ChatGetter},56556:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Dialog=void 0;const ae=re(11820);const Ue=re(29078);const lt=re(48761);const Pt=re(10330);const Wt=re(42355);class Dialog{constructor(C,q,re,Wt){this._client=C;this.dialog=q;this.pinned=!!q.pinned;this.folderId=q.folderId;this.archived=q.folderId!=undefined;this.message=Wt;this.date=this.message.date;this.entity=re.get((0,Ue.getPeerId)(q.peer));this.inputEntity=(0,Ue.getInputPeer)(this.entity);if(this.entity){this.id=(0,Pt.returnBigInt)((0,Ue.getPeerId)(this.entity));this.name=this.title=(0,Ue.getDisplayName)(this.entity)}this.unreadCount=q.unreadCount;this.unreadMentionsCount=q.unreadMentionsCount;if(!this.entity){throw new Error("Entity not found for dialog")}this.draft=new lt.Draft(C,this.entity,this.dialog.draft);this.isUser=this.entity instanceof ae.Api.User;this.isGroup=!!(this.entity instanceof ae.Api.Chat||this.entity instanceof ae.Api.ChatForbidden||this.entity instanceof ae.Api.Channel&&this.entity.megagroup);this.isChannel=this.entity instanceof ae.Api.Channel}[Wt.inspect.custom](){return(0,Pt.betterConsoleLog)(this)}}q.Dialog=Dialog},48761:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Draft=void 0;const ae=re(29078);const Ue=re(11820);const lt=re(10330);const Pt=re(42355);class Draft{constructor(C,q,re){this._client=C;this._peer=(0,ae.getPeer)(q);this._entity=q;this._inputEntity=q?(0,ae.getInputPeer)(q):undefined;if(!re||!(re instanceof Ue.Api.DraftMessage)){re=new Ue.Api.DraftMessage({message:"",date:-1})}if(!(re instanceof Ue.Api.DraftMessageEmpty)){this.linkPreview=!re.noWebpage;this._text=C.parseMode?C.parseMode.unparse(re.message,re.entities||[]):re.message;this._rawText=re.message;this.date=re.date;const q=re.replyTo;if(q!=undefined){if("replyToMsgId"in q){this.replyToMsgId=q.replyToMsgId}}}}[Pt.inspect.custom](){return(0,lt.betterConsoleLog)(this)}get entity(){return this._entity}get inputEntity(){if(!this._inputEntity){this._inputEntity=this._client._entityCache.get(this._peer)}return this._inputEntity}}q.Draft=Draft},18998:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.File=void 0;const ae=re(11820);const Ue=re(29078);const lt=re(10330);const Pt=re(42355);class File{constructor(C){this.media=C}[Pt.inspect.custom](){return(0,lt.betterConsoleLog)(this)}get id(){throw new Error("Unsupported")}get name(){return this._fromAttr(ae.Api.DocumentAttributeFilename,"fileName")}get mimeType(){if(this.media instanceof ae.Api.Photo){return"image/jpeg"}else if(this.media instanceof ae.Api.Document){return this.media.mimeType}}get width(){return this._fromAttr([ae.Api.DocumentAttributeImageSize,ae.Api.DocumentAttributeVideo],"w")}get height(){return this._fromAttr([ae.Api.DocumentAttributeImageSize,ae.Api.DocumentAttributeVideo],"h")}get duration(){return this._fromAttr([ae.Api.DocumentAttributeAudio,ae.Api.DocumentAttributeVideo],"duration")}get title(){return this._fromAttr(ae.Api.DocumentAttributeAudio,"title")}get performer(){return this._fromAttr(ae.Api.DocumentAttributeAudio,"performer")}get emoji(){return this._fromAttr(ae.Api.DocumentAttributeSticker,"alt")}get stickerSet(){return this._fromAttr(ae.Api.DocumentAttributeSticker,"stickerset")}get size(){if(this.media instanceof ae.Api.Photo){return(0,Ue._photoSizeByteCount)(this.media.sizes[this.media.sizes.length-1])}else if(this.media instanceof ae.Api.Document){return this.media.size}}_fromAttr(C,q){if(this.media instanceof ae.Api.Document){for(const re of this.media.attributes){if(re instanceof C){return re[q]}}}}}q.File=File},66751:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Forward=void 0;const ae=re(16077);const Ue=re(70446);const lt=re(10330);const Pt=re(29078);const Wt=re(42355);class Forward extends Ue.SenderGetter{constructor(C,q,re){super();this.originalFwd=q;let Wt=undefined;let Ar=undefined;let Er=undefined;let Ir=undefined;let Br=undefined;let kr=undefined;if(q.fromId){const ae=(0,lt._entityType)(q.fromId);if(ae===lt._EntityType.USER){Wt=(0,Pt.getPeerId)(q.fromId);[Ar,Er]=(0,Pt._getEntityPair)(Wt,re,C._entityCache)}else if(ae===lt._EntityType.CHANNEL||ae===lt._EntityType.CHAT){Ir=q.fromId;[Br,kr]=(0,Pt._getEntityPair)((0,Pt.getPeerId)(Ir),re,C._entityCache)}}ae.ChatGetter.initChatClass(this,{chatPeer:Ir,chat:Br,inputChat:kr});Ue.SenderGetter.initSenderClass(this,{senderId:Wt?(0,lt.returnBigInt)(Wt):undefined,sender:Ar,inputSender:Er});this._client=C}[Wt.inspect.custom](){return(0,lt.betterConsoleLog)(this)}}q.Forward=Forward},15026:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ChatGetter=void 0;var ae=re(16077);Object.defineProperty(q,"ChatGetter",{enumerable:true,get:function(){return ae.ChatGetter}})},11528:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.InlineResult=void 0;const ae=re(11820);const Ue=re(10330);const lt=re(42355);const Pt=re(29078);class InlineResult{constructor(C,q,re,ae){this._ARTICLE="article";this._PHOTO="photo";this._GIF="gif";this._VIDEO="video";this._VIDEO_GIF="mpeg4_gif";this._AUDIO="audio";this._DOCUMENT="document";this._LOCATION="location";this._VENUE="venue";this._CONTACT="contact";this._GAME="game";this._client=C;this.result=q;this._queryId=re;this._entity=ae}[lt.inspect.custom](){return(0,Ue.betterConsoleLog)(this)}get type(){return this.result.type}get message(){return this.result.sendMessage}get description(){return this.result.description}get url(){if(this.result instanceof ae.Api.BotInlineResult){return this.result.url}}get photo(){if(this.result instanceof ae.Api.BotInlineResult){return this.result.thumb}else{return this.result.photo}}get document(){if(this.result instanceof ae.Api.BotInlineResult){return this.result.content}else{return this.result.document}}async click(C,q,re=false,Ue=false,lt=false){if(C){C=await this._client.getInputEntity(C)}else if(this._entity){C=this._entity}else{throw new Error("You must provide the entity where the result should be sent to")}let Wt=undefined;if(q!=undefined){Wt=new ae.Api.InputReplyToMessage({replyToMsgId:(0,Pt.getMessageId)(q)})}const Ar=new ae.Api.messages.SendInlineBotResult({peer:C,queryId:this._queryId,id:this.result.id,silent:re,clearDraft:Ue,hideVia:lt,replyTo:Wt});return await this._client.invoke(Ar)}}q.InlineResult=InlineResult},6743:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.InlineResults=void 0;const ae=re(11528);const Ue=re(10330);const lt=re(42355);class InlineResults extends Array{constructor(C,q,re){super(...q.results.map((Ue=>new ae.InlineResult(C,Ue,q.queryId,re))));this.result=q;this.queryId=q.queryId;this.cacheTime=q.cacheTime;this._validUntil=(new Date).getTime()/1e3+this.cacheTime;this.users=q.users;this.gallery=Boolean(q.gallery);this.nextOffset=q.nextOffset;this.switchPm=q.switchPm}[lt.inspect.custom](){return(0,Ue.betterConsoleLog)(this)}resultsValid(){return(new Date).getTime()/1e3q.get(C.toString())))}else if(this.action instanceof Wt.Api.MessageActionChatDeleteUser){this._actionEntities=[q.get(this.action.userId.toString())]}else if(this.action instanceof Wt.Api.MessageActionChatJoinedByLink){this._actionEntities=[q.get(Er.getPeerId(new Wt.Api.PeerChannel({channelId:this.action.inviterId})))]}else if(this.action instanceof Wt.Api.MessageActionChannelMigrateFrom){this._actionEntities=[q.get(Er.getPeerId(new Wt.Api.PeerChat({chatId:this.action.chatId})))]}}}get client(){return this._client}get text(){if(this._text===undefined&&this._client){if(!this._client.parseMode){this._text=this.message}else{this._text=this._client.parseMode.unparse(this.message||"",this.entities||[])}}return this._text||""}set text(C){this._text=C;if(this._client&&this._client.parseMode){[this.message,this.entities]=this._client.parseMode.parse(C)}else{this.message=C;this.entities=[]}}get rawText(){return this.message||""}set rawText(C){this.message=C;this.entities=[];this._text=""}get isReply(){return!!this.replyTo}get forward(){return this._forward}async _refetchSender(){await this._reloadMessage()}async _reloadMessage(){if(!this._client)return;let C=undefined;try{const q=this.isChannel?await this.getInputChat():undefined;let re=await this._client.getMessages(q,{ids:this.id});if(re){C=re[0]}}catch(C){this._client._log.error("Got error while trying to finish init message with id "+this.id);if(this._client._errorHandler){await this._client._errorHandler(C)}if(this._client._log.canSend(Qr.LogLevel.ERROR)){console.error(C)}}if(C==undefined)return;this._sender=C._sender;this._inputSender=C._inputSender;this._chat=C._chat;this._inputChat=C._inputChat;this._viaBot=C._viaBot;this._viaInputBot=C._viaInputBot;this._forward=C._forward;this._actionEntities=C._actionEntities}get buttons(){if(!this._buttons&&this.replyMarkup){if(!this.inputChat){return}try{const C=this._neededMarkupBot();this._setButtons(this.inputChat,C)}catch(C){return}}return this._buttons}async getButtons(){if(!this.buttons&&this.replyMarkup){const C=await this.getInputChat();if(!C)return;let q;try{q=this._neededMarkupBot()}catch(C){await this._reloadMessage();q=this._neededMarkupBot()}this._setButtons(C,q)}return this._buttons}get buttonCount(){if(!this._buttonsCount){if(this.replyMarkup instanceof Wt.Api.ReplyInlineMarkup||this.replyMarkup instanceof Wt.Api.ReplyKeyboardMarkup){this._buttonsCount=this.replyMarkup.rows.map((C=>C.buttons.length)).reduce((function(C,q){return C+q}),0)}else{this._buttonsCount=0}}return this._buttonsCount}get file(){if(!this._file){const C=this.photo||this.document;if(C){this._file=new Br.File(C)}}return this._file}get photo(){if(this.media instanceof Wt.Api.MessageMediaPhoto){if(this.media.photo instanceof Wt.Api.Photo)return this.media.photo}else if(this.action instanceof Wt.Api.MessageActionChatEditPhoto){return this.action.photo}else{return this.webPreview&&this.webPreview.photo instanceof Wt.Api.Photo?this.webPreview.photo:undefined}return undefined}get document(){if(this.media instanceof Wt.Api.MessageMediaDocument){if(this.media.document instanceof Wt.Api.Document)return this.media.document}else{const C=this.webPreview;return C&&C.document instanceof Wt.Api.Document?C.document:undefined}return undefined}get webPreview(){if(this.media instanceof Wt.Api.MessageMediaWebPage){if(this.media.webpage instanceof Wt.Api.WebPage)return this.media.webpage}}get audio(){return this._documentByAttribute(Wt.Api.DocumentAttributeAudio,(C=>!C.voice))}get voice(){return this._documentByAttribute(Wt.Api.DocumentAttributeAudio,(C=>!!C.voice))}get video(){return this._documentByAttribute(Wt.Api.DocumentAttributeVideo)}get videoNote(){return this._documentByAttribute(Wt.Api.DocumentAttributeVideo,(C=>!!C.roundMessage))}get gif(){return this._documentByAttribute(Wt.Api.DocumentAttributeAnimated)}get sticker(){return this._documentByAttribute(Wt.Api.DocumentAttributeSticker)}get contact(){if(this.media instanceof Wt.Api.MessageMediaContact){return this.media}}get game(){if(this.media instanceof Wt.Api.MessageMediaGame){return this.media.game}}get geo(){if(this.media instanceof Wt.Api.MessageMediaGeo||this.media instanceof Wt.Api.MessageMediaGeoLive||this.media instanceof Wt.Api.MessageMediaVenue){return this.media.geo}}get invoice(){if(this.media instanceof Wt.Api.MessageMediaInvoice){return this.media}}get poll(){if(this.media instanceof Wt.Api.MessageMediaPoll){return this.media}}get venue(){if(this.media instanceof Wt.Api.MessageMediaVenue){return this.media}}get dice(){if(this.media instanceof Wt.Api.MessageMediaDice){return this.media}}get actionEntities(){return this._actionEntities}get viaBot(){return this._viaBot}get viaInputBot(){return this._viaInputBot}get replyToMsgId(){var C;return(C=this.replyTo)===null||C===void 0?void 0:C.replyToMsgId}get toId(){if(this._client&&!this.out&&this.isPrivate){return new Wt.Api.PeerUser({userId:(0,Pr._selfId)(this._client)})}return this.peerId}getEntitiesText(C){let q=this.entities;if(!q||q.length==0)return;if(C){q=q.filter((q=>q instanceof C))}const re=Er.getInnerText(this.message||"",q);const zip=C=>C[0].map(((q,re)=>C.map((C=>C[re]))));return zip([q,re])}async getReplyMessage(){if(!this._replyMessage&&this._client){if(!this.replyTo)return undefined;this._replyMessage=(await this._client.getMessages(this.isChannel?await this.getInputChat():undefined,{ids:new Wt.Api.InputMessageReplyTo({id:this.id})}))[0];if(!this._replyMessage){this._replyMessage=(await this._client.getMessages(this.isChannel?this._inputChat:undefined,{ids:this.replyToMsgId}))[0]}}return this._replyMessage}async respond(C){if(this._client){return this._client.sendMessage(await this.getInputChat(),C)}}async reply(C){if(this._client){C.replyTo=this.id;return this._client.sendMessage(await this.getInputChat(),C)}}async forwardTo(C){if(this._client){C=await this._client.getInputEntity(C);const q={messages:[this.id],fromPeer:await this.getInputChat()};return this._client.forwardMessages(C,q)}}async edit(C){const q=C;if(this.fwdFrom||!this._client)return undefined;if(q.linkPreview==undefined){q.linkPreview=!!this.webPreview}if(q.buttons==undefined){q.buttons=this.replyMarkup}q.message=this.id;return this._client.editMessage(await this.getInputChat(),q)}async delete({revoke:C}={revoke:false}){if(this._client){return this._client.deleteMessages(await this.getInputChat(),[this.id],{revoke:C})}}async pin(C){if(this._client){const q=await this.getInputChat();if(q===undefined){throw Error("Failed to pin message due to cannot get input chat.")}return this._client.pinMessage(q,this.id,C)}}async unpin(C){if(this._client){const q=await this.getInputChat();if(q===undefined){throw Error("Failed to unpin message due to cannot get input chat.")}return this._client.unpinMessage(q,this.id,C)}}async downloadMedia(C){if(this._client)return this._client.downloadMedia(this,C||{})}async markAsRead(){if(this._client){const C=await this.getInputChat();if(C===undefined){throw Error(`Failed to mark message id ${this.id} as read due to cannot get input chat.`)}return this._client.markAsRead(C,this.id)}}async click({i:C,j:q,text:re,filter:ae,data:Ue,sharePhone:lt,shareGeo:Pt,password:Ar}){if(!this.client){return}if(Ue){const Ir=await this.getInputChat();if(!Ir){return}const Br=new Wt.Api.KeyboardButtonCallback({text:"",data:Ue});return await new Fr.MessageButton(this.client,Br,Ir,undefined,this.id).click({sharePhone:lt,shareGeo:Pt,password:Ar})}if(this.poll){function findPoll(q){if(C!=undefined){if(Array.isArray(C)){const re=[];for(let ae=0;ae{Object.defineProperty(q,"__esModule",{value:true});q.MessageButton=void 0;const ae=re(11820);const Ue=re(50808);const lt=re(10330);const Pt=re(79138);const Wt=re(42355);class MessageButton{constructor(C,q,re,ae,Ue){this.button=q;this._bot=ae;this._chat=re;this._msgId=Ue;this._client=C}[Wt.inspect.custom](){return(0,lt.betterConsoleLog)(this)}get client(){return this._client}get text(){return!(this.button instanceof Ue.Button)?this.button.text:""}get data(){if(this.button instanceof ae.Api.KeyboardButtonCallback){return this.button.data}}get inlineQuery(){if(this.button instanceof ae.Api.KeyboardButtonSwitchInline){return this.button.query}}get url(){if(this.button instanceof ae.Api.KeyboardButtonUrl){return this.button.url}}async click({sharePhone:C=false,shareGeo:q=[0,0],password:re}){if(this.button instanceof ae.Api.KeyboardButton){return this._client.sendMessage(this._chat,{message:this.button.text,parseMode:undefined})}else if(this.button instanceof ae.Api.KeyboardButtonCallback){let C;if(re!=undefined){const q=await this.client.invoke(new ae.Api.account.GetPassword);C=await(0,Pt.computeCheck)(q,re)}const q=new ae.Api.messages.GetBotCallbackAnswer({peer:this._chat,msgId:this._msgId,data:this.button.data,password:C});try{return await this._client.invoke(q)}catch(C){if(C.errorMessage=="BOT_RESPONSE_TIMEOUT"){return null}throw C}}else if(this.button instanceof ae.Api.KeyboardButtonSwitchInline){return this._client.invoke(new ae.Api.messages.StartBot({bot:this._bot,peer:this._chat,startParam:this.button.query}))}else if(this.button instanceof ae.Api.KeyboardButtonUrl){return this.button.url}else if(this.button instanceof ae.Api.KeyboardButtonGame){const C=new ae.Api.messages.GetBotCallbackAnswer({peer:this._chat,msgId:this._msgId,game:true});try{return await this._client.invoke(C)}catch(C){if(C.errorMessage=="BOT_RESPONSE_TIMEOUT"){return null}throw C}}else if(this.button instanceof ae.Api.KeyboardButtonRequestPhone){if(!C){throw new Error("cannot click on phone buttons unless sharePhone=true")}if(C==true||typeof C=="string"){const q=await this._client.getMe();C=new ae.Api.InputMediaContact({phoneNumber:(C==true?q.phone:C)||"",firstName:q.firstName||"",lastName:q.lastName||"",vcard:""})}throw new Error("Not supported for now")}else if(this.button instanceof ae.Api.InputWebFileGeoPointLocation){if(!q){throw new Error("cannot click on geo buttons unless shareGeo=[longitude, latitude]")}throw new Error("Not supported for now")}}}q.MessageButton=MessageButton},70446:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.SenderGetter=void 0;const ae=re(11820);const Ue=re(10330);const lt=re(16077);const Pt=re(42355);class SenderGetter extends lt.ChatGetter{[Pt.inspect.custom](){return(0,Ue.betterConsoleLog)(this)}static initSenderClass(C,{senderId:q,sender:re,inputSender:ae}){C._senderId=q;C._sender=re;C._inputSender=ae;C._client=undefined}get sender(){return this._sender}async getSender(){if(this._client&&(!this._sender||this._sender instanceof ae.Api.Channel&&this._sender.min)&&await this.getInputSender()){try{this._sender=await this._client.getEntity(this._inputSender)}catch(C){await this._refetchSender()}}return this._sender}get inputSender(){if(!this._inputSender&&this._senderId&&this._client){try{this._inputSender=this._client._entityCache.get(this._senderId)}catch(C){}}return this._inputSender}async getInputSender(){if(!this.inputSender&&this._senderId&&this._client){await this._refetchSender()}return this._inputSender}get senderId(){return this._senderId}async _refetchSender(){}}q.SenderGetter=SenderGetter},66695:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.variableSnakeToCamelCase=q.snakeToCamelCase=q.CORE_TYPES=q.fromLine=q.buildArgConfig=q.parseTl=q.findAll=q.serializeDate=q.serializeBytes=void 0;const ae=re(10330);const snakeToCamelCase=C=>{const q=C.replace(/(?:^|_)([a-z])/g,((C,q)=>q.toUpperCase()));return q.replace(/_/g,"")};q.snakeToCamelCase=snakeToCamelCase;const variableSnakeToCamelCase=C=>C.replace(/([-_][a-z])/g,(C=>C.toUpperCase().replace("-","").replace("_","")));q.variableSnakeToCamelCase=variableSnakeToCamelCase;const Ue=new Set([3162085175,2574415285,1072550713,3300522427,1450380236]);q.CORE_TYPES=Ue;const lt=new Set([85337187,2211011308,2851430293,1013613780,1459478408,3504867164,3045658042,1715713620,3608339646,4110704415,812830625]);const fromLine=(C,q)=>{const re=C.match(/([\w.]+)(?:#([0-9a-fA-F]+))?(?:\s{?\w+:[\w\d<>#.?!]+}?)*\s=\s([\w\d<>#.?]+);$/);if(!re){throw new Error(`Cannot parse TLObject ${C}`)}const Ue=findAll(/({)?(\w+):([\w\d<>#.?!]+)}?/,C);const lt={name:re[1],constructorId:parseInt(re[2],16),argsConfig:{},subclassOfId:(0,ae.crc32)(re[3]),result:re[3],isFunction:q,namespace:undefined};if(!lt.constructorId){const C="";let q;if(Object.values(lt.argsConfig).length){q=` ${Object.keys(lt.argsConfig).map((C=>C.toString())).join(" ")}`}else{q=""}const re=`${lt.name}${C}${q} = ${lt.result}`.replace(/(:|\?)bytes /g,"$1string ").replace(/|{|}/g,"").replace(/ \w+:flags(\d+)?\.\d+\?true/g,"");if(lt.name==="inputMediaInvoice"){if(lt.name==="inputMediaInvoice"){}}lt.constructorId=(0,ae.crc32)(Buffer.from(re,"utf8"))}for(const[C,q,re]of Ue){if(C===undefined){lt.argsConfig[variableSnakeToCamelCase(q)]=buildArgConfig(q,re)}}if(lt.name.includes(".")){[lt.namespace,lt.name]=lt.name.split(/\.(.+)/)}lt.name=snakeToCamelCase(lt.name);return lt};q.fromLine=fromLine;function buildArgConfig(C,q){C=C==="self"?"is_self":C;const re={isVector:false,isFlag:false,skipConstructorId:false,flagName:null,flagIndex:-1,flagIndicator:true,type:null,useVectorId:null};const ae=C==="random_id";if(q!=="#"){re.flagIndicator=false;re.type=q.replace(/^!+/,"");const C=re.type.match(/(flags(?:\d+)?).(\d+)\?([\w<>.]+)/);if(C){re.isFlag=true;re.flagName=C[1];re.flagIndex=Number(C[2]);re.type=C[3]}const ae=re.type.match(/[Vv]ector<([\w\d.]+)>/);if(ae){re.isVector=true;re.useVectorId=re.type.charAt(0)==="V";[,re.type]=ae}if(/^[a-z]$/.test(re.type.split(".").pop().charAt(0))){re.skipConstructorId=true}}if(re.type=="future_salt"){re.type="FutureSalt"}return re}q.buildArgConfig=buildArgConfig;const parseTl=function*(C,q,re=[],ae=Ue){const Pt=(re||[]).reduce(((C,q)=>Object.assign(Object.assign({},C),{[q.name]:q})),{});const Wt=[];const Ar={};const Er={};const Ir=C;let Br=false;for(let C of Ir.split("\n")){const q=C.indexOf("//");if(q!==-1){C=C.slice(0,q)}C=C.trim();if(!C){continue}const re=C.match(/---(\w+)---/);if(re){const[,C]=re;Br=C==="functions";continue}try{const q=fromLine(C,Br);if(ae.has(q.constructorId)){continue}Wt.push(q);if(!q.isFunction){if(!Er[q.result]){Er[q.result]=[]}Ar[q.name]=q;Er[q.result].push(q)}}catch(C){if(!C.toString().includes("vector#1cb5c415")){throw C}}}for(const C of Wt){if(lt.has(C.constructorId)){for(const q in C.argsConfig){if(C.argsConfig[q].type==="string"){C.argsConfig[q].type="bytes"}}}}for(const C of Wt){yield C}};q.parseTl=parseTl;const findAll=(C,q,re=[])=>{if(!C.flags.includes("g")){C=new RegExp(C.source,"g")}const ae=C.exec(q);if(ae){re.push(ae.slice(1));findAll(C,q,re)}return re};q.findAll=findAll;function serializeBytes(C){if(!(C instanceof Buffer)){if(typeof C=="string"){C=Buffer.from(C)}else{throw Error(`Bytes or str expected, not ${C.constructor.name}`)}}const q=[];let re;if(C.length<254){re=(C.length+1)%4;if(re!==0){re=4-re}q.push(Buffer.from([C.length]));q.push(C)}else{re=C.length%4;if(re!==0){re=4-re}q.push(Buffer.from([254,C.length%256,(C.length>>8)%256,(C.length>>16)%256]));q.push(C)}q.push(Buffer.alloc(re).fill(0));return Buffer.concat(q)}q.serializeBytes=serializeBytes;function serializeDate(C){if(!C){return Buffer.alloc(4).fill(0)}if(C instanceof Date){C=Math.floor((Date.now()-C.getTime())/1e3)}if(typeof C=="number"){const q=Buffer.alloc(4);q.writeInt32LE(C,0);return q}throw Error(`Cannot interpret "${C}" as a date`)}q.serializeDate=serializeDate},87440:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.serializeDate=q.serializeBytes=q.Api=void 0;const ae=re(11820);Object.defineProperty(q,"Api",{enumerable:true,get:function(){return ae.Api}});const Ue=re(76392);(0,Ue.patchAll)();var lt=re(66695);Object.defineProperty(q,"serializeBytes",{enumerable:true,get:function(){return lt.serializeBytes}});Object.defineProperty(q,"serializeDate",{enumerable:true,get:function(){return lt.serializeDate}})},76392:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.patchAll=void 0;const ae=re(11820);const Ue=re(89397);function getGetter(C,q){while(C){let re=Object.getOwnPropertyDescriptor(C,q);if(re&&re.get){return re.get}C=Object.getPrototypeOf(C)}}function getSetter(C,q){while(C){let re=Object.getOwnPropertyDescriptor(C,q);if(re&&re.set){return re.set}C=Object.getPrototypeOf(C)}}const getInstanceMethods=C=>{let q={methods:new Set,setters:new Set,getters:new Set};let re=C;const mapAllMethods=C=>{const ae=getGetter(re,C);const Ue=getSetter(re,C);if(ae){q["getters"].add(C)}else if(Ue){q["setters"].add(C)}else{if(!(C=="constructor")){q["methods"].add(C)}}};do{Object.getOwnPropertyNames(C).map(mapAllMethods);C=Object.getPrototypeOf(C)}while(C&&Object.getPrototypeOf(C));return q};function patchClass(C){const{getters:q,setters:re,methods:ae}=getInstanceMethods(Ue.CustomMessage.prototype);for(const re of q){Object.defineProperty(C.prototype,re,{get:getGetter(Ue.CustomMessage.prototype,re)})}for(const q of re){Object.defineProperty(C.prototype,q,{set:getSetter(Ue.CustomMessage.prototype,q)})}for(const q of ae){C.prototype[q]=Ue.CustomMessage.prototype[q]}}function patchAll(){patchClass(ae.Api.Message);patchClass(ae.Api.MessageService);patchClass(ae.Api.MessageEmpty)}q.patchAll=patchAll},87113:C=>{C.exports=`\nresPQ#05162463 nonce:int128 server_nonce:int128 pq:string server_public_key_fingerprints:Vector = ResPQ;\np_q_inner_data#83c95aec pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 = P_Q_inner_data;\np_q_inner_data_dc#a9f55f95 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 dc:int = P_Q_inner_data;\np_q_inner_data_temp#3c6a84d4 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 expires_in:int = P_Q_inner_data;\np_q_inner_data_temp_dc#56fddf88 pq:string p:string q:string nonce:int128 server_nonce:int128 new_nonce:int256 dc:int expires_in:int = P_Q_inner_data;\nbind_auth_key_inner#75a3f765 nonce:long temp_auth_key_id:long perm_auth_key_id:long temp_session_id:long expires_at:int = BindAuthKeyInner;\nserver_DH_params_fail#79cb045d nonce:int128 server_nonce:int128 new_nonce_hash:int128 = Server_DH_Params;\nserver_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:string = Server_DH_Params;\nserver_DH_inner_data#b5890dba nonce:int128 server_nonce:int128 g:int dh_prime:string g_a:string server_time:int = Server_DH_inner_data;\nclient_DH_inner_data#6643b654 nonce:int128 server_nonce:int128 retry_id:long g_b:string = Client_DH_Inner_Data;\ndh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer;\ndh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer;\ndh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer;\ndestroy_auth_key_ok#f660e1d4 = DestroyAuthKeyRes;\ndestroy_auth_key_none#0a9f2259 = DestroyAuthKeyRes;\ndestroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes;\n---functions---\nreq_pq#60469778 nonce:int128 = ResPQ;\nreq_pq_multi#be7e8ef1 nonce:int128 = ResPQ;\nreq_DH_params#d712e4be nonce:int128 server_nonce:int128 p:string q:string public_key_fingerprint:long encrypted_data:string = Server_DH_Params;\nset_client_DH_params#f5045f1f nonce:int128 server_nonce:int128 encrypted_data:string = Set_client_DH_params_answer;\ndestroy_auth_key#d1435160 = DestroyAuthKeyRes;\n---types---\nmsgs_ack#62d6b459 msg_ids:Vector = MsgsAck;\nbad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification;\nbad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification;\nmsgs_state_req#da69fb52 msg_ids:Vector = MsgsStateReq;\nmsgs_state_info#04deb57d req_msg_id:long info:string = MsgsStateInfo;\nmsgs_all_info#8cc0d131 msg_ids:Vector info:string = MsgsAllInfo;\nmsg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo;\nmsg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo;\nmsg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq;\nrpc_error#2144ca19 error_code:int error_message:string = RpcError;\nrpc_answer_unknown#5e2ad36e = RpcDropAnswer;\nrpc_answer_dropped_running#cd78e586 = RpcDropAnswer;\nrpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer;\nfuture_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt;\nfuture_salts#ae500895 req_msg_id:long now:int salts:vector = FutureSalts;\npong#347773c5 msg_id:long ping_id:long = Pong;\ndestroy_session_ok#e22045fc session_id:long = DestroySessionRes;\ndestroy_session_none#62d350c9 session_id:long = DestroySessionRes;\nnew_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession;\nhttp_wait#9299359f max_delay:int wait_after:int max_wait:int = HttpWait;\nipPort#d433ad73 ipv4:int port:int = IpPort;\nipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort;\naccessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector = AccessPointRule;\nhelp.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple;\ntlsClientHello blocks:vector = TlsClientHello;\ntlsBlockString data:string = TlsBlock;\ntlsBlockRandom length:int = TlsBlock;\ntlsBlockZero length:int = TlsBlock;\ntlsBlockDomain = TlsBlock;\ntlsBlockGrease seed:int = TlsBlock;\ntlsBlockPublicKey = TlsBlock;\ntlsBlockScope entries:Vector = TlsBlock;\ntlsBlockPermutation entries:Vector> = TlsBlock;\n---functions---\nrpc_drop_answer#58e4a740 req_msg_id:long = RpcDropAnswer;\nget_future_salts#b921bd04 num:int = FutureSalts;\nping#7abe77ec ping_id:long = Pong;\nping_delay_disconnect#f3427b8c ping_id:long disconnect_delay:int = Pong;\ndestroy_session#e7512126 session_id:long = DestroySessionRes;\n`},1552:(C,q,re)=>{var ae=re(24876);var Ue=re(92472);var lt={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(C){return C.split("\0").map((function(C){return C.normalize("NFC")})).join("\0")}function findStatus(C){var q=0;var re=Ue.length-1;while(q<=re){var ae=Math.floor((q+re)/2);var lt=Ue[ae];if(lt[0][0]<=C&<[0][1]>=C){return lt}else if(lt[0][0]>C){re=ae-1}else{q=ae+1}}return null}var Pt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(C){return C.replace(Pt,"_").length}function mapChars(C,q,re){var ae=false;var Ue="";var Pt=countSymbols(C);for(var Wt=0;Wt253||Wt.length===0){lt.error=true}for(var Ar=0;Ar63||Pt.length===0){lt.error=true;break}}}if(lt.error)return null;return Pt.join(".")};C.exports.toUnicode=function(C,q){var re=processing(C,q,lt.NONTRANSITIONAL);return{domain:re.string,error:re.error}};C.exports.PROCESSING_OPTIONS=lt},78229:(C,q)=>{function fixProto(C,q){var re=Object.setPrototypeOf;re?re(C,q):C.__proto__=q}function fixStack(C,q){if(q===void 0){q=C.constructor}var re=Error.captureStackTrace;re&&re(C,q)}var re=false||function(){var C=function extendStatics(q,re){C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,q){C.__proto__=q}||function(C,q){for(var re in q){if(Object.prototype.hasOwnProperty.call(q,re))C[re]=q[re]}};return C(q,re)};return function(q,re){if(typeof re!=="function"&&re!==null)throw new TypeError("Class extends value "+String(re)+" is not a constructor or null");C(q,re);function __(){this.constructor=q}q.prototype=re===null?Object.create(re):(__.prototype=re.prototype,new __)}}();var ae=function(C){re(CustomError,C);function CustomError(q,re){var ae=this.constructor;var Ue=C.call(this,q,re)||this;Object.defineProperty(Ue,"name",{value:ae.name,enumerable:false,configurable:true});fixProto(Ue,ae.prototype);fixStack(Ue);return Ue}return CustomError}(Error);var Ue=false||function(C,q,re){if(re||arguments.length===2)for(var ae=0,Ue=q.length,lt;ae{var q;var re;var ae;var Ue;var lt;var Pt;var Wt;var Ar;var Er;var Ir;var Br;var kr;var Pr;var Qr;var Fr;var Dr;var xr;var Mr;var Ur;var Nr;var Lr;var jr;var Gr;var Vr;var Hr;var Wr;var $r;var Kr;var zr;var Jr;var Yr;var Xr;(function(q){var re=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(C){q(createExporter(re,createExporter(C)))}))}else if(true&&typeof C.exports==="object"){q(createExporter(re,createExporter(C.exports)))}else{q(createExporter(re))}function createExporter(C,q){if(C!==re){if(typeof Object.create==="function"){Object.defineProperty(C,"__esModule",{value:true})}else{C.__esModule=true}}return function(re,ae){return C[re]=q?q(re,ae):ae}}})((function(C){var Zr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,q){C.__proto__=q}||function(C,q){for(var re in q)if(Object.prototype.hasOwnProperty.call(q,re))C[re]=q[re]};q=function(C,q){if(typeof q!=="function"&&q!==null)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");Zr(C,q);function __(){this.constructor=C}C.prototype=q===null?Object.create(q):(__.prototype=q.prototype,new __)};re=Object.assign||function(C){for(var q,re=1,ae=arguments.length;re=0;Wt--)if(Pt=C[Wt])lt=(Ue<3?Pt(lt):Ue>3?Pt(q,re,lt):Pt(q,re))||lt;return Ue>3&<&&Object.defineProperty(q,re,lt),lt};lt=function(C,q){return function(re,ae){q(re,ae,C)}};Pt=function(C,q,re,ae,Ue,lt){function accept(C){if(C!==void 0&&typeof C!=="function")throw new TypeError("Function expected");return C}var Pt=ae.kind,Wt=Pt==="getter"?"get":Pt==="setter"?"set":"value";var Ar=!q&&C?ae["static"]?C:C.prototype:null;var Er=q||(Ar?Object.getOwnPropertyDescriptor(Ar,ae.name):{});var Ir,Br=false;for(var kr=re.length-1;kr>=0;kr--){var Pr={};for(var Qr in ae)Pr[Qr]=Qr==="access"?{}:ae[Qr];for(var Qr in ae.access)Pr.access[Qr]=ae.access[Qr];Pr.addInitializer=function(C){if(Br)throw new TypeError("Cannot add initializers after decoration has completed");lt.push(accept(C||null))};var Fr=(0,re[kr])(Pt==="accessor"?{get:Er.get,set:Er.set}:Er[Wt],Pr);if(Pt==="accessor"){if(Fr===void 0)continue;if(Fr===null||typeof Fr!=="object")throw new TypeError("Object expected");if(Ir=accept(Fr.get))Er.get=Ir;if(Ir=accept(Fr.set))Er.set=Ir;if(Ir=accept(Fr.init))Ue.unshift(Ir)}else if(Ir=accept(Fr)){if(Pt==="field")Ue.unshift(Ir);else Er[Wt]=Ir}}if(Ar)Object.defineProperty(Ar,ae.name,Er);Br=true};Wt=function(C,q,re){var ae=arguments.length>2;for(var Ue=0;Ue0&<[lt.length-1])&&(Wt[0]===6||Wt[0]===2)){re=0;continue}if(Wt[0]===3&&(!lt||Wt[1]>lt[0]&&Wt[1]=C.length)C=void 0;return{value:C&&C[ae++],done:!C}}};throw new TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")};Fr=function(C,q){var re=typeof Symbol==="function"&&C[Symbol.iterator];if(!re)return C;var ae=re.call(C),Ue,lt=[],Pt;try{while((q===void 0||q-- >0)&&!(Ue=ae.next()).done)lt.push(Ue.value)}catch(C){Pt={error:C}}finally{try{if(Ue&&!Ue.done&&(re=ae["return"]))re.call(ae)}finally{if(Pt)throw Pt.error}}return lt};Dr=function(){for(var C=[],q=0;q1||resume(C,q)}))};if(q)Ue[C]=q(Ue[C])}}function resume(C,q){try{step(ae[C](q))}catch(C){settle(lt[0][3],C)}}function step(C){C.value instanceof Ur?Promise.resolve(C.value.v).then(fulfill,reject):settle(lt[0][2],C)}function fulfill(C){resume("next",C)}function reject(C){resume("throw",C)}function settle(C,q){if(C(q),lt.shift(),lt.length)resume(lt[0][0],lt[0][1])}};Lr=function(C){var q,re;return q={},verb("next"),verb("throw",(function(C){throw C})),verb("return"),q[Symbol.iterator]=function(){return this},q;function verb(ae,Ue){q[ae]=C[ae]?function(q){return(re=!re)?{value:Ur(C[ae](q)),done:false}:Ue?Ue(q):q}:Ue}};jr=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q=C[Symbol.asyncIterator],re;return q?q.call(C):(C=typeof Qr==="function"?Qr(C):C[Symbol.iterator](),re={},verb("next"),verb("throw"),verb("return"),re[Symbol.asyncIterator]=function(){return this},re);function verb(q){re[q]=C[q]&&function(re){return new Promise((function(ae,Ue){re=C[q](re),settle(ae,Ue,re.done,re.value)}))}}function settle(C,q,re,ae){Promise.resolve(ae).then((function(q){C({value:q,done:re})}),q)}};Gr=function(C,q){if(Object.defineProperty){Object.defineProperty(C,"raw",{value:q})}else{C.raw=q}return C};var en=Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q};var ownKeys=function(C){ownKeys=Object.getOwnPropertyNames||function(C){var q=[];for(var re in C)if(Object.prototype.hasOwnProperty.call(C,re))q[q.length]=re;return q};return ownKeys(C)};Vr=function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re=ownKeys(C),ae=0;ae{C.exports=re(20218)},20218:(C,q,re)=>{var ae=re(69278);var Ue=re(64756);var lt=re(58611);var Pt=re(65692);var Wt=re(24434);var Ar=re(42613);var Er=re(39023);q.httpOverHttp=httpOverHttp;q.httpsOverHttp=httpsOverHttp;q.httpOverHttps=httpOverHttps;q.httpsOverHttps=httpsOverHttps;function httpOverHttp(C){var q=new TunnelingAgent(C);q.request=lt.request;return q}function httpsOverHttp(C){var q=new TunnelingAgent(C);q.request=lt.request;q.createSocket=createSecureSocket;q.defaultPort=443;return q}function httpOverHttps(C){var q=new TunnelingAgent(C);q.request=Pt.request;return q}function httpsOverHttps(C){var q=new TunnelingAgent(C);q.request=Pt.request;q.createSocket=createSecureSocket;q.defaultPort=443;return q}function TunnelingAgent(C){var q=this;q.options=C||{};q.proxyOptions=q.options.proxy||{};q.maxSockets=q.options.maxSockets||lt.Agent.defaultMaxSockets;q.requests=[];q.sockets=[];q.on("free",(function onFree(C,re,ae,Ue){var lt=toOptions(re,ae,Ue);for(var Pt=0,Wt=q.requests.length;Pt=this.maxSockets){Ue.requests.push(lt);return}Ue.createSocket(lt,(function(q){q.on("free",onFree);q.on("close",onCloseOrRemove);q.on("agentRemove",onCloseOrRemove);C.onSocket(q);function onFree(){Ue.emit("free",q,lt)}function onCloseOrRemove(C){Ue.removeSocket(q);q.removeListener("free",onFree);q.removeListener("close",onCloseOrRemove);q.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(C,q){var re=this;var ae={};re.sockets.push(ae);var Ue=mergeOptions({},re.proxyOptions,{method:"CONNECT",path:C.host+":"+C.port,agent:false,headers:{host:C.host+":"+C.port}});if(C.localAddress){Ue.localAddress=C.localAddress}if(Ue.proxyAuth){Ue.headers=Ue.headers||{};Ue.headers["Proxy-Authorization"]="Basic "+new Buffer(Ue.proxyAuth).toString("base64")}Ir("making CONNECT request");var lt=re.request(Ue);lt.useChunkedEncodingByDefault=false;lt.once("response",onResponse);lt.once("upgrade",onUpgrade);lt.once("connect",onConnect);lt.once("error",onError);lt.end();function onResponse(C){C.upgrade=true}function onUpgrade(C,q,re){process.nextTick((function(){onConnect(C,q,re)}))}function onConnect(Ue,Pt,Wt){lt.removeAllListeners();Pt.removeAllListeners();if(Ue.statusCode!==200){Ir("tunneling socket could not be established, statusCode=%d",Ue.statusCode);Pt.destroy();var Ar=new Error("tunneling socket could not be established, "+"statusCode="+Ue.statusCode);Ar.code="ECONNRESET";C.request.emit("error",Ar);re.removeSocket(ae);return}if(Wt.length>0){Ir("got illegal response body from proxy");Pt.destroy();var Ar=new Error("got illegal response body from proxy");Ar.code="ECONNRESET";C.request.emit("error",Ar);re.removeSocket(ae);return}Ir("tunneling connection has established");re.sockets[re.sockets.indexOf(ae)]=Pt;return q(Pt)}function onError(q){lt.removeAllListeners();Ir("tunneling socket could not be established, cause=%s\n",q.message,q.stack);var Ue=new Error("tunneling socket could not be established, "+"cause="+q.message);Ue.code="ECONNRESET";C.request.emit("error",Ue);re.removeSocket(ae)}};TunnelingAgent.prototype.removeSocket=function removeSocket(C){var q=this.sockets.indexOf(C);if(q===-1){return}this.sockets.splice(q,1);var re=this.requests.shift();if(re){this.createSocket(re,(function(C){re.request.onSocket(C)}))}};function createSecureSocket(C,q){var re=this;TunnelingAgent.prototype.createSocket.call(re,C,(function(ae){var lt=C.request.getHeader("host");var Pt=mergeOptions({},re.options,{socket:ae,servername:lt?lt.replace(/:.*$/,""):C.host});var Wt=Ue.connect(0,Pt);re.sockets[re.sockets.indexOf(ae)]=Wt;q(Wt)}))}function toOptions(C,q,re){if(typeof C==="string"){return{host:C,port:q,localAddress:re}}return C}function mergeOptions(C){for(var q=1,re=arguments.length;q{Object.defineProperty(q,"__esModule",{value:true});q.AbstractStandardValidator=void 0;const ae=re(29293);class AbstractStandardValidator extends ae.AbstractValidator{constructor(C){super(C)}assertAndClean(C,q){this.assert(C,q);this.cleanValue(this.schema,C)}assertAndCleanCopy(C,q){this.assert(C,q);return this.cleanCopyOfValue(this.schema,C)}validateAndClean(C,q){this.validate(C,q);this.cleanValue(this.schema,C)}validateAndCleanCopy(C,q){this.validate(C,q);return this.cleanCopyOfValue(this.schema,C)}}q.AbstractStandardValidator=AbstractStandardValidator},73422:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.AbstractTypedUnionValidator=q.DEFAULT_DISCRIMINANT_KEY=void 0;const ae=re(29293);q.DEFAULT_DISCRIMINANT_KEY="kind";class AbstractTypedUnionValidator extends ae.AbstractValidator{constructor(C){super(C)}assert(C,q){this.assertReturningSchema(C,q)}assertAndClean(C,q){const re=this.assertReturningSchema(C,q);this.cleanValue(re,C)}assertAndCleanCopy(C,q){const re=this.assertReturningSchema(C,q);return this.cleanCopyOfValue(re,C)}validate(C,q){this.validateReturningSchema(C,q)}validateAndClean(C,q){const re=this.validateReturningSchema(C,q);this.cleanValue(re,C)}validateAndCleanCopy(C,q){const re=this.validateReturningSchema(C,q);return this.cleanCopyOfValue(re,C)}toValueKeyDereference(C){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(C)?`value.${C}`:`value['${C.replace(/'/g,"\\'")}']`}}q.AbstractTypedUnionValidator=AbstractTypedUnionValidator},29293:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.AbstractValidator=void 0;const ae=re(45105);const Ue=re(17085);class AbstractValidator{constructor(C){this.schema=C}testReturningErrors(C){return this.test(C)?null:this.errors(C)}testReturningFirstError(C){const q=this.testReturningErrors(C);if(q===null){return null}const re=q[Symbol.iterator]().next();return re.done?null:re.value}firstError(C){const q=this.errors(C)[Symbol.iterator]();const re=q.next();return re.done?null:re.value}cleanCopyOfValue(C,q){if(C.type==="object"&&typeof q==="object"){const re={};Object.keys(C.properties).forEach((C=>{re[C]=q[C]}));return re}return q}cleanValue(C,q){if(C.type==="object"&&typeof q==="object"){const re=Object.keys(C.properties);Object.getOwnPropertyNames(q).forEach((C=>{if(!re.includes(C)){delete q[C]}}))}}uncompiledAssert(C,q,re){if(!ae.Value.Check(C,q)){(0,Ue.throwInvalidAssert)(re,ae.Value.Errors(C,q).First())}}uncompiledValidate(C,q,re){if(!ae.Value.Check(C,q)){(0,Ue.throwInvalidValidate)(re,ae.Value.Errors(C,q))}}}q.AbstractValidator=AbstractValidator},26498:function(C,q,re){var ae=this&&this.__classPrivateFieldSet||function(C,q,re,ae,Ue){if(ae==="m")throw new TypeError("Private method is not writable");if(ae==="a"&&!Ue)throw new TypeError("Private accessor was defined without a setter");if(typeof q==="function"?C!==q||!Ue:!q.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ae==="a"?Ue.call(C,re):Ue?Ue.value=re:q.set(C,re),re};var Ue=this&&this.__classPrivateFieldGet||function(C,q,re,ae){if(re==="a"&&!ae)throw new TypeError("Private accessor was defined without a getter");if(typeof q==="function"?C!==q||!ae:!q.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return re==="m"?ae:re==="a"?ae.call(C):ae?ae.value:q.get(C)};var lt,Pt;Object.defineProperty(q,"__esModule",{value:true});q.CompilingDiscriminatedUnionValidator=void 0;const Wt=re(73422);const Ar=re(893);class CompilingDiscriminatedUnionValidator extends Ar.AbstractCompilingTypedUnionValidator{constructor(C){var q;super(C);lt.set(this,void 0);Pt.set(this,void 0);ae(this,lt,(q=this.schema.discriminantKey)!==null&&q!==void 0?q:Wt.DEFAULT_DISCRIMINANT_KEY,"f")}compiledFindSchemaMemberIndex(C){if(Ue(this,Pt,"f")===undefined){const C=[`if (typeof value !== 'object' || value === null || Array.isArray(value)) return null;\n          switch (${this.toValueKeyDereference(Ue(this,lt,"f"))}) {\n`];for(let q=0;q{Object.defineProperty(q,"__esModule",{value:true});q.TypeIdentifyingKeyIndex=q.MESSAGE_MEMBERS_MISSING_KEY=q.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY=q.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS=q.MESSAGE_OPTIONAL_TYPE_ID_KEY=void 0;const ae=re(14019);q.MESSAGE_OPTIONAL_TYPE_ID_KEY="Type identifying key cannot be optional";q.MESSAGE_MEMBER_WITH_MULTIPLE_KEYS="Union has member with multiple identifying keys";q.MESSAGE_MULTIPLE_MEMBERS_WITH_SAME_KEY="Union has multiple members with same identifying key";q.MESSAGE_MEMBERS_MISSING_KEY="Union has members missing identifying keys";class TypeIdentifyingKeyIndex{constructor(C){this.schema=C}cacheKeys(){const C=this.schema.anyOf.length;const re=new Set;this.keyByMemberIndex=new Array(C);for(let Ue=0;Ue{Object.defineProperty(q,"__esModule",{value:true});q.TypeIdentifyingKey=void 0;function TypeIdentifyingKey(C){return Object.assign(Object.assign({},C),{typeIdentifyingKey:true})}q.TypeIdentifyingKey=TypeIdentifyingKey},80619:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(29293),q);Ue(re(58453),q);Ue(re(73422),q);Ue(re(68589),q);Ue(re(29539),q);Ue(re(96388),q);Ue(re(55776),q)},17085:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.throwInvalidValidate=q.throwInvalidAssert=q.createUnionTypeErrorIterable=q.createUnionTypeError=q.createErrorsIterable=q.adjustErrorMessage=q.DEFAULT_UNKNOWN_TYPE_MESSAGE=q.DEFAULT_OVERALL_MESSAGE=void 0;const ae=re(14019);const Ue=re(65507);const lt=re(55776);q.DEFAULT_OVERALL_MESSAGE="Invalid value";q.DEFAULT_UNKNOWN_TYPE_MESSAGE="Object type not recognized";const Pt="Expected required property";function adjustErrorMessage(C){if(C.schema.errorMessage!==undefined){C.message=C.schema.errorMessage}return C}q.adjustErrorMessage=adjustErrorMessage;function createErrorsIterable(C){return{[Symbol.iterator]:function*(){const q=C[Symbol.iterator]();let re=q.next();let Ue="???";while(re.value!==undefined){const C=re.value;const lt=C.message;if(C.path!==Ue){adjustErrorMessage(C);if(C.message!=lt){Ue=C.path;yield C}else if(C.message!=Pt||["Any","Unknown"].includes(C.schema[ae.Kind])){yield C}}re=q.next()}}}}q.createErrorsIterable=createErrorsIterable;function createUnionTypeError(C,re){var ae;return{type:Ue.ValueErrorType.Union,path:"",schema:C,value:re,message:(ae=C.errorMessage)!==null&&ae!==void 0?ae:q.DEFAULT_UNKNOWN_TYPE_MESSAGE}}q.createUnionTypeError=createUnionTypeError;function createUnionTypeErrorIterable(C){return{[Symbol.iterator]:function*(){yield C}}}q.createUnionTypeErrorIterable=createUnionTypeErrorIterable;function throwInvalidAssert(C,re){adjustErrorMessage(re);throw new lt.ValidationException(C===undefined?q.DEFAULT_OVERALL_MESSAGE:C.replace("{error}",lt.ValidationException.errorToString(re)),[re])}q.throwInvalidAssert=throwInvalidAssert;function throwInvalidValidate(C,re){throw new lt.ValidationException(C!==null&&C!==void 0?C:q.DEFAULT_OVERALL_MESSAGE,re instanceof Ue.ValueErrorIterator?[...createErrorsIterable(re)]:[re])}q.throwInvalidValidate=throwInvalidValidate},55776:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.ValidationException=void 0;class ValidationException{constructor(C,q=[]){this.message=C;this.details=q}toString(){let C=this.message;if(this.details.length>0){if(!C.endsWith(":")){C+=":"}for(const q of this.details){C+="\n * "+ValidationException.errorToString(q)}}return C}static errorToString(C){return C.path!=""?`${C.path.substring(1)} - ${C.message}`:C.message}}q.ValidationException=ValidationException},3470:function(C,q,re){var ae=this&&this.__classPrivateFieldGet||function(C,q,re,ae){if(re==="a"&&!ae)throw new TypeError("Private accessor was defined without a getter");if(typeof q==="function"?C!==q||!ae:!q.has(C))throw new TypeError("Cannot read private member from an object whose class did not declare it");return re==="m"?ae:re==="a"?ae.call(C):ae?ae.value:q.get(C)};var Ue=this&&this.__classPrivateFieldSet||function(C,q,re,ae,Ue){if(ae==="m")throw new TypeError("Private method is not writable");if(ae==="a"&&!Ue)throw new TypeError("Private accessor was defined without a setter");if(typeof q==="function"?C!==q||!Ue:!q.has(C))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ae==="a"?Ue.call(C,re):Ue?Ue.value=re:q.set(C,re),re};var lt;Object.defineProperty(q,"__esModule",{value:true});q.CompilingStandardValidator=void 0;const Pt=re(25269);const Wt=re(58453);const Ar=re(17085);class CompilingStandardValidator extends Wt.AbstractStandardValidator{constructor(C){super(C);lt.set(this,void 0)}test(C){const q=this.getCompiledType();return q.Check(C)}assert(C,q){const re=this.getCompiledType();if(!re.Check(C)){(0,Ar.throwInvalidAssert)(q,re.Errors(C).First())}}validate(C,q){const re=this.getCompiledType();if(!re.Check(C)){(0,Ar.throwInvalidValidate)(q,re.Errors(C))}}errors(C){const q=this.getCompiledType();return(0,Ar.createErrorsIterable)(q.Errors(C))}getCompiledType(){if(ae(this,lt,"f")===undefined){Ue(this,lt,Pt.TypeCompiler.Compile(this.schema),"f")}return ae(this,lt,"f")}}q.CompilingStandardValidator=CompilingStandardValidator;lt=new WeakMap},68589:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(12491),q);Ue(re(3470),q)},12491:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.StandardValidator=void 0;const ae=re(58453);const Ue=re(45105);const lt=re(17085);class StandardValidator extends ae.AbstractStandardValidator{constructor(C){super(C)}test(C){return Ue.Value.Check(this.schema,C)}assert(C,q){this.uncompiledAssert(this.schema,C,q)}validate(C,q){this.uncompiledValidate(this.schema,C,q)}errors(C){return(0,lt.createErrorsIterable)(Ue.Value.Errors(this.schema,C))}}q.StandardValidator=StandardValidator},4618:(C,q,re)=>{var ae=re(42858).strict;C.exports=function typedarrayToBuffer(C){if(ae(C)){var q=Buffer.from(C.buffer);if(C.byteLength!==C.buffer.byteLength){q=q.slice(C.byteOffset,C.byteOffset+C.byteLength)}return q}else{return Buffer.from(C)}}},46752:(C,q,re)=>{const ae=re(86197);const Ue=re(28611);const lt=re(68707);const Pt=re(35076);const Wt=re(81093);const Ar=re(59965);const Er=re(3440);const{InvalidArgumentError:Ir}=lt;const Br=re(56615);const kr=re(59136);const Pr=re(47365);const Qr=re(47501);const Fr=re(94004);const Dr=re(52429);const xr=re(22720);const Mr=re(53573);const{getGlobalDispatcher:Ur,setGlobalDispatcher:Nr}=re(32581);const Lr=re(78840);const jr=re(48299);const Gr=re(64415);let Vr;try{re(76982);Vr=true}catch{Vr=false}Object.assign(Ue.prototype,Br);C.exports.Dispatcher=Ue;C.exports.Client=ae;C.exports.Pool=Pt;C.exports.BalancedPool=Wt;C.exports.Agent=Ar;C.exports.ProxyAgent=xr;C.exports.RetryHandler=Mr;C.exports.DecoratorHandler=Lr;C.exports.RedirectHandler=jr;C.exports.createRedirectInterceptor=Gr;C.exports.buildConnector=kr;C.exports.errors=lt;function makeDispatcher(C){return(q,re,ae)=>{if(typeof re==="function"){ae=re;re=null}if(!q||typeof q!=="string"&&typeof q!=="object"&&!(q instanceof URL)){throw new Ir("invalid url")}if(re!=null&&typeof re!=="object"){throw new Ir("invalid opts")}if(re&&re.path!=null){if(typeof re.path!=="string"){throw new Ir("invalid opts.path")}let C=re.path;if(!re.path.startsWith("/")){C=`/${C}`}q=new URL(Er.parseOrigin(q).origin+C)}else{if(!re){re=typeof q==="object"?q:{}}q=Er.parseURL(q)}const{agent:Ue,dispatcher:lt=Ur()}=re;if(Ue){throw new Ir("unsupported opts.agent. Did you mean opts.client?")}return C.call(lt,{...re,origin:q.origin,path:q.search?`${q.pathname}${q.search}`:q.pathname,method:re.method||(re.body?"PUT":"GET")},ae)}}C.exports.setGlobalDispatcher=Nr;C.exports.getGlobalDispatcher=Ur;if(Er.nodeMajor>16||Er.nodeMajor===16&&Er.nodeMinor>=8){let q=null;C.exports.fetch=async function fetch(C){if(!q){q=re(12315).fetch}try{return await q(...arguments)}catch(C){if(typeof C==="object"){Error.captureStackTrace(C,this)}throw C}};C.exports.Headers=re(26349).Headers;C.exports.Response=re(48676).Response;C.exports.Request=re(25194).Request;C.exports.FormData=re(43073).FormData;C.exports.File=re(63041).File;C.exports.FileReader=re(82160).FileReader;const{setGlobalOrigin:ae,getGlobalOrigin:Ue}=re(75628);C.exports.setGlobalOrigin=ae;C.exports.getGlobalOrigin=Ue;const{CacheStorage:lt}=re(44738);const{kConstruct:Pt}=re(80296);C.exports.caches=new lt(Pt)}if(Er.nodeMajor>=16){const{deleteCookie:q,getCookies:ae,getSetCookies:Ue,setCookie:lt}=re(53168);C.exports.deleteCookie=q;C.exports.getCookies=ae;C.exports.getSetCookies=Ue;C.exports.setCookie=lt;const{parseMIMEType:Pt,serializeAMimeType:Wt}=re(94322);C.exports.parseMIMEType=Pt;C.exports.serializeAMimeType=Wt}if(Er.nodeMajor>=18&&Vr){const{WebSocket:q}=re(55171);C.exports.WebSocket=q}C.exports.request=makeDispatcher(Br.request);C.exports.stream=makeDispatcher(Br.stream);C.exports.pipeline=makeDispatcher(Br.pipeline);C.exports.connect=makeDispatcher(Br.connect);C.exports.upgrade=makeDispatcher(Br.upgrade);C.exports.MockClient=Pr;C.exports.MockPool=Fr;C.exports.MockAgent=Qr;C.exports.mockErrors=Dr},59965:(C,q,re)=>{const{InvalidArgumentError:ae}=re(68707);const{kClients:Ue,kRunning:lt,kClose:Pt,kDestroy:Wt,kDispatch:Ar,kInterceptors:Er}=re(36443);const Ir=re(50001);const Br=re(35076);const kr=re(86197);const Pr=re(3440);const Qr=re(64415);const{WeakRef:Fr,FinalizationRegistry:Dr}=re(13194)();const xr=Symbol("onConnect");const Mr=Symbol("onDisconnect");const Ur=Symbol("onConnectionError");const Nr=Symbol("maxRedirections");const Lr=Symbol("onDrain");const jr=Symbol("factory");const Gr=Symbol("finalizer");const Vr=Symbol("options");function defaultFactory(C,q){return q&&q.connections===1?new kr(C,q):new Br(C,q)}class Agent extends Ir{constructor({factory:C=defaultFactory,maxRedirections:q=0,connect:re,...lt}={}){super();if(typeof C!=="function"){throw new ae("factory must be a function.")}if(re!=null&&typeof re!=="function"&&typeof re!=="object"){throw new ae("connect must be a function or an object")}if(!Number.isInteger(q)||q<0){throw new ae("maxRedirections must be a positive number")}if(re&&typeof re!=="function"){re={...re}}this[Er]=lt.interceptors&<.interceptors.Agent&&Array.isArray(lt.interceptors.Agent)?lt.interceptors.Agent:[Qr({maxRedirections:q})];this[Vr]={...Pr.deepClone(lt),connect:re};this[Vr].interceptors=lt.interceptors?{...lt.interceptors}:undefined;this[Nr]=q;this[jr]=C;this[Ue]=new Map;this[Gr]=new Dr((C=>{const q=this[Ue].get(C);if(q!==undefined&&q.deref()===undefined){this[Ue].delete(C)}}));const Pt=this;this[Lr]=(C,q)=>{Pt.emit("drain",C,[Pt,...q])};this[xr]=(C,q)=>{Pt.emit("connect",C,[Pt,...q])};this[Mr]=(C,q,re)=>{Pt.emit("disconnect",C,[Pt,...q],re)};this[Ur]=(C,q,re)=>{Pt.emit("connectionError",C,[Pt,...q],re)}}get[lt](){let C=0;for(const q of this[Ue].values()){const re=q.deref();if(re){C+=re[lt]}}return C}[Ar](C,q){let re;if(C.origin&&(typeof C.origin==="string"||C.origin instanceof URL)){re=String(C.origin)}else{throw new ae("opts.origin must be a non-empty string or URL.")}const lt=this[Ue].get(re);let Pt=lt?lt.deref():null;if(!Pt){Pt=this[jr](C.origin,this[Vr]).on("drain",this[Lr]).on("connect",this[xr]).on("disconnect",this[Mr]).on("connectionError",this[Ur]);this[Ue].set(re,new Fr(Pt));this[Gr].register(Pt,re)}return Pt.dispatch(C,q)}async[Pt](){const C=[];for(const q of this[Ue].values()){const re=q.deref();if(re){C.push(re.close())}}await Promise.all(C)}async[Wt](C){const q=[];for(const re of this[Ue].values()){const ae=re.deref();if(ae){q.push(ae.destroy(C))}}await Promise.all(q)}}C.exports=Agent},80158:(C,q,re)=>{const{addAbortListener:ae}=re(3440);const{RequestAbortedError:Ue}=re(68707);const lt=Symbol("kListener");const Pt=Symbol("kSignal");function abort(C){if(C.abort){C.abort()}else{C.onError(new Ue)}}function addSignal(C,q){C[Pt]=null;C[lt]=null;if(!q){return}if(q.aborted){abort(C);return}C[Pt]=q;C[lt]=()=>{abort(C)};ae(C[Pt],C[lt])}function removeSignal(C){if(!C[Pt]){return}if("removeEventListener"in C[Pt]){C[Pt].removeEventListener("abort",C[lt])}else{C[Pt].removeListener("abort",C[lt])}C[Pt]=null;C[lt]=null}C.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(C,q,re)=>{const{AsyncResource:ae}=re(90290);const{InvalidArgumentError:Ue,RequestAbortedError:lt,SocketError:Pt}=re(68707);const Wt=re(3440);const{addSignal:Ar,removeSignal:Er}=re(80158);class ConnectHandler extends ae{constructor(C,q){if(!C||typeof C!=="object"){throw new Ue("invalid opts")}if(typeof q!=="function"){throw new Ue("invalid callback")}const{signal:re,opaque:ae,responseHeaders:lt}=C;if(re&&typeof re.on!=="function"&&typeof re.addEventListener!=="function"){throw new Ue("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=ae||null;this.responseHeaders=lt||null;this.callback=q;this.abort=null;Ar(this,re)}onConnect(C,q){if(!this.callback){throw new lt}this.abort=C;this.context=q}onHeaders(){throw new Pt("bad connect",null)}onUpgrade(C,q,re){const{callback:ae,opaque:Ue,context:lt}=this;Er(this);this.callback=null;let Pt=q;if(Pt!=null){Pt=this.responseHeaders==="raw"?Wt.parseRawHeaders(q):Wt.parseHeaders(q)}this.runInAsyncScope(ae,null,null,{statusCode:C,headers:Pt,socket:re,opaque:Ue,context:lt})}onError(C){const{callback:q,opaque:re}=this;Er(this);if(q){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(q,null,C,{opaque:re})}))}}}function connect(C,q){if(q===undefined){return new Promise(((q,re)=>{connect.call(this,C,((C,ae)=>C?re(C):q(ae)))}))}try{const re=new ConnectHandler(C,q);this.dispatch({...C,method:"CONNECT"},re)}catch(re){if(typeof q!=="function"){throw re}const ae=C&&C.opaque;queueMicrotask((()=>q(re,{opaque:ae})))}}C.exports=connect},76862:(C,q,re)=>{const{Readable:ae,Duplex:Ue,PassThrough:lt}=re(2203);const{InvalidArgumentError:Pt,InvalidReturnValueError:Wt,RequestAbortedError:Ar}=re(68707);const Er=re(3440);const{AsyncResource:Ir}=re(90290);const{addSignal:Br,removeSignal:kr}=re(80158);const Pr=re(42613);const Qr=Symbol("resume");class PipelineRequest extends ae{constructor(){super({autoDestroy:true});this[Qr]=null}_read(){const{[Qr]:C}=this;if(C){this[Qr]=null;C()}}_destroy(C,q){this._read();q(C)}}class PipelineResponse extends ae{constructor(C){super({autoDestroy:true});this[Qr]=C}_read(){this[Qr]()}_destroy(C,q){if(!C&&!this._readableState.endEmitted){C=new Ar}q(C)}}class PipelineHandler extends Ir{constructor(C,q){if(!C||typeof C!=="object"){throw new Pt("invalid opts")}if(typeof q!=="function"){throw new Pt("invalid handler")}const{signal:re,method:ae,opaque:lt,onInfo:Wt,responseHeaders:Ir}=C;if(re&&typeof re.on!=="function"&&typeof re.addEventListener!=="function"){throw new Pt("signal must be an EventEmitter or EventTarget")}if(ae==="CONNECT"){throw new Pt("invalid method")}if(Wt&&typeof Wt!=="function"){throw new Pt("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=lt||null;this.responseHeaders=Ir||null;this.handler=q;this.abort=null;this.context=null;this.onInfo=Wt||null;this.req=(new PipelineRequest).on("error",Er.nop);this.ret=new Ue({readableObjectMode:C.objectMode,autoDestroy:true,read:()=>{const{body:C}=this;if(C&&C.resume){C.resume()}},write:(C,q,re)=>{const{req:ae}=this;if(ae.push(C,q)||ae._readableState.destroyed){re()}else{ae[Qr]=re}},destroy:(C,q)=>{const{body:re,req:ae,res:Ue,ret:lt,abort:Pt}=this;if(!C&&!lt._readableState.endEmitted){C=new Ar}if(Pt&&C){Pt()}Er.destroy(re,C);Er.destroy(ae,C);Er.destroy(Ue,C);kr(this);q(C)}}).on("prefinish",(()=>{const{req:C}=this;C.push(null)}));this.res=null;Br(this,re)}onConnect(C,q){const{ret:re,res:ae}=this;Pr(!ae,"pipeline cannot be retried");if(re.destroyed){throw new Ar}this.abort=C;this.context=q}onHeaders(C,q,re){const{opaque:ae,handler:Ue,context:lt}=this;if(C<200){if(this.onInfo){const re=this.responseHeaders==="raw"?Er.parseRawHeaders(q):Er.parseHeaders(q);this.onInfo({statusCode:C,headers:re})}return}this.res=new PipelineResponse(re);let Pt;try{this.handler=null;const re=this.responseHeaders==="raw"?Er.parseRawHeaders(q):Er.parseHeaders(q);Pt=this.runInAsyncScope(Ue,null,{statusCode:C,headers:re,opaque:ae,body:this.res,context:lt})}catch(C){this.res.on("error",Er.nop);throw C}if(!Pt||typeof Pt.on!=="function"){throw new Wt("expected Readable")}Pt.on("data",(C=>{const{ret:q,body:re}=this;if(!q.push(C)&&re.pause){re.pause()}})).on("error",(C=>{const{ret:q}=this;Er.destroy(q,C)})).on("end",(()=>{const{ret:C}=this;C.push(null)})).on("close",(()=>{const{ret:C}=this;if(!C._readableState.ended){Er.destroy(C,new Ar)}}));this.body=Pt}onData(C){const{res:q}=this;return q.push(C)}onComplete(C){const{res:q}=this;q.push(null)}onError(C){const{ret:q}=this;this.handler=null;Er.destroy(q,C)}}function pipeline(C,q){try{const re=new PipelineHandler(C,q);this.dispatch({...C,body:re.req},re);return re.ret}catch(C){return(new lt).destroy(C)}}C.exports=pipeline},14043:(C,q,re)=>{const ae=re(49927);const{InvalidArgumentError:Ue,RequestAbortedError:lt}=re(68707);const Pt=re(3440);const{getResolveErrorBodyCallback:Wt}=re(87655);const{AsyncResource:Ar}=re(90290);const{addSignal:Er,removeSignal:Ir}=re(80158);class RequestHandler extends Ar{constructor(C,q){if(!C||typeof C!=="object"){throw new Ue("invalid opts")}const{signal:re,method:ae,opaque:lt,body:Wt,onInfo:Ar,responseHeaders:Ir,throwOnError:Br,highWaterMark:kr}=C;try{if(typeof q!=="function"){throw new Ue("invalid callback")}if(kr&&(typeof kr!=="number"||kr<0)){throw new Ue("invalid highWaterMark")}if(re&&typeof re.on!=="function"&&typeof re.addEventListener!=="function"){throw new Ue("signal must be an EventEmitter or EventTarget")}if(ae==="CONNECT"){throw new Ue("invalid method")}if(Ar&&typeof Ar!=="function"){throw new Ue("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(C){if(Pt.isStream(Wt)){Pt.destroy(Wt.on("error",Pt.nop),C)}throw C}this.responseHeaders=Ir||null;this.opaque=lt||null;this.callback=q;this.res=null;this.abort=null;this.body=Wt;this.trailers={};this.context=null;this.onInfo=Ar||null;this.throwOnError=Br;this.highWaterMark=kr;if(Pt.isStream(Wt)){Wt.on("error",(C=>{this.onError(C)}))}Er(this,re)}onConnect(C,q){if(!this.callback){throw new lt}this.abort=C;this.context=q}onHeaders(C,q,re,Ue){const{callback:lt,opaque:Ar,abort:Er,context:Ir,responseHeaders:Br,highWaterMark:kr}=this;const Pr=Br==="raw"?Pt.parseRawHeaders(q):Pt.parseHeaders(q);if(C<200){if(this.onInfo){this.onInfo({statusCode:C,headers:Pr})}return}const Qr=Br==="raw"?Pt.parseHeaders(q):Pr;const Fr=Qr["content-type"];const Dr=new ae({resume:re,abort:Er,contentType:Fr,highWaterMark:kr});this.callback=null;this.res=Dr;if(lt!==null){if(this.throwOnError&&C>=400){this.runInAsyncScope(Wt,null,{callback:lt,body:Dr,contentType:Fr,statusCode:C,statusMessage:Ue,headers:Pr})}else{this.runInAsyncScope(lt,null,null,{statusCode:C,headers:Pr,trailers:this.trailers,opaque:Ar,body:Dr,context:Ir})}}}onData(C){const{res:q}=this;return q.push(C)}onComplete(C){const{res:q}=this;Ir(this);Pt.parseHeaders(C,this.trailers);q.push(null)}onError(C){const{res:q,callback:re,body:ae,opaque:Ue}=this;Ir(this);if(re){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(re,null,C,{opaque:Ue})}))}if(q){this.res=null;queueMicrotask((()=>{Pt.destroy(q,C)}))}if(ae){this.body=null;Pt.destroy(ae,C)}}}function request(C,q){if(q===undefined){return new Promise(((q,re)=>{request.call(this,C,((C,ae)=>C?re(C):q(ae)))}))}try{this.dispatch(C,new RequestHandler(C,q))}catch(re){if(typeof q!=="function"){throw re}const ae=C&&C.opaque;queueMicrotask((()=>q(re,{opaque:ae})))}}C.exports=request;C.exports.RequestHandler=RequestHandler},3560:(C,q,re)=>{const{finished:ae,PassThrough:Ue}=re(2203);const{InvalidArgumentError:lt,InvalidReturnValueError:Pt,RequestAbortedError:Wt}=re(68707);const Ar=re(3440);const{getResolveErrorBodyCallback:Er}=re(87655);const{AsyncResource:Ir}=re(90290);const{addSignal:Br,removeSignal:kr}=re(80158);class StreamHandler extends Ir{constructor(C,q,re){if(!C||typeof C!=="object"){throw new lt("invalid opts")}const{signal:ae,method:Ue,opaque:Pt,body:Wt,onInfo:Er,responseHeaders:Ir,throwOnError:kr}=C;try{if(typeof re!=="function"){throw new lt("invalid callback")}if(typeof q!=="function"){throw new lt("invalid factory")}if(ae&&typeof ae.on!=="function"&&typeof ae.addEventListener!=="function"){throw new lt("signal must be an EventEmitter or EventTarget")}if(Ue==="CONNECT"){throw new lt("invalid method")}if(Er&&typeof Er!=="function"){throw new lt("invalid onInfo callback")}super("UNDICI_STREAM")}catch(C){if(Ar.isStream(Wt)){Ar.destroy(Wt.on("error",Ar.nop),C)}throw C}this.responseHeaders=Ir||null;this.opaque=Pt||null;this.factory=q;this.callback=re;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=Wt;this.onInfo=Er||null;this.throwOnError=kr||false;if(Ar.isStream(Wt)){Wt.on("error",(C=>{this.onError(C)}))}Br(this,ae)}onConnect(C,q){if(!this.callback){throw new Wt}this.abort=C;this.context=q}onHeaders(C,q,re,lt){const{factory:Wt,opaque:Ir,context:Br,callback:kr,responseHeaders:Pr}=this;const Qr=Pr==="raw"?Ar.parseRawHeaders(q):Ar.parseHeaders(q);if(C<200){if(this.onInfo){this.onInfo({statusCode:C,headers:Qr})}return}this.factory=null;let Fr;if(this.throwOnError&&C>=400){const re=Pr==="raw"?Ar.parseHeaders(q):Qr;const ae=re["content-type"];Fr=new Ue;this.callback=null;this.runInAsyncScope(Er,null,{callback:kr,body:Fr,contentType:ae,statusCode:C,statusMessage:lt,headers:Qr})}else{if(Wt===null){return}Fr=this.runInAsyncScope(Wt,null,{statusCode:C,headers:Qr,opaque:Ir,context:Br});if(!Fr||typeof Fr.write!=="function"||typeof Fr.end!=="function"||typeof Fr.on!=="function"){throw new Pt("expected Writable")}ae(Fr,{readable:false},(C=>{const{callback:q,res:re,opaque:ae,trailers:Ue,abort:lt}=this;this.res=null;if(C||!re.readable){Ar.destroy(re,C)}this.callback=null;this.runInAsyncScope(q,null,C||null,{opaque:ae,trailers:Ue});if(C){lt()}}))}Fr.on("drain",re);this.res=Fr;const Dr=Fr.writableNeedDrain!==undefined?Fr.writableNeedDrain:Fr._writableState&&Fr._writableState.needDrain;return Dr!==true}onData(C){const{res:q}=this;return q?q.write(C):true}onComplete(C){const{res:q}=this;kr(this);if(!q){return}this.trailers=Ar.parseHeaders(C);q.end()}onError(C){const{res:q,callback:re,opaque:ae,body:Ue}=this;kr(this);this.factory=null;if(q){this.res=null;Ar.destroy(q,C)}else if(re){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(re,null,C,{opaque:ae})}))}if(Ue){this.body=null;Ar.destroy(Ue,C)}}}function stream(C,q,re){if(re===undefined){return new Promise(((re,ae)=>{stream.call(this,C,q,((C,q)=>C?ae(C):re(q)))}))}try{this.dispatch(C,new StreamHandler(C,q,re))}catch(q){if(typeof re!=="function"){throw q}const ae=C&&C.opaque;queueMicrotask((()=>re(q,{opaque:ae})))}}C.exports=stream},61882:(C,q,re)=>{const{InvalidArgumentError:ae,RequestAbortedError:Ue,SocketError:lt}=re(68707);const{AsyncResource:Pt}=re(90290);const Wt=re(3440);const{addSignal:Ar,removeSignal:Er}=re(80158);const Ir=re(42613);class UpgradeHandler extends Pt{constructor(C,q){if(!C||typeof C!=="object"){throw new ae("invalid opts")}if(typeof q!=="function"){throw new ae("invalid callback")}const{signal:re,opaque:Ue,responseHeaders:lt}=C;if(re&&typeof re.on!=="function"&&typeof re.addEventListener!=="function"){throw new ae("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=lt||null;this.opaque=Ue||null;this.callback=q;this.abort=null;this.context=null;Ar(this,re)}onConnect(C,q){if(!this.callback){throw new Ue}this.abort=C;this.context=null}onHeaders(){throw new lt("bad upgrade",null)}onUpgrade(C,q,re){const{callback:ae,opaque:Ue,context:lt}=this;Ir.strictEqual(C,101);Er(this);this.callback=null;const Pt=this.responseHeaders==="raw"?Wt.parseRawHeaders(q):Wt.parseHeaders(q);this.runInAsyncScope(ae,null,null,{headers:Pt,socket:re,opaque:Ue,context:lt})}onError(C){const{callback:q,opaque:re}=this;Er(this);if(q){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(q,null,C,{opaque:re})}))}}}function upgrade(C,q){if(q===undefined){return new Promise(((q,re)=>{upgrade.call(this,C,((C,ae)=>C?re(C):q(ae)))}))}try{const re=new UpgradeHandler(C,q);this.dispatch({...C,method:C.method||"GET",upgrade:C.protocol||"Websocket"},re)}catch(re){if(typeof q!=="function"){throw re}const ae=C&&C.opaque;queueMicrotask((()=>q(re,{opaque:ae})))}}C.exports=upgrade},56615:(C,q,re)=>{C.exports.request=re(14043);C.exports.stream=re(3560);C.exports.pipeline=re(76862);C.exports.upgrade=re(61882);C.exports.connect=re(34660)},49927:(C,q,re)=>{const ae=re(42613);const{Readable:Ue}=re(2203);const{RequestAbortedError:lt,NotSupportedError:Pt,InvalidArgumentError:Wt}=re(68707);const Ar=re(3440);const{ReadableStreamFrom:Er,toUSVString:Ir}=re(3440);let Br;const kr=Symbol("kConsume");const Pr=Symbol("kReading");const Qr=Symbol("kBody");const Fr=Symbol("abort");const Dr=Symbol("kContentType");const noop=()=>{};C.exports=class BodyReadable extends Ue{constructor({resume:C,abort:q,contentType:re="",highWaterMark:ae=64*1024}){super({autoDestroy:true,read:C,highWaterMark:ae});this._readableState.dataEmitted=false;this[Fr]=q;this[kr]=null;this[Qr]=null;this[Dr]=re;this[Pr]=false}destroy(C){if(this.destroyed){return this}if(!C&&!this._readableState.endEmitted){C=new lt}if(C){this[Fr]()}return super.destroy(C)}emit(C,...q){if(C==="data"){this._readableState.dataEmitted=true}else if(C==="error"){this._readableState.errorEmitted=true}return super.emit(C,...q)}on(C,...q){if(C==="data"||C==="readable"){this[Pr]=true}return super.on(C,...q)}addListener(C,...q){return this.on(C,...q)}off(C,...q){const re=super.off(C,...q);if(C==="data"||C==="readable"){this[Pr]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return re}removeListener(C,...q){return this.off(C,...q)}push(C){if(this[kr]&&C!==null&&this.readableLength===0){consumePush(this[kr],C);return this[Pr]?super.push(C):true}return super.push(C)}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 Pt}get bodyUsed(){return Ar.isDisturbed(this)}get body(){if(!this[Qr]){this[Qr]=Er(this);if(this[kr]){this[Qr].getReader();ae(this[Qr].locked)}}return this[Qr]}dump(C){let q=C&&Number.isFinite(C.limit)?C.limit:262144;const re=C&&C.signal;if(re){try{if(typeof re!=="object"||!("aborted"in re)){throw new Wt("signal must be an AbortSignal")}Ar.throwIfAborted(re)}catch(C){return Promise.reject(C)}}if(this.closed){return Promise.resolve(null)}return new Promise(((C,ae)=>{const Ue=re?Ar.addAbortListener(re,(()=>{this.destroy()})):noop;this.on("close",(function(){Ue();if(re&&re.aborted){ae(re.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{C(null)}})).on("error",noop).on("data",(function(C){q-=C.length;if(q<=0){this.destroy()}})).resume()}))}};function isLocked(C){return C[Qr]&&C[Qr].locked===true||C[kr]}function isUnusable(C){return Ar.isDisturbed(C)||isLocked(C)}async function consume(C,q){if(isUnusable(C)){throw new TypeError("unusable")}ae(!C[kr]);return new Promise(((re,ae)=>{C[kr]={type:q,stream:C,resolve:re,reject:ae,length:0,body:[]};C.on("error",(function(C){consumeFinish(this[kr],C)})).on("close",(function(){if(this[kr].body!==null){consumeFinish(this[kr],new lt)}}));process.nextTick(consumeStart,C[kr])}))}function consumeStart(C){if(C.body===null){return}const{_readableState:q}=C.stream;for(const re of q.buffer){consumePush(C,re)}if(q.endEmitted){consumeEnd(this[kr])}else{C.stream.on("end",(function(){consumeEnd(this[kr])}))}C.stream.resume();while(C.stream.read()!=null){}}function consumeEnd(C){const{type:q,body:ae,resolve:Ue,stream:lt,length:Pt}=C;try{if(q==="text"){Ue(Ir(Buffer.concat(ae)))}else if(q==="json"){Ue(JSON.parse(Buffer.concat(ae)))}else if(q==="arrayBuffer"){const C=new Uint8Array(Pt);let q=0;for(const re of ae){C.set(re,q);q+=re.byteLength}Ue(C.buffer)}else if(q==="blob"){if(!Br){Br=re(20181).Blob}Ue(new Br(ae,{type:lt[Dr]}))}consumeFinish(C)}catch(C){lt.destroy(C)}}function consumePush(C,q){C.length+=q.length;C.body.push(q)}function consumeFinish(C,q){if(C.body===null){return}if(q){C.reject(q)}else{C.resolve()}C.type=null;C.stream=null;C.resolve=null;C.reject=null;C.length=0;C.body=null}},87655:(C,q,re)=>{const ae=re(42613);const{ResponseStatusCodeError:Ue}=re(68707);const{toUSVString:lt}=re(3440);async function getResolveErrorBodyCallback({callback:C,body:q,contentType:re,statusCode:Pt,statusMessage:Wt,headers:Ar}){ae(q);let Er=[];let Ir=0;for await(const C of q){Er.push(C);Ir+=C.length;if(Ir>128*1024){Er=null;break}}if(Pt===204||!re||!Er){process.nextTick(C,new Ue(`Response status code ${Pt}${Wt?`: ${Wt}`:""}`,Pt,Ar));return}try{if(re.startsWith("application/json")){const q=JSON.parse(lt(Buffer.concat(Er)));process.nextTick(C,new Ue(`Response status code ${Pt}${Wt?`: ${Wt}`:""}`,Pt,Ar,q));return}if(re.startsWith("text/")){const q=lt(Buffer.concat(Er));process.nextTick(C,new Ue(`Response status code ${Pt}${Wt?`: ${Wt}`:""}`,Pt,Ar,q));return}}catch(C){}process.nextTick(C,new Ue(`Response status code ${Pt}${Wt?`: ${Wt}`:""}`,Pt,Ar))}C.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(C,q,re)=>{const{BalancedPoolMissingUpstreamError:ae,InvalidArgumentError:Ue}=re(68707);const{PoolBase:lt,kClients:Pt,kNeedDrain:Wt,kAddClient:Ar,kRemoveClient:Er,kGetDispatcher:Ir}=re(58640);const Br=re(35076);const{kUrl:kr,kInterceptors:Pr}=re(36443);const{parseOrigin:Qr}=re(3440);const Fr=Symbol("factory");const Dr=Symbol("options");const xr=Symbol("kGreatestCommonDivisor");const Mr=Symbol("kCurrentWeight");const Ur=Symbol("kIndex");const Nr=Symbol("kWeight");const Lr=Symbol("kMaxWeightPerServer");const jr=Symbol("kErrorPenalty");function getGreatestCommonDivisor(C,q){if(q===0)return C;return getGreatestCommonDivisor(q,C%q)}function defaultFactory(C,q){return new Br(C,q)}class BalancedPool extends lt{constructor(C=[],{factory:q=defaultFactory,...re}={}){super();this[Dr]=re;this[Ur]=-1;this[Mr]=0;this[Lr]=this[Dr].maxWeightPerServer||100;this[jr]=this[Dr].errorPenalty||15;if(!Array.isArray(C)){C=[C]}if(typeof q!=="function"){throw new Ue("factory must be a function.")}this[Pr]=re.interceptors&&re.interceptors.BalancedPool&&Array.isArray(re.interceptors.BalancedPool)?re.interceptors.BalancedPool:[];this[Fr]=q;for(const q of C){this.addUpstream(q)}this._updateBalancedPoolStats()}addUpstream(C){const q=Qr(C).origin;if(this[Pt].find((C=>C[kr].origin===q&&C.closed!==true&&C.destroyed!==true))){return this}const re=this[Fr](q,Object.assign({},this[Dr]));this[Ar](re);re.on("connect",(()=>{re[Nr]=Math.min(this[Lr],re[Nr]+this[jr])}));re.on("connectionError",(()=>{re[Nr]=Math.max(1,re[Nr]-this[jr]);this._updateBalancedPoolStats()}));re.on("disconnect",((...C)=>{const q=C[2];if(q&&q.code==="UND_ERR_SOCKET"){re[Nr]=Math.max(1,re[Nr]-this[jr]);this._updateBalancedPoolStats()}}));for(const C of this[Pt]){C[Nr]=this[Lr]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[xr]=this[Pt].map((C=>C[Nr])).reduce(getGreatestCommonDivisor,0)}removeUpstream(C){const q=Qr(C).origin;const re=this[Pt].find((C=>C[kr].origin===q&&C.closed!==true&&C.destroyed!==true));if(re){this[Er](re)}return this}get upstreams(){return this[Pt].filter((C=>C.closed!==true&&C.destroyed!==true)).map((C=>C[kr].origin))}[Ir](){if(this[Pt].length===0){throw new ae}const C=this[Pt].find((C=>!C[Wt]&&C.closed!==true&&C.destroyed!==true));if(!C){return}const q=this[Pt].map((C=>C[Wt])).reduce(((C,q)=>C&&q),true);if(q){return}let re=0;let Ue=this[Pt].findIndex((C=>!C[Wt]));while(re++this[Pt][Ue][Nr]&&!C[Wt]){Ue=this[Ur]}if(this[Ur]===0){this[Mr]=this[Mr]-this[xr];if(this[Mr]<=0){this[Mr]=this[Lr]}}if(C[Nr]>=this[Mr]&&!C[Wt]){return C}}this[Mr]=this[Pt][Ue][Nr];this[Ur]=Ue;return this[Pt][Ue]}}C.exports=BalancedPool},50479:(C,q,re)=>{const{kConstruct:ae}=re(80296);const{urlEquals:Ue,fieldValues:lt}=re(23993);const{kEnumerableProperty:Pt,isDisturbed:Wt}=re(3440);const{kHeadersList:Ar}=re(36443);const{webidl:Er}=re(74222);const{Response:Ir,cloneResponse:Br}=re(48676);const{Request:kr}=re(25194);const{kState:Pr,kHeaders:Qr,kGuard:Fr,kRealm:Dr}=re(89710);const{fetching:xr}=re(12315);const{urlIsHttpHttpsScheme:Mr,createDeferredPromise:Ur,readAllBytes:Nr}=re(15523);const Lr=re(42613);const{getGlobalDispatcher:jr}=re(32581);class Cache{#e;constructor(){if(arguments[0]!==ae){Er.illegalConstructor()}this.#e=arguments[1]}async match(C,q={}){Er.brandCheck(this,Cache);Er.argumentLengthCheck(arguments,1,{header:"Cache.match"});C=Er.converters.RequestInfo(C);q=Er.converters.CacheQueryOptions(q);const re=await this.matchAll(C,q);if(re.length===0){return}return re[0]}async matchAll(C=undefined,q={}){Er.brandCheck(this,Cache);if(C!==undefined)C=Er.converters.RequestInfo(C);q=Er.converters.CacheQueryOptions(q);let re=null;if(C!==undefined){if(C instanceof kr){re=C[Pr];if(re.method!=="GET"&&!q.ignoreMethod){return[]}}else if(typeof C==="string"){re=new kr(C)[Pr]}}const ae=[];if(C===undefined){for(const C of this.#e){ae.push(C[1])}}else{const C=this.#t(re,q);for(const q of C){ae.push(q[1])}}const Ue=[];for(const C of ae){const q=new Ir(C.body?.source??null);const re=q[Pr].body;q[Pr]=C;q[Pr].body=re;q[Qr][Ar]=C.headersList;q[Qr][Fr]="immutable";Ue.push(q)}return Object.freeze(Ue)}async add(C){Er.brandCheck(this,Cache);Er.argumentLengthCheck(arguments,1,{header:"Cache.add"});C=Er.converters.RequestInfo(C);const q=[C];const re=this.addAll(q);return await re}async addAll(C){Er.brandCheck(this,Cache);Er.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});C=Er.converters["sequence"](C);const q=[];const re=[];for(const q of C){if(typeof q==="string"){continue}const C=q[Pr];if(!Mr(C.url)||C.method!=="GET"){throw Er.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const ae=[];for(const Ue of C){const C=new kr(Ue)[Pr];if(!Mr(C.url)){throw Er.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}C.initiator="fetch";C.destination="subresource";re.push(C);const Pt=Ur();ae.push(xr({request:C,dispatcher:jr(),processResponse(C){if(C.type==="error"||C.status===206||C.status<200||C.status>299){Pt.reject(Er.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(C.headersList.contains("vary")){const q=lt(C.headersList.get("vary"));for(const C of q){if(C==="*"){Pt.reject(Er.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const C of ae){C.abort()}return}}}},processResponseEndOfBody(C){if(C.aborted){Pt.reject(new DOMException("aborted","AbortError"));return}Pt.resolve(C)}}));q.push(Pt.promise)}const Ue=Promise.all(q);const Pt=await Ue;const Wt=[];let Ar=0;for(const C of Pt){const q={type:"put",request:re[Ar],response:C};Wt.push(q);Ar++}const Ir=Ur();let Br=null;try{this.#r(Wt)}catch(C){Br=C}queueMicrotask((()=>{if(Br===null){Ir.resolve(undefined)}else{Ir.reject(Br)}}));return Ir.promise}async put(C,q){Er.brandCheck(this,Cache);Er.argumentLengthCheck(arguments,2,{header:"Cache.put"});C=Er.converters.RequestInfo(C);q=Er.converters.Response(q);let re=null;if(C instanceof kr){re=C[Pr]}else{re=new kr(C)[Pr]}if(!Mr(re.url)||re.method!=="GET"){throw Er.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const ae=q[Pr];if(ae.status===206){throw Er.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(ae.headersList.contains("vary")){const C=lt(ae.headersList.get("vary"));for(const q of C){if(q==="*"){throw Er.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(ae.body&&(Wt(ae.body.stream)||ae.body.stream.locked)){throw Er.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const Ue=Br(ae);const Pt=Ur();if(ae.body!=null){const C=ae.body.stream;const q=C.getReader();Nr(q).then(Pt.resolve,Pt.reject)}else{Pt.resolve(undefined)}const Ar=[];const Ir={type:"put",request:re,response:Ue};Ar.push(Ir);const Qr=await Pt.promise;if(Ue.body!=null){Ue.body.source=Qr}const Fr=Ur();let Dr=null;try{this.#r(Ar)}catch(C){Dr=C}queueMicrotask((()=>{if(Dr===null){Fr.resolve()}else{Fr.reject(Dr)}}));return Fr.promise}async delete(C,q={}){Er.brandCheck(this,Cache);Er.argumentLengthCheck(arguments,1,{header:"Cache.delete"});C=Er.converters.RequestInfo(C);q=Er.converters.CacheQueryOptions(q);let re=null;if(C instanceof kr){re=C[Pr];if(re.method!=="GET"&&!q.ignoreMethod){return false}}else{Lr(typeof C==="string");re=new kr(C)[Pr]}const ae=[];const Ue={type:"delete",request:re,options:q};ae.push(Ue);const lt=Ur();let Pt=null;let Wt;try{Wt=this.#r(ae)}catch(C){Pt=C}queueMicrotask((()=>{if(Pt===null){lt.resolve(!!Wt?.length)}else{lt.reject(Pt)}}));return lt.promise}async keys(C=undefined,q={}){Er.brandCheck(this,Cache);if(C!==undefined)C=Er.converters.RequestInfo(C);q=Er.converters.CacheQueryOptions(q);let re=null;if(C!==undefined){if(C instanceof kr){re=C[Pr];if(re.method!=="GET"&&!q.ignoreMethod){return[]}}else if(typeof C==="string"){re=new kr(C)[Pr]}}const ae=Ur();const Ue=[];if(C===undefined){for(const C of this.#e){Ue.push(C[0])}}else{const C=this.#t(re,q);for(const q of C){Ue.push(q[0])}}queueMicrotask((()=>{const C=[];for(const q of Ue){const re=new kr("https://a");re[Pr]=q;re[Qr][Ar]=q.headersList;re[Qr][Fr]="immutable";re[Dr]=q.client;C.push(re)}ae.resolve(Object.freeze(C))}));return ae.promise}#r(C){const q=this.#e;const re=[...q];const ae=[];const Ue=[];try{for(const re of C){if(re.type!=="delete"&&re.type!=="put"){throw Er.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(re.type==="delete"&&re.response!=null){throw Er.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(re.request,re.options,ae).length){throw new DOMException("???","InvalidStateError")}let C;if(re.type==="delete"){C=this.#t(re.request,re.options);if(C.length===0){return[]}for(const re of C){const C=q.indexOf(re);Lr(C!==-1);q.splice(C,1)}}else if(re.type==="put"){if(re.response==null){throw Er.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const Ue=re.request;if(!Mr(Ue.url)){throw Er.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(Ue.method!=="GET"){throw Er.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(re.options!=null){throw Er.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}C=this.#t(re.request);for(const re of C){const C=q.indexOf(re);Lr(C!==-1);q.splice(C,1)}q.push([re.request,re.response]);ae.push([re.request,re.response])}Ue.push([re.request,re.response])}return Ue}catch(C){this.#e.length=0;this.#e=re;throw C}}#t(C,q,re){const ae=[];const Ue=re??this.#e;for(const re of Ue){const[Ue,lt]=re;if(this.#n(C,Ue,lt,q)){ae.push(re)}}return ae}#n(C,q,re=null,ae){const Pt=new URL(C.url);const Wt=new URL(q.url);if(ae?.ignoreSearch){Wt.search="";Pt.search=""}if(!Ue(Pt,Wt,true)){return false}if(re==null||ae?.ignoreVary||!re.headersList.contains("vary")){return true}const Ar=lt(re.headersList.get("vary"));for(const re of Ar){if(re==="*"){return false}const ae=q.headersList.get(re);const Ue=C.headersList.get(re);if(ae!==Ue){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:Pt,matchAll:Pt,add:Pt,addAll:Pt,put:Pt,delete:Pt,keys:Pt});const Gr=[{key:"ignoreSearch",converter:Er.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:Er.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:Er.converters.boolean,defaultValue:false}];Er.converters.CacheQueryOptions=Er.dictionaryConverter(Gr);Er.converters.MultiCacheQueryOptions=Er.dictionaryConverter([...Gr,{key:"cacheName",converter:Er.converters.DOMString}]);Er.converters.Response=Er.interfaceConverter(Ir);Er.converters["sequence"]=Er.sequenceConverter(Er.converters.RequestInfo);C.exports={Cache:Cache}},44738:(C,q,re)=>{const{kConstruct:ae}=re(80296);const{Cache:Ue}=re(50479);const{webidl:lt}=re(74222);const{kEnumerableProperty:Pt}=re(3440);class CacheStorage{#s=new Map;constructor(){if(arguments[0]!==ae){lt.illegalConstructor()}}async match(C,q={}){lt.brandCheck(this,CacheStorage);lt.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});C=lt.converters.RequestInfo(C);q=lt.converters.MultiCacheQueryOptions(q);if(q.cacheName!=null){if(this.#s.has(q.cacheName)){const re=this.#s.get(q.cacheName);const lt=new Ue(ae,re);return await lt.match(C,q)}}else{for(const re of this.#s.values()){const lt=new Ue(ae,re);const Pt=await lt.match(C,q);if(Pt!==undefined){return Pt}}}}async has(C){lt.brandCheck(this,CacheStorage);lt.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});C=lt.converters.DOMString(C);return this.#s.has(C)}async open(C){lt.brandCheck(this,CacheStorage);lt.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});C=lt.converters.DOMString(C);if(this.#s.has(C)){const q=this.#s.get(C);return new Ue(ae,q)}const q=[];this.#s.set(C,q);return new Ue(ae,q)}async delete(C){lt.brandCheck(this,CacheStorage);lt.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});C=lt.converters.DOMString(C);return this.#s.delete(C)}async keys(){lt.brandCheck(this,CacheStorage);const C=this.#s.keys();return[...C]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:Pt,has:Pt,open:Pt,delete:Pt,keys:Pt});C.exports={CacheStorage:CacheStorage}},80296:(C,q,re)=>{C.exports={kConstruct:re(36443).kConstruct}},23993:(C,q,re)=>{const ae=re(42613);const{URLSerializer:Ue}=re(94322);const{isValidHeaderName:lt}=re(15523);function urlEquals(C,q,re=false){const ae=Ue(C,re);const lt=Ue(q,re);return ae===lt}function fieldValues(C){ae(C!==null);const q=[];for(let re of C.split(",")){re=re.trim();if(!re.length){continue}else if(!lt(re)){continue}q.push(re)}return q}C.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(C,q,re)=>{const ae=re(42613);const Ue=re(69278);const lt=re(58611);const{pipeline:Pt}=re(2203);const Wt=re(3440);const Ar=re(28804);const Er=re(44655);const Ir=re(50001);const{RequestContentLengthMismatchError:Br,ResponseContentLengthMismatchError:kr,InvalidArgumentError:Pr,RequestAbortedError:Qr,HeadersTimeoutError:Fr,HeadersOverflowError:Dr,SocketError:xr,InformationalError:Mr,BodyTimeoutError:Ur,HTTPParserError:Nr,ResponseExceededMaxSizeError:Lr,ClientDestroyedError:jr}=re(68707);const Gr=re(59136);const{kUrl:Vr,kReset:Hr,kServerName:Wr,kClient:$r,kBusy:Kr,kParser:zr,kConnect:Jr,kBlocking:Yr,kResuming:Xr,kRunning:Zr,kPending:en,kSize:tn,kWriting:rn,kQueue:nn,kConnected:sn,kConnecting:an,kNeedDrain:cn,kNoRef:ln,kKeepAliveDefaultTimeout:un,kHostHeader:dn,kPendingIdx:pn,kRunningIdx:fn,kError:hn,kPipelining:gn,kSocket:An,kKeepAliveTimeoutValue:mn,kMaxHeadersSize:_n,kKeepAliveMaxTimeout:yn,kKeepAliveTimeoutThreshold:bn,kHeadersTimeout:En,kBodyTimeout:vn,kStrictContentLength:In,kConnector:wn,kMaxRedirections:Cn,kMaxRequests:Sn,kCounter:Bn,kClose:Tn,kDestroy:kn,kDispatch:Rn,kInterceptors:Pn,kLocalAddress:On,kMaxResponseSize:Qn,kHTTPConnVersion:Fn,kHost:Dn,kHTTP2Session:xn,kHTTP2SessionState:Mn,kHTTP2BuildRequest:Un,kHTTP2CopyHeaders:Nn,kHTTP1BuildRequest:Ln}=re(36443);let jn;try{jn=re(85675)}catch{jn={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Gn,HTTP2_HEADER_METHOD:Vn,HTTP2_HEADER_PATH:qn,HTTP2_HEADER_SCHEME:Hn,HTTP2_HEADER_CONTENT_LENGTH:Wn,HTTP2_HEADER_EXPECT:$n,HTTP2_HEADER_STATUS:Kn}}=jn;let zn=false;const Jn=Buffer[Symbol.species];const Yn=Symbol("kClosedResolve");const Xn={};try{const C=re(31637);Xn.sendHeaders=C.channel("undici:client:sendHeaders");Xn.beforeConnect=C.channel("undici:client:beforeConnect");Xn.connectError=C.channel("undici:client:connectError");Xn.connected=C.channel("undici:client:connected")}catch{Xn.sendHeaders={hasSubscribers:false};Xn.beforeConnect={hasSubscribers:false};Xn.connectError={hasSubscribers:false};Xn.connected={hasSubscribers:false}}class Client extends Ir{constructor(C,{interceptors:q,maxHeaderSize:re,headersTimeout:ae,socketTimeout:Pt,requestTimeout:Ar,connectTimeout:Er,bodyTimeout:Ir,idleTimeout:Br,keepAlive:kr,keepAliveTimeout:Qr,maxKeepAliveTimeout:Fr,keepAliveMaxTimeout:Dr,keepAliveTimeoutThreshold:xr,socketPath:Mr,pipelining:Ur,tls:Nr,strictContentLength:Lr,maxCachedSessions:jr,maxRedirections:Hr,connect:$r,maxRequestsPerClient:Kr,localAddress:zr,maxResponseSize:Jr,autoSelectFamily:Yr,autoSelectFamilyAttemptTimeout:Zr,allowH2:en,maxConcurrentStreams:tn}={}){super();if(kr!==undefined){throw new Pr("unsupported keepAlive, use pipelining=0 instead")}if(Pt!==undefined){throw new Pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(Ar!==undefined){throw new Pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(Br!==undefined){throw new Pr("unsupported idleTimeout, use keepAliveTimeout instead")}if(Fr!==undefined){throw new Pr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(re!=null&&!Number.isFinite(re)){throw new Pr("invalid maxHeaderSize")}if(Mr!=null&&typeof Mr!=="string"){throw new Pr("invalid socketPath")}if(Er!=null&&(!Number.isFinite(Er)||Er<0)){throw new Pr("invalid connectTimeout")}if(Qr!=null&&(!Number.isFinite(Qr)||Qr<=0)){throw new Pr("invalid keepAliveTimeout")}if(Dr!=null&&(!Number.isFinite(Dr)||Dr<=0)){throw new Pr("invalid keepAliveMaxTimeout")}if(xr!=null&&!Number.isFinite(xr)){throw new Pr("invalid keepAliveTimeoutThreshold")}if(ae!=null&&(!Number.isInteger(ae)||ae<0)){throw new Pr("headersTimeout must be a positive integer or zero")}if(Ir!=null&&(!Number.isInteger(Ir)||Ir<0)){throw new Pr("bodyTimeout must be a positive integer or zero")}if($r!=null&&typeof $r!=="function"&&typeof $r!=="object"){throw new Pr("connect must be a function or an object")}if(Hr!=null&&(!Number.isInteger(Hr)||Hr<0)){throw new Pr("maxRedirections must be a positive number")}if(Kr!=null&&(!Number.isInteger(Kr)||Kr<0)){throw new Pr("maxRequestsPerClient must be a positive number")}if(zr!=null&&(typeof zr!=="string"||Ue.isIP(zr)===0)){throw new Pr("localAddress must be valid string IP address")}if(Jr!=null&&(!Number.isInteger(Jr)||Jr<-1)){throw new Pr("maxResponseSize must be a positive number")}if(Zr!=null&&(!Number.isInteger(Zr)||Zr<-1)){throw new Pr("autoSelectFamilyAttemptTimeout must be a positive number")}if(en!=null&&typeof en!=="boolean"){throw new Pr("allowH2 must be a valid boolean value")}if(tn!=null&&(typeof tn!=="number"||tn<1)){throw new Pr("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof $r!=="function"){$r=Gr({...Nr,maxCachedSessions:jr,allowH2:en,socketPath:Mr,timeout:Er,...Wt.nodeHasAutoSelectFamily&&Yr?{autoSelectFamily:Yr,autoSelectFamilyAttemptTimeout:Zr}:undefined,...$r})}this[Pn]=q&&q.Client&&Array.isArray(q.Client)?q.Client:[es({maxRedirections:Hr})];this[Vr]=Wt.parseOrigin(C);this[wn]=$r;this[An]=null;this[gn]=Ur!=null?Ur:1;this[_n]=re||lt.maxHeaderSize;this[un]=Qr==null?4e3:Qr;this[yn]=Dr==null?6e5:Dr;this[bn]=xr==null?1e3:xr;this[mn]=this[un];this[Wr]=null;this[On]=zr!=null?zr:null;this[Xr]=0;this[cn]=0;this[dn]=`host: ${this[Vr].hostname}${this[Vr].port?`:${this[Vr].port}`:""}\r\n`;this[vn]=Ir!=null?Ir:3e5;this[En]=ae!=null?ae:3e5;this[In]=Lr==null?true:Lr;this[Cn]=Hr;this[Sn]=Kr;this[Yn]=null;this[Qn]=Jr>-1?Jr:-1;this[Fn]="h1";this[xn]=null;this[Mn]=!en?null:{openStreams:0,maxConcurrentStreams:tn!=null?tn:100};this[Dn]=`${this[Vr].hostname}${this[Vr].port?`:${this[Vr].port}`:""}`;this[nn]=[];this[fn]=0;this[pn]=0}get pipelining(){return this[gn]}set pipelining(C){this[gn]=C;resume(this,true)}get[en](){return this[nn].length-this[pn]}get[Zr](){return this[pn]-this[fn]}get[tn](){return this[nn].length-this[fn]}get[sn](){return!!this[An]&&!this[an]&&!this[An].destroyed}get[Kr](){const C=this[An];return C&&(C[Hr]||C[rn]||C[Yr])||this[tn]>=(this[gn]||1)||this[en]>0}[Jr](C){connect(this);this.once("connect",C)}[Rn](C,q){const re=C.origin||this[Vr].origin;const ae=this[Fn]==="h2"?Er[Un](re,C,q):Er[Ln](re,C,q);this[nn].push(ae);if(this[Xr]){}else if(Wt.bodyLength(ae.body)==null&&Wt.isIterable(ae.body)){this[Xr]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[Xr]&&this[cn]!==2&&this[Kr]){this[cn]=2}return this[cn]<2}async[Tn](){return new Promise((C=>{if(!this[tn]){C(null)}else{this[Yn]=C}}))}async[kn](C){return new Promise((q=>{const re=this[nn].splice(this[pn]);for(let q=0;q{if(this[Yn]){this[Yn]();this[Yn]=null}q()};if(this[xn]!=null){Wt.destroy(this[xn],C);this[xn]=null;this[Mn]=null}if(!this[An]){queueMicrotask(callback)}else{Wt.destroy(this[An].on("close",callback),C)}resume(this)}))}}function onHttp2SessionError(C){ae(C.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[An][hn]=C;onError(this[$r],C)}function onHttp2FrameError(C,q,re){const ae=new Mr(`HTTP/2: "frameError" received - type ${C}, code ${q}`);if(re===0){this[An][hn]=ae;onError(this[$r],ae)}}function onHttp2SessionEnd(){Wt.destroy(this,new xr("other side closed"));Wt.destroy(this[An],new xr("other side closed"))}function onHTTP2GoAway(C){const q=this[$r];const re=new Mr(`HTTP/2: "GOAWAY" frame received with code ${C}`);q[An]=null;q[xn]=null;if(q.destroyed){ae(this[en]===0);const C=q[nn].splice(q[fn]);for(let q=0;q0){const C=q[nn][q[fn]];q[nn][q[fn]++]=null;errorRequest(q,C,re)}q[pn]=q[fn];ae(q[Zr]===0);q.emit("disconnect",q[Vr],[q],re);resume(q)}const Zn=re(52824);const es=re(64415);const ts=Buffer.alloc(0);async function lazyllhttp(){const C=process.env.JEST_WORKER_ID?re(63870):undefined;let q;try{q=await WebAssembly.compile(Buffer.from(re(53434),"base64"))}catch(ae){q=await WebAssembly.compile(Buffer.from(C||re(63870),"base64"))}return await WebAssembly.instantiate(q,{env:{wasm_on_url:(C,q,re)=>0,wasm_on_status:(C,q,re)=>{ae.strictEqual(ss.ptr,C);const Ue=q-as+os.byteOffset;return ss.onStatus(new Jn(os.buffer,Ue,re))||0},wasm_on_message_begin:C=>{ae.strictEqual(ss.ptr,C);return ss.onMessageBegin()||0},wasm_on_header_field:(C,q,re)=>{ae.strictEqual(ss.ptr,C);const Ue=q-as+os.byteOffset;return ss.onHeaderField(new Jn(os.buffer,Ue,re))||0},wasm_on_header_value:(C,q,re)=>{ae.strictEqual(ss.ptr,C);const Ue=q-as+os.byteOffset;return ss.onHeaderValue(new Jn(os.buffer,Ue,re))||0},wasm_on_headers_complete:(C,q,re,Ue)=>{ae.strictEqual(ss.ptr,C);return ss.onHeadersComplete(q,Boolean(re),Boolean(Ue))||0},wasm_on_body:(C,q,re)=>{ae.strictEqual(ss.ptr,C);const Ue=q-as+os.byteOffset;return ss.onBody(new Jn(os.buffer,Ue,re))||0},wasm_on_message_complete:C=>{ae.strictEqual(ss.ptr,C);return ss.onMessageComplete()||0}}})}let rs=null;let ns=lazyllhttp();ns.catch();let ss=null;let os=null;let is=0;let as=null;const cs=1;const ls=2;const us=3;class Parser{constructor(C,q,{exports:re}){ae(Number.isFinite(C[_n])&&C[_n]>0);this.llhttp=re;this.ptr=this.llhttp.llhttp_alloc(Zn.TYPE.RESPONSE);this.client=C;this.socket=q;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=C[_n];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=C[Qn]}setTimeout(C,q){this.timeoutType=q;if(C!==this.timeoutValue){Ar.clearTimeout(this.timeout);if(C){this.timeout=Ar.setTimeout(onParserTimeout,C,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=C}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}ae(this.ptr!=null);ae(ss==null);this.llhttp.llhttp_resume(this.ptr);ae(this.timeoutType===ls);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||ts);this.readMore()}readMore(){while(!this.paused&&this.ptr){const C=this.socket.read();if(C===null){break}this.execute(C)}}execute(C){ae(this.ptr!=null);ae(ss==null);ae(!this.paused);const{socket:q,llhttp:re}=this;if(C.length>is){if(as){re.free(as)}is=Math.ceil(C.length/4096)*4096;as=re.malloc(is)}new Uint8Array(re.memory.buffer,as,is).set(C);try{let ae;try{os=C;ss=this;ae=re.llhttp_execute(this.ptr,as,C.length)}catch(C){throw C}finally{ss=null;os=null}const Ue=re.llhttp_get_error_pos(this.ptr)-as;if(ae===Zn.ERROR.PAUSED_UPGRADE){this.onUpgrade(C.slice(Ue))}else if(ae===Zn.ERROR.PAUSED){this.paused=true;q.unshift(C.slice(Ue))}else if(ae!==Zn.ERROR.OK){const q=re.llhttp_get_error_reason(this.ptr);let lt="";if(q){const C=new Uint8Array(re.memory.buffer,q).indexOf(0);lt="Response does not match the HTTP/1.1 protocol ("+Buffer.from(re.memory.buffer,q,C).toString()+")"}throw new Nr(lt,Zn.ERROR[ae],C.slice(Ue))}}catch(C){Wt.destroy(q,C)}}destroy(){ae(this.ptr!=null);ae(ss==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;Ar.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(C){this.statusText=C.toString()}onMessageBegin(){const{socket:C,client:q}=this;if(C.destroyed){return-1}const re=q[nn][q[fn]];if(!re){return-1}}onHeaderField(C){const q=this.headers.length;if((q&1)===0){this.headers.push(C)}else{this.headers[q-1]=Buffer.concat([this.headers[q-1],C])}this.trackHeader(C.length)}onHeaderValue(C){let q=this.headers.length;if((q&1)===1){this.headers.push(C);q+=1}else{this.headers[q-1]=Buffer.concat([this.headers[q-1],C])}const re=this.headers[q-2];if(re.length===10&&re.toString().toLowerCase()==="keep-alive"){this.keepAlive+=C.toString()}else if(re.length===10&&re.toString().toLowerCase()==="connection"){this.connection+=C.toString()}else if(re.length===14&&re.toString().toLowerCase()==="content-length"){this.contentLength+=C.toString()}this.trackHeader(C.length)}trackHeader(C){this.headersSize+=C;if(this.headersSize>=this.headersMaxSize){Wt.destroy(this.socket,new Dr)}}onUpgrade(C){const{upgrade:q,client:re,socket:Ue,headers:lt,statusCode:Pt}=this;ae(q);const Ar=re[nn][re[fn]];ae(Ar);ae(!Ue.destroyed);ae(Ue===re[An]);ae(!this.paused);ae(Ar.upgrade||Ar.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;ae(this.headers.length%2===0);this.headers=[];this.headersSize=0;Ue.unshift(C);Ue[zr].destroy();Ue[zr]=null;Ue[$r]=null;Ue[hn]=null;Ue.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);re[An]=null;re[nn][re[fn]++]=null;re.emit("disconnect",re[Vr],[re],new Mr("upgrade"));try{Ar.onUpgrade(Pt,lt,Ue)}catch(C){Wt.destroy(Ue,C)}resume(re)}onHeadersComplete(C,q,re){const{client:Ue,socket:lt,headers:Pt,statusText:Ar}=this;if(lt.destroyed){return-1}const Er=Ue[nn][Ue[fn]];if(!Er){return-1}ae(!this.upgrade);ae(this.statusCode<200);if(C===100){Wt.destroy(lt,new xr("bad response",Wt.getSocketInfo(lt)));return-1}if(q&&!Er.upgrade){Wt.destroy(lt,new xr("bad upgrade",Wt.getSocketInfo(lt)));return-1}ae.strictEqual(this.timeoutType,cs);this.statusCode=C;this.shouldKeepAlive=re||Er.method==="HEAD"&&!lt[Hr]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const C=Er.bodyTimeout!=null?Er.bodyTimeout:Ue[vn];this.setTimeout(C,ls)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(Er.method==="CONNECT"){ae(Ue[Zr]===1);this.upgrade=true;return 2}if(q){ae(Ue[Zr]===1);this.upgrade=true;return 2}ae(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&Ue[gn]){const C=this.keepAlive?Wt.parseKeepAliveTimeout(this.keepAlive):null;if(C!=null){const q=Math.min(C-Ue[bn],Ue[yn]);if(q<=0){lt[Hr]=true}else{Ue[mn]=q}}else{Ue[mn]=Ue[un]}}else{lt[Hr]=true}const Ir=Er.onHeaders(C,Pt,this.resume,Ar)===false;if(Er.aborted){return-1}if(Er.method==="HEAD"){return 1}if(C<200){return 1}if(lt[Yr]){lt[Yr]=false;resume(Ue)}return Ir?Zn.ERROR.PAUSED:0}onBody(C){const{client:q,socket:re,statusCode:Ue,maxResponseSize:lt}=this;if(re.destroyed){return-1}const Pt=q[nn][q[fn]];ae(Pt);ae.strictEqual(this.timeoutType,ls);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}ae(Ue>=200);if(lt>-1&&this.bytesRead+C.length>lt){Wt.destroy(re,new Lr);return-1}this.bytesRead+=C.length;if(Pt.onData(C)===false){return Zn.ERROR.PAUSED}}onMessageComplete(){const{client:C,socket:q,statusCode:re,upgrade:Ue,headers:lt,contentLength:Pt,bytesRead:Ar,shouldKeepAlive:Er}=this;if(q.destroyed&&(!re||Er)){return-1}if(Ue){return}const Ir=C[nn][C[fn]];ae(Ir);ae(re>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";ae(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(re<200){return}if(Ir.method!=="HEAD"&&Pt&&Ar!==parseInt(Pt,10)){Wt.destroy(q,new kr);return-1}Ir.onComplete(lt);C[nn][C[fn]++]=null;if(q[rn]){ae.strictEqual(C[Zr],0);Wt.destroy(q,new Mr("reset"));return Zn.ERROR.PAUSED}else if(!Er){Wt.destroy(q,new Mr("reset"));return Zn.ERROR.PAUSED}else if(q[Hr]&&C[Zr]===0){Wt.destroy(q,new Mr("reset"));return Zn.ERROR.PAUSED}else if(C[gn]===1){setImmediate(resume,C)}else{resume(C)}}}function onParserTimeout(C){const{socket:q,timeoutType:re,client:Ue}=C;if(re===cs){if(!q[rn]||q.writableNeedDrain||Ue[Zr]>1){ae(!C.paused,"cannot be paused while waiting for headers");Wt.destroy(q,new Fr)}}else if(re===ls){if(!C.paused){Wt.destroy(q,new Ur)}}else if(re===us){ae(Ue[Zr]===0&&Ue[mn]);Wt.destroy(q,new Mr("socket idle timeout"))}}function onSocketReadable(){const{[zr]:C}=this;if(C){C.readMore()}}function onSocketError(C){const{[$r]:q,[zr]:re}=this;ae(C.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(q[Fn]!=="h2"){if(C.code==="ECONNRESET"&&re.statusCode&&!re.shouldKeepAlive){re.onMessageComplete();return}}this[hn]=C;onError(this[$r],C)}function onError(C,q){if(C[Zr]===0&&q.code!=="UND_ERR_INFO"&&q.code!=="UND_ERR_SOCKET"){ae(C[pn]===C[fn]);const re=C[nn].splice(C[fn]);for(let ae=0;ae0&&re.code!=="UND_ERR_INFO"){const q=C[nn][C[fn]];C[nn][C[fn]++]=null;errorRequest(C,q,re)}C[pn]=C[fn];ae(C[Zr]===0);C.emit("disconnect",C[Vr],[C],re);resume(C)}async function connect(C){ae(!C[an]);ae(!C[An]);let{host:q,hostname:re,protocol:lt,port:Pt}=C[Vr];if(re[0]==="["){const C=re.indexOf("]");ae(C!==-1);const q=re.substring(1,C);ae(Ue.isIP(q));re=q}C[an]=true;if(Xn.beforeConnect.hasSubscribers){Xn.beforeConnect.publish({connectParams:{host:q,hostname:re,protocol:lt,port:Pt,servername:C[Wr],localAddress:C[On]},connector:C[wn]})}try{const Ue=await new Promise(((ae,Ue)=>{C[wn]({host:q,hostname:re,protocol:lt,port:Pt,servername:C[Wr],localAddress:C[On]},((C,q)=>{if(C){Ue(C)}else{ae(q)}}))}));if(C.destroyed){Wt.destroy(Ue.on("error",(()=>{})),new jr);return}C[an]=false;ae(Ue);const Ar=Ue.alpnProtocol==="h2";if(Ar){if(!zn){zn=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const q=jn.connect(C[Vr],{createConnection:()=>Ue,peerMaxConcurrentStreams:C[Mn].maxConcurrentStreams});C[Fn]="h2";q[$r]=C;q[An]=Ue;q.on("error",onHttp2SessionError);q.on("frameError",onHttp2FrameError);q.on("end",onHttp2SessionEnd);q.on("goaway",onHTTP2GoAway);q.on("close",onSocketClose);q.unref();C[xn]=q;Ue[xn]=q}else{if(!rs){rs=await ns;ns=null}Ue[ln]=false;Ue[rn]=false;Ue[Hr]=false;Ue[Yr]=false;Ue[zr]=new Parser(C,Ue,rs)}Ue[Bn]=0;Ue[Sn]=C[Sn];Ue[$r]=C;Ue[hn]=null;Ue.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);C[An]=Ue;if(Xn.connected.hasSubscribers){Xn.connected.publish({connectParams:{host:q,hostname:re,protocol:lt,port:Pt,servername:C[Wr],localAddress:C[On]},connector:C[wn],socket:Ue})}C.emit("connect",C[Vr],[C])}catch(Ue){if(C.destroyed){return}C[an]=false;if(Xn.connectError.hasSubscribers){Xn.connectError.publish({connectParams:{host:q,hostname:re,protocol:lt,port:Pt,servername:C[Wr],localAddress:C[On]},connector:C[wn],error:Ue})}if(Ue.code==="ERR_TLS_CERT_ALTNAME_INVALID"){ae(C[Zr]===0);while(C[en]>0&&C[nn][C[pn]].servername===C[Wr]){const q=C[nn][C[pn]++];errorRequest(C,q,Ue)}}else{onError(C,Ue)}C.emit("connectionError",C[Vr],[C],Ue)}resume(C)}function emitDrain(C){C[cn]=0;C.emit("drain",C[Vr],[C])}function resume(C,q){if(C[Xr]===2){return}C[Xr]=2;_resume(C,q);C[Xr]=0;if(C[fn]>256){C[nn].splice(0,C[fn]);C[pn]-=C[fn];C[fn]=0}}function _resume(C,q){while(true){if(C.destroyed){ae(C[en]===0);return}if(C[Yn]&&!C[tn]){C[Yn]();C[Yn]=null;return}const re=C[An];if(re&&!re.destroyed&&re.alpnProtocol!=="h2"){if(C[tn]===0){if(!re[ln]&&re.unref){re.unref();re[ln]=true}}else if(re[ln]&&re.ref){re.ref();re[ln]=false}if(C[tn]===0){if(re[zr].timeoutType!==us){re[zr].setTimeout(C[mn],us)}}else if(C[Zr]>0&&re[zr].statusCode<200){if(re[zr].timeoutType!==cs){const q=C[nn][C[fn]];const ae=q.headersTimeout!=null?q.headersTimeout:C[En];re[zr].setTimeout(ae,cs)}}}if(C[Kr]){C[cn]=2}else if(C[cn]===2){if(q){C[cn]=1;process.nextTick(emitDrain,C)}else{emitDrain(C)}continue}if(C[en]===0){return}if(C[Zr]>=(C[gn]||1)){return}const Ue=C[nn][C[pn]];if(C[Vr].protocol==="https:"&&C[Wr]!==Ue.servername){if(C[Zr]>0){return}C[Wr]=Ue.servername;if(re&&re.servername!==Ue.servername){Wt.destroy(re,new Mr("servername changed"));return}}if(C[an]){return}if(!re&&!C[xn]){connect(C);return}if(re.destroyed||re[rn]||re[Hr]||re[Yr]){return}if(C[Zr]>0&&!Ue.idempotent){return}if(C[Zr]>0&&(Ue.upgrade||Ue.method==="CONNECT")){return}if(C[Zr]>0&&Wt.bodyLength(Ue.body)!==0&&(Wt.isStream(Ue.body)||Wt.isAsyncIterable(Ue.body))){return}if(!Ue.aborted&&write(C,Ue)){C[pn]++}else{C[nn].splice(C[pn],1)}}}function shouldSendContentLength(C){return C!=="GET"&&C!=="HEAD"&&C!=="OPTIONS"&&C!=="TRACE"&&C!=="CONNECT"}function write(C,q){if(C[Fn]==="h2"){writeH2(C,C[xn],q);return}const{body:re,method:Ue,path:lt,host:Pt,upgrade:Ar,headers:Er,blocking:Ir,reset:kr}=q;const Pr=Ue==="PUT"||Ue==="POST"||Ue==="PATCH";if(re&&typeof re.read==="function"){re.read(0)}const Fr=Wt.bodyLength(re);let Dr=Fr;if(Dr===null){Dr=q.contentLength}if(Dr===0&&!Pr){Dr=null}if(shouldSendContentLength(Ue)&&Dr>0&&q.contentLength!==null&&q.contentLength!==Dr){if(C[In]){errorRequest(C,q,new Br);return false}process.emitWarning(new Br)}const xr=C[An];try{q.onConnect((re=>{if(q.aborted||q.completed){return}errorRequest(C,q,re||new Qr);Wt.destroy(xr,new Mr("aborted"))}))}catch(re){errorRequest(C,q,re)}if(q.aborted){return false}if(Ue==="HEAD"){xr[Hr]=true}if(Ar||Ue==="CONNECT"){xr[Hr]=true}if(kr!=null){xr[Hr]=kr}if(C[Sn]&&xr[Bn]++>=C[Sn]){xr[Hr]=true}if(Ir){xr[Yr]=true}let Ur=`${Ue} ${lt} HTTP/1.1\r\n`;if(typeof Pt==="string"){Ur+=`host: ${Pt}\r\n`}else{Ur+=C[dn]}if(Ar){Ur+=`connection: upgrade\r\nupgrade: ${Ar}\r\n`}else if(C[gn]&&!xr[Hr]){Ur+="connection: keep-alive\r\n"}else{Ur+="connection: close\r\n"}if(Er){Ur+=Er}if(Xn.sendHeaders.hasSubscribers){Xn.sendHeaders.publish({request:q,headers:Ur,socket:xr})}if(!re||Fr===0){if(Dr===0){xr.write(`${Ur}content-length: 0\r\n\r\n`,"latin1")}else{ae(Dr===null,"no body must not have content length");xr.write(`${Ur}\r\n`,"latin1")}q.onRequestSent()}else if(Wt.isBuffer(re)){ae(Dr===re.byteLength,"buffer body must have content length");xr.cork();xr.write(`${Ur}content-length: ${Dr}\r\n\r\n`,"latin1");xr.write(re);xr.uncork();q.onBodySent(re);q.onRequestSent();if(!Pr){xr[Hr]=true}}else if(Wt.isBlobLike(re)){if(typeof re.stream==="function"){writeIterable({body:re.stream(),client:C,request:q,socket:xr,contentLength:Dr,header:Ur,expectsPayload:Pr})}else{writeBlob({body:re,client:C,request:q,socket:xr,contentLength:Dr,header:Ur,expectsPayload:Pr})}}else if(Wt.isStream(re)){writeStream({body:re,client:C,request:q,socket:xr,contentLength:Dr,header:Ur,expectsPayload:Pr})}else if(Wt.isIterable(re)){writeIterable({body:re,client:C,request:q,socket:xr,contentLength:Dr,header:Ur,expectsPayload:Pr})}else{ae(false)}return true}function writeH2(C,q,re){const{body:Ue,method:lt,path:Pt,host:Ar,upgrade:Ir,expectContinue:kr,signal:Pr,headers:Fr}=re;let Dr;if(typeof Fr==="string")Dr=Er[Nn](Fr.trim());else Dr=Fr;if(Ir){errorRequest(C,re,new Error("Upgrade not supported for H2"));return false}try{re.onConnect((q=>{if(re.aborted||re.completed){return}errorRequest(C,re,q||new Qr)}))}catch(q){errorRequest(C,re,q)}if(re.aborted){return false}let xr;const Ur=C[Mn];Dr[Gn]=Ar||C[Dn];Dr[Vn]=lt;if(lt==="CONNECT"){q.ref();xr=q.request(Dr,{endStream:false,signal:Pr});if(xr.id&&!xr.pending){re.onUpgrade(null,null,xr);++Ur.openStreams}else{xr.once("ready",(()=>{re.onUpgrade(null,null,xr);++Ur.openStreams}))}xr.once("close",(()=>{Ur.openStreams-=1;if(Ur.openStreams===0)q.unref()}));return true}Dr[qn]=Pt;Dr[Hn]="https";const Nr=lt==="PUT"||lt==="POST"||lt==="PATCH";if(Ue&&typeof Ue.read==="function"){Ue.read(0)}let Lr=Wt.bodyLength(Ue);if(Lr==null){Lr=re.contentLength}if(Lr===0||!Nr){Lr=null}if(shouldSendContentLength(lt)&&Lr>0&&re.contentLength!=null&&re.contentLength!==Lr){if(C[In]){errorRequest(C,re,new Br);return false}process.emitWarning(new Br)}if(Lr!=null){ae(Ue,"no body must not have content length");Dr[Wn]=`${Lr}`}q.ref();const jr=lt==="GET"||lt==="HEAD";if(kr){Dr[$n]="100-continue";xr=q.request(Dr,{endStream:jr,signal:Pr});xr.once("continue",writeBodyH2)}else{xr=q.request(Dr,{endStream:jr,signal:Pr});writeBodyH2()}++Ur.openStreams;xr.once("response",(C=>{const{[Kn]:q,...ae}=C;if(re.onHeaders(Number(q),ae,xr.resume.bind(xr),"")===false){xr.pause()}}));xr.once("end",(()=>{re.onComplete([])}));xr.on("data",(C=>{if(re.onData(C)===false){xr.pause()}}));xr.once("close",(()=>{Ur.openStreams-=1;if(Ur.openStreams===0){q.unref()}}));xr.once("error",(function(q){if(C[xn]&&!C[xn].destroyed&&!this.closed&&!this.destroyed){Ur.streams-=1;Wt.destroy(xr,q)}}));xr.once("frameError",((q,ae)=>{const Ue=new Mr(`HTTP/2: "frameError" received - type ${q}, code ${ae}`);errorRequest(C,re,Ue);if(C[xn]&&!C[xn].destroyed&&!this.closed&&!this.destroyed){Ur.streams-=1;Wt.destroy(xr,Ue)}}));return true;function writeBodyH2(){if(!Ue){re.onRequestSent()}else if(Wt.isBuffer(Ue)){ae(Lr===Ue.byteLength,"buffer body must have content length");xr.cork();xr.write(Ue);xr.uncork();xr.end();re.onBodySent(Ue);re.onRequestSent()}else if(Wt.isBlobLike(Ue)){if(typeof Ue.stream==="function"){writeIterable({client:C,request:re,contentLength:Lr,h2stream:xr,expectsPayload:Nr,body:Ue.stream(),socket:C[An],header:""})}else{writeBlob({body:Ue,client:C,request:re,contentLength:Lr,expectsPayload:Nr,h2stream:xr,header:"",socket:C[An]})}}else if(Wt.isStream(Ue)){writeStream({body:Ue,client:C,request:re,contentLength:Lr,expectsPayload:Nr,socket:C[An],h2stream:xr,header:""})}else if(Wt.isIterable(Ue)){writeIterable({body:Ue,client:C,request:re,contentLength:Lr,expectsPayload:Nr,header:"",h2stream:xr,socket:C[An]})}else{ae(false)}}}function writeStream({h2stream:C,body:q,client:re,request:Ue,socket:lt,contentLength:Ar,header:Er,expectsPayload:Ir}){ae(Ar!==0||re[Zr]===0,"stream body cannot be pipelined");if(re[Fn]==="h2"){const Pr=Pt(q,C,(re=>{if(re){Wt.destroy(q,re);Wt.destroy(C,re)}else{Ue.onRequestSent()}}));Pr.on("data",onPipeData);Pr.once("end",(()=>{Pr.removeListener("data",onPipeData);Wt.destroy(Pr)}));function onPipeData(C){Ue.onBodySent(C)}return}let Br=false;const kr=new AsyncWriter({socket:lt,request:Ue,contentLength:Ar,client:re,expectsPayload:Ir,header:Er});const onData=function(C){if(Br){return}try{if(!kr.write(C)&&this.pause){this.pause()}}catch(C){Wt.destroy(this,C)}};const onDrain=function(){if(Br){return}if(q.resume){q.resume()}};const onAbort=function(){if(Br){return}const C=new Qr;queueMicrotask((()=>onFinished(C)))};const onFinished=function(C){if(Br){return}Br=true;ae(lt.destroyed||lt[rn]&&re[Zr]<=1);lt.off("drain",onDrain).off("error",onFinished);q.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!C){try{kr.end()}catch(q){C=q}}kr.destroy(C);if(C&&(C.code!=="UND_ERR_INFO"||C.message!=="reset")){Wt.destroy(q,C)}else{Wt.destroy(q)}};q.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(q.resume){q.resume()}lt.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:C,body:q,client:re,request:Ue,socket:lt,contentLength:Pt,header:Ar,expectsPayload:Er}){ae(Pt===q.size,"blob body must have content length");const Ir=re[Fn]==="h2";try{if(Pt!=null&&Pt!==q.size){throw new Br}const ae=Buffer.from(await q.arrayBuffer());if(Ir){C.cork();C.write(ae);C.uncork()}else{lt.cork();lt.write(`${Ar}content-length: ${Pt}\r\n\r\n`,"latin1");lt.write(ae);lt.uncork()}Ue.onBodySent(ae);Ue.onRequestSent();if(!Er){lt[Hr]=true}resume(re)}catch(q){Wt.destroy(Ir?C:lt,q)}}async function writeIterable({h2stream:C,body:q,client:re,request:Ue,socket:lt,contentLength:Pt,header:Wt,expectsPayload:Ar}){ae(Pt!==0||re[Zr]===0,"iterator body cannot be pipelined");let Er=null;function onDrain(){if(Er){const C=Er;Er=null;C()}}const waitForDrain=()=>new Promise(((C,q)=>{ae(Er===null);if(lt[hn]){q(lt[hn])}else{Er=C}}));if(re[Fn]==="h2"){C.on("close",onDrain).on("drain",onDrain);try{for await(const re of q){if(lt[hn]){throw lt[hn]}const q=C.write(re);Ue.onBodySent(re);if(!q){await waitForDrain()}}}catch(q){C.destroy(q)}finally{Ue.onRequestSent();C.end();C.off("close",onDrain).off("drain",onDrain)}return}lt.on("close",onDrain).on("drain",onDrain);const Ir=new AsyncWriter({socket:lt,request:Ue,contentLength:Pt,client:re,expectsPayload:Ar,header:Wt});try{for await(const C of q){if(lt[hn]){throw lt[hn]}if(!Ir.write(C)){await waitForDrain()}}Ir.end()}catch(C){Ir.destroy(C)}finally{lt.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:C,request:q,contentLength:re,client:ae,expectsPayload:Ue,header:lt}){this.socket=C;this.request=q;this.contentLength=re;this.client=ae;this.bytesWritten=0;this.expectsPayload=Ue;this.header=lt;C[rn]=true}write(C){const{socket:q,request:re,contentLength:ae,client:Ue,bytesWritten:lt,expectsPayload:Pt,header:Wt}=this;if(q[hn]){throw q[hn]}if(q.destroyed){return false}const Ar=Buffer.byteLength(C);if(!Ar){return true}if(ae!==null&<+Ar>ae){if(Ue[In]){throw new Br}process.emitWarning(new Br)}q.cork();if(lt===0){if(!Pt){q[Hr]=true}if(ae===null){q.write(`${Wt}transfer-encoding: chunked\r\n`,"latin1")}else{q.write(`${Wt}content-length: ${ae}\r\n\r\n`,"latin1")}}if(ae===null){q.write(`\r\n${Ar.toString(16)}\r\n`,"latin1")}this.bytesWritten+=Ar;const Er=q.write(C);q.uncork();re.onBodySent(C);if(!Er){if(q[zr].timeout&&q[zr].timeoutType===cs){if(q[zr].timeout.refresh){q[zr].timeout.refresh()}}}return Er}end(){const{socket:C,contentLength:q,client:re,bytesWritten:ae,expectsPayload:Ue,header:lt,request:Pt}=this;Pt.onRequestSent();C[rn]=false;if(C[hn]){throw C[hn]}if(C.destroyed){return}if(ae===0){if(Ue){C.write(`${lt}content-length: 0\r\n\r\n`,"latin1")}else{C.write(`${lt}\r\n`,"latin1")}}else if(q===null){C.write("\r\n0\r\n\r\n","latin1")}if(q!==null&&ae!==q){if(re[In]){throw new Br}else{process.emitWarning(new Br)}}if(C[zr].timeout&&C[zr].timeoutType===cs){if(C[zr].timeout.refresh){C[zr].timeout.refresh()}}resume(re)}destroy(C){const{socket:q,client:re}=this;q[rn]=false;if(C){ae(re[Zr]<=1,"pipeline should only contain this request");Wt.destroy(q,C)}}}function errorRequest(C,q,re){try{q.onError(re);ae(q.aborted)}catch(re){C.emit("error",re)}}C.exports=Client},13194:(C,q,re)=>{const{kConnected:ae,kSize:Ue}=re(36443);class CompatWeakRef{constructor(C){this.value=C}deref(){return this.value[ae]===0&&this.value[Ue]===0?undefined:this.value}}class CompatFinalizer{constructor(C){this.finalizer=C}register(C,q){if(C.on){C.on("disconnect",(()=>{if(C[ae]===0&&C[Ue]===0){this.finalizer(q)}}))}}}C.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:C=>{const q=1024;const re=4096;C.exports={maxAttributeValueSize:q,maxNameValuePairSize:re}},53168:(C,q,re)=>{const{parseSetCookie:ae}=re(8915);const{stringify:Ue,getHeadersList:lt}=re(3834);const{webidl:Pt}=re(74222);const{Headers:Wt}=re(26349);function getCookies(C){Pt.argumentLengthCheck(arguments,1,{header:"getCookies"});Pt.brandCheck(C,Wt,{strict:false});const q=C.get("cookie");const re={};if(!q){return re}for(const C of q.split(";")){const[q,...ae]=C.split("=");re[q.trim()]=ae.join("=")}return re}function deleteCookie(C,q,re){Pt.argumentLengthCheck(arguments,2,{header:"deleteCookie"});Pt.brandCheck(C,Wt,{strict:false});q=Pt.converters.DOMString(q);re=Pt.converters.DeleteCookieAttributes(re);setCookie(C,{name:q,value:"",expires:new Date(0),...re})}function getSetCookies(C){Pt.argumentLengthCheck(arguments,1,{header:"getSetCookies"});Pt.brandCheck(C,Wt,{strict:false});const q=lt(C).cookies;if(!q){return[]}return q.map((C=>ae(Array.isArray(C)?C[1]:C)))}function setCookie(C,q){Pt.argumentLengthCheck(arguments,2,{header:"setCookie"});Pt.brandCheck(C,Wt,{strict:false});q=Pt.converters.Cookie(q);const re=Ue(q);if(re){C.append("Set-Cookie",Ue(q))}}Pt.converters.DeleteCookieAttributes=Pt.dictionaryConverter([{converter:Pt.nullableConverter(Pt.converters.DOMString),key:"path",defaultValue:null},{converter:Pt.nullableConverter(Pt.converters.DOMString),key:"domain",defaultValue:null}]);Pt.converters.Cookie=Pt.dictionaryConverter([{converter:Pt.converters.DOMString,key:"name"},{converter:Pt.converters.DOMString,key:"value"},{converter:Pt.nullableConverter((C=>{if(typeof C==="number"){return Pt.converters["unsigned long long"](C)}return new Date(C)})),key:"expires",defaultValue:null},{converter:Pt.nullableConverter(Pt.converters["long long"]),key:"maxAge",defaultValue:null},{converter:Pt.nullableConverter(Pt.converters.DOMString),key:"domain",defaultValue:null},{converter:Pt.nullableConverter(Pt.converters.DOMString),key:"path",defaultValue:null},{converter:Pt.nullableConverter(Pt.converters.boolean),key:"secure",defaultValue:null},{converter:Pt.nullableConverter(Pt.converters.boolean),key:"httpOnly",defaultValue:null},{converter:Pt.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:Pt.sequenceConverter(Pt.converters.DOMString),key:"unparsed",defaultValue:[]}]);C.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(C,q,re)=>{const{maxNameValuePairSize:ae,maxAttributeValueSize:Ue}=re(19237);const{isCTLExcludingHtab:lt}=re(3834);const{collectASequenceOfCodePointsFast:Pt}=re(94322);const Wt=re(42613);function parseSetCookie(C){if(lt(C)){return null}let q="";let re="";let Ue="";let Wt="";if(C.includes(";")){const ae={position:0};q=Pt(";",C,ae);re=C.slice(ae.position)}else{q=C}if(!q.includes("=")){Wt=q}else{const C={position:0};Ue=Pt("=",q,C);Wt=q.slice(C.position+1)}Ue=Ue.trim();Wt=Wt.trim();if(Ue.length+Wt.length>ae){return null}return{name:Ue,value:Wt,...parseUnparsedAttributes(re)}}function parseUnparsedAttributes(C,q={}){if(C.length===0){return q}Wt(C[0]===";");C=C.slice(1);let re="";if(C.includes(";")){re=Pt(";",C,{position:0});C=C.slice(re.length)}else{re=C;C=""}let ae="";let lt="";if(re.includes("=")){const C={position:0};ae=Pt("=",re,C);lt=re.slice(C.position+1)}else{ae=re}ae=ae.trim();lt=lt.trim();if(lt.length>Ue){return parseUnparsedAttributes(C,q)}const Ar=ae.toLowerCase();if(Ar==="expires"){const C=new Date(lt);q.expires=C}else if(Ar==="max-age"){const re=lt.charCodeAt(0);if((re<48||re>57)&<[0]!=="-"){return parseUnparsedAttributes(C,q)}if(!/^\d+$/.test(lt)){return parseUnparsedAttributes(C,q)}const ae=Number(lt);q.maxAge=ae}else if(Ar==="domain"){let C=lt;if(C[0]==="."){C=C.slice(1)}C=C.toLowerCase();q.domain=C}else if(Ar==="path"){let C="";if(lt.length===0||lt[0]!=="/"){C="/"}else{C=lt}q.path=C}else if(Ar==="secure"){q.secure=true}else if(Ar==="httponly"){q.httpOnly=true}else if(Ar==="samesite"){let C="Default";const re=lt.toLowerCase();if(re.includes("none")){C="None"}if(re.includes("strict")){C="Strict"}if(re.includes("lax")){C="Lax"}q.sameSite=C}else{q.unparsed??=[];q.unparsed.push(`${ae}=${lt}`)}return parseUnparsedAttributes(C,q)}C.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:(C,q,re)=>{const ae=re(42613);const{kHeadersList:Ue}=re(36443);function isCTLExcludingHtab(C){if(C.length===0){return false}for(const q of C){const C=q.charCodeAt(0);if(C>=0||C<=8||(C>=10||C<=31)||C===127){return false}}}function validateCookieName(C){for(const q of C){const C=q.charCodeAt(0);if(C<=32||C>127||q==="("||q===")"||q===">"||q==="<"||q==="@"||q===","||q===";"||q===":"||q==="\\"||q==='"'||q==="/"||q==="["||q==="]"||q==="?"||q==="="||q==="{"||q==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(C){for(const q of C){const C=q.charCodeAt(0);if(C<33||C===34||C===44||C===59||C===92||C>126){throw new Error("Invalid header value")}}}function validateCookiePath(C){for(const q of C){const C=q.charCodeAt(0);if(C<33||q===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(C){if(C.startsWith("-")||C.endsWith(".")||C.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(C){if(typeof C==="number"){C=new Date(C)}const q=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const ae=q[C.getUTCDay()];const Ue=C.getUTCDate().toString().padStart(2,"0");const lt=re[C.getUTCMonth()];const Pt=C.getUTCFullYear();const Wt=C.getUTCHours().toString().padStart(2,"0");const Ar=C.getUTCMinutes().toString().padStart(2,"0");const Er=C.getUTCSeconds().toString().padStart(2,"0");return`${ae}, ${Ue} ${lt} ${Pt} ${Wt}:${Ar}:${Er} GMT`}function validateCookieMaxAge(C){if(C<0){throw new Error("Invalid cookie max-age")}}function stringify(C){if(C.name.length===0){return null}validateCookieName(C.name);validateCookieValue(C.value);const q=[`${C.name}=${C.value}`];if(C.name.startsWith("__Secure-")){C.secure=true}if(C.name.startsWith("__Host-")){C.secure=true;C.domain=null;C.path="/"}if(C.secure){q.push("Secure")}if(C.httpOnly){q.push("HttpOnly")}if(typeof C.maxAge==="number"){validateCookieMaxAge(C.maxAge);q.push(`Max-Age=${C.maxAge}`)}if(C.domain){validateCookieDomain(C.domain);q.push(`Domain=${C.domain}`)}if(C.path){validateCookiePath(C.path);q.push(`Path=${C.path}`)}if(C.expires&&C.expires.toString()!=="Invalid Date"){q.push(`Expires=${toIMFDate(C.expires)}`)}if(C.sameSite){q.push(`SameSite=${C.sameSite}`)}for(const re of C.unparsed){if(!re.includes("=")){throw new Error("Invalid unparsed")}const[C,...ae]=re.split("=");q.push(`${C.trim()}=${ae.join("=")}`)}return q.join("; ")}let lt;function getHeadersList(C){if(C[Ue]){return C[Ue]}if(!lt){lt=Object.getOwnPropertySymbols(C).find((C=>C.description==="headers list"));ae(lt,"Headers cannot be parsed")}const q=C[lt];ae(q);return q}C.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},59136:(C,q,re)=>{const ae=re(69278);const Ue=re(42613);const lt=re(3440);const{InvalidArgumentError:Pt,ConnectTimeoutError:Wt}=re(68707);let Ar;let Er;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){Er=class WeakSessionCache{constructor(C){this._maxCachedSessions=C;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((C=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:C}=this._sessionCache.keys().next();this._sessionCache.delete(C)}this._sessionCache.set(C,q)}}}function buildConnector({allowH2:C,maxCachedSessions:q,socketPath:Wt,timeout:Ir,...Br}){if(q!=null&&(!Number.isInteger(q)||q<0)){throw new Pt("maxCachedSessions must be a positive integer or zero")}const kr={path:Wt,...Br};const Pr=new Er(q==null?100:q);Ir=Ir==null?1e4:Ir;C=C!=null?C:false;return function connect({hostname:q,host:Pt,protocol:Wt,port:Er,servername:Br,localAddress:Qr,httpSocket:Fr},Dr){let xr;if(Wt==="https:"){if(!Ar){Ar=re(64756)}Br=Br||kr.servername||lt.getServerName(Pt)||null;const ae=Br||q;const Wt=Pr.get(ae)||null;Ue(ae);xr=Ar.connect({highWaterMark:16384,...kr,servername:Br,session:Wt,localAddress:Qr,ALPNProtocols:C?["http/1.1","h2"]:["http/1.1"],socket:Fr,port:Er||443,host:q});xr.on("session",(function(C){Pr.set(ae,C)}))}else{Ue(!Fr,"httpSocket can only be sent on TLS update");xr=ae.connect({highWaterMark:64*1024,...kr,localAddress:Qr,port:Er||80,host:q})}if(kr.keepAlive==null||kr.keepAlive){const C=kr.keepAliveInitialDelay===undefined?6e4:kr.keepAliveInitialDelay;xr.setKeepAlive(true,C)}const Mr=setupTimeout((()=>onConnectTimeout(xr)),Ir);xr.setNoDelay(true).once(Wt==="https:"?"secureConnect":"connect",(function(){Mr();if(Dr){const C=Dr;Dr=null;C(null,this)}})).on("error",(function(C){Mr();if(Dr){const q=Dr;Dr=null;q(C)}}));return xr}}function setupTimeout(C,q){if(!q){return()=>{}}let re=null;let ae=null;const Ue=setTimeout((()=>{re=setImmediate((()=>{if(process.platform==="win32"){ae=setImmediate((()=>C()))}else{C()}}))}),q);return()=>{clearTimeout(Ue);clearImmediate(re);clearImmediate(ae)}}function onConnectTimeout(C){lt.destroy(C,new Wt)}C.exports=buildConnector},10735:C=>{const q={};const re=["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 C=0;C{class UndiciError extends Error{constructor(C){super(C);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=C||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=C||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=C||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=C||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(C,q,re,ae){super(C);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=C||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=ae;this.status=q;this.statusCode=q;this.headers=re}}class InvalidArgumentError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=C||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=C||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=C||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=C||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=C||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=C||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=C||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=C||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(C,q){super(C);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=C||"Socket error";this.code="UND_ERR_SOCKET";this.socket=q}}class NotSupportedError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=C||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=C||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(C,q,re){super(C);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=q?`HPE_${q}`:undefined;this.data=re?re.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(C){super(C);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=C||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(C,q,{headers:re,data:ae}){super(C);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=C||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=q;this.data=ae;this.headers=re}}C.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:(C,q,re)=>{const{InvalidArgumentError:ae,NotSupportedError:Ue}=re(68707);const lt=re(42613);const{kHTTP2BuildRequest:Pt,kHTTP2CopyHeaders:Wt,kHTTP1BuildRequest:Ar}=re(36443);const Er=re(3440);const Ir=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const Br=/[^\t\x20-\x7e\x80-\xff]/;const kr=/[^\u0021-\u00ff]/;const Pr=Symbol("handler");const Qr={};let Fr;try{const C=re(31637);Qr.create=C.channel("undici:request:create");Qr.bodySent=C.channel("undici:request:bodySent");Qr.headers=C.channel("undici:request:headers");Qr.trailers=C.channel("undici:request:trailers");Qr.error=C.channel("undici:request:error")}catch{Qr.create={hasSubscribers:false};Qr.bodySent={hasSubscribers:false};Qr.headers={hasSubscribers:false};Qr.trailers={hasSubscribers:false};Qr.error={hasSubscribers:false}}class Request{constructor(C,{path:q,method:Ue,body:lt,headers:Pt,query:Wt,idempotent:Ar,blocking:Br,upgrade:Dr,headersTimeout:xr,bodyTimeout:Mr,reset:Ur,throwOnError:Nr,expectContinue:Lr},jr){if(typeof q!=="string"){throw new ae("path must be a string")}else if(q[0]!=="/"&&!(q.startsWith("http://")||q.startsWith("https://"))&&Ue!=="CONNECT"){throw new ae("path must be an absolute URL or start with a slash")}else if(kr.exec(q)!==null){throw new ae("invalid request path")}if(typeof Ue!=="string"){throw new ae("method must be a string")}else if(Ir.exec(Ue)===null){throw new ae("invalid request method")}if(Dr&&typeof Dr!=="string"){throw new ae("upgrade must be a string")}if(xr!=null&&(!Number.isFinite(xr)||xr<0)){throw new ae("invalid headersTimeout")}if(Mr!=null&&(!Number.isFinite(Mr)||Mr<0)){throw new ae("invalid bodyTimeout")}if(Ur!=null&&typeof Ur!=="boolean"){throw new ae("invalid reset")}if(Lr!=null&&typeof Lr!=="boolean"){throw new ae("invalid expectContinue")}this.headersTimeout=xr;this.bodyTimeout=Mr;this.throwOnError=Nr===true;this.method=Ue;this.abort=null;if(lt==null){this.body=null}else if(Er.isStream(lt)){this.body=lt;const C=this.body._readableState;if(!C||!C.autoDestroy){this.endHandler=function autoDestroy(){Er.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=C=>{if(this.abort){this.abort(C)}else{this.error=C}};this.body.on("error",this.errorHandler)}else if(Er.isBuffer(lt)){this.body=lt.byteLength?lt:null}else if(ArrayBuffer.isView(lt)){this.body=lt.buffer.byteLength?Buffer.from(lt.buffer,lt.byteOffset,lt.byteLength):null}else if(lt instanceof ArrayBuffer){this.body=lt.byteLength?Buffer.from(lt):null}else if(typeof lt==="string"){this.body=lt.length?Buffer.from(lt):null}else if(Er.isFormDataLike(lt)||Er.isIterable(lt)||Er.isBlobLike(lt)){this.body=lt}else{throw new ae("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=Dr||null;this.path=Wt?Er.buildURL(q,Wt):q;this.origin=C;this.idempotent=Ar==null?Ue==="HEAD"||Ue==="GET":Ar;this.blocking=Br==null?false:Br;this.reset=Ur==null?null:Ur;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=Lr!=null?Lr:false;if(Array.isArray(Pt)){if(Pt.length%2!==0){throw new ae("headers array must be even")}for(let C=0;C{C.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:(C,q,re)=>{const ae=re(42613);const{kDestroyed:Ue,kBodyUsed:lt}=re(36443);const{IncomingMessage:Pt}=re(58611);const Wt=re(2203);const Ar=re(69278);const{InvalidArgumentError:Er}=re(68707);const{Blob:Ir}=re(20181);const Br=re(39023);const{stringify:kr}=re(83480);const{headerNameLowerCasedRecord:Pr}=re(10735);const[Qr,Fr]=process.versions.node.split(".").map((C=>Number(C)));function nop(){}function isStream(C){return C&&typeof C==="object"&&typeof C.pipe==="function"&&typeof C.on==="function"}function isBlobLike(C){return Ir&&C instanceof Ir||C&&typeof C==="object"&&(typeof C.stream==="function"||typeof C.arrayBuffer==="function")&&/^(Blob|File)$/.test(C[Symbol.toStringTag])}function buildURL(C,q){if(C.includes("?")||C.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const re=kr(q);if(re){C+="?"+re}return C}function parseURL(C){if(typeof C==="string"){C=new URL(C);if(!/^https?:/.test(C.origin||C.protocol)){throw new Er("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return C}if(!C||typeof C!=="object"){throw new Er("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(C.origin||C.protocol)){throw new Er("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(C instanceof URL)){if(C.port!=null&&C.port!==""&&!Number.isFinite(parseInt(C.port))){throw new Er("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(C.path!=null&&typeof C.path!=="string"){throw new Er("Invalid URL path: the path must be a string or null/undefined.")}if(C.pathname!=null&&typeof C.pathname!=="string"){throw new Er("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(C.hostname!=null&&typeof C.hostname!=="string"){throw new Er("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(C.origin!=null&&typeof C.origin!=="string"){throw new Er("Invalid URL origin: the origin must be a string or null/undefined.")}const q=C.port!=null?C.port:C.protocol==="https:"?443:80;let re=C.origin!=null?C.origin:`${C.protocol}//${C.hostname}:${q}`;let ae=C.path!=null?C.path:`${C.pathname||""}${C.search||""}`;if(re.endsWith("/")){re=re.substring(0,re.length-1)}if(ae&&!ae.startsWith("/")){ae=`/${ae}`}C=new URL(re+ae)}return C}function parseOrigin(C){C=parseURL(C);if(C.pathname!=="/"||C.search||C.hash){throw new Er("invalid url")}return C}function getHostname(C){if(C[0]==="["){const q=C.indexOf("]");ae(q!==-1);return C.substring(1,q)}const q=C.indexOf(":");if(q===-1)return C;return C.substring(0,q)}function getServerName(C){if(!C){return null}ae.strictEqual(typeof C,"string");const q=getHostname(C);if(Ar.isIP(q)){return""}return q}function deepClone(C){return JSON.parse(JSON.stringify(C))}function isAsyncIterable(C){return!!(C!=null&&typeof C[Symbol.asyncIterator]==="function")}function isIterable(C){return!!(C!=null&&(typeof C[Symbol.iterator]==="function"||typeof C[Symbol.asyncIterator]==="function"))}function bodyLength(C){if(C==null){return 0}else if(isStream(C)){const q=C._readableState;return q&&q.objectMode===false&&q.ended===true&&Number.isFinite(q.length)?q.length:null}else if(isBlobLike(C)){return C.size!=null?C.size:null}else if(isBuffer(C)){return C.byteLength}return null}function isDestroyed(C){return!C||!!(C.destroyed||C[Ue])}function isReadableAborted(C){const q=C&&C._readableState;return isDestroyed(C)&&q&&!q.endEmitted}function destroy(C,q){if(C==null||!isStream(C)||isDestroyed(C)){return}if(typeof C.destroy==="function"){if(Object.getPrototypeOf(C).constructor===Pt){C.socket=null}C.destroy(q)}else if(q){process.nextTick(((C,q)=>{C.emit("error",q)}),C,q)}if(C.destroyed!==true){C[Ue]=true}}const Dr=/timeout=(\d+)/;function parseKeepAliveTimeout(C){const q=C.toString().match(Dr);return q?parseInt(q[1],10)*1e3:null}function headerNameToString(C){return Pr[C]||C.toLowerCase()}function parseHeaders(C,q={}){if(!Array.isArray(C))return C;for(let re=0;reC.toString("utf8")))}else{q[ae]=C[re+1].toString("utf8")}}else{if(!Array.isArray(Ue)){Ue=[Ue];q[ae]=Ue}Ue.push(C[re+1].toString("utf8"))}}if("content-length"in q&&"content-disposition"in q){q["content-disposition"]=Buffer.from(q["content-disposition"]).toString("latin1")}return q}function parseRawHeaders(C){const q=[];let re=false;let ae=-1;for(let Ue=0;Ue{C.close()}))}else{const q=Buffer.isBuffer(ae)?ae:Buffer.from(ae);C.enqueue(new Uint8Array(q))}return C.desiredSize>0},async cancel(C){await q.return()}},0)}function isFormDataLike(C){return C&&typeof C==="object"&&typeof C.append==="function"&&typeof C.delete==="function"&&typeof C.get==="function"&&typeof C.getAll==="function"&&typeof C.has==="function"&&typeof C.set==="function"&&C[Symbol.toStringTag]==="FormData"}function throwIfAborted(C){if(!C){return}if(typeof C.throwIfAborted==="function"){C.throwIfAborted()}else{if(C.aborted){const C=new Error("The operation was aborted");C.name="AbortError";throw C}}}function addAbortListener(C,q){if("addEventListener"in C){C.addEventListener("abort",q,{once:true});return()=>C.removeEventListener("abort",q)}C.addListener("abort",q);return()=>C.removeListener("abort",q)}const Mr=!!String.prototype.toWellFormed;function toUSVString(C){if(Mr){return`${C}`.toWellFormed()}else if(Br.toUSVString){return Br.toUSVString(C)}return`${C}`}function parseRangeHeader(C){if(C==null||C==="")return{start:0,end:null,size:null};const q=C?C.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return q?{start:parseInt(q[1]),end:q[2]?parseInt(q[2]):null,size:q[3]?parseInt(q[3]):null}:null}const Ur=Object.create(null);Ur.enumerable=true;C.exports={kEnumerableProperty:Ur,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:Qr,nodeMinor:Fr,nodeHasAutoSelectFamily:Qr>18||Qr===18&&Fr>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(C,q,re)=>{const ae=re(28611);const{ClientDestroyedError:Ue,ClientClosedError:lt,InvalidArgumentError:Pt}=re(68707);const{kDestroy:Wt,kClose:Ar,kDispatch:Er,kInterceptors:Ir}=re(36443);const Br=Symbol("destroyed");const kr=Symbol("closed");const Pr=Symbol("onDestroyed");const Qr=Symbol("onClosed");const Fr=Symbol("Intercepted Dispatch");class DispatcherBase extends ae{constructor(){super();this[Br]=false;this[Pr]=null;this[kr]=false;this[Qr]=[]}get destroyed(){return this[Br]}get closed(){return this[kr]}get interceptors(){return this[Ir]}set interceptors(C){if(C){for(let q=C.length-1;q>=0;q--){const C=this[Ir][q];if(typeof C!=="function"){throw new Pt("interceptor must be an function")}}}this[Ir]=C}close(C){if(C===undefined){return new Promise(((C,q)=>{this.close(((re,ae)=>re?q(re):C(ae)))}))}if(typeof C!=="function"){throw new Pt("invalid callback")}if(this[Br]){queueMicrotask((()=>C(new Ue,null)));return}if(this[kr]){if(this[Qr]){this[Qr].push(C)}else{queueMicrotask((()=>C(null,null)))}return}this[kr]=true;this[Qr].push(C);const onClosed=()=>{const C=this[Qr];this[Qr]=null;for(let q=0;qthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(C,q){if(typeof C==="function"){q=C;C=null}if(q===undefined){return new Promise(((q,re)=>{this.destroy(C,((C,ae)=>C?re(C):q(ae)))}))}if(typeof q!=="function"){throw new Pt("invalid callback")}if(this[Br]){if(this[Pr]){this[Pr].push(q)}else{queueMicrotask((()=>q(null,null)))}return}if(!C){C=new Ue}this[Br]=true;this[Pr]=this[Pr]||[];this[Pr].push(q);const onDestroyed=()=>{const C=this[Pr];this[Pr]=null;for(let q=0;q{queueMicrotask(onDestroyed)}))}[Fr](C,q){if(!this[Ir]||this[Ir].length===0){this[Fr]=this[Er];return this[Er](C,q)}let re=this[Er].bind(this);for(let C=this[Ir].length-1;C>=0;C--){re=this[Ir][C](re)}this[Fr]=re;return re(C,q)}dispatch(C,q){if(!q||typeof q!=="object"){throw new Pt("handler must be an object")}try{if(!C||typeof C!=="object"){throw new Pt("opts must be an object.")}if(this[Br]||this[Pr]){throw new Ue}if(this[kr]){throw new lt}return this[Fr](C,q)}catch(C){if(typeof q.onError!=="function"){throw new Pt("invalid onError method")}q.onError(C);return false}}}C.exports=DispatcherBase},28611:(C,q,re)=>{const ae=re(24434);class Dispatcher extends ae{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}C.exports=Dispatcher},8923:(C,q,re)=>{const ae=re(89581);const Ue=re(3440);const{ReadableStreamFrom:lt,isBlobLike:Pt,isReadableStreamLike:Wt,readableStreamClose:Ar,createDeferredPromise:Er,fullyReadBody:Ir}=re(15523);const{FormData:Br}=re(43073);const{kState:kr}=re(89710);const{webidl:Pr}=re(74222);const{DOMException:Qr,structuredClone:Fr}=re(87326);const{Blob:Dr,File:xr}=re(20181);const{kBodyUsed:Mr}=re(36443);const Ur=re(42613);const{isErrored:Nr}=re(3440);const{isUint8Array:Lr,isArrayBuffer:jr}=re(98253);const{File:Gr}=re(63041);const{parseMIMEType:Vr,serializeAMimeType:Hr}=re(94322);let Wr=globalThis.ReadableStream;const $r=xr??Gr;const Kr=new TextEncoder;const zr=new TextDecoder;function extractBody(C,q=false){if(!Wr){Wr=re(63774).ReadableStream}let ae=null;if(C instanceof Wr){ae=C}else if(Pt(C)){ae=C.stream()}else{ae=new Wr({async pull(C){C.enqueue(typeof Ir==="string"?Kr.encode(Ir):Ir);queueMicrotask((()=>Ar(C)))},start(){},type:undefined})}Ur(Wt(ae));let Er=null;let Ir=null;let Br=null;let kr=null;if(typeof C==="string"){Ir=C;kr="text/plain;charset=UTF-8"}else if(C instanceof URLSearchParams){Ir=C.toString();kr="application/x-www-form-urlencoded;charset=UTF-8"}else if(jr(C)){Ir=new Uint8Array(C.slice())}else if(ArrayBuffer.isView(C)){Ir=new Uint8Array(C.buffer.slice(C.byteOffset,C.byteOffset+C.byteLength))}else if(Ue.isFormDataLike(C)){const q=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const re=`--${q}\r\nContent-Disposition: form-data`
 /*! formdata-polyfill. MIT License. Jimmy Wärting  */;const escape=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=C=>C.replace(/\r?\n|\r/g,"\r\n");const ae=[];const Ue=new Uint8Array([13,10]);Br=0;let lt=false;for(const[q,Pt]of C){if(typeof Pt==="string"){const C=Kr.encode(re+`; name="${escape(normalizeLinefeeds(q))}"`+`\r\n\r\n${normalizeLinefeeds(Pt)}\r\n`);ae.push(C);Br+=C.byteLength}else{const C=Kr.encode(`${re}; name="${escape(normalizeLinefeeds(q))}"`+(Pt.name?`; filename="${escape(Pt.name)}"`:"")+"\r\n"+`Content-Type: ${Pt.type||"application/octet-stream"}\r\n\r\n`);ae.push(C,Pt,Ue);if(typeof Pt.size==="number"){Br+=C.byteLength+Pt.size+Ue.byteLength}else{lt=true}}}const Pt=Kr.encode(`--${q}--`);ae.push(Pt);Br+=Pt.byteLength;if(lt){Br=null}Ir=C;Er=async function*(){for(const C of ae){if(C.stream){yield*C.stream()}else{yield C}}};kr="multipart/form-data; boundary="+q}else if(Pt(C)){Ir=C;Br=C.size;if(C.type){kr=C.type}}else if(typeof C[Symbol.asyncIterator]==="function"){if(q){throw new TypeError("keepalive")}if(Ue.isDisturbed(C)||C.locked){throw new TypeError("Response body object should not be disturbed or locked")}ae=C instanceof Wr?C:lt(C)}if(typeof Ir==="string"||Ue.isBuffer(Ir)){Br=Buffer.byteLength(Ir)}if(Er!=null){let q;ae=new Wr({async start(){q=Er(C)[Symbol.asyncIterator]()},async pull(C){const{value:re,done:Ue}=await q.next();if(Ue){queueMicrotask((()=>{C.close()}))}else{if(!Nr(ae)){C.enqueue(new Uint8Array(re))}}return C.desiredSize>0},async cancel(C){await q.return()},type:undefined})}const Pr={stream:ae,source:Ir,length:Br};return[Pr,kr]}function safelyExtractBody(C,q=false){if(!Wr){Wr=re(63774).ReadableStream}if(C instanceof Wr){Ur(!Ue.isDisturbed(C),"The body has already been consumed.");Ur(!C.locked,"The stream is locked.")}return extractBody(C,q)}function cloneBody(C){const[q,re]=C.stream.tee();const ae=Fr(re,{transfer:[re]});const[,Ue]=ae.tee();C.stream=q;return{stream:Ue,length:C.length,source:C.source}}async function*consumeBody(C){if(C){if(Lr(C)){yield C}else{const q=C.stream;if(Ue.isDisturbed(q)){throw new TypeError("The body has already been consumed.")}if(q.locked){throw new TypeError("The stream is locked.")}q[Mr]=true;yield*q}}}function throwIfAborted(C){if(C.aborted){throw new Qr("The operation was aborted.","AbortError")}}function bodyMixinMethods(C){const q={blob(){return specConsumeBody(this,(C=>{let q=bodyMimeType(this);if(q==="failure"){q=""}else if(q){q=Hr(q)}return new Dr([C],{type:q})}),C)},arrayBuffer(){return specConsumeBody(this,(C=>new Uint8Array(C).buffer),C)},text(){return specConsumeBody(this,utf8DecodeBytes,C)},json(){return specConsumeBody(this,parseJSONFromBytes,C)},async formData(){Pr.brandCheck(this,C);throwIfAborted(this[kr]);const q=this.headers.get("Content-Type");if(/multipart\/form-data/.test(q)){const C={};for(const[q,re]of this.headers)C[q.toLowerCase()]=re;const q=new Br;let re;try{re=new ae({headers:C,preservePath:true})}catch(C){throw new Qr(`${C}`,"AbortError")}re.on("field",((C,re)=>{q.append(C,re)}));re.on("file",((C,re,ae,Ue,lt)=>{const Pt=[];if(Ue==="base64"||Ue.toLowerCase()==="base64"){let Ue="";re.on("data",(C=>{Ue+=C.toString().replace(/[\r\n]/gm,"");const q=Ue.length-Ue.length%4;Pt.push(Buffer.from(Ue.slice(0,q),"base64"));Ue=Ue.slice(q)}));re.on("end",(()=>{Pt.push(Buffer.from(Ue,"base64"));q.append(C,new $r(Pt,ae,{type:lt}))}))}else{re.on("data",(C=>{Pt.push(C)}));re.on("end",(()=>{q.append(C,new $r(Pt,ae,{type:lt}))}))}}));const Ue=new Promise(((C,q)=>{re.on("finish",C);re.on("error",(C=>q(new TypeError(C))))}));if(this.body!==null)for await(const C of consumeBody(this[kr].body))re.write(C);re.end();await Ue;return q}else if(/application\/x-www-form-urlencoded/.test(q)){let C;try{let q="";const re=new TextDecoder("utf-8",{ignoreBOM:true});for await(const C of consumeBody(this[kr].body)){if(!Lr(C)){throw new TypeError("Expected Uint8Array chunk")}q+=re.decode(C,{stream:true})}q+=re.decode();C=new URLSearchParams(q)}catch(C){throw Object.assign(new TypeError,{cause:C})}const q=new Br;for(const[re,ae]of C){q.append(re,ae)}return q}else{await Promise.resolve();throwIfAborted(this[kr]);throw Pr.errors.exception({header:`${C.name}.formData`,message:"Could not parse content as FormData."})}}};return q}function mixinBody(C){Object.assign(C.prototype,bodyMixinMethods(C))}async function specConsumeBody(C,q,re){Pr.brandCheck(C,re);throwIfAborted(C[kr]);if(bodyUnusable(C[kr].body)){throw new TypeError("Body is unusable")}const ae=Er();const errorSteps=C=>ae.reject(C);const successSteps=C=>{try{ae.resolve(q(C))}catch(C){errorSteps(C)}};if(C[kr].body==null){successSteps(new Uint8Array);return ae.promise}await Ir(C[kr].body,successSteps,errorSteps);return ae.promise}function bodyUnusable(C){return C!=null&&(C.stream.locked||Ue.isDisturbed(C.stream))}function utf8DecodeBytes(C){if(C.length===0){return""}if(C[0]===239&&C[1]===187&&C[2]===191){C=C.subarray(3)}const q=zr.decode(C);return q}function parseJSONFromBytes(C){return JSON.parse(utf8DecodeBytes(C))}function bodyMimeType(C){const{headersList:q}=C[kr];const re=q.get("content-type");if(re===null){return"failure"}return Vr(re)}C.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(C,q,re)=>{const{MessageChannel:ae,receiveMessageOnPort:Ue}=re(28167);const lt=["GET","HEAD","POST"];const Pt=new Set(lt);const Wt=[101,204,205,304];const Ar=[301,302,303,307,308];const Er=new Set(Ar);const Ir=["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 Br=new Set(Ir);const kr=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const Pr=new Set(kr);const Qr=["follow","manual","error"];const Fr=["GET","HEAD","OPTIONS","TRACE"];const Dr=new Set(Fr);const xr=["navigate","same-origin","no-cors","cors"];const Mr=["omit","same-origin","include"];const Ur=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const Nr=["content-encoding","content-language","content-location","content-type","content-length"];const Lr=["half"];const jr=["CONNECT","TRACE","TRACK"];const Gr=new Set(jr);const Vr=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const Hr=new Set(Vr);const Wr=globalThis.DOMException??(()=>{try{atob("~")}catch(C){return Object.getPrototypeOf(C).constructor}})();let $r;const Kr=globalThis.structuredClone??function structuredClone(C,q=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!$r){$r=new ae}$r.port1.unref();$r.port2.unref();$r.port1.postMessage(C,q?.transfer);return Ue($r.port2).message};C.exports={DOMException:Wr,structuredClone:Kr,subresource:Vr,forbiddenMethods:jr,requestBodyHeader:Nr,referrerPolicy:kr,requestRedirect:Qr,requestMode:xr,requestCredentials:Mr,requestCache:Ur,redirectStatus:Ar,corsSafeListedMethods:lt,nullBodyStatus:Wt,safeMethods:Fr,badPorts:Ir,requestDuplex:Lr,subresourceSet:Hr,badPortsSet:Br,redirectStatusSet:Er,corsSafeListedMethodsSet:Pt,safeMethodsSet:Dr,forbiddenMethodsSet:Gr,referrerPolicySet:Pr}},94322:(C,q,re)=>{const ae=re(42613);const{atob:Ue}=re(20181);const{isomorphicDecode:lt}=re(15523);const Pt=new TextEncoder;const Wt=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const Ar=/(\u000A|\u000D|\u0009|\u0020)/;const Er=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(C){ae(C.protocol==="data:");let q=URLSerializer(C,true);q=q.slice(5);const re={position:0};let Ue=collectASequenceOfCodePointsFast(",",q,re);const Pt=Ue.length;Ue=removeASCIIWhitespace(Ue,true,true);if(re.position>=q.length){return"failure"}re.position++;const Wt=q.slice(Pt+1);let Ar=stringPercentDecode(Wt);if(/;(\u0020){0,}base64$/i.test(Ue)){const C=lt(Ar);Ar=forgivingBase64(C);if(Ar==="failure"){return"failure"}Ue=Ue.slice(0,-6);Ue=Ue.replace(/(\u0020)+$/,"");Ue=Ue.slice(0,-1)}if(Ue.startsWith(";")){Ue="text/plain"+Ue}let Er=parseMIMEType(Ue);if(Er==="failure"){Er=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:Er,body:Ar}}function URLSerializer(C,q=false){if(!q){return C.href}const re=C.href;const ae=C.hash.length;return ae===0?re:re.substring(0,re.length-ae)}function collectASequenceOfCodePoints(C,q,re){let ae="";while(re.positionC.length){return"failure"}q.position++;let ae=collectASequenceOfCodePointsFast(";",C,q);ae=removeHTTPWhitespace(ae,false,true);if(ae.length===0||!Wt.test(ae)){return"failure"}const Ue=re.toLowerCase();const lt=ae.toLowerCase();const Pt={type:Ue,subtype:lt,parameters:new Map,essence:`${Ue}/${lt}`};while(q.positionAr.test(C)),C,q);let re=collectASequenceOfCodePoints((C=>C!==";"&&C!=="="),C,q);re=re.toLowerCase();if(q.positionC.length){break}let ae=null;if(C[q.position]==='"'){ae=collectAnHTTPQuotedString(C,q,true);collectASequenceOfCodePointsFast(";",C,q)}else{ae=collectASequenceOfCodePointsFast(";",C,q);ae=removeHTTPWhitespace(ae,false,true);if(ae.length===0){continue}}if(re.length!==0&&Wt.test(re)&&(ae.length===0||Er.test(ae))&&!Pt.parameters.has(re)){Pt.parameters.set(re,ae)}}return Pt}function forgivingBase64(C){C=C.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(C.length%4===0){C=C.replace(/=?=$/,"")}if(C.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(C)){return"failure"}const q=Ue(C);const re=new Uint8Array(q.length);for(let C=0;CC!=='"'&&C!=="\\"),C,q);if(q.position>=C.length){break}const re=C[q.position];q.position++;if(re==="\\"){if(q.position>=C.length){lt+="\\";break}lt+=C[q.position];q.position++}else{ae(re==='"');break}}if(re){return lt}return C.slice(Ue,q.position)}function serializeAMimeType(C){ae(C!=="failure");const{parameters:q,essence:re}=C;let Ue=re;for(let[C,re]of q.entries()){Ue+=";";Ue+=C;Ue+="=";if(!Wt.test(re)){re=re.replace(/(\\|")/g,"\\$1");re='"'+re;re+='"'}Ue+=re}return Ue}function isHTTPWhiteSpace(C){return C==="\r"||C==="\n"||C==="\t"||C===" "}function removeHTTPWhitespace(C,q=true,re=true){let ae=0;let Ue=C.length-1;if(q){for(;ae0&&isHTTPWhiteSpace(C[Ue]);Ue--);}return C.slice(ae,Ue+1)}function isASCIIWhitespace(C){return C==="\r"||C==="\n"||C==="\t"||C==="\f"||C===" "}function removeASCIIWhitespace(C,q=true,re=true){let ae=0;let Ue=C.length-1;if(q){for(;ae0&&isASCIIWhitespace(C[Ue]);Ue--);}return C.slice(ae,Ue+1)}C.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(C,q,re)=>{const{Blob:ae,File:Ue}=re(20181);const{types:lt}=re(39023);const{kState:Pt}=re(89710);const{isBlobLike:Wt}=re(15523);const{webidl:Ar}=re(74222);const{parseMIMEType:Er,serializeAMimeType:Ir}=re(94322);const{kEnumerableProperty:Br}=re(3440);const kr=new TextEncoder;class File extends ae{constructor(C,q,re={}){Ar.argumentLengthCheck(arguments,2,{header:"File constructor"});C=Ar.converters["sequence"](C);q=Ar.converters.USVString(q);re=Ar.converters.FilePropertyBag(re);const ae=q;let Ue=re.type;let lt;e:{if(Ue){Ue=Er(Ue);if(Ue==="failure"){Ue="";break e}Ue=Ir(Ue).toLowerCase()}lt=re.lastModified}super(processBlobParts(C,re),{type:Ue});this[Pt]={name:ae,lastModified:lt,type:Ue}}get name(){Ar.brandCheck(this,File);return this[Pt].name}get lastModified(){Ar.brandCheck(this,File);return this[Pt].lastModified}get type(){Ar.brandCheck(this,File);return this[Pt].type}}class FileLike{constructor(C,q,re={}){const ae=q;const Ue=re.type;const lt=re.lastModified??Date.now();this[Pt]={blobLike:C,name:ae,type:Ue,lastModified:lt}}stream(...C){Ar.brandCheck(this,FileLike);return this[Pt].blobLike.stream(...C)}arrayBuffer(...C){Ar.brandCheck(this,FileLike);return this[Pt].blobLike.arrayBuffer(...C)}slice(...C){Ar.brandCheck(this,FileLike);return this[Pt].blobLike.slice(...C)}text(...C){Ar.brandCheck(this,FileLike);return this[Pt].blobLike.text(...C)}get size(){Ar.brandCheck(this,FileLike);return this[Pt].blobLike.size}get type(){Ar.brandCheck(this,FileLike);return this[Pt].blobLike.type}get name(){Ar.brandCheck(this,FileLike);return this[Pt].name}get lastModified(){Ar.brandCheck(this,FileLike);return this[Pt].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:Br,lastModified:Br});Ar.converters.Blob=Ar.interfaceConverter(ae);Ar.converters.BlobPart=function(C,q){if(Ar.util.Type(C)==="Object"){if(Wt(C)){return Ar.converters.Blob(C,{strict:false})}if(ArrayBuffer.isView(C)||lt.isAnyArrayBuffer(C)){return Ar.converters.BufferSource(C,q)}}return Ar.converters.USVString(C,q)};Ar.converters["sequence"]=Ar.sequenceConverter(Ar.converters.BlobPart);Ar.converters.FilePropertyBag=Ar.dictionaryConverter([{key:"lastModified",converter:Ar.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:Ar.converters.DOMString,defaultValue:""},{key:"endings",converter:C=>{C=Ar.converters.DOMString(C);C=C.toLowerCase();if(C!=="native"){C="transparent"}return C},defaultValue:"transparent"}]);function processBlobParts(C,q){const re=[];for(const ae of C){if(typeof ae==="string"){let C=ae;if(q.endings==="native"){C=convertLineEndingsNative(C)}re.push(kr.encode(C))}else if(lt.isAnyArrayBuffer(ae)||lt.isTypedArray(ae)){if(!ae.buffer){re.push(new Uint8Array(ae))}else{re.push(new Uint8Array(ae.buffer,ae.byteOffset,ae.byteLength))}}else if(Wt(ae)){re.push(ae)}}return re}function convertLineEndingsNative(C){let q="\n";if(process.platform==="win32"){q="\r\n"}return C.replace(/\r?\n/g,q)}function isFileLike(C){return Ue&&C instanceof Ue||C instanceof File||C&&(typeof C.stream==="function"||typeof C.arrayBuffer==="function")&&C[Symbol.toStringTag]==="File"}C.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(C,q,re)=>{const{isBlobLike:ae,toUSVString:Ue,makeIterator:lt}=re(15523);const{kState:Pt}=re(89710);const{File:Wt,FileLike:Ar,isFileLike:Er}=re(63041);const{webidl:Ir}=re(74222);const{Blob:Br,File:kr}=re(20181);const Pr=kr??Wt;class FormData{constructor(C){if(C!==undefined){throw Ir.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[Pt]=[]}append(C,q,re=undefined){Ir.brandCheck(this,FormData);Ir.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!ae(q)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}C=Ir.converters.USVString(C);q=ae(q)?Ir.converters.Blob(q,{strict:false}):Ir.converters.USVString(q);re=arguments.length===3?Ir.converters.USVString(re):undefined;const Ue=makeEntry(C,q,re);this[Pt].push(Ue)}delete(C){Ir.brandCheck(this,FormData);Ir.argumentLengthCheck(arguments,1,{header:"FormData.delete"});C=Ir.converters.USVString(C);this[Pt]=this[Pt].filter((q=>q.name!==C))}get(C){Ir.brandCheck(this,FormData);Ir.argumentLengthCheck(arguments,1,{header:"FormData.get"});C=Ir.converters.USVString(C);const q=this[Pt].findIndex((q=>q.name===C));if(q===-1){return null}return this[Pt][q].value}getAll(C){Ir.brandCheck(this,FormData);Ir.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});C=Ir.converters.USVString(C);return this[Pt].filter((q=>q.name===C)).map((C=>C.value))}has(C){Ir.brandCheck(this,FormData);Ir.argumentLengthCheck(arguments,1,{header:"FormData.has"});C=Ir.converters.USVString(C);return this[Pt].findIndex((q=>q.name===C))!==-1}set(C,q,re=undefined){Ir.brandCheck(this,FormData);Ir.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!ae(q)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}C=Ir.converters.USVString(C);q=ae(q)?Ir.converters.Blob(q,{strict:false}):Ir.converters.USVString(q);re=arguments.length===3?Ue(re):undefined;const lt=makeEntry(C,q,re);const Wt=this[Pt].findIndex((q=>q.name===C));if(Wt!==-1){this[Pt]=[...this[Pt].slice(0,Wt),lt,...this[Pt].slice(Wt+1).filter((q=>q.name!==C))]}else{this[Pt].push(lt)}}entries(){Ir.brandCheck(this,FormData);return lt((()=>this[Pt].map((C=>[C.name,C.value]))),"FormData","key+value")}keys(){Ir.brandCheck(this,FormData);return lt((()=>this[Pt].map((C=>[C.name,C.value]))),"FormData","key")}values(){Ir.brandCheck(this,FormData);return lt((()=>this[Pt].map((C=>[C.name,C.value]))),"FormData","value")}forEach(C,q=globalThis){Ir.brandCheck(this,FormData);Ir.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof C!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[re,ae]of this){C.apply(q,[ae,re,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(C,q,re){C=Buffer.from(C).toString("utf8");if(typeof q==="string"){q=Buffer.from(q).toString("utf8")}else{if(!Er(q)){q=q instanceof Br?new Pr([q],"blob",{type:q.type}):new Ar(q,"blob",{type:q.type})}if(re!==undefined){const C={type:q.type,lastModified:q.lastModified};q=kr&&q instanceof kr||q instanceof Wt?new Pr([q],re,C):new Ar(q,re,C)}}return{name:C,value:q}}C.exports={FormData:FormData}},75628:C=>{const q=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[q]}function setGlobalOrigin(C){if(C===undefined){Object.defineProperty(globalThis,q,{value:undefined,writable:true,enumerable:false,configurable:false});return}const re=new URL(C);if(re.protocol!=="http:"&&re.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${re.protocol}`)}Object.defineProperty(globalThis,q,{value:re,writable:true,enumerable:false,configurable:false})}C.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(C,q,re)=>{const{kHeadersList:ae,kConstruct:Ue}=re(36443);const{kGuard:lt}=re(89710);const{kEnumerableProperty:Pt}=re(3440);const{makeIterator:Wt,isValidHeaderName:Ar,isValidHeaderValue:Er}=re(15523);const{webidl:Ir}=re(74222);const Br=re(42613);const kr=Symbol("headers map");const Pr=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(C){return C===10||C===13||C===9||C===32}function headerValueNormalize(C){let q=0;let re=C.length;while(re>q&&isHTTPWhiteSpaceCharCode(C.charCodeAt(re-1)))--re;while(re>q&&isHTTPWhiteSpaceCharCode(C.charCodeAt(q)))++q;return q===0&&re===C.length?C:C.substring(q,re)}function fill(C,q){if(Array.isArray(q)){for(let re=0;re>","record"]})}}function appendHeader(C,q,re){re=headerValueNormalize(re);if(!Ar(q)){throw Ir.errors.invalidArgument({prefix:"Headers.append",value:q,type:"header name"})}else if(!Er(re)){throw Ir.errors.invalidArgument({prefix:"Headers.append",value:re,type:"header value"})}if(C[lt]==="immutable"){throw new TypeError("immutable")}else if(C[lt]==="request-no-cors"){}return C[ae].append(q,re)}class HeadersList{cookies=null;constructor(C){if(C instanceof HeadersList){this[kr]=new Map(C[kr]);this[Pr]=C[Pr];this.cookies=C.cookies===null?null:[...C.cookies]}else{this[kr]=new Map(C);this[Pr]=null}}contains(C){C=C.toLowerCase();return this[kr].has(C)}clear(){this[kr].clear();this[Pr]=null;this.cookies=null}append(C,q){this[Pr]=null;const re=C.toLowerCase();const ae=this[kr].get(re);if(ae){const C=re==="cookie"?"; ":", ";this[kr].set(re,{name:ae.name,value:`${ae.value}${C}${q}`})}else{this[kr].set(re,{name:C,value:q})}if(re==="set-cookie"){this.cookies??=[];this.cookies.push(q)}}set(C,q){this[Pr]=null;const re=C.toLowerCase();if(re==="set-cookie"){this.cookies=[q]}this[kr].set(re,{name:C,value:q})}delete(C){this[Pr]=null;C=C.toLowerCase();if(C==="set-cookie"){this.cookies=null}this[kr].delete(C)}get(C){const q=this[kr].get(C.toLowerCase());return q===undefined?null:q.value}*[Symbol.iterator](){for(const[C,{value:q}]of this[kr]){yield[C,q]}}get entries(){const C={};if(this[kr].size){for(const{name:q,value:re}of this[kr].values()){C[q]=re}}return C}}class Headers{constructor(C=undefined){if(C===Ue){return}this[ae]=new HeadersList;this[lt]="none";if(C!==undefined){C=Ir.converters.HeadersInit(C);fill(this,C)}}append(C,q){Ir.brandCheck(this,Headers);Ir.argumentLengthCheck(arguments,2,{header:"Headers.append"});C=Ir.converters.ByteString(C);q=Ir.converters.ByteString(q);return appendHeader(this,C,q)}delete(C){Ir.brandCheck(this,Headers);Ir.argumentLengthCheck(arguments,1,{header:"Headers.delete"});C=Ir.converters.ByteString(C);if(!Ar(C)){throw Ir.errors.invalidArgument({prefix:"Headers.delete",value:C,type:"header name"})}if(this[lt]==="immutable"){throw new TypeError("immutable")}else if(this[lt]==="request-no-cors"){}if(!this[ae].contains(C)){return}this[ae].delete(C)}get(C){Ir.brandCheck(this,Headers);Ir.argumentLengthCheck(arguments,1,{header:"Headers.get"});C=Ir.converters.ByteString(C);if(!Ar(C)){throw Ir.errors.invalidArgument({prefix:"Headers.get",value:C,type:"header name"})}return this[ae].get(C)}has(C){Ir.brandCheck(this,Headers);Ir.argumentLengthCheck(arguments,1,{header:"Headers.has"});C=Ir.converters.ByteString(C);if(!Ar(C)){throw Ir.errors.invalidArgument({prefix:"Headers.has",value:C,type:"header name"})}return this[ae].contains(C)}set(C,q){Ir.brandCheck(this,Headers);Ir.argumentLengthCheck(arguments,2,{header:"Headers.set"});C=Ir.converters.ByteString(C);q=Ir.converters.ByteString(q);q=headerValueNormalize(q);if(!Ar(C)){throw Ir.errors.invalidArgument({prefix:"Headers.set",value:C,type:"header name"})}else if(!Er(q)){throw Ir.errors.invalidArgument({prefix:"Headers.set",value:q,type:"header value"})}if(this[lt]==="immutable"){throw new TypeError("immutable")}else if(this[lt]==="request-no-cors"){}this[ae].set(C,q)}getSetCookie(){Ir.brandCheck(this,Headers);const C=this[ae].cookies;if(C){return[...C]}return[]}get[Pr](){if(this[ae][Pr]){return this[ae][Pr]}const C=[];const q=[...this[ae]].sort(((C,q)=>C[0]C),"Headers","key")}return Wt((()=>[...this[Pr].values()]),"Headers","key")}values(){Ir.brandCheck(this,Headers);if(this[lt]==="immutable"){const C=this[Pr];return Wt((()=>C),"Headers","value")}return Wt((()=>[...this[Pr].values()]),"Headers","value")}entries(){Ir.brandCheck(this,Headers);if(this[lt]==="immutable"){const C=this[Pr];return Wt((()=>C),"Headers","key+value")}return Wt((()=>[...this[Pr].values()]),"Headers","key+value")}forEach(C,q=globalThis){Ir.brandCheck(this,Headers);Ir.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof C!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[re,ae]of this){C.apply(q,[ae,re,this])}}[Symbol.for("nodejs.util.inspect.custom")](){Ir.brandCheck(this,Headers);return this[ae]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:Pt,delete:Pt,get:Pt,has:Pt,set:Pt,getSetCookie:Pt,keys:Pt,values:Pt,entries:Pt,forEach:Pt,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});Ir.converters.HeadersInit=function(C){if(Ir.util.Type(C)==="Object"){if(C[Symbol.iterator]){return Ir.converters["sequence>"](C)}return Ir.converters["record"](C)}throw Ir.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};C.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(C,q,re)=>{const{Response:ae,makeNetworkError:Ue,makeAppropriateNetworkError:lt,filterResponse:Pt,makeResponse:Wt}=re(48676);const{Headers:Ar}=re(26349);const{Request:Er,makeRequest:Ir}=re(25194);const Br=re(43106);const{bytesMatch:kr,makePolicyContainer:Pr,clonePolicyContainer:Qr,requestBadPort:Fr,TAOCheck:Dr,appendRequestOriginHeader:xr,responseLocationURL:Mr,requestCurrentURL:Ur,setRequestReferrerPolicyOnRedirect:Nr,tryUpgradeRequestToAPotentiallyTrustworthyURL:Lr,createOpaqueTimingInfo:jr,appendFetchMetadata:Gr,corsCheck:Vr,crossOriginResourcePolicyCheck:Hr,determineRequestsReferrer:Wr,coarsenedSharedCurrentTime:$r,createDeferredPromise:Kr,isBlobLike:zr,sameOrigin:Jr,isCancelled:Yr,isAborted:Xr,isErrorLike:Zr,fullyReadBody:en,readableStreamClose:tn,isomorphicEncode:rn,urlIsLocal:nn,urlIsHttpHttpsScheme:sn,urlHasHttpsScheme:an}=re(15523);const{kState:cn,kHeaders:ln,kGuard:un,kRealm:dn}=re(89710);const pn=re(42613);const{safelyExtractBody:fn}=re(8923);const{redirectStatusSet:hn,nullBodyStatus:gn,safeMethodsSet:An,requestBodyHeader:mn,subresourceSet:_n,DOMException:yn}=re(87326);const{kHeadersList:bn}=re(36443);const En=re(24434);const{Readable:vn,pipeline:In}=re(2203);const{addAbortListener:wn,isErrored:Cn,isReadable:Sn,nodeMajor:Bn,nodeMinor:Tn}=re(3440);const{dataURLProcessor:kn,serializeAMimeType:Rn}=re(94322);const{TransformStream:Pn}=re(63774);const{getGlobalDispatcher:On}=re(32581);const{webidl:Qn}=re(74222);const{STATUS_CODES:Fn}=re(58611);const Dn=["GET","HEAD"];let xn;let Mn=globalThis.ReadableStream;class Fetch extends En{constructor(C){super();this.dispatcher=C;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(C){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(C);this.emit("terminated",C)}abort(C){if(this.state!=="ongoing"){return}this.state="aborted";if(!C){C=new yn("The operation was aborted.","AbortError")}this.serializedAbortReason=C;this.connection?.destroy(C);this.emit("terminated",C)}}function fetch(C,q={}){Qn.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const re=Kr();let Ue;try{Ue=new Er(C,q)}catch(C){re.reject(C);return re.promise}const lt=Ue[cn];if(Ue.signal.aborted){abortFetch(re,lt,null,Ue.signal.reason);return re.promise}const Pt=lt.client.globalObject;if(Pt?.constructor?.name==="ServiceWorkerGlobalScope"){lt.serviceWorkers="none"}let Wt=null;const Ar=null;let Ir=false;let Br=null;wn(Ue.signal,(()=>{Ir=true;pn(Br!=null);Br.abort(Ue.signal.reason);abortFetch(re,lt,Wt,Ue.signal.reason)}));const handleFetchDone=C=>finalizeAndReportTiming(C,"fetch");const processResponse=C=>{if(Ir){return Promise.resolve()}if(C.aborted){abortFetch(re,lt,Wt,Br.serializedAbortReason);return Promise.resolve()}if(C.type==="error"){re.reject(Object.assign(new TypeError("fetch failed"),{cause:C.error}));return Promise.resolve()}Wt=new ae;Wt[cn]=C;Wt[dn]=Ar;Wt[ln][bn]=C.headersList;Wt[ln][un]="immutable";Wt[ln][dn]=Ar;re.resolve(Wt)};Br=fetching({request:lt,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:q.dispatcher??On()});return re.promise}function finalizeAndReportTiming(C,q="other"){if(C.type==="error"&&C.aborted){return}if(!C.urlList?.length){return}const re=C.urlList[0];let ae=C.timingInfo;let Ue=C.cacheState;if(!sn(re)){return}if(ae===null){return}if(!C.timingAllowPassed){ae=jr({startTime:ae.startTime});Ue=""}ae.endTime=$r();C.timingInfo=ae;markResourceTiming(ae,re,q,globalThis,Ue)}function markResourceTiming(C,q,re,ae,Ue){if(Bn>18||Bn===18&&Tn>=2){performance.markResourceTiming(C,q.href,re,ae,Ue)}}function abortFetch(C,q,re,ae){if(!ae){ae=new yn("The operation was aborted.","AbortError")}C.reject(ae);if(q.body!=null&&Sn(q.body?.stream)){q.body.stream.cancel(ae).catch((C=>{if(C.code==="ERR_INVALID_STATE"){return}throw C}))}if(re==null){return}const Ue=re[cn];if(Ue.body!=null&&Sn(Ue.body?.stream)){Ue.body.stream.cancel(ae).catch((C=>{if(C.code==="ERR_INVALID_STATE"){return}throw C}))}}function fetching({request:C,processRequestBodyChunkLength:q,processRequestEndOfBody:re,processResponse:ae,processResponseEndOfBody:Ue,processResponseConsumeBody:lt,useParallelQueue:Pt=false,dispatcher:Wt}){let Ar=null;let Er=false;if(C.client!=null){Ar=C.client.globalObject;Er=C.client.crossOriginIsolatedCapability}const Ir=$r(Er);const Br=jr({startTime:Ir});const kr={controller:new Fetch(Wt),request:C,timingInfo:Br,processRequestBodyChunkLength:q,processRequestEndOfBody:re,processResponse:ae,processResponseConsumeBody:lt,processResponseEndOfBody:Ue,taskDestination:Ar,crossOriginIsolatedCapability:Er};pn(!C.body||C.body.stream);if(C.window==="client"){C.window=C.client?.globalObject?.constructor?.name==="Window"?C.client:"no-window"}if(C.origin==="client"){C.origin=C.client?.origin}if(C.policyContainer==="client"){if(C.client!=null){C.policyContainer=Qr(C.client.policyContainer)}else{C.policyContainer=Pr()}}if(!C.headersList.contains("accept")){const q="*/*";C.headersList.append("accept",q)}if(!C.headersList.contains("accept-language")){C.headersList.append("accept-language","*")}if(C.priority===null){}if(_n.has(C.destination)){}mainFetch(kr).catch((C=>{kr.controller.terminate(C)}));return kr.controller}async function mainFetch(C,q=false){const re=C.request;let ae=null;if(re.localURLsOnly&&!nn(Ur(re))){ae=Ue("local URLs only")}Lr(re);if(Fr(re)==="blocked"){ae=Ue("bad port")}if(re.referrerPolicy===""){re.referrerPolicy=re.policyContainer.referrerPolicy}if(re.referrer!=="no-referrer"){re.referrer=Wr(re)}if(ae===null){ae=await(async()=>{const q=Ur(re);if(Jr(q,re.url)&&re.responseTainting==="basic"||q.protocol==="data:"||(re.mode==="navigate"||re.mode==="websocket")){re.responseTainting="basic";return await schemeFetch(C)}if(re.mode==="same-origin"){return Ue('request mode cannot be "same-origin"')}if(re.mode==="no-cors"){if(re.redirect!=="follow"){return Ue('redirect mode cannot be "follow" for "no-cors" request')}re.responseTainting="opaque";return await schemeFetch(C)}if(!sn(Ur(re))){return Ue("URL scheme must be a HTTP(S) scheme")}re.responseTainting="cors";return await httpFetch(C)})()}if(q){return ae}if(ae.status!==0&&!ae.internalResponse){if(re.responseTainting==="cors"){}if(re.responseTainting==="basic"){ae=Pt(ae,"basic")}else if(re.responseTainting==="cors"){ae=Pt(ae,"cors")}else if(re.responseTainting==="opaque"){ae=Pt(ae,"opaque")}else{pn(false)}}let lt=ae.status===0?ae:ae.internalResponse;if(lt.urlList.length===0){lt.urlList.push(...re.urlList)}if(!re.timingAllowFailed){ae.timingAllowPassed=true}if(ae.type==="opaque"&<.status===206&<.rangeRequested&&!re.headers.contains("range")){ae=lt=Ue()}if(ae.status!==0&&(re.method==="HEAD"||re.method==="CONNECT"||gn.includes(lt.status))){lt.body=null;C.controller.dump=true}if(re.integrity){const processBodyError=q=>fetchFinale(C,Ue(q));if(re.responseTainting==="opaque"||ae.body==null){processBodyError(ae.error);return}const processBody=q=>{if(!kr(q,re.integrity)){processBodyError("integrity mismatch");return}ae.body=fn(q)[0];fetchFinale(C,ae)};await en(ae.body,processBody,processBodyError)}else{fetchFinale(C,ae)}}function schemeFetch(C){if(Yr(C)&&C.request.redirectCount===0){return Promise.resolve(lt(C))}const{request:q}=C;const{protocol:ae}=Ur(q);switch(ae){case"about:":{return Promise.resolve(Ue("about scheme is not supported"))}case"blob:":{if(!xn){xn=re(20181).resolveObjectURL}const C=Ur(q);if(C.search.length!==0){return Promise.resolve(Ue("NetworkError when attempting to fetch resource."))}const ae=xn(C.toString());if(q.method!=="GET"||!zr(ae)){return Promise.resolve(Ue("invalid method"))}const lt=fn(ae);const Pt=lt[0];const Ar=rn(`${Pt.length}`);const Er=lt[1]??"";const Ir=Wt({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:Ar}],["content-type",{name:"Content-Type",value:Er}]]});Ir.body=Pt;return Promise.resolve(Ir)}case"data:":{const C=Ur(q);const re=kn(C);if(re==="failure"){return Promise.resolve(Ue("failed to fetch the data URL"))}const ae=Rn(re.mimeType);return Promise.resolve(Wt({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:ae}]],body:fn(re.body)[0]}))}case"file:":{return Promise.resolve(Ue("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(C).catch((C=>Ue(C)))}default:{return Promise.resolve(Ue("unknown scheme"))}}}function finalizeResponse(C,q){C.request.done=true;if(C.processResponseDone!=null){queueMicrotask((()=>C.processResponseDone(q)))}}function fetchFinale(C,q){if(q.type==="error"){q.urlList=[C.request.urlList[0]];q.timingInfo=jr({startTime:C.timingInfo.startTime})}const processResponseEndOfBody=()=>{C.request.done=true;if(C.processResponseEndOfBody!=null){queueMicrotask((()=>C.processResponseEndOfBody(q)))}};if(C.processResponse!=null){queueMicrotask((()=>C.processResponse(q)))}if(q.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(C,q)=>{q.enqueue(C)};const C=new Pn({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});q.body={stream:q.body.stream.pipeThrough(C)}}if(C.processResponseConsumeBody!=null){const processBody=re=>C.processResponseConsumeBody(q,re);const processBodyError=re=>C.processResponseConsumeBody(q,re);if(q.body==null){queueMicrotask((()=>processBody(null)))}else{return en(q.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(C){const q=C.request;let re=null;let ae=null;const lt=C.timingInfo;if(q.serviceWorkers==="all"){}if(re===null){if(q.redirect==="follow"){q.serviceWorkers="none"}ae=re=await httpNetworkOrCacheFetch(C);if(q.responseTainting==="cors"&&Vr(q,re)==="failure"){return Ue("cors failure")}if(Dr(q,re)==="failure"){q.timingAllowFailed=true}}if((q.responseTainting==="opaque"||re.type==="opaque")&&Hr(q.origin,q.client,q.destination,ae)==="blocked"){return Ue("blocked")}if(hn.has(ae.status)){if(q.redirect!=="manual"){C.controller.connection.destroy()}if(q.redirect==="error"){re=Ue("unexpected redirect")}else if(q.redirect==="manual"){re=ae}else if(q.redirect==="follow"){re=await httpRedirectFetch(C,re)}else{pn(false)}}re.timingInfo=lt;return re}function httpRedirectFetch(C,q){const re=C.request;const ae=q.internalResponse?q.internalResponse:q;let lt;try{lt=Mr(ae,Ur(re).hash);if(lt==null){return q}}catch(C){return Promise.resolve(Ue(C))}if(!sn(lt)){return Promise.resolve(Ue("URL scheme must be a HTTP(S) scheme"))}if(re.redirectCount===20){return Promise.resolve(Ue("redirect count exceeded"))}re.redirectCount+=1;if(re.mode==="cors"&&(lt.username||lt.password)&&!Jr(re,lt)){return Promise.resolve(Ue('cross origin not allowed for request mode "cors"'))}if(re.responseTainting==="cors"&&(lt.username||lt.password)){return Promise.resolve(Ue('URL cannot contain credentials for request mode "cors"'))}if(ae.status!==303&&re.body!=null&&re.body.source==null){return Promise.resolve(Ue())}if([301,302].includes(ae.status)&&re.method==="POST"||ae.status===303&&!Dn.includes(re.method)){re.method="GET";re.body=null;for(const C of mn){re.headersList.delete(C)}}if(!Jr(Ur(re),lt)){re.headersList.delete("authorization");re.headersList.delete("proxy-authorization",true);re.headersList.delete("cookie");re.headersList.delete("host")}if(re.body!=null){pn(re.body.source!=null);re.body=fn(re.body.source)[0]}const Pt=C.timingInfo;Pt.redirectEndTime=Pt.postRedirectStartTime=$r(C.crossOriginIsolatedCapability);if(Pt.redirectStartTime===0){Pt.redirectStartTime=Pt.startTime}re.urlList.push(lt);Nr(re,ae);return mainFetch(C,true)}async function httpNetworkOrCacheFetch(C,q=false,re=false){const ae=C.request;let Pt=null;let Wt=null;let Ar=null;const Er=null;const Br=false;if(ae.window==="no-window"&&ae.redirect==="error"){Pt=C;Wt=ae}else{Wt=Ir(ae);Pt={...C};Pt.request=Wt}const kr=ae.credentials==="include"||ae.credentials==="same-origin"&&ae.responseTainting==="basic";const Pr=Wt.body?Wt.body.length:null;let Qr=null;if(Wt.body==null&&["POST","PUT"].includes(Wt.method)){Qr="0"}if(Pr!=null){Qr=rn(`${Pr}`)}if(Qr!=null){Wt.headersList.append("content-length",Qr)}if(Pr!=null&&Wt.keepalive){}if(Wt.referrer instanceof URL){Wt.headersList.append("referer",rn(Wt.referrer.href))}xr(Wt);Gr(Wt);if(!Wt.headersList.contains("user-agent")){Wt.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(Wt.cache==="default"&&(Wt.headersList.contains("if-modified-since")||Wt.headersList.contains("if-none-match")||Wt.headersList.contains("if-unmodified-since")||Wt.headersList.contains("if-match")||Wt.headersList.contains("if-range"))){Wt.cache="no-store"}if(Wt.cache==="no-cache"&&!Wt.preventNoCacheCacheControlHeaderModification&&!Wt.headersList.contains("cache-control")){Wt.headersList.append("cache-control","max-age=0")}if(Wt.cache==="no-store"||Wt.cache==="reload"){if(!Wt.headersList.contains("pragma")){Wt.headersList.append("pragma","no-cache")}if(!Wt.headersList.contains("cache-control")){Wt.headersList.append("cache-control","no-cache")}}if(Wt.headersList.contains("range")){Wt.headersList.append("accept-encoding","identity")}if(!Wt.headersList.contains("accept-encoding")){if(an(Ur(Wt))){Wt.headersList.append("accept-encoding","br, gzip, deflate")}else{Wt.headersList.append("accept-encoding","gzip, deflate")}}Wt.headersList.delete("host");if(kr){}if(Er==null){Wt.cache="no-store"}if(Wt.mode!=="no-store"&&Wt.mode!=="reload"){}if(Ar==null){if(Wt.mode==="only-if-cached"){return Ue("only if cached")}const C=await httpNetworkFetch(Pt,kr,re);if(!An.has(Wt.method)&&C.status>=200&&C.status<=399){}if(Br&&C.status===304){}if(Ar==null){Ar=C}}Ar.urlList=[...Wt.urlList];if(Wt.headersList.contains("range")){Ar.rangeRequested=true}Ar.requestIncludesCredentials=kr;if(Ar.status===407){if(ae.window==="no-window"){return Ue()}if(Yr(C)){return lt(C)}return Ue("proxy authentication required")}if(Ar.status===421&&!re&&(ae.body==null||ae.body.source!=null)){if(Yr(C)){return lt(C)}C.controller.connection.destroy();Ar=await httpNetworkOrCacheFetch(C,q,true)}if(q){}return Ar}async function httpNetworkFetch(C,q=false,ae=false){pn(!C.controller.connection||C.controller.connection.destroyed);C.controller.connection={abort:null,destroyed:false,destroy(C){if(!this.destroyed){this.destroyed=true;this.abort?.(C??new yn("The operation was aborted.","AbortError"))}}};const Pt=C.request;let Er=null;const Ir=C.timingInfo;const kr=null;if(kr==null){Pt.cache="no-store"}const Pr=ae?"yes":"no";if(Pt.mode==="websocket"){}else{}let Qr=null;if(Pt.body==null&&C.processRequestEndOfBody){queueMicrotask((()=>C.processRequestEndOfBody()))}else if(Pt.body!=null){const processBodyChunk=async function*(q){if(Yr(C)){return}yield q;C.processRequestBodyChunkLength?.(q.byteLength)};const processEndOfBody=()=>{if(Yr(C)){return}if(C.processRequestEndOfBody){C.processRequestEndOfBody()}};const processBodyError=q=>{if(Yr(C)){return}if(q.name==="AbortError"){C.controller.abort()}else{C.controller.terminate(q)}};Qr=async function*(){try{for await(const C of Pt.body.stream){yield*processBodyChunk(C)}processEndOfBody()}catch(C){processBodyError(C)}}()}try{const{body:q,status:re,statusText:ae,headersList:Ue,socket:lt}=await dispatch({body:Qr});if(lt){Er=Wt({status:re,statusText:ae,headersList:Ue,socket:lt})}else{const lt=q[Symbol.asyncIterator]();C.controller.next=()=>lt.next();Er=Wt({status:re,statusText:ae,headersList:Ue})}}catch(q){if(q.name==="AbortError"){C.controller.connection.destroy();return lt(C,q)}return Ue(q)}const pullAlgorithm=()=>{C.controller.resume()};const cancelAlgorithm=q=>{C.controller.abort(q)};if(!Mn){Mn=re(63774).ReadableStream}const Fr=new Mn({async start(q){C.controller.controller=q},async pull(C){await pullAlgorithm(C)},async cancel(C){await cancelAlgorithm(C)}},{highWaterMark:0,size(){return 1}});Er.body={stream:Fr};C.controller.on("terminated",onAborted);C.controller.resume=async()=>{while(true){let q;let re;try{const{done:re,value:ae}=await C.controller.next();if(Xr(C)){break}q=re?undefined:ae}catch(ae){if(C.controller.ended&&!Ir.encodedBodySize){q=undefined}else{q=ae;re=true}}if(q===undefined){tn(C.controller.controller);finalizeResponse(C,Er);return}Ir.decodedBodySize+=q?.byteLength??0;if(re){C.controller.terminate(q);return}C.controller.controller.enqueue(new Uint8Array(q));if(Cn(Fr)){C.controller.terminate();return}if(!C.controller.controller.desiredSize){return}}};function onAborted(q){if(Xr(C)){Er.aborted=true;if(Sn(Fr)){C.controller.controller.error(C.controller.serializedAbortReason)}}else{if(Sn(Fr)){C.controller.controller.error(new TypeError("terminated",{cause:Zr(q)?q:undefined}))}}C.controller.connection.destroy()}return Er;async function dispatch({body:q}){const re=Ur(Pt);const ae=C.controller.dispatcher;return new Promise(((Ue,lt)=>ae.dispatch({path:re.pathname+re.search,origin:re.origin,method:Pt.method,body:C.controller.dispatcher.isMockActive?Pt.body&&(Pt.body.source||Pt.body.stream):q,headers:Pt.headersList.entries,maxRedirections:0,upgrade:Pt.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(q){const{connection:re}=C.controller;if(re.destroyed){q(new yn("The operation was aborted.","AbortError"))}else{C.controller.on("terminated",q);this.abort=re.abort=q}},onHeaders(C,q,re,ae){if(C<200){return}let lt=[];let Wt="";const Er=new Ar;if(Array.isArray(q)){for(let C=0;CC.trim()))}else if(re.toLowerCase()==="location"){Wt=ae}Er[bn].append(re,ae)}}else{const C=Object.keys(q);for(const re of C){const C=q[re];if(re.toLowerCase()==="content-encoding"){lt=C.toLowerCase().split(",").map((C=>C.trim())).reverse()}else if(re.toLowerCase()==="location"){Wt=C}Er[bn].append(re,C)}}this.body=new vn({read:re});const Ir=[];const kr=Pt.redirect==="follow"&&Wt&&hn.has(C);if(Pt.method!=="HEAD"&&Pt.method!=="CONNECT"&&!gn.includes(C)&&!kr){for(const C of lt){if(C==="x-gzip"||C==="gzip"){Ir.push(Br.createGunzip({flush:Br.constants.Z_SYNC_FLUSH,finishFlush:Br.constants.Z_SYNC_FLUSH}))}else if(C==="deflate"){Ir.push(Br.createInflate())}else if(C==="br"){Ir.push(Br.createBrotliDecompress())}else{Ir.length=0;break}}}Ue({status:C,statusText:ae,headersList:Er[bn],body:Ir.length?In(this.body,...Ir,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(q){if(C.controller.dump){return}const re=q;Ir.encodedBodySize+=re.byteLength;return this.body.push(re)},onComplete(){if(this.abort){C.controller.off("terminated",this.abort)}C.controller.ended=true;this.body.push(null)},onError(q){if(this.abort){C.controller.off("terminated",this.abort)}this.body?.destroy(q);C.controller.terminate(q);lt(q)},onUpgrade(C,q,re){if(C!==101){return}const ae=new Ar;for(let C=0;C{const{extractBody:ae,mixinBody:Ue,cloneBody:lt}=re(8923);const{Headers:Pt,fill:Wt,HeadersList:Ar}=re(26349);const{FinalizationRegistry:Er}=re(13194)();const Ir=re(3440);const{isValidHTTPToken:Br,sameOrigin:kr,normalizeMethod:Pr,makePolicyContainer:Qr,normalizeMethodRecord:Fr}=re(15523);const{forbiddenMethodsSet:Dr,corsSafeListedMethodsSet:xr,referrerPolicy:Mr,requestRedirect:Ur,requestMode:Nr,requestCredentials:Lr,requestCache:jr,requestDuplex:Gr}=re(87326);const{kEnumerableProperty:Vr}=Ir;const{kHeaders:Hr,kSignal:Wr,kState:$r,kGuard:Kr,kRealm:zr}=re(89710);const{webidl:Jr}=re(74222);const{getGlobalOrigin:Yr}=re(75628);const{URLSerializer:Xr}=re(94322);const{kHeadersList:Zr,kConstruct:en}=re(36443);const tn=re(42613);const{getMaxListeners:rn,setMaxListeners:nn,getEventListeners:sn,defaultMaxListeners:an}=re(24434);let cn=globalThis.TransformStream;const ln=Symbol("abortController");const un=new Er((({signal:C,abort:q})=>{C.removeEventListener("abort",q)}));class Request{constructor(C,q={}){if(C===en){return}Jr.argumentLengthCheck(arguments,1,{header:"Request constructor"});C=Jr.converters.RequestInfo(C);q=Jr.converters.RequestInit(q);this[zr]={settingsObject:{baseUrl:Yr(),get origin(){return this.baseUrl?.origin},policyContainer:Qr()}};let Ue=null;let lt=null;const Er=this[zr].settingsObject.baseUrl;let Mr=null;if(typeof C==="string"){let q;try{q=new URL(C,Er)}catch(q){throw new TypeError("Failed to parse URL from "+C,{cause:q})}if(q.username||q.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+C)}Ue=makeRequest({urlList:[q]});lt="cors"}else{tn(C instanceof Request);Ue=C[$r];Mr=C[Wr]}const Ur=this[zr].settingsObject.origin;let Nr="client";if(Ue.window?.constructor?.name==="EnvironmentSettingsObject"&&kr(Ue.window,Ur)){Nr=Ue.window}if(q.window!=null){throw new TypeError(`'window' option '${Nr}' must be null`)}if("window"in q){Nr="no-window"}Ue=makeRequest({method:Ue.method,headersList:Ue.headersList,unsafeRequest:Ue.unsafeRequest,client:this[zr].settingsObject,window:Nr,priority:Ue.priority,origin:Ue.origin,referrer:Ue.referrer,referrerPolicy:Ue.referrerPolicy,mode:Ue.mode,credentials:Ue.credentials,cache:Ue.cache,redirect:Ue.redirect,integrity:Ue.integrity,keepalive:Ue.keepalive,reloadNavigation:Ue.reloadNavigation,historyNavigation:Ue.historyNavigation,urlList:[...Ue.urlList]});const Lr=Object.keys(q).length!==0;if(Lr){if(Ue.mode==="navigate"){Ue.mode="same-origin"}Ue.reloadNavigation=false;Ue.historyNavigation=false;Ue.origin="client";Ue.referrer="client";Ue.referrerPolicy="";Ue.url=Ue.urlList[Ue.urlList.length-1];Ue.urlList=[Ue.url]}if(q.referrer!==undefined){const C=q.referrer;if(C===""){Ue.referrer="no-referrer"}else{let q;try{q=new URL(C,Er)}catch(q){throw new TypeError(`Referrer "${C}" is not a valid URL.`,{cause:q})}if(q.protocol==="about:"&&q.hostname==="client"||Ur&&!kr(q,this[zr].settingsObject.baseUrl)){Ue.referrer="client"}else{Ue.referrer=q}}}if(q.referrerPolicy!==undefined){Ue.referrerPolicy=q.referrerPolicy}let jr;if(q.mode!==undefined){jr=q.mode}else{jr=lt}if(jr==="navigate"){throw Jr.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(jr!=null){Ue.mode=jr}if(q.credentials!==undefined){Ue.credentials=q.credentials}if(q.cache!==undefined){Ue.cache=q.cache}if(Ue.cache==="only-if-cached"&&Ue.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(q.redirect!==undefined){Ue.redirect=q.redirect}if(q.integrity!=null){Ue.integrity=String(q.integrity)}if(q.keepalive!==undefined){Ue.keepalive=Boolean(q.keepalive)}if(q.method!==undefined){let C=q.method;if(!Br(C)){throw new TypeError(`'${C}' is not a valid HTTP method.`)}if(Dr.has(C.toUpperCase())){throw new TypeError(`'${C}' HTTP method is unsupported.`)}C=Fr[C]??Pr(C);Ue.method=C}if(q.signal!==undefined){Mr=q.signal}this[$r]=Ue;const Gr=new AbortController;this[Wr]=Gr.signal;this[Wr][zr]=this[zr];if(Mr!=null){if(!Mr||typeof Mr.aborted!=="boolean"||typeof Mr.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(Mr.aborted){Gr.abort(Mr.reason)}else{this[ln]=Gr;const C=new WeakRef(Gr);const abort=function(){const q=C.deref();if(q!==undefined){q.abort(this.reason)}};try{if(typeof rn==="function"&&rn(Mr)===an){nn(100,Mr)}else if(sn(Mr,"abort").length>=an){nn(100,Mr)}}catch{}Ir.addAbortListener(Mr,abort);un.register(Gr,{signal:Mr,abort:abort})}}this[Hr]=new Pt(en);this[Hr][Zr]=Ue.headersList;this[Hr][Kr]="request";this[Hr][zr]=this[zr];if(jr==="no-cors"){if(!xr.has(Ue.method)){throw new TypeError(`'${Ue.method} is unsupported in no-cors mode.`)}this[Hr][Kr]="request-no-cors"}if(Lr){const C=this[Hr][Zr];const re=q.headers!==undefined?q.headers:new Ar(C);C.clear();if(re instanceof Ar){for(const[q,ae]of re){C.append(q,ae)}C.cookies=re.cookies}else{Wt(this[Hr],re)}}const Vr=C instanceof Request?C[$r].body:null;if((q.body!=null||Vr!=null)&&(Ue.method==="GET"||Ue.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let Xr=null;if(q.body!=null){const[C,re]=ae(q.body,Ue.keepalive);Xr=C;if(re&&!this[Hr][Zr].contains("content-type")){this[Hr].append("content-type",re)}}const dn=Xr??Vr;if(dn!=null&&dn.source==null){if(Xr!=null&&q.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(Ue.mode!=="same-origin"&&Ue.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}Ue.useCORSPreflightFlag=true}let pn=dn;if(Xr==null&&Vr!=null){if(Ir.isDisturbed(Vr.stream)||Vr.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!cn){cn=re(63774).TransformStream}const C=new cn;Vr.stream.pipeThrough(C);pn={source:Vr.source,length:Vr.length,stream:C.readable}}this[$r].body=pn}get method(){Jr.brandCheck(this,Request);return this[$r].method}get url(){Jr.brandCheck(this,Request);return Xr(this[$r].url)}get headers(){Jr.brandCheck(this,Request);return this[Hr]}get destination(){Jr.brandCheck(this,Request);return this[$r].destination}get referrer(){Jr.brandCheck(this,Request);if(this[$r].referrer==="no-referrer"){return""}if(this[$r].referrer==="client"){return"about:client"}return this[$r].referrer.toString()}get referrerPolicy(){Jr.brandCheck(this,Request);return this[$r].referrerPolicy}get mode(){Jr.brandCheck(this,Request);return this[$r].mode}get credentials(){return this[$r].credentials}get cache(){Jr.brandCheck(this,Request);return this[$r].cache}get redirect(){Jr.brandCheck(this,Request);return this[$r].redirect}get integrity(){Jr.brandCheck(this,Request);return this[$r].integrity}get keepalive(){Jr.brandCheck(this,Request);return this[$r].keepalive}get isReloadNavigation(){Jr.brandCheck(this,Request);return this[$r].reloadNavigation}get isHistoryNavigation(){Jr.brandCheck(this,Request);return this[$r].historyNavigation}get signal(){Jr.brandCheck(this,Request);return this[Wr]}get body(){Jr.brandCheck(this,Request);return this[$r].body?this[$r].body.stream:null}get bodyUsed(){Jr.brandCheck(this,Request);return!!this[$r].body&&Ir.isDisturbed(this[$r].body.stream)}get duplex(){Jr.brandCheck(this,Request);return"half"}clone(){Jr.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const C=cloneRequest(this[$r]);const q=new Request(en);q[$r]=C;q[zr]=this[zr];q[Hr]=new Pt(en);q[Hr][Zr]=C.headersList;q[Hr][Kr]=this[Hr][Kr];q[Hr][zr]=this[Hr][zr];const re=new AbortController;if(this.signal.aborted){re.abort(this.signal.reason)}else{Ir.addAbortListener(this.signal,(()=>{re.abort(this.signal.reason)}))}q[Wr]=re.signal;return q}}Ue(Request);function makeRequest(C){const q={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,...C,headersList:C.headersList?new Ar(C.headersList):new Ar};q.url=q.urlList[0];return q}function cloneRequest(C){const q=makeRequest({...C,body:null});if(C.body!=null){q.body=lt(C.body)}return q}Object.defineProperties(Request.prototype,{method:Vr,url:Vr,headers:Vr,redirect:Vr,clone:Vr,signal:Vr,duplex:Vr,destination:Vr,body:Vr,bodyUsed:Vr,isHistoryNavigation:Vr,isReloadNavigation:Vr,keepalive:Vr,integrity:Vr,cache:Vr,credentials:Vr,attribute:Vr,referrerPolicy:Vr,referrer:Vr,mode:Vr,[Symbol.toStringTag]:{value:"Request",configurable:true}});Jr.converters.Request=Jr.interfaceConverter(Request);Jr.converters.RequestInfo=function(C){if(typeof C==="string"){return Jr.converters.USVString(C)}if(C instanceof Request){return Jr.converters.Request(C)}return Jr.converters.USVString(C)};Jr.converters.AbortSignal=Jr.interfaceConverter(AbortSignal);Jr.converters.RequestInit=Jr.dictionaryConverter([{key:"method",converter:Jr.converters.ByteString},{key:"headers",converter:Jr.converters.HeadersInit},{key:"body",converter:Jr.nullableConverter(Jr.converters.BodyInit)},{key:"referrer",converter:Jr.converters.USVString},{key:"referrerPolicy",converter:Jr.converters.DOMString,allowedValues:Mr},{key:"mode",converter:Jr.converters.DOMString,allowedValues:Nr},{key:"credentials",converter:Jr.converters.DOMString,allowedValues:Lr},{key:"cache",converter:Jr.converters.DOMString,allowedValues:jr},{key:"redirect",converter:Jr.converters.DOMString,allowedValues:Ur},{key:"integrity",converter:Jr.converters.DOMString},{key:"keepalive",converter:Jr.converters.boolean},{key:"signal",converter:Jr.nullableConverter((C=>Jr.converters.AbortSignal(C,{strict:false})))},{key:"window",converter:Jr.converters.any},{key:"duplex",converter:Jr.converters.DOMString,allowedValues:Gr}]);C.exports={Request:Request,makeRequest:makeRequest}},48676:(C,q,re)=>{const{Headers:ae,HeadersList:Ue,fill:lt}=re(26349);const{extractBody:Pt,cloneBody:Wt,mixinBody:Ar}=re(8923);const Er=re(3440);const{kEnumerableProperty:Ir}=Er;const{isValidReasonPhrase:Br,isCancelled:kr,isAborted:Pr,isBlobLike:Qr,serializeJavascriptValueToJSONString:Fr,isErrorLike:Dr,isomorphicEncode:xr}=re(15523);const{redirectStatusSet:Mr,nullBodyStatus:Ur,DOMException:Nr}=re(87326);const{kState:Lr,kHeaders:jr,kGuard:Gr,kRealm:Vr}=re(89710);const{webidl:Hr}=re(74222);const{FormData:Wr}=re(43073);const{getGlobalOrigin:$r}=re(75628);const{URLSerializer:Kr}=re(94322);const{kHeadersList:zr,kConstruct:Jr}=re(36443);const Yr=re(42613);const{types:Xr}=re(39023);const Zr=globalThis.ReadableStream||re(63774).ReadableStream;const en=new TextEncoder("utf-8");class Response{static error(){const C={settingsObject:{}};const q=new Response;q[Lr]=makeNetworkError();q[Vr]=C;q[jr][zr]=q[Lr].headersList;q[jr][Gr]="immutable";q[jr][Vr]=C;return q}static json(C,q={}){Hr.argumentLengthCheck(arguments,1,{header:"Response.json"});if(q!==null){q=Hr.converters.ResponseInit(q)}const re=en.encode(Fr(C));const ae=Pt(re);const Ue={settingsObject:{}};const lt=new Response;lt[Vr]=Ue;lt[jr][Gr]="response";lt[jr][Vr]=Ue;initializeResponse(lt,q,{body:ae[0],type:"application/json"});return lt}static redirect(C,q=302){const re={settingsObject:{}};Hr.argumentLengthCheck(arguments,1,{header:"Response.redirect"});C=Hr.converters.USVString(C);q=Hr.converters["unsigned short"](q);let ae;try{ae=new URL(C,$r())}catch(q){throw Object.assign(new TypeError("Failed to parse URL from "+C),{cause:q})}if(!Mr.has(q)){throw new RangeError("Invalid status code "+q)}const Ue=new Response;Ue[Vr]=re;Ue[jr][Gr]="immutable";Ue[jr][Vr]=re;Ue[Lr].status=q;const lt=xr(Kr(ae));Ue[Lr].headersList.append("location",lt);return Ue}constructor(C=null,q={}){if(C!==null){C=Hr.converters.BodyInit(C)}q=Hr.converters.ResponseInit(q);this[Vr]={settingsObject:{}};this[Lr]=makeResponse({});this[jr]=new ae(Jr);this[jr][Gr]="response";this[jr][zr]=this[Lr].headersList;this[jr][Vr]=this[Vr];let re=null;if(C!=null){const[q,ae]=Pt(C);re={body:q,type:ae}}initializeResponse(this,q,re)}get type(){Hr.brandCheck(this,Response);return this[Lr].type}get url(){Hr.brandCheck(this,Response);const C=this[Lr].urlList;const q=C[C.length-1]??null;if(q===null){return""}return Kr(q,true)}get redirected(){Hr.brandCheck(this,Response);return this[Lr].urlList.length>1}get status(){Hr.brandCheck(this,Response);return this[Lr].status}get ok(){Hr.brandCheck(this,Response);return this[Lr].status>=200&&this[Lr].status<=299}get statusText(){Hr.brandCheck(this,Response);return this[Lr].statusText}get headers(){Hr.brandCheck(this,Response);return this[jr]}get body(){Hr.brandCheck(this,Response);return this[Lr].body?this[Lr].body.stream:null}get bodyUsed(){Hr.brandCheck(this,Response);return!!this[Lr].body&&Er.isDisturbed(this[Lr].body.stream)}clone(){Hr.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw Hr.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const C=cloneResponse(this[Lr]);const q=new Response;q[Lr]=C;q[Vr]=this[Vr];q[jr][zr]=C.headersList;q[jr][Gr]=this[jr][Gr];q[jr][Vr]=this[jr][Vr];return q}}Ar(Response);Object.defineProperties(Response.prototype,{type:Ir,url:Ir,status:Ir,ok:Ir,redirected:Ir,statusText:Ir,headers:Ir,clone:Ir,body:Ir,bodyUsed:Ir,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:Ir,redirect:Ir,error:Ir});function cloneResponse(C){if(C.internalResponse){return filterResponse(cloneResponse(C.internalResponse),C.type)}const q=makeResponse({...C,body:null});if(C.body!=null){q.body=Wt(C.body)}return q}function makeResponse(C){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...C,headersList:C.headersList?new Ue(C.headersList):new Ue,urlList:C.urlList?[...C.urlList]:[]}}function makeNetworkError(C){const q=Dr(C);return makeResponse({type:"error",status:0,error:q?C:new Error(C?String(C):C),aborted:C&&C.name==="AbortError"})}function makeFilteredResponse(C,q){q={internalResponse:C,...q};return new Proxy(C,{get(C,re){return re in q?q[re]:C[re]},set(C,re,ae){Yr(!(re in q));C[re]=ae;return true}})}function filterResponse(C,q){if(q==="basic"){return makeFilteredResponse(C,{type:"basic",headersList:C.headersList})}else if(q==="cors"){return makeFilteredResponse(C,{type:"cors",headersList:C.headersList})}else if(q==="opaque"){return makeFilteredResponse(C,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(q==="opaqueredirect"){return makeFilteredResponse(C,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{Yr(false)}}function makeAppropriateNetworkError(C,q=null){Yr(kr(C));return Pr(C)?makeNetworkError(Object.assign(new Nr("The operation was aborted.","AbortError"),{cause:q})):makeNetworkError(Object.assign(new Nr("Request was cancelled."),{cause:q}))}function initializeResponse(C,q,re){if(q.status!==null&&(q.status<200||q.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in q&&q.statusText!=null){if(!Br(String(q.statusText))){throw new TypeError("Invalid statusText")}}if("status"in q&&q.status!=null){C[Lr].status=q.status}if("statusText"in q&&q.statusText!=null){C[Lr].statusText=q.statusText}if("headers"in q&&q.headers!=null){lt(C[jr],q.headers)}if(re){if(Ur.includes(C.status)){throw Hr.errors.exception({header:"Response constructor",message:"Invalid response status code "+C.status})}C[Lr].body=re.body;if(re.type!=null&&!C[Lr].headersList.contains("Content-Type")){C[Lr].headersList.append("content-type",re.type)}}}Hr.converters.ReadableStream=Hr.interfaceConverter(Zr);Hr.converters.FormData=Hr.interfaceConverter(Wr);Hr.converters.URLSearchParams=Hr.interfaceConverter(URLSearchParams);Hr.converters.XMLHttpRequestBodyInit=function(C){if(typeof C==="string"){return Hr.converters.USVString(C)}if(Qr(C)){return Hr.converters.Blob(C,{strict:false})}if(Xr.isArrayBuffer(C)||Xr.isTypedArray(C)||Xr.isDataView(C)){return Hr.converters.BufferSource(C)}if(Er.isFormDataLike(C)){return Hr.converters.FormData(C,{strict:false})}if(C instanceof URLSearchParams){return Hr.converters.URLSearchParams(C)}return Hr.converters.DOMString(C)};Hr.converters.BodyInit=function(C){if(C instanceof Zr){return Hr.converters.ReadableStream(C)}if(C?.[Symbol.asyncIterator]){return C}return Hr.converters.XMLHttpRequestBodyInit(C)};Hr.converters.ResponseInit=Hr.dictionaryConverter([{key:"status",converter:Hr.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:Hr.converters.ByteString,defaultValue:""},{key:"headers",converter:Hr.converters.HeadersInit}]);C.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:C=>{C.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(C,q,re)=>{const{redirectStatusSet:ae,referrerPolicySet:Ue,badPortsSet:lt}=re(87326);const{getGlobalOrigin:Pt}=re(75628);const{performance:Wt}=re(82987);const{isBlobLike:Ar,toUSVString:Er,ReadableStreamFrom:Ir}=re(3440);const Br=re(42613);const{isUint8Array:kr}=re(98253);let Pr=[];let Qr;try{Qr=re(76982);const C=["sha256","sha384","sha512"];Pr=Qr.getHashes().filter((q=>C.includes(q)))}catch{}function responseURL(C){const q=C.urlList;const re=q.length;return re===0?null:q[re-1].toString()}function responseLocationURL(C,q){if(!ae.has(C.status)){return null}let re=C.headersList.get("location");if(re!==null&&isValidHeaderValue(re)){re=new URL(re,responseURL(C))}if(re&&!re.hash){re.hash=q}return re}function requestCurrentURL(C){return C.urlList[C.urlList.length-1]}function requestBadPort(C){const q=requestCurrentURL(C);if(urlIsHttpHttpsScheme(q)&<.has(q.port)){return"blocked"}return"allowed"}function isErrorLike(C){return C instanceof Error||(C?.constructor?.name==="Error"||C?.constructor?.name==="DOMException")}function isValidReasonPhrase(C){for(let q=0;q=32&&re<=126||re>=128&&re<=255)){return false}}return true}function isTokenCharCode(C){switch(C){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 C>=33&&C<=126}}function isValidHTTPToken(C){if(C.length===0){return false}for(let q=0;q0){for(let C=ae.length;C!==0;C--){const q=ae[C-1].trim();if(Ue.has(q)){lt=q;break}}}if(lt!==""){C.referrerPolicy=lt}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(C){let q=null;q=C.mode;C.headersList.set("sec-fetch-mode",q)}function appendRequestOriginHeader(C){let q=C.origin;if(C.responseTainting==="cors"||C.mode==="websocket"){if(q){C.headersList.append("origin",q)}}else if(C.method!=="GET"&&C.method!=="HEAD"){switch(C.referrerPolicy){case"no-referrer":q=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(C.origin&&urlHasHttpsScheme(C.origin)&&!urlHasHttpsScheme(requestCurrentURL(C))){q=null}break;case"same-origin":if(!sameOrigin(C,requestCurrentURL(C))){q=null}break;default:}if(q){C.headersList.append("origin",q)}}}function coarsenedSharedCurrentTime(C){return Wt.now()}function createOpaqueTimingInfo(C){return{startTime:C.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:C.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(C){return{referrerPolicy:C.referrerPolicy}}function determineRequestsReferrer(C){const q=C.referrerPolicy;Br(q);let re=null;if(C.referrer==="client"){const C=Pt();if(!C||C.origin==="null"){return"no-referrer"}re=new URL(C)}else if(C.referrer instanceof URL){re=C.referrer}let ae=stripURLForReferrer(re);const Ue=stripURLForReferrer(re,true);if(ae.toString().length>4096){ae=Ue}const lt=sameOrigin(C,ae);const Wt=isURLPotentiallyTrustworthy(ae)&&!isURLPotentiallyTrustworthy(C.url);switch(q){case"origin":return Ue!=null?Ue:stripURLForReferrer(re,true);case"unsafe-url":return ae;case"same-origin":return lt?Ue:"no-referrer";case"origin-when-cross-origin":return lt?ae:Ue;case"strict-origin-when-cross-origin":{const q=requestCurrentURL(C);if(sameOrigin(ae,q)){return ae}if(isURLPotentiallyTrustworthy(ae)&&!isURLPotentiallyTrustworthy(q)){return"no-referrer"}return Ue}case"strict-origin":case"no-referrer-when-downgrade":default:return Wt?"no-referrer":Ue}}function stripURLForReferrer(C,q){Br(C instanceof URL);if(C.protocol==="file:"||C.protocol==="about:"||C.protocol==="blank:"){return"no-referrer"}C.username="";C.password="";C.hash="";if(q){C.pathname="";C.search=""}return C}function isURLPotentiallyTrustworthy(C){if(!(C instanceof URL)){return false}if(C.href==="about:blank"||C.href==="about:srcdoc"){return true}if(C.protocol==="data:")return true;if(C.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(C.origin);function isOriginPotentiallyTrustworthy(C){if(C==null||C==="null")return false;const q=new URL(C);if(q.protocol==="https:"||q.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(q.hostname)||(q.hostname==="localhost"||q.hostname.includes("localhost."))||q.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(C,q){if(Qr===undefined){return true}const re=parseMetadata(q);if(re==="no metadata"){return true}if(re.length===0){return true}const ae=getStrongestMetadata(re);const Ue=filterMetadataListByAlgorithm(re,ae);for(const q of Ue){const re=q.algo;const ae=q.hash;let Ue=Qr.createHash(re).update(C).digest("base64");if(Ue[Ue.length-1]==="="){if(Ue[Ue.length-2]==="="){Ue=Ue.slice(0,-2)}else{Ue=Ue.slice(0,-1)}}if(compareBase64Mixed(Ue,ae)){return true}}return false}const Fr=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(C){const q=[];let re=true;for(const ae of C.split(" ")){re=false;const C=Fr.exec(ae);if(C===null||C.groups===undefined||C.groups.algo===undefined){continue}const Ue=C.groups.algo.toLowerCase();if(Pr.includes(Ue)){q.push(C.groups)}}if(re===true){return"no metadata"}return q}function getStrongestMetadata(C){let q=C[0].algo;if(q[3]==="5"){return q}for(let re=1;re{C=re;q=ae}));return{promise:re,resolve:C,reject:q}}function isAborted(C){return C.controller.state==="aborted"}function isCancelled(C){return C.controller.state==="aborted"||C.controller.state==="terminated"}const Dr={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(Dr,null);function normalizeMethod(C){return Dr[C.toLowerCase()]??C}function serializeJavascriptValueToJSONString(C){const q=JSON.stringify(C);if(q===undefined){throw new TypeError("Value is not JSON serializable")}Br(typeof q==="string");return q}const xr=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(C,q,re){const ae={index:0,kind:re,target:C};const Ue={next(){if(Object.getPrototypeOf(this)!==Ue){throw new TypeError(`'next' called on an object that does not implement interface ${q} Iterator.`)}const{index:C,kind:re,target:lt}=ae;const Pt=lt();const Wt=Pt.length;if(C>=Wt){return{value:undefined,done:true}}const Ar=Pt[C];ae.index=C+1;return iteratorResult(Ar,re)},[Symbol.toStringTag]:`${q} Iterator`};Object.setPrototypeOf(Ue,xr);return Object.setPrototypeOf({},Ue)}function iteratorResult(C,q){let re;switch(q){case"key":{re=C[0];break}case"value":{re=C[1];break}case"key+value":{re=C;break}}return{value:re,done:false}}async function fullyReadBody(C,q,re){const ae=q;const Ue=re;let lt;try{lt=C.stream.getReader()}catch(C){Ue(C);return}try{const C=await readAllBytes(lt);ae(C)}catch(C){Ue(C)}}let Mr=globalThis.ReadableStream;function isReadableStreamLike(C){if(!Mr){Mr=re(63774).ReadableStream}return C instanceof Mr||C[Symbol.toStringTag]==="ReadableStream"&&typeof C.tee==="function"}const Ur=65535;function isomorphicDecode(C){if(C.lengthC+String.fromCharCode(q)),"")}function readableStreamClose(C){try{C.close()}catch(C){if(!C.message.includes("Controller is already closed")){throw C}}}function isomorphicEncode(C){for(let q=0;qObject.prototype.hasOwnProperty.call(C,q));C.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:Ir,toUSVString:Er,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:Ar,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:Nr,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:Dr,parseMetadata:parseMetadata}},74222:(C,q,re)=>{const{types:ae}=re(39023);const{hasOwn:Ue,toUSVString:lt}=re(15523);const Pt={};Pt.converters={};Pt.util={};Pt.errors={};Pt.errors.exception=function(C){return new TypeError(`${C.header}: ${C.message}`)};Pt.errors.conversionFailed=function(C){const q=C.types.length===1?"":" one of";const re=`${C.argument} could not be converted to`+`${q}: ${C.types.join(", ")}.`;return Pt.errors.exception({header:C.prefix,message:re})};Pt.errors.invalidArgument=function(C){return Pt.errors.exception({header:C.prefix,message:`"${C.value}" is an invalid ${C.type}.`})};Pt.brandCheck=function(C,q,re=undefined){if(re?.strict!==false&&!(C instanceof q)){throw new TypeError("Illegal invocation")}else{return C?.[Symbol.toStringTag]===q.prototype[Symbol.toStringTag]}};Pt.argumentLengthCheck=function({length:C},q,re){if(CUe){throw Pt.errors.exception({header:"Integer conversion",message:`Value must be between ${lt}-${Ue}, got ${Wt}.`})}return Wt}if(!Number.isNaN(Wt)&&ae.clamp===true){Wt=Math.min(Math.max(Wt,lt),Ue);if(Math.floor(Wt)%2===0){Wt=Math.floor(Wt)}else{Wt=Math.ceil(Wt)}return Wt}if(Number.isNaN(Wt)||Wt===0&&Object.is(0,Wt)||Wt===Number.POSITIVE_INFINITY||Wt===Number.NEGATIVE_INFINITY){return 0}Wt=Pt.util.IntegerPart(Wt);Wt=Wt%Math.pow(2,q);if(re==="signed"&&Wt>=Math.pow(2,q)-1){return Wt-Math.pow(2,q)}return Wt};Pt.util.IntegerPart=function(C){const q=Math.floor(Math.abs(C));if(C<0){return-1*q}return q};Pt.sequenceConverter=function(C){return q=>{if(Pt.util.Type(q)!=="Object"){throw Pt.errors.exception({header:"Sequence",message:`Value of type ${Pt.util.Type(q)} is not an Object.`})}const re=q?.[Symbol.iterator]?.();const ae=[];if(re===undefined||typeof re.next!=="function"){throw Pt.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:q,value:Ue}=re.next();if(q){break}ae.push(C(Ue))}return ae}};Pt.recordConverter=function(C,q){return re=>{if(Pt.util.Type(re)!=="Object"){throw Pt.errors.exception({header:"Record",message:`Value of type ${Pt.util.Type(re)} is not an Object.`})}const Ue={};if(!ae.isProxy(re)){const ae=Object.keys(re);for(const lt of ae){const ae=C(lt);const Pt=q(re[lt]);Ue[ae]=Pt}return Ue}const lt=Reflect.ownKeys(re);for(const ae of lt){const lt=Reflect.getOwnPropertyDescriptor(re,ae);if(lt?.enumerable){const lt=C(ae);const Pt=q(re[ae]);Ue[lt]=Pt}}return Ue}};Pt.interfaceConverter=function(C){return(q,re={})=>{if(re.strict!==false&&!(q instanceof C)){throw Pt.errors.exception({header:C.name,message:`Expected ${q} to be an instance of ${C.name}.`})}return q}};Pt.dictionaryConverter=function(C){return q=>{const re=Pt.util.Type(q);const ae={};if(re==="Null"||re==="Undefined"){return ae}else if(re!=="Object"){throw Pt.errors.exception({header:"Dictionary",message:`Expected ${q} to be one of: Null, Undefined, Object.`})}for(const re of C){const{key:C,defaultValue:lt,required:Wt,converter:Ar}=re;if(Wt===true){if(!Ue(q,C)){throw Pt.errors.exception({header:"Dictionary",message:`Missing required key "${C}".`})}}let Er=q[C];const Ir=Ue(re,"defaultValue");if(Ir&&Er!==null){Er=Er??lt}if(Wt||Ir||Er!==undefined){Er=Ar(Er);if(re.allowedValues&&!re.allowedValues.includes(Er)){throw Pt.errors.exception({header:"Dictionary",message:`${Er} is not an accepted type. Expected one of ${re.allowedValues.join(", ")}.`})}ae[C]=Er}}return ae}};Pt.nullableConverter=function(C){return q=>{if(q===null){return q}return C(q)}};Pt.converters.DOMString=function(C,q={}){if(C===null&&q.legacyNullToEmptyString){return""}if(typeof C==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(C)};Pt.converters.ByteString=function(C){const q=Pt.converters.DOMString(C);for(let C=0;C255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${C} has a value of ${q.charCodeAt(C)} which is greater than 255.`)}}return q};Pt.converters.USVString=lt;Pt.converters.boolean=function(C){const q=Boolean(C);return q};Pt.converters.any=function(C){return C};Pt.converters["long long"]=function(C){const q=Pt.util.ConvertToInt(C,64,"signed");return q};Pt.converters["unsigned long long"]=function(C){const q=Pt.util.ConvertToInt(C,64,"unsigned");return q};Pt.converters["unsigned long"]=function(C){const q=Pt.util.ConvertToInt(C,32,"unsigned");return q};Pt.converters["unsigned short"]=function(C,q){const re=Pt.util.ConvertToInt(C,16,"unsigned",q);return re};Pt.converters.ArrayBuffer=function(C,q={}){if(Pt.util.Type(C)!=="Object"||!ae.isAnyArrayBuffer(C)){throw Pt.errors.conversionFailed({prefix:`${C}`,argument:`${C}`,types:["ArrayBuffer"]})}if(q.allowShared===false&&ae.isSharedArrayBuffer(C)){throw Pt.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return C};Pt.converters.TypedArray=function(C,q,re={}){if(Pt.util.Type(C)!=="Object"||!ae.isTypedArray(C)||C.constructor.name!==q.name){throw Pt.errors.conversionFailed({prefix:`${q.name}`,argument:`${C}`,types:[q.name]})}if(re.allowShared===false&&ae.isSharedArrayBuffer(C.buffer)){throw Pt.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return C};Pt.converters.DataView=function(C,q={}){if(Pt.util.Type(C)!=="Object"||!ae.isDataView(C)){throw Pt.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(q.allowShared===false&&ae.isSharedArrayBuffer(C.buffer)){throw Pt.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return C};Pt.converters.BufferSource=function(C,q={}){if(ae.isAnyArrayBuffer(C)){return Pt.converters.ArrayBuffer(C,q)}if(ae.isTypedArray(C)){return Pt.converters.TypedArray(C,C.constructor)}if(ae.isDataView(C)){return Pt.converters.DataView(C,q)}throw new TypeError(`Could not convert ${C} to a BufferSource.`)};Pt.converters["sequence"]=Pt.sequenceConverter(Pt.converters.ByteString);Pt.converters["sequence>"]=Pt.sequenceConverter(Pt.converters["sequence"]);Pt.converters["record"]=Pt.recordConverter(Pt.converters.ByteString,Pt.converters.ByteString);C.exports={webidl:Pt}},40396:C=>{function getEncoding(C){if(!C){return"failure"}switch(C.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"}}C.exports={getEncoding:getEncoding}},82160:(C,q,re)=>{const{staticPropertyDescriptors:ae,readOperation:Ue,fireAProgressEvent:lt}=re(10165);const{kState:Pt,kError:Wt,kResult:Ar,kEvents:Er,kAborted:Ir}=re(86812);const{webidl:Br}=re(74222);const{kEnumerableProperty:kr}=re(3440);class FileReader extends EventTarget{constructor(){super();this[Pt]="empty";this[Ar]=null;this[Wt]=null;this[Er]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(C){Br.brandCheck(this,FileReader);Br.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});C=Br.converters.Blob(C,{strict:false});Ue(this,C,"ArrayBuffer")}readAsBinaryString(C){Br.brandCheck(this,FileReader);Br.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});C=Br.converters.Blob(C,{strict:false});Ue(this,C,"BinaryString")}readAsText(C,q=undefined){Br.brandCheck(this,FileReader);Br.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});C=Br.converters.Blob(C,{strict:false});if(q!==undefined){q=Br.converters.DOMString(q)}Ue(this,C,"Text",q)}readAsDataURL(C){Br.brandCheck(this,FileReader);Br.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});C=Br.converters.Blob(C,{strict:false});Ue(this,C,"DataURL")}abort(){if(this[Pt]==="empty"||this[Pt]==="done"){this[Ar]=null;return}if(this[Pt]==="loading"){this[Pt]="done";this[Ar]=null}this[Ir]=true;lt("abort",this);if(this[Pt]!=="loading"){lt("loadend",this)}}get readyState(){Br.brandCheck(this,FileReader);switch(this[Pt]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){Br.brandCheck(this,FileReader);return this[Ar]}get error(){Br.brandCheck(this,FileReader);return this[Wt]}get onloadend(){Br.brandCheck(this,FileReader);return this[Er].loadend}set onloadend(C){Br.brandCheck(this,FileReader);if(this[Er].loadend){this.removeEventListener("loadend",this[Er].loadend)}if(typeof C==="function"){this[Er].loadend=C;this.addEventListener("loadend",C)}else{this[Er].loadend=null}}get onerror(){Br.brandCheck(this,FileReader);return this[Er].error}set onerror(C){Br.brandCheck(this,FileReader);if(this[Er].error){this.removeEventListener("error",this[Er].error)}if(typeof C==="function"){this[Er].error=C;this.addEventListener("error",C)}else{this[Er].error=null}}get onloadstart(){Br.brandCheck(this,FileReader);return this[Er].loadstart}set onloadstart(C){Br.brandCheck(this,FileReader);if(this[Er].loadstart){this.removeEventListener("loadstart",this[Er].loadstart)}if(typeof C==="function"){this[Er].loadstart=C;this.addEventListener("loadstart",C)}else{this[Er].loadstart=null}}get onprogress(){Br.brandCheck(this,FileReader);return this[Er].progress}set onprogress(C){Br.brandCheck(this,FileReader);if(this[Er].progress){this.removeEventListener("progress",this[Er].progress)}if(typeof C==="function"){this[Er].progress=C;this.addEventListener("progress",C)}else{this[Er].progress=null}}get onload(){Br.brandCheck(this,FileReader);return this[Er].load}set onload(C){Br.brandCheck(this,FileReader);if(this[Er].load){this.removeEventListener("load",this[Er].load)}if(typeof C==="function"){this[Er].load=C;this.addEventListener("load",C)}else{this[Er].load=null}}get onabort(){Br.brandCheck(this,FileReader);return this[Er].abort}set onabort(C){Br.brandCheck(this,FileReader);if(this[Er].abort){this.removeEventListener("abort",this[Er].abort)}if(typeof C==="function"){this[Er].abort=C;this.addEventListener("abort",C)}else{this[Er].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:ae,LOADING:ae,DONE:ae,readAsArrayBuffer:kr,readAsBinaryString:kr,readAsText:kr,readAsDataURL:kr,abort:kr,readyState:kr,result:kr,error:kr,onloadstart:kr,onprogress:kr,onload:kr,onabort:kr,onerror:kr,onloadend:kr,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:ae,LOADING:ae,DONE:ae});C.exports={FileReader:FileReader}},15976:(C,q,re)=>{const{webidl:ae}=re(74222);const Ue=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(C,q={}){C=ae.converters.DOMString(C);q=ae.converters.ProgressEventInit(q??{});super(C,q);this[Ue]={lengthComputable:q.lengthComputable,loaded:q.loaded,total:q.total}}get lengthComputable(){ae.brandCheck(this,ProgressEvent);return this[Ue].lengthComputable}get loaded(){ae.brandCheck(this,ProgressEvent);return this[Ue].loaded}get total(){ae.brandCheck(this,ProgressEvent);return this[Ue].total}}ae.converters.ProgressEventInit=ae.dictionaryConverter([{key:"lengthComputable",converter:ae.converters.boolean,defaultValue:false},{key:"loaded",converter:ae.converters["unsigned long long"],defaultValue:0},{key:"total",converter:ae.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:ae.converters.boolean,defaultValue:false},{key:"cancelable",converter:ae.converters.boolean,defaultValue:false},{key:"composed",converter:ae.converters.boolean,defaultValue:false}]);C.exports={ProgressEvent:ProgressEvent}},86812:C=>{C.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:(C,q,re)=>{const{kState:ae,kError:Ue,kResult:lt,kAborted:Pt,kLastProgressEventFired:Wt}=re(86812);const{ProgressEvent:Ar}=re(15976);const{getEncoding:Er}=re(40396);const{DOMException:Ir}=re(87326);const{serializeAMimeType:Br,parseMIMEType:kr}=re(94322);const{types:Pr}=re(39023);const{StringDecoder:Qr}=re(13193);const{btoa:Fr}=re(20181);const Dr={enumerable:true,writable:false,configurable:false};function readOperation(C,q,re,Ar){if(C[ae]==="loading"){throw new Ir("Invalid state","InvalidStateError")}C[ae]="loading";C[lt]=null;C[Ue]=null;const Er=q.stream();const Br=Er.getReader();const kr=[];let Qr=Br.read();let Fr=true;(async()=>{while(!C[Pt]){try{const{done:Er,value:Ir}=await Qr;if(Fr&&!C[Pt]){queueMicrotask((()=>{fireAProgressEvent("loadstart",C)}))}Fr=false;if(!Er&&Pr.isUint8Array(Ir)){kr.push(Ir);if((C[Wt]===undefined||Date.now()-C[Wt]>=50)&&!C[Pt]){C[Wt]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",C)}))}Qr=Br.read()}else if(Er){queueMicrotask((()=>{C[ae]="done";try{const ae=packageData(kr,re,q.type,Ar);if(C[Pt]){return}C[lt]=ae;fireAProgressEvent("load",C)}catch(q){C[Ue]=q;fireAProgressEvent("error",C)}if(C[ae]!=="loading"){fireAProgressEvent("loadend",C)}}));break}}catch(q){if(C[Pt]){return}queueMicrotask((()=>{C[ae]="done";C[Ue]=q;fireAProgressEvent("error",C);if(C[ae]!=="loading"){fireAProgressEvent("loadend",C)}}));break}}})()}function fireAProgressEvent(C,q){const re=new Ar(C,{bubbles:false,cancelable:false});q.dispatchEvent(re)}function packageData(C,q,re,ae){switch(q){case"DataURL":{let q="data:";const ae=kr(re||"application/octet-stream");if(ae!=="failure"){q+=Br(ae)}q+=";base64,";const Ue=new Qr("latin1");for(const re of C){q+=Fr(Ue.write(re))}q+=Fr(Ue.end());return q}case"Text":{let q="failure";if(ae){q=Er(ae)}if(q==="failure"&&re){const C=kr(re);if(C!=="failure"){q=Er(C.parameters.get("charset"))}}if(q==="failure"){q="UTF-8"}return decode(C,q)}case"ArrayBuffer":{const q=combineByteSequences(C);return q.buffer}case"BinaryString":{let q="";const re=new Qr("latin1");for(const ae of C){q+=re.write(ae)}q+=re.end();return q}}}function decode(C,q){const re=combineByteSequences(C);const ae=BOMSniffing(re);let Ue=0;if(ae!==null){q=ae;Ue=ae==="UTF-8"?3:2}const lt=re.slice(Ue);return new TextDecoder(q).decode(lt)}function BOMSniffing(C){const[q,re,ae]=C;if(q===239&&re===187&&ae===191){return"UTF-8"}else if(q===254&&re===255){return"UTF-16BE"}else if(q===255&&re===254){return"UTF-16LE"}return null}function combineByteSequences(C){const q=C.reduce(((C,q)=>C+q.byteLength),0);let re=0;return C.reduce(((C,q)=>{C.set(q,re);re+=q.byteLength;return C}),new Uint8Array(q))}C.exports={staticPropertyDescriptors:Dr,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(C,q,re)=>{const ae=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:Ue}=re(68707);const lt=re(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new lt)}function setGlobalDispatcher(C){if(!C||typeof C.dispatch!=="function"){throw new Ue("Argument agent must implement Agent")}Object.defineProperty(globalThis,ae,{value:C,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[ae]}C.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:C=>{C.exports=class DecoratorHandler{constructor(C){this.handler=C}onConnect(...C){return this.handler.onConnect(...C)}onError(...C){return this.handler.onError(...C)}onUpgrade(...C){return this.handler.onUpgrade(...C)}onHeaders(...C){return this.handler.onHeaders(...C)}onData(...C){return this.handler.onData(...C)}onComplete(...C){return this.handler.onComplete(...C)}onBodySent(...C){return this.handler.onBodySent(...C)}}},48299:(C,q,re)=>{const ae=re(3440);const{kBodyUsed:Ue}=re(36443);const lt=re(42613);const{InvalidArgumentError:Pt}=re(68707);const Wt=re(24434);const Ar=[300,301,302,303,307,308];const Er=Symbol("body");class BodyAsyncIterable{constructor(C){this[Er]=C;this[Ue]=false}async*[Symbol.asyncIterator](){lt(!this[Ue],"disturbed");this[Ue]=true;yield*this[Er]}}class RedirectHandler{constructor(C,q,re,Ar){if(q!=null&&(!Number.isInteger(q)||q<0)){throw new Pt("maxRedirections must be a positive number")}ae.validateHandler(Ar,re.method,re.upgrade);this.dispatch=C;this.location=null;this.abort=null;this.opts={...re,maxRedirections:0};this.maxRedirections=q;this.handler=Ar;this.history=[];if(ae.isStream(this.opts.body)){if(ae.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){lt(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[Ue]=false;Wt.prototype.on.call(this.opts.body,"data",(function(){this[Ue]=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)&&ae.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(C){this.abort=C;this.handler.onConnect(C,{history:this.history})}onUpgrade(C,q,re){this.handler.onUpgrade(C,q,re)}onError(C){this.handler.onError(C)}onHeaders(C,q,re,Ue){this.location=this.history.length>=this.maxRedirections||ae.isDisturbed(this.opts.body)?null:parseLocation(C,q);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(C,q,re,Ue)}const{origin:lt,pathname:Pt,search:Wt}=ae.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const Ar=Wt?`${Pt}${Wt}`:Pt;this.opts.headers=cleanRequestHeaders(this.opts.headers,C===303,this.opts.origin!==lt);this.opts.path=Ar;this.opts.origin=lt;this.opts.maxRedirections=0;this.opts.query=null;if(C===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(C){if(this.location){}else{return this.handler.onData(C)}}onComplete(C){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(C)}}onBodySent(C){if(this.handler.onBodySent){this.handler.onBodySent(C)}}}function parseLocation(C,q){if(Ar.indexOf(C)===-1){return null}for(let C=0;C{const ae=re(42613);const{kRetryHandlerDefaultRetry:Ue}=re(36443);const{RequestRetryError:lt}=re(68707);const{isDisturbed:Pt,parseHeaders:Wt,parseRangeHeader:Ar}=re(3440);function calculateRetryAfterHeader(C){const q=Date.now();const re=new Date(C).getTime()-q;return re}class RetryHandler{constructor(C,q){const{retryOptions:re,...ae}=C;const{retry:lt,maxRetries:Pt,maxTimeout:Wt,minTimeout:Ar,timeoutFactor:Er,methods:Ir,errorCodes:Br,retryAfter:kr,statusCodes:Pr}=re??{};this.dispatch=q.dispatch;this.handler=q.handler;this.opts=ae;this.abort=null;this.aborted=false;this.retryOpts={retry:lt??RetryHandler[Ue],retryAfter:kr??true,maxTimeout:Wt??30*1e3,timeout:Ar??500,timeoutFactor:Er??2,maxRetries:Pt??5,methods:Ir??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:Pr??[500,502,503,504,429],errorCodes:Br??["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((C=>{this.aborted=true;if(this.abort){this.abort(C)}else{this.reason=C}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(C,q,re){if(this.handler.onUpgrade){this.handler.onUpgrade(C,q,re)}}onConnect(C){if(this.aborted){C(this.reason)}else{this.abort=C}}onBodySent(C){if(this.handler.onBodySent)return this.handler.onBodySent(C)}static[Ue](C,{state:q,opts:re},ae){const{statusCode:Ue,code:lt,headers:Pt}=C;const{method:Wt,retryOptions:Ar}=re;const{maxRetries:Er,timeout:Ir,maxTimeout:Br,timeoutFactor:kr,statusCodes:Pr,errorCodes:Qr,methods:Fr}=Ar;let{counter:Dr,currentTimeout:xr}=q;xr=xr!=null&&xr>0?xr:Ir;if(lt&<!=="UND_ERR_REQ_RETRY"&<!=="UND_ERR_SOCKET"&&!Qr.includes(lt)){ae(C);return}if(Array.isArray(Fr)&&!Fr.includes(Wt)){ae(C);return}if(Ue!=null&&Array.isArray(Pr)&&!Pr.includes(Ue)){ae(C);return}if(Dr>Er){ae(C);return}let Mr=Pt!=null&&Pt["retry-after"];if(Mr){Mr=Number(Mr);Mr=isNaN(Mr)?calculateRetryAfterHeader(Mr):Mr*1e3}const Ur=Mr>0?Math.min(Mr,Br):Math.min(xr*kr**Dr,Br);q.currentTimeout=Ur;setTimeout((()=>ae(null)),Ur)}onHeaders(C,q,re,Ue){const Pt=Wt(q);this.retryCount+=1;if(C>=300){this.abort(new lt("Request failed",C,{headers:Pt,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(C!==206){return true}const q=Ar(Pt["content-range"]);if(!q){this.abort(new lt("Content-Range mismatch",C,{headers:Pt,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==Pt.etag){this.abort(new lt("ETag mismatch",C,{headers:Pt,count:this.retryCount}));return false}const{start:Ue,size:Wt,end:Er=Wt}=q;ae(this.start===Ue,"content-range mismatch");ae(this.end==null||this.end===Er,"content-range mismatch");this.resume=re;return true}if(this.end==null){if(C===206){const lt=Ar(Pt["content-range"]);if(lt==null){return this.handler.onHeaders(C,q,re,Ue)}const{start:Wt,size:Er,end:Ir=Er}=lt;ae(Wt!=null&&Number.isFinite(Wt)&&this.start!==Wt,"content-range mismatch");ae(Number.isFinite(Wt));ae(Ir!=null&&Number.isFinite(Ir)&&this.end!==Ir,"invalid content-length");this.start=Wt;this.end=Ir}if(this.end==null){const C=Pt["content-length"];this.end=C!=null?Number(C):null}ae(Number.isFinite(this.start));ae(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=re;this.etag=Pt.etag!=null?Pt.etag:null;return this.handler.onHeaders(C,q,re,Ue)}const Er=new lt("Request failed",C,{headers:Pt,count:this.retryCount});this.abort(Er);return false}onData(C){this.start+=C.length;return this.handler.onData(C)}onComplete(C){this.retryCount=0;return this.handler.onComplete(C)}onError(C){if(this.aborted||Pt(this.opts.body)){return this.handler.onError(C)}this.retryOpts.retry(C,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(C){if(C!=null||this.aborted||Pt(this.opts.body)){return this.handler.onError(C)}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(C){this.handler.onError(C)}}}}C.exports=RetryHandler},64415:(C,q,re)=>{const ae=re(48299);function createRedirectInterceptor({maxRedirections:C}){return q=>function Intercept(re,Ue){const{maxRedirections:lt=C}=re;if(!lt){return q(re,Ue)}const Pt=new ae(q,lt,re,Ue);re={...re,maxRedirections:0};return q(re,Pt)}}C.exports=createRedirectInterceptor},52824:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.SPECIAL_HEADERS=q.HEADER_STATE=q.MINOR=q.MAJOR=q.CONNECTION_TOKEN_CHARS=q.HEADER_CHARS=q.TOKEN=q.STRICT_TOKEN=q.HEX=q.URL_CHAR=q.STRICT_URL_CHAR=q.USERINFO_CHARS=q.MARK=q.ALPHANUM=q.NUM=q.HEX_MAP=q.NUM_MAP=q.ALPHA=q.FINISH=q.H_METHOD_MAP=q.METHOD_MAP=q.METHODS_RTSP=q.METHODS_ICE=q.METHODS_HTTP=q.METHODS=q.LENIENT_FLAGS=q.FLAGS=q.TYPE=q.ERROR=void 0;const ae=re(50172);var Ue;(function(C){C[C["OK"]=0]="OK";C[C["INTERNAL"]=1]="INTERNAL";C[C["STRICT"]=2]="STRICT";C[C["LF_EXPECTED"]=3]="LF_EXPECTED";C[C["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";C[C["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";C[C["INVALID_METHOD"]=6]="INVALID_METHOD";C[C["INVALID_URL"]=7]="INVALID_URL";C[C["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";C[C["INVALID_VERSION"]=9]="INVALID_VERSION";C[C["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";C[C["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";C[C["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";C[C["INVALID_STATUS"]=13]="INVALID_STATUS";C[C["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";C[C["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";C[C["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";C[C["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";C[C["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";C[C["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";C[C["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";C[C["PAUSED"]=21]="PAUSED";C[C["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";C[C["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";C[C["USER"]=24]="USER"})(Ue=q.ERROR||(q.ERROR={}));var lt;(function(C){C[C["BOTH"]=0]="BOTH";C[C["REQUEST"]=1]="REQUEST";C[C["RESPONSE"]=2]="RESPONSE"})(lt=q.TYPE||(q.TYPE={}));var Pt;(function(C){C[C["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";C[C["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";C[C["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";C[C["CHUNKED"]=8]="CHUNKED";C[C["UPGRADE"]=16]="UPGRADE";C[C["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";C[C["SKIPBODY"]=64]="SKIPBODY";C[C["TRAILING"]=128]="TRAILING";C[C["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(Pt=q.FLAGS||(q.FLAGS={}));var Wt;(function(C){C[C["HEADERS"]=1]="HEADERS";C[C["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";C[C["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(Wt=q.LENIENT_FLAGS||(q.LENIENT_FLAGS={}));var Ar;(function(C){C[C["DELETE"]=0]="DELETE";C[C["GET"]=1]="GET";C[C["HEAD"]=2]="HEAD";C[C["POST"]=3]="POST";C[C["PUT"]=4]="PUT";C[C["CONNECT"]=5]="CONNECT";C[C["OPTIONS"]=6]="OPTIONS";C[C["TRACE"]=7]="TRACE";C[C["COPY"]=8]="COPY";C[C["LOCK"]=9]="LOCK";C[C["MKCOL"]=10]="MKCOL";C[C["MOVE"]=11]="MOVE";C[C["PROPFIND"]=12]="PROPFIND";C[C["PROPPATCH"]=13]="PROPPATCH";C[C["SEARCH"]=14]="SEARCH";C[C["UNLOCK"]=15]="UNLOCK";C[C["BIND"]=16]="BIND";C[C["REBIND"]=17]="REBIND";C[C["UNBIND"]=18]="UNBIND";C[C["ACL"]=19]="ACL";C[C["REPORT"]=20]="REPORT";C[C["MKACTIVITY"]=21]="MKACTIVITY";C[C["CHECKOUT"]=22]="CHECKOUT";C[C["MERGE"]=23]="MERGE";C[C["M-SEARCH"]=24]="M-SEARCH";C[C["NOTIFY"]=25]="NOTIFY";C[C["SUBSCRIBE"]=26]="SUBSCRIBE";C[C["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";C[C["PATCH"]=28]="PATCH";C[C["PURGE"]=29]="PURGE";C[C["MKCALENDAR"]=30]="MKCALENDAR";C[C["LINK"]=31]="LINK";C[C["UNLINK"]=32]="UNLINK";C[C["SOURCE"]=33]="SOURCE";C[C["PRI"]=34]="PRI";C[C["DESCRIBE"]=35]="DESCRIBE";C[C["ANNOUNCE"]=36]="ANNOUNCE";C[C["SETUP"]=37]="SETUP";C[C["PLAY"]=38]="PLAY";C[C["PAUSE"]=39]="PAUSE";C[C["TEARDOWN"]=40]="TEARDOWN";C[C["GET_PARAMETER"]=41]="GET_PARAMETER";C[C["SET_PARAMETER"]=42]="SET_PARAMETER";C[C["REDIRECT"]=43]="REDIRECT";C[C["RECORD"]=44]="RECORD";C[C["FLUSH"]=45]="FLUSH"})(Ar=q.METHODS||(q.METHODS={}));q.METHODS_HTTP=[Ar.DELETE,Ar.GET,Ar.HEAD,Ar.POST,Ar.PUT,Ar.CONNECT,Ar.OPTIONS,Ar.TRACE,Ar.COPY,Ar.LOCK,Ar.MKCOL,Ar.MOVE,Ar.PROPFIND,Ar.PROPPATCH,Ar.SEARCH,Ar.UNLOCK,Ar.BIND,Ar.REBIND,Ar.UNBIND,Ar.ACL,Ar.REPORT,Ar.MKACTIVITY,Ar.CHECKOUT,Ar.MERGE,Ar["M-SEARCH"],Ar.NOTIFY,Ar.SUBSCRIBE,Ar.UNSUBSCRIBE,Ar.PATCH,Ar.PURGE,Ar.MKCALENDAR,Ar.LINK,Ar.UNLINK,Ar.PRI,Ar.SOURCE];q.METHODS_ICE=[Ar.SOURCE];q.METHODS_RTSP=[Ar.OPTIONS,Ar.DESCRIBE,Ar.ANNOUNCE,Ar.SETUP,Ar.PLAY,Ar.PAUSE,Ar.TEARDOWN,Ar.GET_PARAMETER,Ar.SET_PARAMETER,Ar.REDIRECT,Ar.RECORD,Ar.FLUSH,Ar.GET,Ar.POST];q.METHOD_MAP=ae.enumToMap(Ar);q.H_METHOD_MAP={};Object.keys(q.METHOD_MAP).forEach((C=>{if(/^H/.test(C)){q.H_METHOD_MAP[C]=q.METHOD_MAP[C]}}));var Er;(function(C){C[C["SAFE"]=0]="SAFE";C[C["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";C[C["UNSAFE"]=2]="UNSAFE"})(Er=q.FINISH||(q.FINISH={}));q.ALPHA=[];for(let C="A".charCodeAt(0);C<="Z".charCodeAt(0);C++){q.ALPHA.push(String.fromCharCode(C));q.ALPHA.push(String.fromCharCode(C+32))}q.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};q.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};q.NUM=["0","1","2","3","4","5","6","7","8","9"];q.ALPHANUM=q.ALPHA.concat(q.NUM);q.MARK=["-","_",".","!","~","*","'","(",")"];q.USERINFO_CHARS=q.ALPHANUM.concat(q.MARK).concat(["%",";",":","&","=","+","$",","]);q.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(q.ALPHANUM);q.URL_CHAR=q.STRICT_URL_CHAR.concat(["\t","\f"]);for(let C=128;C<=255;C++){q.URL_CHAR.push(C)}q.HEX=q.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);q.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(q.ALPHANUM);q.TOKEN=q.STRICT_TOKEN.concat([" "]);q.HEADER_CHARS=["\t"];for(let C=32;C<=255;C++){if(C!==127){q.HEADER_CHARS.push(C)}}q.CONNECTION_TOKEN_CHARS=q.HEADER_CHARS.filter((C=>C!==44));q.MAJOR=q.NUM_MAP;q.MINOR=q.MAJOR;var Ir;(function(C){C[C["GENERAL"]=0]="GENERAL";C[C["CONNECTION"]=1]="CONNECTION";C[C["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";C[C["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";C[C["UPGRADE"]=4]="UPGRADE";C[C["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";C[C["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";C[C["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";C[C["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(Ir=q.HEADER_STATE||(q.HEADER_STATE={}));q.SPECIAL_HEADERS={connection:Ir.CONNECTION,"content-length":Ir.CONTENT_LENGTH,"proxy-connection":Ir.CONNECTION,"transfer-encoding":Ir.TRANSFER_ENCODING,upgrade:Ir.UPGRADE}},63870:C=>{C.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJsbGh0dHBfc3RhdHVzX25hbWUAIRpsbGh0dHBfc2V0X2xlbmllbnRfaGVhZGVycwAiIWxsaHR0cF9zZXRfbGVuaWVudF9jaHVua2VkX2xlbmd0aAAjHWxsaHR0cF9zZXRfbGVuaWVudF9rZWVwX2FsaXZlACQkbGxodHRwX3NldF9sZW5pZW50X3RyYW5zZmVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCsLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABBnH9qDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0Hhp4CAAA8LQaShgIAADwtBy6yAgAAPC0H+sYCAAA8LQcCkgIAADwtBq6SAgAAPC0GNqICAAA8LQeKmgIAADwtBgLCAgAAPC0G5r4CAAA8LQdekgIAADwtB75+AgAAPC0Hhn4CAAA8LQfqfgIAADwtB8qCAgAAPC0Gor4CAAA8LQa6ygIAADwtBiLCAgAAPC0Hsp4CAAA8LQYKigIAADwtBjp2AgAAPC0HQroCAAA8LQcqjgIAADwtBxbKAgAAPC0HfnICAAA8LQdKcgIAADwtBxKCAgAAPC0HXoICAAA8LQaKfgIAADwtB7a6AgAAPC0GrsICAAA8LQdSlgIAADwtBzK6AgAAPC0H6roCAAA8LQfyrgIAADwtB0rCAgAAPC0HxnYCAAA8LQbuggIAADwtB96uAgAAPC0GQsYCAAA8LQdexgIAADwtBoq2AgAAPC0HUp4CAAA8LQeCrgIAADwtBn6yAgAAPC0HrsYCAAA8LQdWfgIAADwtByrGAgAAPC0HepYCAAA8LQdSegIAADwtB9JyAgAAPC0GnsoCAAA8LQbGdgIAADwtBoJ2AgAAPC0G5sYCAAA8LQbywgIAADwtBkqGAgAAPC0GzpoCAAA8LQemsgIAADwtBrJ6AgAAPC0HUq4CAAA8LQfemgIAADwtBgKaAgAAPC0GwoYCAAA8LQf6egIAADwtBjaOAgAAPC0GJrYCAAA8LQfeigIAADwtBoLGAgAAPC0Gun4CAAA8LQcalgIAADwtB6J6AgAAPC0GTooCAAA8LQcKvgIAADwtBw52AgAAPC0GLrICAAA8LQeGdgIAADwtBja+AgAAPC0HqoYCAAA8LQbStgIAADwtB0q+AgAAPC0HfsoCAAA8LQdKygIAADwtB8LCAgAAPC0GpooCAAA8LQfmjgIAADwtBmZ6AgAAPC0G1rICAAA8LQZuwgIAADwtBkrKAgAAPC0G2q4CAAA8LQcKigIAADwtB+LKAgAAPC0GepYCAAA8LQdCigIAADwtBup6AgAAPC0GBnoCAAA8LEMqAgIAAAAtB1qGAgAAhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAgAiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCBCIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQcaRgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIwIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAggiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2ioCAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCNCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIMIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZqAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAjgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCECIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZWQgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAI8IgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAhQiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEGqm4CAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCQCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIYIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZOAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCJCIERQ0AIAAgBBGAgICAAAAhAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIsIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAigiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2iICAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCUCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIcIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABBwpmAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCICIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZSUgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAJMIgRFDQAgACAEEYCAgIAAACEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAlQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCWCIERQ0AIAAgBBGAgICAAAAhAwsgAwtFAQF/AkACQCAALwEwQRRxQRRHDQBBASEDIAAtAChBAUYNASAALwEyQeUARiEDDAELIAAtAClBBUYhAwsgACADOgAuQQAL/gEBA39BASEDAkAgAC8BMCIEQQhxDQAgACkDIEIAUiEDCwJAAkAgAC0ALkUNAEEBIQUgAC0AKUEFRg0BQQEhBSAEQcAAcUUgA3FBAUcNAQtBACEFIARBwABxDQBBAiEFIARB//8DcSIDQQhxDQACQCADQYAEcUUNAAJAIAAtAChBAUcNACAALQAtQQpxDQBBBQ8LQQQPCwJAIANBIHENAAJAIAAtAChBAUYNACAALwEyQf//A3EiAEGcf2pB5ABJDQAgAEHMAUYNACAAQbACRg0AQQQhBSAEQShxRQ0CIANBiARxQYAERg0CC0EADwtBAEEDIAApAyBQGyEFCyAFC2IBAn9BACEBAkAgAC0AKEEBRg0AIAAvATJB//8DcSICQZx/akHkAEkNACACQcwBRg0AIAJBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhASAAQYgEcUGABEYNACAAQShxRSEBCyABC6cBAQN/AkACQAJAIAAtACpFDQAgAC0AK0UNAEEAIQMgAC8BMCIEQQJxRQ0BDAILQQAhAyAALwEwIgRBAXFFDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4ABgQGCAYMBhAGFAYYBhwGIAYkBigGLAYwBjQGOAY8BkAGRAZIBkwGUAZUBlgGXAZgBmQGaAZsBnAGdAZ4BnwGgAaEBogGjAaQBpQGmAacBqAGpAaoBqwGsAa0BrgGvAbABsQGyAbMBtAG1AbYBtwHLAcoBuAHJAbkByAG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAQDcAQtBACEQDMYBC0EOIRAMxQELQQ0hEAzEAQtBDyEQDMMBC0EQIRAMwgELQRMhEAzBAQtBFCEQDMABC0EVIRAMvwELQRYhEAy+AQtBFyEQDL0BC0EYIRAMvAELQRkhEAy7AQtBGiEQDLoBC0EbIRAMuQELQRwhEAy4AQtBCCEQDLcBC0EdIRAMtgELQSAhEAy1AQtBHyEQDLQBC0EHIRAMswELQSEhEAyyAQtBIiEQDLEBC0EeIRAMsAELQSMhEAyvAQtBEiEQDK4BC0ERIRAMrQELQSQhEAysAQtBJSEQDKsBC0EmIRAMqgELQSchEAypAQtBwwEhEAyoAQtBKSEQDKcBC0ErIRAMpgELQSwhEAylAQtBLSEQDKQBC0EuIRAMowELQS8hEAyiAQtBxAEhEAyhAQtBMCEQDKABC0E0IRAMnwELQQwhEAyeAQtBMSEQDJ0BC0EyIRAMnAELQTMhEAybAQtBOSEQDJoBC0E1IRAMmQELQcUBIRAMmAELQQshEAyXAQtBOiEQDJYBC0E2IRAMlQELQQohEAyUAQtBNyEQDJMBC0E4IRAMkgELQTwhEAyRAQtBOyEQDJABC0E9IRAMjwELQQkhEAyOAQtBKCEQDI0BC0E+IRAMjAELQT8hEAyLAQtBwAAhEAyKAQtBwQAhEAyJAQtBwgAhEAyIAQtBwwAhEAyHAQtBxAAhEAyGAQtBxQAhEAyFAQtBxgAhEAyEAQtBKiEQDIMBC0HHACEQDIIBC0HIACEQDIEBC0HJACEQDIABC0HKACEQDH8LQcsAIRAMfgtBzQAhEAx9C0HMACEQDHwLQc4AIRAMewtBzwAhEAx6C0HQACEQDHkLQdEAIRAMeAtB0gAhEAx3C0HTACEQDHYLQdQAIRAMdQtB1gAhEAx0C0HVACEQDHMLQQYhEAxyC0HXACEQDHELQQUhEAxwC0HYACEQDG8LQQQhEAxuC0HZACEQDG0LQdoAIRAMbAtB2wAhEAxrC0HcACEQDGoLQQMhEAxpC0HdACEQDGgLQd4AIRAMZwtB3wAhEAxmC0HhACEQDGULQeAAIRAMZAtB4gAhEAxjC0HjACEQDGILQQIhEAxhC0HkACEQDGALQeUAIRAMXwtB5gAhEAxeC0HnACEQDF0LQegAIRAMXAtB6QAhEAxbC0HqACEQDFoLQesAIRAMWQtB7AAhEAxYC0HtACEQDFcLQe4AIRAMVgtB7wAhEAxVC0HwACEQDFQLQfEAIRAMUwtB8gAhEAxSC0HzACEQDFELQfQAIRAMUAtB9QAhEAxPC0H2ACEQDE4LQfcAIRAMTQtB+AAhEAxMC0H5ACEQDEsLQfoAIRAMSgtB+wAhEAxJC0H8ACEQDEgLQf0AIRAMRwtB/gAhEAxGC0H/ACEQDEULQYABIRAMRAtBgQEhEAxDC0GCASEQDEILQYMBIRAMQQtBhAEhEAxAC0GFASEQDD8LQYYBIRAMPgtBhwEhEAw9C0GIASEQDDwLQYkBIRAMOwtBigEhEAw6C0GLASEQDDkLQYwBIRAMOAtBjQEhEAw3C0GOASEQDDYLQY8BIRAMNQtBkAEhEAw0C0GRASEQDDMLQZIBIRAMMgtBkwEhEAwxC0GUASEQDDALQZUBIRAMLwtBlgEhEAwuC0GXASEQDC0LQZgBIRAMLAtBmQEhEAwrC0GaASEQDCoLQZsBIRAMKQtBnAEhEAwoC0GdASEQDCcLQZ4BIRAMJgtBnwEhEAwlC0GgASEQDCQLQaEBIRAMIwtBogEhEAwiC0GjASEQDCELQaQBIRAMIAtBpQEhEAwfC0GmASEQDB4LQacBIRAMHQtBqAEhEAwcC0GpASEQDBsLQaoBIRAMGgtBqwEhEAwZC0GsASEQDBgLQa0BIRAMFwtBrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhwGJAYsBjAGNAY4BjwGQAZEBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBuAG5AboBuwG8Ab0BvgG/AcABwQHCAcMBxAHFAcYBxwHIAckBygHLAcwBzQHOAc8B0AHRAdIB0wHUAdUB1gHXAdgB2QHaAdsB3AHdAd4B4AHhAeIB4wHkAeUB5gHnAegB6QHqAesB7AHtAe4B7wHwAfEB8gHzAZkCpAKwAv4C/gILIAEiBCACRw3zAUHdASEQDP8DCyABIhAgAkcN3QFBwwEhEAz+AwsgASIBIAJHDZABQfcAIRAM/QMLIAEiASACRw2GAUHvACEQDPwDCyABIgEgAkcNf0HqACEQDPsDCyABIgEgAkcNe0HoACEQDPoDCyABIgEgAkcNeEHmACEQDPkDCyABIgEgAkcNGkEYIRAM+AMLIAEiASACRw0UQRIhEAz3AwsgASIBIAJHDVlBxQAhEAz2AwsgASIBIAJHDUpBPyEQDPUDCyABIgEgAkcNSEE8IRAM9AMLIAEiASACRw1BQTEhEAzzAwsgAC0ALkEBRg3rAwyHAgsgACABIgEgAhDAgICAAEEBRw3mASAAQgA3AyAM5wELIAAgASIBIAIQtICAgAAiEA3nASABIQEM9QILAkAgASIBIAJHDQBBBiEQDPADCyAAIAFBAWoiASACELuAgIAAIhAN6AEgASEBDDELIABCADcDIEESIRAM1QMLIAEiECACRw0rQR0hEAztAwsCQCABIgEgAkYNACABQQFqIQFBECEQDNQDC0EHIRAM7AMLIABCACAAKQMgIhEgAiABIhBrrSISfSITIBMgEVYbNwMgIBEgElYiFEUN5QFBCCEQDOsDCwJAIAEiASACRg0AIABBiYCAgAA2AgggACABNgIEIAEhAUEUIRAM0gMLQQkhEAzqAwsgASEBIAApAyBQDeQBIAEhAQzyAgsCQCABIgEgAkcNAEELIRAM6QMLIAAgAUEBaiIBIAIQtoCAgAAiEA3lASABIQEM8gILIAAgASIBIAIQuICAgAAiEA3lASABIQEM8gILIAAgASIBIAIQuICAgAAiEA3mASABIQEMDQsgACABIgEgAhC6gICAACIQDecBIAEhAQzwAgsCQCABIgEgAkcNAEEPIRAM5QMLIAEtAAAiEEE7Rg0IIBBBDUcN6AEgAUEBaiEBDO8CCyAAIAEiASACELqAgIAAIhAN6AEgASEBDPICCwNAAkAgAS0AAEHwtYCAAGotAAAiEEEBRg0AIBBBAkcN6wEgACgCBCEQIABBADYCBCAAIBAgAUEBaiIBELmAgIAAIhAN6gEgASEBDPQCCyABQQFqIgEgAkcNAAtBEiEQDOIDCyAAIAEiASACELqAgIAAIhAN6QEgASEBDAoLIAEiASACRw0GQRshEAzgAwsCQCABIgEgAkcNAEEWIRAM4AMLIABBioCAgAA2AgggACABNgIEIAAgASACELiAgIAAIhAN6gEgASEBQSAhEAzGAwsCQCABIgEgAkYNAANAAkAgAS0AAEHwt4CAAGotAAAiEEECRg0AAkAgEEF/ag4E5QHsAQDrAewBCyABQQFqIQFBCCEQDMgDCyABQQFqIgEgAkcNAAtBFSEQDN8DC0EVIRAM3gMLA0ACQCABLQAAQfC5gIAAai0AACIQQQJGDQAgEEF/ag4E3gHsAeAB6wHsAQsgAUEBaiIBIAJHDQALQRghEAzdAwsCQCABIgEgAkYNACAAQYuAgIAANgIIIAAgATYCBCABIQFBByEQDMQDC0EZIRAM3AMLIAFBAWohAQwCCwJAIAEiFCACRw0AQRohEAzbAwsgFCEBAkAgFC0AAEFzag4U3QLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gIA7gILQQAhECAAQQA2AhwgAEGvi4CAADYCECAAQQI2AgwgACAUQQFqNgIUDNoDCwJAIAEtAAAiEEE7Rg0AIBBBDUcN6AEgAUEBaiEBDOUCCyABQQFqIQELQSIhEAy/AwsCQCABIhAgAkcNAEEcIRAM2AMLQgAhESAQIQEgEC0AAEFQag435wHmAQECAwQFBgcIAAAAAAAAAAkKCwwNDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADxAREhMUAAtBHiEQDL0DC0ICIREM5QELQgMhEQzkAQtCBCERDOMBC0IFIREM4gELQgYhEQzhAQtCByERDOABC0IIIREM3wELQgkhEQzeAQtCCiERDN0BC0ILIREM3AELQgwhEQzbAQtCDSERDNoBC0IOIREM2QELQg8hEQzYAQtCCiERDNcBC0ILIREM1gELQgwhEQzVAQtCDSERDNQBC0IOIREM0wELQg8hEQzSAQtCACERAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQLQAAQVBqDjflAeQBAAECAwQFBgfmAeYB5gHmAeYB5gHmAQgJCgsMDeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gEODxAREhPmAQtCAiERDOQBC0IDIREM4wELQgQhEQziAQtCBSERDOEBC0IGIREM4AELQgchEQzfAQtCCCERDN4BC0IJIREM3QELQgohEQzcAQtCCyERDNsBC0IMIREM2gELQg0hEQzZAQtCDiERDNgBC0IPIREM1wELQgohEQzWAQtCCyERDNUBC0IMIREM1AELQg0hEQzTAQtCDiERDNIBC0IPIREM0QELIABCACAAKQMgIhEgAiABIhBrrSISfSITIBMgEVYbNwMgIBEgElYiFEUN0gFBHyEQDMADCwJAIAEiASACRg0AIABBiYCAgAA2AgggACABNgIEIAEhAUEkIRAMpwMLQSAhEAy/AwsgACABIhAgAhC+gICAAEF/ag4FtgEAxQIB0QHSAQtBESEQDKQDCyAAQQE6AC8gECEBDLsDCyABIgEgAkcN0gFBJCEQDLsDCyABIg0gAkcNHkHGACEQDLoDCyAAIAEiASACELKAgIAAIhAN1AEgASEBDLUBCyABIhAgAkcNJkHQACEQDLgDCwJAIAEiASACRw0AQSghEAy4AwsgAEEANgIEIABBjICAgAA2AgggACABIAEQsYCAgAAiEA3TASABIQEM2AELAkAgASIQIAJHDQBBKSEQDLcDCyAQLQAAIgFBIEYNFCABQQlHDdMBIBBBAWohAQwVCwJAIAEiASACRg0AIAFBAWohAQwXC0EqIRAMtQMLAkAgASIQIAJHDQBBKyEQDLUDCwJAIBAtAAAiAUEJRg0AIAFBIEcN1QELIAAtACxBCEYN0wEgECEBDJEDCwJAIAEiASACRw0AQSwhEAy0AwsgAS0AAEEKRw3VASABQQFqIQEMyQILIAEiDiACRw3VAUEvIRAMsgMLA0ACQCABLQAAIhBBIEYNAAJAIBBBdmoOBADcAdwBANoBCyABIQEM4AELIAFBAWoiASACRw0AC0ExIRAMsQMLQTIhECABIhQgAkYNsAMgAiAUayAAKAIAIgFqIRUgFCABa0EDaiEWAkADQCAULQAAIhdBIHIgFyAXQb9/akH/AXFBGkkbQf8BcSABQfC7gIAAai0AAEcNAQJAIAFBA0cNAEEGIQEMlgMLIAFBAWohASAUQQFqIhQgAkcNAAsgACAVNgIADLEDCyAAQQA2AgAgFCEBDNkBC0EzIRAgASIUIAJGDa8DIAIgFGsgACgCACIBaiEVIBQgAWtBCGohFgJAA0AgFC0AACIXQSByIBcgF0G/f2pB/wFxQRpJG0H/AXEgAUH0u4CAAGotAABHDQECQCABQQhHDQBBBSEBDJUDCyABQQFqIQEgFEEBaiIUIAJHDQALIAAgFTYCAAywAwsgAEEANgIAIBQhAQzYAQtBNCEQIAEiFCACRg2uAyACIBRrIAAoAgAiAWohFSAUIAFrQQVqIRYCQANAIBQtAAAiF0EgciAXIBdBv39qQf8BcUEaSRtB/wFxIAFB0MKAgABqLQAARw0BAkAgAUEFRw0AQQchAQyUAwsgAUEBaiEBIBRBAWoiFCACRw0ACyAAIBU2AgAMrwMLIABBADYCACAUIQEM1wELAkAgASIBIAJGDQADQAJAIAEtAABBgL6AgABqLQAAIhBBAUYNACAQQQJGDQogASEBDN0BCyABQQFqIgEgAkcNAAtBMCEQDK4DC0EwIRAMrQMLAkAgASIBIAJGDQADQAJAIAEtAAAiEEEgRg0AIBBBdmoOBNkB2gHaAdkB2gELIAFBAWoiASACRw0AC0E4IRAMrQMLQTghEAysAwsDQAJAIAEtAAAiEEEgRg0AIBBBCUcNAwsgAUEBaiIBIAJHDQALQTwhEAyrAwsDQAJAIAEtAAAiEEEgRg0AAkACQCAQQXZqDgTaAQEB2gEACyAQQSxGDdsBCyABIQEMBAsgAUEBaiIBIAJHDQALQT8hEAyqAwsgASEBDNsBC0HAACEQIAEiFCACRg2oAyACIBRrIAAoAgAiAWohFiAUIAFrQQZqIRcCQANAIBQtAABBIHIgAUGAwICAAGotAABHDQEgAUEGRg2OAyABQQFqIQEgFEEBaiIUIAJHDQALIAAgFjYCAAypAwsgAEEANgIAIBQhAQtBNiEQDI4DCwJAIAEiDyACRw0AQcEAIRAMpwMLIABBjICAgAA2AgggACAPNgIEIA8hASAALQAsQX9qDgTNAdUB1wHZAYcDCyABQQFqIQEMzAELAkAgASIBIAJGDQADQAJAIAEtAAAiEEEgciAQIBBBv39qQf8BcUEaSRtB/wFxIhBBCUYNACAQQSBGDQACQAJAAkACQCAQQZ1/ag4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIRAMkQMLIAFBAWohAUEyIRAMkAMLIAFBAWohAUEzIRAMjwMLIAEhAQzQAQsgAUEBaiIBIAJHDQALQTUhEAylAwtBNSEQDKQDCwJAIAEiASACRg0AA0ACQCABLQAAQYC8gIAAai0AAEEBRg0AIAEhAQzTAQsgAUEBaiIBIAJHDQALQT0hEAykAwtBPSEQDKMDCyAAIAEiASACELCAgIAAIhAN1gEgASEBDAELIBBBAWohAQtBPCEQDIcDCwJAIAEiASACRw0AQcIAIRAMoAMLAkADQAJAIAEtAABBd2oOGAAC/gL+AoQD/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4CAP4CCyABQQFqIgEgAkcNAAtBwgAhEAygAwsgAUEBaiEBIAAtAC1BAXFFDb0BIAEhAQtBLCEQDIUDCyABIgEgAkcN0wFBxAAhEAydAwsDQAJAIAEtAABBkMCAgABqLQAAQQFGDQAgASEBDLcCCyABQQFqIgEgAkcNAAtBxQAhEAycAwsgDS0AACIQQSBGDbMBIBBBOkcNgQMgACgCBCEBIABBADYCBCAAIAEgDRCvgICAACIBDdABIA1BAWohAQyzAgtBxwAhECABIg0gAkYNmgMgAiANayAAKAIAIgFqIRYgDSABa0EFaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUGQwoCAAGotAABHDYADIAFBBUYN9AIgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMmgMLQcgAIRAgASINIAJGDZkDIAIgDWsgACgCACIBaiEWIA0gAWtBCWohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFBlsKAgABqLQAARw3/AgJAIAFBCUcNAEECIQEM9QILIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJkDCwJAIAEiDSACRw0AQckAIRAMmQMLAkACQCANLQAAIgFBIHIgASABQb9/akH/AXFBGkkbQf8BcUGSf2oOBwCAA4ADgAOAA4ADAYADCyANQQFqIQFBPiEQDIADCyANQQFqIQFBPyEQDP8CC0HKACEQIAEiDSACRg2XAyACIA1rIAAoAgAiAWohFiANIAFrQQFqIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQaDCgIAAai0AAEcN/QIgAUEBRg3wAiABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyXAwtBywAhECABIg0gAkYNlgMgAiANayAAKAIAIgFqIRYgDSABa0EOaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUGiwoCAAGotAABHDfwCIAFBDkYN8AIgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMlgMLQcwAIRAgASINIAJGDZUDIAIgDWsgACgCACIBaiEWIA0gAWtBD2ohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFBwMKAgABqLQAARw37AgJAIAFBD0cNAEEDIQEM8QILIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJUDC0HNACEQIAEiDSACRg2UAyACIA1rIAAoAgAiAWohFiANIAFrQQVqIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQdDCgIAAai0AAEcN+gICQCABQQVHDQBBBCEBDPACCyABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyUAwsCQCABIg0gAkcNAEHOACEQDJQDCwJAAkACQAJAIA0tAAAiAUEgciABIAFBv39qQf8BcUEaSRtB/wFxQZ1/ag4TAP0C/QL9Av0C/QL9Av0C/QL9Av0C/QL9AgH9Av0C/QICA/0CCyANQQFqIQFBwQAhEAz9AgsgDUEBaiEBQcIAIRAM/AILIA1BAWohAUHDACEQDPsCCyANQQFqIQFBxAAhEAz6AgsCQCABIgEgAkYNACAAQY2AgIAANgIIIAAgATYCBCABIQFBxQAhEAz6AgtBzwAhEAySAwsgECEBAkACQCAQLQAAQXZqDgQBqAKoAgCoAgsgEEEBaiEBC0EnIRAM+AILAkAgASIBIAJHDQBB0QAhEAyRAwsCQCABLQAAQSBGDQAgASEBDI0BCyABQQFqIQEgAC0ALUEBcUUNxwEgASEBDIwBCyABIhcgAkcNyAFB0gAhEAyPAwtB0wAhECABIhQgAkYNjgMgAiAUayAAKAIAIgFqIRYgFCABa0EBaiEXA0AgFC0AACABQdbCgIAAai0AAEcNzAEgAUEBRg3HASABQQFqIQEgFEEBaiIUIAJHDQALIAAgFjYCAAyOAwsCQCABIgEgAkcNAEHVACEQDI4DCyABLQAAQQpHDcwBIAFBAWohAQzHAQsCQCABIgEgAkcNAEHWACEQDI0DCwJAAkAgAS0AAEF2ag4EAM0BzQEBzQELIAFBAWohAQzHAQsgAUEBaiEBQcoAIRAM8wILIAAgASIBIAIQroCAgAAiEA3LASABIQFBzQAhEAzyAgsgAC0AKUEiRg2FAwymAgsCQCABIgEgAkcNAEHbACEQDIoDC0EAIRRBASEXQQEhFkEAIRACQAJAAkACQAJAAkACQAJAAkAgAS0AAEFQag4K1AHTAQABAgMEBQYI1QELQQIhEAwGC0EDIRAMBQtBBCEQDAQLQQUhEAwDC0EGIRAMAgtBByEQDAELQQghEAtBACEXQQAhFkEAIRQMzAELQQkhEEEBIRRBACEXQQAhFgzLAQsCQCABIgEgAkcNAEHdACEQDIkDCyABLQAAQS5HDcwBIAFBAWohAQymAgsgASIBIAJHDcwBQd8AIRAMhwMLAkAgASIBIAJGDQAgAEGOgICAADYCCCAAIAE2AgQgASEBQdAAIRAM7gILQeAAIRAMhgMLQeEAIRAgASIBIAJGDYUDIAIgAWsgACgCACIUaiEWIAEgFGtBA2ohFwNAIAEtAAAgFEHiwoCAAGotAABHDc0BIBRBA0YNzAEgFEEBaiEUIAFBAWoiASACRw0ACyAAIBY2AgAMhQMLQeIAIRAgASIBIAJGDYQDIAIgAWsgACgCACIUaiEWIAEgFGtBAmohFwNAIAEtAAAgFEHmwoCAAGotAABHDcwBIBRBAkYNzgEgFEEBaiEUIAFBAWoiASACRw0ACyAAIBY2AgAMhAMLQeMAIRAgASIBIAJGDYMDIAIgAWsgACgCACIUaiEWIAEgFGtBA2ohFwNAIAEtAAAgFEHpwoCAAGotAABHDcsBIBRBA0YNzgEgFEEBaiEUIAFBAWoiASACRw0ACyAAIBY2AgAMgwMLAkAgASIBIAJHDQBB5QAhEAyDAwsgACABQQFqIgEgAhCogICAACIQDc0BIAEhAUHWACEQDOkCCwJAIAEiASACRg0AA0ACQCABLQAAIhBBIEYNAAJAAkACQCAQQbh/ag4LAAHPAc8BzwHPAc8BzwHPAc8BAs8BCyABQQFqIQFB0gAhEAztAgsgAUEBaiEBQdMAIRAM7AILIAFBAWohAUHUACEQDOsCCyABQQFqIgEgAkcNAAtB5AAhEAyCAwtB5AAhEAyBAwsDQAJAIAEtAABB8MKAgABqLQAAIhBBAUYNACAQQX5qDgPPAdAB0QHSAQsgAUEBaiIBIAJHDQALQeYAIRAMgAMLAkAgASIBIAJGDQAgAUEBaiEBDAMLQecAIRAM/wILA0ACQCABLQAAQfDEgIAAai0AACIQQQFGDQACQCAQQX5qDgTSAdMB1AEA1QELIAEhAUHXACEQDOcCCyABQQFqIgEgAkcNAAtB6AAhEAz+AgsCQCABIgEgAkcNAEHpACEQDP4CCwJAIAEtAAAiEEF2ag4augHVAdUBvAHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHKAdUB1QEA0wELIAFBAWohAQtBBiEQDOMCCwNAAkAgAS0AAEHwxoCAAGotAABBAUYNACABIQEMngILIAFBAWoiASACRw0AC0HqACEQDPsCCwJAIAEiASACRg0AIAFBAWohAQwDC0HrACEQDPoCCwJAIAEiASACRw0AQewAIRAM+gILIAFBAWohAQwBCwJAIAEiASACRw0AQe0AIRAM+QILIAFBAWohAQtBBCEQDN4CCwJAIAEiFCACRw0AQe4AIRAM9wILIBQhAQJAAkACQCAULQAAQfDIgIAAai0AAEF/ag4H1AHVAdYBAJwCAQLXAQsgFEEBaiEBDAoLIBRBAWohAQzNAQtBACEQIABBADYCHCAAQZuSgIAANgIQIABBBzYCDCAAIBRBAWo2AhQM9gILAkADQAJAIAEtAABB8MiAgABqLQAAIhBBBEYNAAJAAkAgEEF/ag4H0gHTAdQB2QEABAHZAQsgASEBQdoAIRAM4AILIAFBAWohAUHcACEQDN8CCyABQQFqIgEgAkcNAAtB7wAhEAz2AgsgAUEBaiEBDMsBCwJAIAEiFCACRw0AQfAAIRAM9QILIBQtAABBL0cN1AEgFEEBaiEBDAYLAkAgASIUIAJHDQBB8QAhEAz0AgsCQCAULQAAIgFBL0cNACAUQQFqIQFB3QAhEAzbAgsgAUF2aiIEQRZLDdMBQQEgBHRBiYCAAnFFDdMBDMoCCwJAIAEiASACRg0AIAFBAWohAUHeACEQDNoCC0HyACEQDPICCwJAIAEiFCACRw0AQfQAIRAM8gILIBQhAQJAIBQtAABB8MyAgABqLQAAQX9qDgPJApQCANQBC0HhACEQDNgCCwJAIAEiFCACRg0AA0ACQCAULQAAQfDKgIAAai0AACIBQQNGDQACQCABQX9qDgLLAgDVAQsgFCEBQd8AIRAM2gILIBRBAWoiFCACRw0AC0HzACEQDPECC0HzACEQDPACCwJAIAEiASACRg0AIABBj4CAgAA2AgggACABNgIEIAEhAUHgACEQDNcCC0H1ACEQDO8CCwJAIAEiASACRw0AQfYAIRAM7wILIABBj4CAgAA2AgggACABNgIEIAEhAQtBAyEQDNQCCwNAIAEtAABBIEcNwwIgAUEBaiIBIAJHDQALQfcAIRAM7AILAkAgASIBIAJHDQBB+AAhEAzsAgsgAS0AAEEgRw3OASABQQFqIQEM7wELIAAgASIBIAIQrICAgAAiEA3OASABIQEMjgILAkAgASIEIAJHDQBB+gAhEAzqAgsgBC0AAEHMAEcN0QEgBEEBaiEBQRMhEAzPAQsCQCABIgQgAkcNAEH7ACEQDOkCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRADQCAELQAAIAFB8M6AgABqLQAARw3QASABQQVGDc4BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQfsAIRAM6AILAkAgASIEIAJHDQBB/AAhEAzoAgsCQAJAIAQtAABBvX9qDgwA0QHRAdEB0QHRAdEB0QHRAdEB0QEB0QELIARBAWohAUHmACEQDM8CCyAEQQFqIQFB5wAhEAzOAgsCQCABIgQgAkcNAEH9ACEQDOcCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDc8BIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEH9ACEQDOcCCyAAQQA2AgAgEEEBaiEBQRAhEAzMAQsCQCABIgQgAkcNAEH+ACEQDOYCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUH2zoCAAGotAABHDc4BIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEH+ACEQDOYCCyAAQQA2AgAgEEEBaiEBQRYhEAzLAQsCQCABIgQgAkcNAEH/ACEQDOUCCyACIARrIAAoAgAiAWohFCAEIAFrQQNqIRACQANAIAQtAAAgAUH8zoCAAGotAABHDc0BIAFBA0YNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEH/ACEQDOUCCyAAQQA2AgAgEEEBaiEBQQUhEAzKAQsCQCABIgQgAkcNAEGAASEQDOQCCyAELQAAQdkARw3LASAEQQFqIQFBCCEQDMkBCwJAIAEiBCACRw0AQYEBIRAM4wILAkACQCAELQAAQbJ/ag4DAMwBAcwBCyAEQQFqIQFB6wAhEAzKAgsgBEEBaiEBQewAIRAMyQILAkAgASIEIAJHDQBBggEhEAziAgsCQAJAIAQtAABBuH9qDggAywHLAcsBywHLAcsBAcsBCyAEQQFqIQFB6gAhEAzJAgsgBEEBaiEBQe0AIRAMyAILAkAgASIEIAJHDQBBgwEhEAzhAgsgAiAEayAAKAIAIgFqIRAgBCABa0ECaiEUAkADQCAELQAAIAFBgM+AgABqLQAARw3JASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBA2AgBBgwEhEAzhAgtBACEQIABBADYCACAUQQFqIQEMxgELAkAgASIEIAJHDQBBhAEhEAzgAgsgAiAEayAAKAIAIgFqIRQgBCABa0EEaiEQAkADQCAELQAAIAFBg8+AgABqLQAARw3IASABQQRGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBhAEhEAzgAgsgAEEANgIAIBBBAWohAUEjIRAMxQELAkAgASIEIAJHDQBBhQEhEAzfAgsCQAJAIAQtAABBtH9qDggAyAHIAcgByAHIAcgBAcgBCyAEQQFqIQFB7wAhEAzGAgsgBEEBaiEBQfAAIRAMxQILAkAgASIEIAJHDQBBhgEhEAzeAgsgBC0AAEHFAEcNxQEgBEEBaiEBDIMCCwJAIAEiBCACRw0AQYcBIRAM3QILIAIgBGsgACgCACIBaiEUIAQgAWtBA2ohEAJAA0AgBC0AACABQYjPgIAAai0AAEcNxQEgAUEDRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYcBIRAM3QILIABBADYCACAQQQFqIQFBLSEQDMIBCwJAIAEiBCACRw0AQYgBIRAM3AILIAIgBGsgACgCACIBaiEUIAQgAWtBCGohEAJAA0AgBC0AACABQdDPgIAAai0AAEcNxAEgAUEIRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYgBIRAM3AILIABBADYCACAQQQFqIQFBKSEQDMEBCwJAIAEiASACRw0AQYkBIRAM2wILQQEhECABLQAAQd8ARw3AASABQQFqIQEMgQILAkAgASIEIAJHDQBBigEhEAzaAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQA0AgBC0AACABQYzPgIAAai0AAEcNwQEgAUEBRg2vAiABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGKASEQDNkCCwJAIAEiBCACRw0AQYsBIRAM2QILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQY7PgIAAai0AAEcNwQEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYsBIRAM2QILIABBADYCACAQQQFqIQFBAiEQDL4BCwJAIAEiBCACRw0AQYwBIRAM2AILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfDPgIAAai0AAEcNwAEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYwBIRAM2AILIABBADYCACAQQQFqIQFBHyEQDL0BCwJAIAEiBCACRw0AQY0BIRAM1wILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfLPgIAAai0AAEcNvwEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQY0BIRAM1wILIABBADYCACAQQQFqIQFBCSEQDLwBCwJAIAEiBCACRw0AQY4BIRAM1gILAkACQCAELQAAQbd/ag4HAL8BvwG/Ab8BvwEBvwELIARBAWohAUH4ACEQDL0CCyAEQQFqIQFB+QAhEAy8AgsCQCABIgQgAkcNAEGPASEQDNUCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUGRz4CAAGotAABHDb0BIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGPASEQDNUCCyAAQQA2AgAgEEEBaiEBQRghEAy6AQsCQCABIgQgAkcNAEGQASEQDNQCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUGXz4CAAGotAABHDbwBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGQASEQDNQCCyAAQQA2AgAgEEEBaiEBQRchEAy5AQsCQCABIgQgAkcNAEGRASEQDNMCCyACIARrIAAoAgAiAWohFCAEIAFrQQZqIRACQANAIAQtAAAgAUGaz4CAAGotAABHDbsBIAFBBkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGRASEQDNMCCyAAQQA2AgAgEEEBaiEBQRUhEAy4AQsCQCABIgQgAkcNAEGSASEQDNICCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUGhz4CAAGotAABHDboBIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGSASEQDNICCyAAQQA2AgAgEEEBaiEBQR4hEAy3AQsCQCABIgQgAkcNAEGTASEQDNECCyAELQAAQcwARw24ASAEQQFqIQFBCiEQDLYBCwJAIAQgAkcNAEGUASEQDNACCwJAAkAgBC0AAEG/f2oODwC5AbkBuQG5AbkBuQG5AbkBuQG5AbkBuQG5AQG5AQsgBEEBaiEBQf4AIRAMtwILIARBAWohAUH/ACEQDLYCCwJAIAQgAkcNAEGVASEQDM8CCwJAAkAgBC0AAEG/f2oOAwC4AQG4AQsgBEEBaiEBQf0AIRAMtgILIARBAWohBEGAASEQDLUCCwJAIAQgAkcNAEGWASEQDM4CCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUGnz4CAAGotAABHDbYBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGWASEQDM4CCyAAQQA2AgAgEEEBaiEBQQshEAyzAQsCQCAEIAJHDQBBlwEhEAzNAgsCQAJAAkACQCAELQAAQVNqDiMAuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AQG4AbgBuAG4AbgBArgBuAG4AQO4AQsgBEEBaiEBQfsAIRAMtgILIARBAWohAUH8ACEQDLUCCyAEQQFqIQRBgQEhEAy0AgsgBEEBaiEEQYIBIRAMswILAkAgBCACRw0AQZgBIRAMzAILIAIgBGsgACgCACIBaiEUIAQgAWtBBGohEAJAA0AgBC0AACABQanPgIAAai0AAEcNtAEgAUEERg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZgBIRAMzAILIABBADYCACAQQQFqIQFBGSEQDLEBCwJAIAQgAkcNAEGZASEQDMsCCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUGuz4CAAGotAABHDbMBIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGZASEQDMsCCyAAQQA2AgAgEEEBaiEBQQYhEAywAQsCQCAEIAJHDQBBmgEhEAzKAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBtM+AgABqLQAARw2yASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBmgEhEAzKAgsgAEEANgIAIBBBAWohAUEcIRAMrwELAkAgBCACRw0AQZsBIRAMyQILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQbbPgIAAai0AAEcNsQEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZsBIRAMyQILIABBADYCACAQQQFqIQFBJyEQDK4BCwJAIAQgAkcNAEGcASEQDMgCCwJAAkAgBC0AAEGsf2oOAgABsQELIARBAWohBEGGASEQDK8CCyAEQQFqIQRBhwEhEAyuAgsCQCAEIAJHDQBBnQEhEAzHAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBuM+AgABqLQAARw2vASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBnQEhEAzHAgsgAEEANgIAIBBBAWohAUEmIRAMrAELAkAgBCACRw0AQZ4BIRAMxgILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQbrPgIAAai0AAEcNrgEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZ4BIRAMxgILIABBADYCACAQQQFqIQFBAyEQDKsBCwJAIAQgAkcNAEGfASEQDMUCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDa0BIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGfASEQDMUCCyAAQQA2AgAgEEEBaiEBQQwhEAyqAQsCQCAEIAJHDQBBoAEhEAzEAgsgAiAEayAAKAIAIgFqIRQgBCABa0EDaiEQAkADQCAELQAAIAFBvM+AgABqLQAARw2sASABQQNGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBoAEhEAzEAgsgAEEANgIAIBBBAWohAUENIRAMqQELAkAgBCACRw0AQaEBIRAMwwILAkACQCAELQAAQbp/ag4LAKwBrAGsAawBrAGsAawBrAGsAQGsAQsgBEEBaiEEQYsBIRAMqgILIARBAWohBEGMASEQDKkCCwJAIAQgAkcNAEGiASEQDMICCyAELQAAQdAARw2pASAEQQFqIQQM6QELAkAgBCACRw0AQaMBIRAMwQILAkACQCAELQAAQbd/ag4HAaoBqgGqAaoBqgEAqgELIARBAWohBEGOASEQDKgCCyAEQQFqIQFBIiEQDKYBCwJAIAQgAkcNAEGkASEQDMACCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUHAz4CAAGotAABHDagBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGkASEQDMACCyAAQQA2AgAgEEEBaiEBQR0hEAylAQsCQCAEIAJHDQBBpQEhEAy/AgsCQAJAIAQtAABBrn9qDgMAqAEBqAELIARBAWohBEGQASEQDKYCCyAEQQFqIQFBBCEQDKQBCwJAIAQgAkcNAEGmASEQDL4CCwJAAkACQAJAAkAgBC0AAEG/f2oOFQCqAaoBqgGqAaoBqgGqAaoBqgGqAQGqAaoBAqoBqgEDqgGqAQSqAQsgBEEBaiEEQYgBIRAMqAILIARBAWohBEGJASEQDKcCCyAEQQFqIQRBigEhEAymAgsgBEEBaiEEQY8BIRAMpQILIARBAWohBEGRASEQDKQCCwJAIAQgAkcNAEGnASEQDL0CCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDaUBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGnASEQDL0CCyAAQQA2AgAgEEEBaiEBQREhEAyiAQsCQCAEIAJHDQBBqAEhEAy8AgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFBws+AgABqLQAARw2kASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBqAEhEAy8AgsgAEEANgIAIBBBAWohAUEsIRAMoQELAkAgBCACRw0AQakBIRAMuwILIAIgBGsgACgCACIBaiEUIAQgAWtBBGohEAJAA0AgBC0AACABQcXPgIAAai0AAEcNowEgAUEERg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQakBIRAMuwILIABBADYCACAQQQFqIQFBKyEQDKABCwJAIAQgAkcNAEGqASEQDLoCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHKz4CAAGotAABHDaIBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGqASEQDLoCCyAAQQA2AgAgEEEBaiEBQRQhEAyfAQsCQCAEIAJHDQBBqwEhEAy5AgsCQAJAAkACQCAELQAAQb5/ag4PAAECpAGkAaQBpAGkAaQBpAGkAaQBpAGkAQOkAQsgBEEBaiEEQZMBIRAMogILIARBAWohBEGUASEQDKECCyAEQQFqIQRBlQEhEAygAgsgBEEBaiEEQZYBIRAMnwILAkAgBCACRw0AQawBIRAMuAILIAQtAABBxQBHDZ8BIARBAWohBAzgAQsCQCAEIAJHDQBBrQEhEAy3AgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFBzc+AgABqLQAARw2fASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBrQEhEAy3AgsgAEEANgIAIBBBAWohAUEOIRAMnAELAkAgBCACRw0AQa4BIRAMtgILIAQtAABB0ABHDZ0BIARBAWohAUElIRAMmwELAkAgBCACRw0AQa8BIRAMtQILIAIgBGsgACgCACIBaiEUIAQgAWtBCGohEAJAA0AgBC0AACABQdDPgIAAai0AAEcNnQEgAUEIRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQa8BIRAMtQILIABBADYCACAQQQFqIQFBKiEQDJoBCwJAIAQgAkcNAEGwASEQDLQCCwJAAkAgBC0AAEGrf2oOCwCdAZ0BnQGdAZ0BnQGdAZ0BnQEBnQELIARBAWohBEGaASEQDJsCCyAEQQFqIQRBmwEhEAyaAgsCQCAEIAJHDQBBsQEhEAyzAgsCQAJAIAQtAABBv39qDhQAnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBAZwBCyAEQQFqIQRBmQEhEAyaAgsgBEEBaiEEQZwBIRAMmQILAkAgBCACRw0AQbIBIRAMsgILIAIgBGsgACgCACIBaiEUIAQgAWtBA2ohEAJAA0AgBC0AACABQdnPgIAAai0AAEcNmgEgAUEDRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbIBIRAMsgILIABBADYCACAQQQFqIQFBISEQDJcBCwJAIAQgAkcNAEGzASEQDLECCyACIARrIAAoAgAiAWohFCAEIAFrQQZqIRACQANAIAQtAAAgAUHdz4CAAGotAABHDZkBIAFBBkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGzASEQDLECCyAAQQA2AgAgEEEBaiEBQRohEAyWAQsCQCAEIAJHDQBBtAEhEAywAgsCQAJAAkAgBC0AAEG7f2oOEQCaAZoBmgGaAZoBmgGaAZoBmgEBmgGaAZoBmgGaAQKaAQsgBEEBaiEEQZ0BIRAMmAILIARBAWohBEGeASEQDJcCCyAEQQFqIQRBnwEhEAyWAgsCQCAEIAJHDQBBtQEhEAyvAgsgAiAEayAAKAIAIgFqIRQgBCABa0EFaiEQAkADQCAELQAAIAFB5M+AgABqLQAARw2XASABQQVGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBtQEhEAyvAgsgAEEANgIAIBBBAWohAUEoIRAMlAELAkAgBCACRw0AQbYBIRAMrgILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQerPgIAAai0AAEcNlgEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbYBIRAMrgILIABBADYCACAQQQFqIQFBByEQDJMBCwJAIAQgAkcNAEG3ASEQDK0CCwJAAkAgBC0AAEG7f2oODgCWAZYBlgGWAZYBlgGWAZYBlgGWAZYBlgEBlgELIARBAWohBEGhASEQDJQCCyAEQQFqIQRBogEhEAyTAgsCQCAEIAJHDQBBuAEhEAysAgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFB7c+AgABqLQAARw2UASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBuAEhEAysAgsgAEEANgIAIBBBAWohAUESIRAMkQELAkAgBCACRw0AQbkBIRAMqwILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfDPgIAAai0AAEcNkwEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbkBIRAMqwILIABBADYCACAQQQFqIQFBICEQDJABCwJAIAQgAkcNAEG6ASEQDKoCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUHyz4CAAGotAABHDZIBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG6ASEQDKoCCyAAQQA2AgAgEEEBaiEBQQ8hEAyPAQsCQCAEIAJHDQBBuwEhEAypAgsCQAJAIAQtAABBt39qDgcAkgGSAZIBkgGSAQGSAQsgBEEBaiEEQaUBIRAMkAILIARBAWohBEGmASEQDI8CCwJAIAQgAkcNAEG8ASEQDKgCCyACIARrIAAoAgAiAWohFCAEIAFrQQdqIRACQANAIAQtAAAgAUH0z4CAAGotAABHDZABIAFBB0YNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG8ASEQDKgCCyAAQQA2AgAgEEEBaiEBQRshEAyNAQsCQCAEIAJHDQBBvQEhEAynAgsCQAJAAkAgBC0AAEG+f2oOEgCRAZEBkQGRAZEBkQGRAZEBkQEBkQGRAZEBkQGRAZEBApEBCyAEQQFqIQRBpAEhEAyPAgsgBEEBaiEEQacBIRAMjgILIARBAWohBEGoASEQDI0CCwJAIAQgAkcNAEG+ASEQDKYCCyAELQAAQc4ARw2NASAEQQFqIQQMzwELAkAgBCACRw0AQb8BIRAMpQILAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgBC0AAEG/f2oOFQABAgOcAQQFBpwBnAGcAQcICQoLnAEMDQ4PnAELIARBAWohAUHoACEQDJoCCyAEQQFqIQFB6QAhEAyZAgsgBEEBaiEBQe4AIRAMmAILIARBAWohAUHyACEQDJcCCyAEQQFqIQFB8wAhEAyWAgsgBEEBaiEBQfYAIRAMlQILIARBAWohAUH3ACEQDJQCCyAEQQFqIQFB+gAhEAyTAgsgBEEBaiEEQYMBIRAMkgILIARBAWohBEGEASEQDJECCyAEQQFqIQRBhQEhEAyQAgsgBEEBaiEEQZIBIRAMjwILIARBAWohBEGYASEQDI4CCyAEQQFqIQRBoAEhEAyNAgsgBEEBaiEEQaMBIRAMjAILIARBAWohBEGqASEQDIsCCwJAIAQgAkYNACAAQZCAgIAANgIIIAAgBDYCBEGrASEQDIsCC0HAASEQDKMCCyAAIAUgAhCqgICAACIBDYsBIAUhAQxcCwJAIAYgAkYNACAGQQFqIQUMjQELQcIBIRAMoQILA0ACQCAQLQAAQXZqDgSMAQAAjwEACyAQQQFqIhAgAkcNAAtBwwEhEAygAgsCQCAHIAJGDQAgAEGRgICAADYCCCAAIAc2AgQgByEBQQEhEAyHAgtBxAEhEAyfAgsCQCAHIAJHDQBBxQEhEAyfAgsCQAJAIActAABBdmoOBAHOAc4BAM4BCyAHQQFqIQYMjQELIAdBAWohBQyJAQsCQCAHIAJHDQBBxgEhEAyeAgsCQAJAIActAABBdmoOFwGPAY8BAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAQCPAQsgB0EBaiEHC0GwASEQDIQCCwJAIAggAkcNAEHIASEQDJ0CCyAILQAAQSBHDY0BIABBADsBMiAIQQFqIQFBswEhEAyDAgsgASEXAkADQCAXIgcgAkYNASAHLQAAQVBqQf8BcSIQQQpPDcwBAkAgAC8BMiIUQZkzSw0AIAAgFEEKbCIUOwEyIBBB//8DcyAUQf7/A3FJDQAgB0EBaiEXIAAgFCAQaiIQOwEyIBBB//8DcUHoB0kNAQsLQQAhECAAQQA2AhwgAEHBiYCAADYCECAAQQ02AgwgACAHQQFqNgIUDJwCC0HHASEQDJsCCyAAIAggAhCugICAACIQRQ3KASAQQRVHDYwBIABByAE2AhwgACAINgIUIABByZeAgAA2AhAgAEEVNgIMQQAhEAyaAgsCQCAJIAJHDQBBzAEhEAyaAgtBACEUQQEhF0EBIRZBACEQAkACQAJAAkACQAJAAkACQAJAIAktAABBUGoOCpYBlQEAAQIDBAUGCJcBC0ECIRAMBgtBAyEQDAULQQQhEAwEC0EFIRAMAwtBBiEQDAILQQchEAwBC0EIIRALQQAhF0EAIRZBACEUDI4BC0EJIRBBASEUQQAhF0EAIRYMjQELAkAgCiACRw0AQc4BIRAMmQILIAotAABBLkcNjgEgCkEBaiEJDMoBCyALIAJHDY4BQdABIRAMlwILAkAgCyACRg0AIABBjoCAgAA2AgggACALNgIEQbcBIRAM/gELQdEBIRAMlgILAkAgBCACRw0AQdIBIRAMlgILIAIgBGsgACgCACIQaiEUIAQgEGtBBGohCwNAIAQtAAAgEEH8z4CAAGotAABHDY4BIBBBBEYN6QEgEEEBaiEQIARBAWoiBCACRw0ACyAAIBQ2AgBB0gEhEAyVAgsgACAMIAIQrICAgAAiAQ2NASAMIQEMuAELAkAgBCACRw0AQdQBIRAMlAILIAIgBGsgACgCACIQaiEUIAQgEGtBAWohDANAIAQtAAAgEEGB0ICAAGotAABHDY8BIBBBAUYNjgEgEEEBaiEQIARBAWoiBCACRw0ACyAAIBQ2AgBB1AEhEAyTAgsCQCAEIAJHDQBB1gEhEAyTAgsgAiAEayAAKAIAIhBqIRQgBCAQa0ECaiELA0AgBC0AACAQQYPQgIAAai0AAEcNjgEgEEECRg2QASAQQQFqIRAgBEEBaiIEIAJHDQALIAAgFDYCAEHWASEQDJICCwJAIAQgAkcNAEHXASEQDJICCwJAAkAgBC0AAEG7f2oOEACPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BAY8BCyAEQQFqIQRBuwEhEAz5AQsgBEEBaiEEQbwBIRAM+AELAkAgBCACRw0AQdgBIRAMkQILIAQtAABByABHDYwBIARBAWohBAzEAQsCQCAEIAJGDQAgAEGQgICAADYCCCAAIAQ2AgRBvgEhEAz3AQtB2QEhEAyPAgsCQCAEIAJHDQBB2gEhEAyPAgsgBC0AAEHIAEYNwwEgAEEBOgAoDLkBCyAAQQI6AC8gACAEIAIQpoCAgAAiEA2NAUHCASEQDPQBCyAALQAoQX9qDgK3AbkBuAELA0ACQCAELQAAQXZqDgQAjgGOAQCOAQsgBEEBaiIEIAJHDQALQd0BIRAMiwILIABBADoALyAALQAtQQRxRQ2EAgsgAEEAOgAvIABBAToANCABIQEMjAELIBBBFUYN2gEgAEEANgIcIAAgATYCFCAAQaeOgIAANgIQIABBEjYCDEEAIRAMiAILAkAgACAQIAIQtICAgAAiBA0AIBAhAQyBAgsCQCAEQRVHDQAgAEEDNgIcIAAgEDYCFCAAQbCYgIAANgIQIABBFTYCDEEAIRAMiAILIABBADYCHCAAIBA2AhQgAEGnjoCAADYCECAAQRI2AgxBACEQDIcCCyAQQRVGDdYBIABBADYCHCAAIAE2AhQgAEHajYCAADYCECAAQRQ2AgxBACEQDIYCCyAAKAIEIRcgAEEANgIEIBAgEadqIhYhASAAIBcgECAWIBQbIhAQtYCAgAAiFEUNjQEgAEEHNgIcIAAgEDYCFCAAIBQ2AgxBACEQDIUCCyAAIAAvATBBgAFyOwEwIAEhAQtBKiEQDOoBCyAQQRVGDdEBIABBADYCHCAAIAE2AhQgAEGDjICAADYCECAAQRM2AgxBACEQDIICCyAQQRVGDc8BIABBADYCHCAAIAE2AhQgAEGaj4CAADYCECAAQSI2AgxBACEQDIECCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQt4CAgAAiEA0AIAFBAWohAQyNAQsgAEEMNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDIACCyAQQRVGDcwBIABBADYCHCAAIAE2AhQgAEGaj4CAADYCECAAQSI2AgxBACEQDP8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQt4CAgAAiEA0AIAFBAWohAQyMAQsgAEENNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDP4BCyAQQRVGDckBIABBADYCHCAAIAE2AhQgAEHGjICAADYCECAAQSM2AgxBACEQDP0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQuYCAgAAiEA0AIAFBAWohAQyLAQsgAEEONgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDPwBCyAAQQA2AhwgACABNgIUIABBwJWAgAA2AhAgAEECNgIMQQAhEAz7AQsgEEEVRg3FASAAQQA2AhwgACABNgIUIABBxoyAgAA2AhAgAEEjNgIMQQAhEAz6AQsgAEEQNgIcIAAgATYCFCAAIBA2AgxBACEQDPkBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQuYCAgAAiBA0AIAFBAWohAQzxAQsgAEERNgIcIAAgBDYCDCAAIAFBAWo2AhRBACEQDPgBCyAQQRVGDcEBIABBADYCHCAAIAE2AhQgAEHGjICAADYCECAAQSM2AgxBACEQDPcBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQuYCAgAAiEA0AIAFBAWohAQyIAQsgAEETNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDPYBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQuYCAgAAiBA0AIAFBAWohAQztAQsgAEEUNgIcIAAgBDYCDCAAIAFBAWo2AhRBACEQDPUBCyAQQRVGDb0BIABBADYCHCAAIAE2AhQgAEGaj4CAADYCECAAQSI2AgxBACEQDPQBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQt4CAgAAiEA0AIAFBAWohAQyGAQsgAEEWNgIcIAAgEDYCDCAAIAFBAWo2AhRBACEQDPMBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQt4CAgAAiBA0AIAFBAWohAQzpAQsgAEEXNgIcIAAgBDYCDCAAIAFBAWo2AhRBACEQDPIBCyAAQQA2AhwgACABNgIUIABBzZOAgAA2AhAgAEEMNgIMQQAhEAzxAQtCASERCyAQQQFqIQECQCAAKQMgIhJC//////////8PVg0AIAAgEkIEhiARhDcDICABIQEMhAELIABBADYCHCAAIAE2AhQgAEGtiYCAADYCECAAQQw2AgxBACEQDO8BCyAAQQA2AhwgACAQNgIUIABBzZOAgAA2AhAgAEEMNgIMQQAhEAzuAQsgACgCBCEXIABBADYCBCAQIBGnaiIWIQEgACAXIBAgFiAUGyIQELWAgIAAIhRFDXMgAEEFNgIcIAAgEDYCFCAAIBQ2AgxBACEQDO0BCyAAQQA2AhwgACAQNgIUIABBqpyAgAA2AhAgAEEPNgIMQQAhEAzsAQsgACAQIAIQtICAgAAiAQ0BIBAhAQtBDiEQDNEBCwJAIAFBFUcNACAAQQI2AhwgACAQNgIUIABBsJiAgAA2AhAgAEEVNgIMQQAhEAzqAQsgAEEANgIcIAAgEDYCFCAAQaeOgIAANgIQIABBEjYCDEEAIRAM6QELIAFBAWohEAJAIAAvATAiAUGAAXFFDQACQCAAIBAgAhC7gICAACIBDQAgECEBDHALIAFBFUcNugEgAEEFNgIcIAAgEDYCFCAAQfmXgIAANgIQIABBFTYCDEEAIRAM6QELAkAgAUGgBHFBoARHDQAgAC0ALUECcQ0AIABBADYCHCAAIBA2AhQgAEGWk4CAADYCECAAQQQ2AgxBACEQDOkBCyAAIBAgAhC9gICAABogECEBAkACQAJAAkACQCAAIBAgAhCzgICAAA4WAgEABAQEBAQEBAQEBAQEBAQEBAQEAwQLIABBAToALgsgACAALwEwQcAAcjsBMCAQIQELQSYhEAzRAQsgAEEjNgIcIAAgEDYCFCAAQaWWgIAANgIQIABBFTYCDEEAIRAM6QELIABBADYCHCAAIBA2AhQgAEHVi4CAADYCECAAQRE2AgxBACEQDOgBCyAALQAtQQFxRQ0BQcMBIRAMzgELAkAgDSACRg0AA0ACQCANLQAAQSBGDQAgDSEBDMQBCyANQQFqIg0gAkcNAAtBJSEQDOcBC0ElIRAM5gELIAAoAgQhBCAAQQA2AgQgACAEIA0Qr4CAgAAiBEUNrQEgAEEmNgIcIAAgBDYCDCAAIA1BAWo2AhRBACEQDOUBCyAQQRVGDasBIABBADYCHCAAIAE2AhQgAEH9jYCAADYCECAAQR02AgxBACEQDOQBCyAAQSc2AhwgACABNgIUIAAgEDYCDEEAIRAM4wELIBAhAUEBIRQCQAJAAkACQAJAAkACQCAALQAsQX5qDgcGBQUDAQIABQsgACAALwEwQQhyOwEwDAMLQQIhFAwBC0EEIRQLIABBAToALCAAIAAvATAgFHI7ATALIBAhAQtBKyEQDMoBCyAAQQA2AhwgACAQNgIUIABBq5KAgAA2AhAgAEELNgIMQQAhEAziAQsgAEEANgIcIAAgATYCFCAAQeGPgIAANgIQIABBCjYCDEEAIRAM4QELIABBADoALCAQIQEMvQELIBAhAUEBIRQCQAJAAkACQAJAIAAtACxBe2oOBAMBAgAFCyAAIAAvATBBCHI7ATAMAwtBAiEUDAELQQQhFAsgAEEBOgAsIAAgAC8BMCAUcjsBMAsgECEBC0EpIRAMxQELIABBADYCHCAAIAE2AhQgAEHwlICAADYCECAAQQM2AgxBACEQDN0BCwJAIA4tAABBDUcNACAAKAIEIQEgAEEANgIEAkAgACABIA4QsYCAgAAiAQ0AIA5BAWohAQx1CyAAQSw2AhwgACABNgIMIAAgDkEBajYCFEEAIRAM3QELIAAtAC1BAXFFDQFBxAEhEAzDAQsCQCAOIAJHDQBBLSEQDNwBCwJAAkADQAJAIA4tAABBdmoOBAIAAAMACyAOQQFqIg4gAkcNAAtBLSEQDN0BCyAAKAIEIQEgAEEANgIEAkAgACABIA4QsYCAgAAiAQ0AIA4hAQx0CyAAQSw2AhwgACAONgIUIAAgATYCDEEAIRAM3AELIAAoAgQhASAAQQA2AgQCQCAAIAEgDhCxgICAACIBDQAgDkEBaiEBDHMLIABBLDYCHCAAIAE2AgwgACAOQQFqNgIUQQAhEAzbAQsgACgCBCEEIABBADYCBCAAIAQgDhCxgICAACIEDaABIA4hAQzOAQsgEEEsRw0BIAFBAWohEEEBIQECQAJAAkACQAJAIAAtACxBe2oOBAMBAgQACyAQIQEMBAtBAiEBDAELQQQhAQsgAEEBOgAsIAAgAC8BMCABcjsBMCAQIQEMAQsgACAALwEwQQhyOwEwIBAhAQtBOSEQDL8BCyAAQQA6ACwgASEBC0E0IRAMvQELIAAgAC8BMEEgcjsBMCABIQEMAgsgACgCBCEEIABBADYCBAJAIAAgBCABELGAgIAAIgQNACABIQEMxwELIABBNzYCHCAAIAE2AhQgACAENgIMQQAhEAzUAQsgAEEIOgAsIAEhAQtBMCEQDLkBCwJAIAAtAChBAUYNACABIQEMBAsgAC0ALUEIcUUNkwEgASEBDAMLIAAtADBBIHENlAFBxQEhEAy3AQsCQCAPIAJGDQACQANAAkAgDy0AAEFQaiIBQf8BcUEKSQ0AIA8hAUE1IRAMugELIAApAyAiEUKZs+bMmbPmzBlWDQEgACARQgp+IhE3AyAgESABrUL/AYMiEkJ/hVYNASAAIBEgEnw3AyAgD0EBaiIPIAJHDQALQTkhEAzRAQsgACgCBCECIABBADYCBCAAIAIgD0EBaiIEELGAgIAAIgINlQEgBCEBDMMBC0E5IRAMzwELAkAgAC8BMCIBQQhxRQ0AIAAtAChBAUcNACAALQAtQQhxRQ2QAQsgACABQff7A3FBgARyOwEwIA8hAQtBNyEQDLQBCyAAIAAvATBBEHI7ATAMqwELIBBBFUYNiwEgAEEANgIcIAAgATYCFCAAQfCOgIAANgIQIABBHDYCDEEAIRAMywELIABBwwA2AhwgACABNgIMIAAgDUEBajYCFEEAIRAMygELAkAgAS0AAEE6Rw0AIAAoAgQhECAAQQA2AgQCQCAAIBAgARCvgICAACIQDQAgAUEBaiEBDGMLIABBwwA2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAMygELIABBADYCHCAAIAE2AhQgAEGxkYCAADYCECAAQQo2AgxBACEQDMkBCyAAQQA2AhwgACABNgIUIABBoJmAgAA2AhAgAEEeNgIMQQAhEAzIAQsgAEEANgIACyAAQYASOwEqIAAgF0EBaiIBIAIQqICAgAAiEA0BIAEhAQtBxwAhEAysAQsgEEEVRw2DASAAQdEANgIcIAAgATYCFCAAQeOXgIAANgIQIABBFTYCDEEAIRAMxAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDF4LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMwwELIABBADYCHCAAIBQ2AhQgAEHBqICAADYCECAAQQc2AgwgAEEANgIAQQAhEAzCAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMXQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAzBAQtBACEQIABBADYCHCAAIAE2AhQgAEGAkYCAADYCECAAQQk2AgwMwAELIBBBFUYNfSAAQQA2AhwgACABNgIUIABBlI2AgAA2AhAgAEEhNgIMQQAhEAy/AQtBASEWQQAhF0EAIRRBASEQCyAAIBA6ACsgAUEBaiEBAkACQCAALQAtQRBxDQACQAJAAkAgAC0AKg4DAQACBAsgFkUNAwwCCyAUDQEMAgsgF0UNAQsgACgCBCEQIABBADYCBAJAIAAgECABEK2AgIAAIhANACABIQEMXAsgAEHYADYCHCAAIAE2AhQgACAQNgIMQQAhEAy+AQsgACgCBCEEIABBADYCBAJAIAAgBCABEK2AgIAAIgQNACABIQEMrQELIABB2QA2AhwgACABNgIUIAAgBDYCDEEAIRAMvQELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKsBCyAAQdoANgIcIAAgATYCFCAAIAQ2AgxBACEQDLwBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQypAQsgAEHcADYCHCAAIAE2AhQgACAENgIMQQAhEAy7AQsCQCABLQAAQVBqIhBB/wFxQQpPDQAgACAQOgAqIAFBAWohAUHPACEQDKIBCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQynAQsgAEHeADYCHCAAIAE2AhQgACAENgIMQQAhEAy6AQsgAEEANgIAIBdBAWohAQJAIAAtAClBI08NACABIQEMWQsgAEEANgIcIAAgATYCFCAAQdOJgIAANgIQIABBCDYCDEEAIRAMuQELIABBADYCAAtBACEQIABBADYCHCAAIAE2AhQgAEGQs4CAADYCECAAQQg2AgwMtwELIABBADYCACAXQQFqIQECQCAALQApQSFHDQAgASEBDFYLIABBADYCHCAAIAE2AhQgAEGbioCAADYCECAAQQg2AgxBACEQDLYBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKSIQQV1qQQtPDQAgASEBDFULAkAgEEEGSw0AQQEgEHRBygBxRQ0AIAEhAQxVC0EAIRAgAEEANgIcIAAgATYCFCAAQfeJgIAANgIQIABBCDYCDAy1AQsgEEEVRg1xIABBADYCHCAAIAE2AhQgAEG5jYCAADYCECAAQRo2AgxBACEQDLQBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxUCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLMBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEANgIAIBBBAWohAUEkIRALIAAgEDoAKSAAKAIEIRAgAEEANgIEIAAgECABEKuAgIAAIhANVCABIQEMPgsgAEEANgIAC0EAIRAgAEEANgIcIAAgBDYCFCAAQfGbgIAANgIQIABBBjYCDAyXAQsgAUEVRg1QIABBADYCHCAAIAU2AhQgAEHwjICAADYCECAAQRs2AgxBACEQDJYBCyAAKAIEIQUgAEEANgIEIAAgBSAQEKmAgIAAIgUNASAQQQFqIQULQa0BIRAMewsgAEHBATYCHCAAIAU2AgwgACAQQQFqNgIUQQAhEAyTAQsgACgCBCEGIABBADYCBCAAIAYgEBCpgICAACIGDQEgEEEBaiEGC0GuASEQDHgLIABBwgE2AhwgACAGNgIMIAAgEEEBajYCFEEAIRAMkAELIABBADYCHCAAIAc2AhQgAEGXi4CAADYCECAAQQ02AgxBACEQDI8BCyAAQQA2AhwgACAINgIUIABB45CAgAA2AhAgAEEJNgIMQQAhEAyOAQsgAEEANgIcIAAgCDYCFCAAQZSNgIAANgIQIABBITYCDEEAIRAMjQELQQEhFkEAIRdBACEUQQEhEAsgACAQOgArIAlBAWohCAJAAkAgAC0ALUEQcQ0AAkACQAJAIAAtACoOAwEAAgQLIBZFDQMMAgsgFA0BDAILIBdFDQELIAAoAgQhECAAQQA2AgQgACAQIAgQrYCAgAAiEEUNPSAAQckBNgIcIAAgCDYCFCAAIBA2AgxBACEQDIwBCyAAKAIEIQQgAEEANgIEIAAgBCAIEK2AgIAAIgRFDXYgAEHKATYCHCAAIAg2AhQgACAENgIMQQAhEAyLAQsgACgCBCEEIABBADYCBCAAIAQgCRCtgICAACIERQ10IABBywE2AhwgACAJNgIUIAAgBDYCDEEAIRAMigELIAAoAgQhBCAAQQA2AgQgACAEIAoQrYCAgAAiBEUNciAAQc0BNgIcIAAgCjYCFCAAIAQ2AgxBACEQDIkBCwJAIAstAABBUGoiEEH/AXFBCk8NACAAIBA6ACogC0EBaiEKQbYBIRAMcAsgACgCBCEEIABBADYCBCAAIAQgCxCtgICAACIERQ1wIABBzwE2AhwgACALNgIUIAAgBDYCDEEAIRAMiAELIABBADYCHCAAIAQ2AhQgAEGQs4CAADYCECAAQQg2AgwgAEEANgIAQQAhEAyHAQsgAUEVRg0/IABBADYCHCAAIAw2AhQgAEHMjoCAADYCECAAQSA2AgxBACEQDIYBCyAAQYEEOwEoIAAoAgQhECAAQgA3AwAgACAQIAxBAWoiDBCrgICAACIQRQ04IABB0wE2AhwgACAMNgIUIAAgEDYCDEEAIRAMhQELIABBADYCAAtBACEQIABBADYCHCAAIAQ2AhQgAEHYm4CAADYCECAAQQg2AgwMgwELIAAoAgQhECAAQgA3AwAgACAQIAtBAWoiCxCrgICAACIQDQFBxgEhEAxpCyAAQQI6ACgMVQsgAEHVATYCHCAAIAs2AhQgACAQNgIMQQAhEAyAAQsgEEEVRg03IABBADYCHCAAIAQ2AhQgAEGkjICAADYCECAAQRA2AgxBACEQDH8LIAAtADRBAUcNNCAAIAQgAhC8gICAACIQRQ00IBBBFUcNNSAAQdwBNgIcIAAgBDYCFCAAQdWWgIAANgIQIABBFTYCDEEAIRAMfgtBACEQIABBADYCHCAAQa+LgIAANgIQIABBAjYCDCAAIBRBAWo2AhQMfQtBACEQDGMLQQIhEAxiC0ENIRAMYQtBDyEQDGALQSUhEAxfC0ETIRAMXgtBFSEQDF0LQRYhEAxcC0EXIRAMWwtBGCEQDFoLQRkhEAxZC0EaIRAMWAtBGyEQDFcLQRwhEAxWC0EdIRAMVQtBHyEQDFQLQSEhEAxTC0EjIRAMUgtBxgAhEAxRC0EuIRAMUAtBLyEQDE8LQTshEAxOC0E9IRAMTQtByAAhEAxMC0HJACEQDEsLQcsAIRAMSgtBzAAhEAxJC0HOACEQDEgLQdEAIRAMRwtB1QAhEAxGC0HYACEQDEULQdkAIRAMRAtB2wAhEAxDC0HkACEQDEILQeUAIRAMQQtB8QAhEAxAC0H0ACEQDD8LQY0BIRAMPgtBlwEhEAw9C0GpASEQDDwLQawBIRAMOwtBwAEhEAw6C0G5ASEQDDkLQa8BIRAMOAtBsQEhEAw3C0GyASEQDDYLQbQBIRAMNQtBtQEhEAw0C0G6ASEQDDMLQb0BIRAMMgtBvwEhEAwxC0HBASEQDDALIABBADYCHCAAIAQ2AhQgAEHpi4CAADYCECAAQR82AgxBACEQDEgLIABB2wE2AhwgACAENgIUIABB+paAgAA2AhAgAEEVNgIMQQAhEAxHCyAAQfgANgIcIAAgDDYCFCAAQcqYgIAANgIQIABBFTYCDEEAIRAMRgsgAEHRADYCHCAAIAU2AhQgAEGwl4CAADYCECAAQRU2AgxBACEQDEULIABB+QA2AhwgACABNgIUIAAgEDYCDEEAIRAMRAsgAEH4ADYCHCAAIAE2AhQgAEHKmICAADYCECAAQRU2AgxBACEQDEMLIABB5AA2AhwgACABNgIUIABB45eAgAA2AhAgAEEVNgIMQQAhEAxCCyAAQdcANgIcIAAgATYCFCAAQcmXgIAANgIQIABBFTYCDEEAIRAMQQsgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMQAsgAEHCADYCHCAAIAE2AhQgAEHjmICAADYCECAAQRU2AgxBACEQDD8LIABBADYCBCAAIA8gDxCxgICAACIERQ0BIABBOjYCHCAAIAQ2AgwgACAPQQFqNgIUQQAhEAw+CyAAKAIEIQQgAEEANgIEAkAgACAEIAEQsYCAgAAiBEUNACAAQTs2AhwgACAENgIMIAAgAUEBajYCFEEAIRAMPgsgAUEBaiEBDC0LIA9BAWohAQwtCyAAQQA2AhwgACAPNgIUIABB5JKAgAA2AhAgAEEENgIMQQAhEAw7CyAAQTY2AhwgACAENgIUIAAgAjYCDEEAIRAMOgsgAEEuNgIcIAAgDjYCFCAAIAQ2AgxBACEQDDkLIABB0AA2AhwgACABNgIUIABBkZiAgAA2AhAgAEEVNgIMQQAhEAw4CyANQQFqIQEMLAsgAEEVNgIcIAAgATYCFCAAQYKZgIAANgIQIABBFTYCDEEAIRAMNgsgAEEbNgIcIAAgATYCFCAAQZGXgIAANgIQIABBFTYCDEEAIRAMNQsgAEEPNgIcIAAgATYCFCAAQZGXgIAANgIQIABBFTYCDEEAIRAMNAsgAEELNgIcIAAgATYCFCAAQZGXgIAANgIQIABBFTYCDEEAIRAMMwsgAEEaNgIcIAAgATYCFCAAQYKZgIAANgIQIABBFTYCDEEAIRAMMgsgAEELNgIcIAAgATYCFCAAQYKZgIAANgIQIABBFTYCDEEAIRAMMQsgAEEKNgIcIAAgATYCFCAAQeSWgIAANgIQIABBFTYCDEEAIRAMMAsgAEEeNgIcIAAgATYCFCAAQfmXgIAANgIQIABBFTYCDEEAIRAMLwsgAEEANgIcIAAgEDYCFCAAQdqNgIAANgIQIABBFDYCDEEAIRAMLgsgAEEENgIcIAAgATYCFCAAQbCYgIAANgIQIABBFTYCDEEAIRAMLQsgAEEANgIAIAtBAWohCwtBuAEhEAwSCyAAQQA2AgAgEEEBaiEBQfUAIRAMEQsgASEBAkAgAC0AKUEFRw0AQeMAIRAMEQtB4gAhEAwQC0EAIRAgAEEANgIcIABB5JGAgAA2AhAgAEEHNgIMIAAgFEEBajYCFAwoCyAAQQA2AgAgF0EBaiEBQcAAIRAMDgtBASEBCyAAIAE6ACwgAEEANgIAIBdBAWohAQtBKCEQDAsLIAEhAQtBOCEQDAkLAkAgASIPIAJGDQADQAJAIA8tAABBgL6AgABqLQAAIgFBAUYNACABQQJHDQMgD0EBaiEBDAQLIA9BAWoiDyACRw0AC0E+IRAMIgtBPiEQDCELIABBADoALCAPIQEMAQtBCyEQDAYLQTohEAwFCyABQQFqIQFBLSEQDAQLIAAgAToALCAAQQA2AgAgFkEBaiEBQQwhEAwDCyAAQQA2AgAgF0EBaiEBQQohEAwCCyAAQQA2AgALIABBADoALCANIQFBCSEQDAALC0EAIRAgAEEANgIcIAAgCzYCFCAAQc2QgIAANgIQIABBCTYCDAwXC0EAIRAgAEEANgIcIAAgCjYCFCAAQemKgIAANgIQIABBCTYCDAwWC0EAIRAgAEEANgIcIAAgCTYCFCAAQbeQgIAANgIQIABBCTYCDAwVC0EAIRAgAEEANgIcIAAgCDYCFCAAQZyRgIAANgIQIABBCTYCDAwUC0EAIRAgAEEANgIcIAAgATYCFCAAQc2QgIAANgIQIABBCTYCDAwTC0EAIRAgAEEANgIcIAAgATYCFCAAQemKgIAANgIQIABBCTYCDAwSC0EAIRAgAEEANgIcIAAgATYCFCAAQbeQgIAANgIQIABBCTYCDAwRC0EAIRAgAEEANgIcIAAgATYCFCAAQZyRgIAANgIQIABBCTYCDAwQC0EAIRAgAEEANgIcIAAgATYCFCAAQZeVgIAANgIQIABBDzYCDAwPC0EAIRAgAEEANgIcIAAgATYCFCAAQZeVgIAANgIQIABBDzYCDAwOC0EAIRAgAEEANgIcIAAgATYCFCAAQcCSgIAANgIQIABBCzYCDAwNC0EAIRAgAEEANgIcIAAgATYCFCAAQZWJgIAANgIQIABBCzYCDAwMC0EAIRAgAEEANgIcIAAgATYCFCAAQeGPgIAANgIQIABBCjYCDAwLC0EAIRAgAEEANgIcIAAgATYCFCAAQfuPgIAANgIQIABBCjYCDAwKC0EAIRAgAEEANgIcIAAgATYCFCAAQfGZgIAANgIQIABBAjYCDAwJC0EAIRAgAEEANgIcIAAgATYCFCAAQcSUgIAANgIQIABBAjYCDAwIC0EAIRAgAEEANgIcIAAgATYCFCAAQfKVgIAANgIQIABBAjYCDAwHCyAAQQI2AhwgACABNgIUIABBnJqAgAA2AhAgAEEWNgIMQQAhEAwGC0EBIRAMBQtB1AAhECABIgQgAkYNBCADQQhqIAAgBCACQdjCgIAAQQoQxYCAgAAgAygCDCEEIAMoAggOAwEEAgALEMqAgIAAAAsgAEEANgIcIABBtZqAgAA2AhAgAEEXNgIMIAAgBEEBajYCFEEAIRAMAgsgAEEANgIcIAAgBDYCFCAAQcqagIAANgIQIABBCTYCDEEAIRAMAQsCQCABIgQgAkcNAEEiIRAMAQsgAEGJgICAADYCCCAAIAQ2AgRBISEQCyADQRBqJICAgIAAIBALrwEBAn8gASgCACEGAkACQCACIANGDQAgBCAGaiEEIAYgA2ogAmshByACIAZBf3MgBWoiBmohBQNAAkAgAi0AACAELQAARg0AQQIhBAwDCwJAIAYNAEEAIQQgBSECDAMLIAZBf2ohBiAEQQFqIQQgAkEBaiICIANHDQALIAchBiADIQILIABBATYCACABIAY2AgAgACACNgIEDwsgAUEANgIAIAAgBDYCACAAIAI2AgQLCgAgABDHgICAAAvyNgELfyOAgICAAEEQayIBJICAgIAAAkBBACgCoNCAgAANAEEAEMuAgIAAQYDUhIAAayICQdkASQ0AQQAhAwJAQQAoAuDTgIAAIgQNAEEAQn83AuzTgIAAQQBCgICEgICAwAA3AuTTgIAAQQAgAUEIakFwcUHYqtWqBXMiBDYC4NOAgABBAEEANgL004CAAEEAQQA2AsTTgIAAC0EAIAI2AszTgIAAQQBBgNSEgAA2AsjTgIAAQQBBgNSEgAA2ApjQgIAAQQAgBDYCrNCAgABBAEF/NgKo0ICAAANAIANBxNCAgABqIANBuNCAgABqIgQ2AgAgBCADQbDQgIAAaiIFNgIAIANBvNCAgABqIAU2AgAgA0HM0ICAAGogA0HA0ICAAGoiBTYCACAFIAQ2AgAgA0HU0ICAAGogA0HI0ICAAGoiBDYCACAEIAU2AgAgA0HQ0ICAAGogBDYCACADQSBqIgNBgAJHDQALQYDUhIAAQXhBgNSEgABrQQ9xQQBBgNSEgABBCGpBD3EbIgNqIgRBBGogAkFIaiIFIANrIgNBAXI2AgBBAEEAKALw04CAADYCpNCAgABBACADNgKU0ICAAEEAIAQ2AqDQgIAAQYDUhIAAIAVqQTg2AgQLAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB7AFLDQACQEEAKAKI0ICAACIGQRAgAEETakFwcSAAQQtJGyICQQN2IgR2IgNBA3FFDQACQAJAIANBAXEgBHJBAXMiBUEDdCIEQbDQgIAAaiIDIARBuNCAgABqKAIAIgQoAggiAkcNAEEAIAZBfiAFd3E2AojQgIAADAELIAMgAjYCCCACIAM2AgwLIARBCGohAyAEIAVBA3QiBUEDcjYCBCAEIAVqIgQgBCgCBEEBcjYCBAwMCyACQQAoApDQgIAAIgdNDQECQCADRQ0AAkACQCADIAR0QQIgBHQiA0EAIANrcnEiA0EAIANrcUF/aiIDIANBDHZBEHEiA3YiBEEFdkEIcSIFIANyIAQgBXYiA0ECdkEEcSIEciADIAR2IgNBAXZBAnEiBHIgAyAEdiIDQQF2QQFxIgRyIAMgBHZqIgRBA3QiA0Gw0ICAAGoiBSADQbjQgIAAaigCACIDKAIIIgBHDQBBACAGQX4gBHdxIgY2AojQgIAADAELIAUgADYCCCAAIAU2AgwLIAMgAkEDcjYCBCADIARBA3QiBGogBCACayIFNgIAIAMgAmoiACAFQQFyNgIEAkAgB0UNACAHQXhxQbDQgIAAaiECQQAoApzQgIAAIQQCQAJAIAZBASAHQQN2dCIIcQ0AQQAgBiAIcjYCiNCAgAAgAiEIDAELIAIoAgghCAsgCCAENgIMIAIgBDYCCCAEIAI2AgwgBCAINgIICyADQQhqIQNBACAANgKc0ICAAEEAIAU2ApDQgIAADAwLQQAoAozQgIAAIglFDQEgCUEAIAlrcUF/aiIDIANBDHZBEHEiA3YiBEEFdkEIcSIFIANyIAQgBXYiA0ECdkEEcSIEciADIAR2IgNBAXZBAnEiBHIgAyAEdiIDQQF2QQFxIgRyIAMgBHZqQQJ0QbjSgIAAaigCACIAKAIEQXhxIAJrIQQgACEFAkADQAJAIAUoAhAiAw0AIAVBFGooAgAiA0UNAgsgAygCBEF4cSACayIFIAQgBSAESSIFGyEEIAMgACAFGyEAIAMhBQwACwsgACgCGCEKAkAgACgCDCIIIABGDQAgACgCCCIDQQAoApjQgIAASRogCCADNgIIIAMgCDYCDAwLCwJAIABBFGoiBSgCACIDDQAgACgCECIDRQ0DIABBEGohBQsDQCAFIQsgAyIIQRRqIgUoAgAiAw0AIAhBEGohBSAIKAIQIgMNAAsgC0EANgIADAoLQX8hAiAAQb9/Sw0AIABBE2oiA0FwcSECQQAoAozQgIAAIgdFDQBBACELAkAgAkGAAkkNAEEfIQsgAkH///8HSw0AIANBCHYiAyADQYD+P2pBEHZBCHEiA3QiBCAEQYDgH2pBEHZBBHEiBHQiBSAFQYCAD2pBEHZBAnEiBXRBD3YgAyAEciAFcmsiA0EBdCACIANBFWp2QQFxckEcaiELC0EAIAJrIQQCQAJAAkACQCALQQJ0QbjSgIAAaigCACIFDQBBACEDQQAhCAwBC0EAIQMgAkEAQRkgC0EBdmsgC0EfRht0IQBBACEIA0ACQCAFKAIEQXhxIAJrIgYgBE8NACAGIQQgBSEIIAYNAEEAIQQgBSEIIAUhAwwDCyADIAVBFGooAgAiBiAGIAUgAEEddkEEcWpBEGooAgAiBUYbIAMgBhshAyAAQQF0IQAgBQ0ACwsCQCADIAhyDQBBACEIQQIgC3QiA0EAIANrciAHcSIDRQ0DIANBACADa3FBf2oiAyADQQx2QRBxIgN2IgVBBXZBCHEiACADciAFIAB2IgNBAnZBBHEiBXIgAyAFdiIDQQF2QQJxIgVyIAMgBXYiA0EBdkEBcSIFciADIAV2akECdEG40oCAAGooAgAhAwsgA0UNAQsDQCADKAIEQXhxIAJrIgYgBEkhAAJAIAMoAhAiBQ0AIANBFGooAgAhBQsgBiAEIAAbIQQgAyAIIAAbIQggBSEDIAUNAAsLIAhFDQAgBEEAKAKQ0ICAACACa08NACAIKAIYIQsCQCAIKAIMIgAgCEYNACAIKAIIIgNBACgCmNCAgABJGiAAIAM2AgggAyAANgIMDAkLAkAgCEEUaiIFKAIAIgMNACAIKAIQIgNFDQMgCEEQaiEFCwNAIAUhBiADIgBBFGoiBSgCACIDDQAgAEEQaiEFIAAoAhAiAw0ACyAGQQA2AgAMCAsCQEEAKAKQ0ICAACIDIAJJDQBBACgCnNCAgAAhBAJAAkAgAyACayIFQRBJDQAgBCACaiIAIAVBAXI2AgRBACAFNgKQ0ICAAEEAIAA2ApzQgIAAIAQgA2ogBTYCACAEIAJBA3I2AgQMAQsgBCADQQNyNgIEIAQgA2oiAyADKAIEQQFyNgIEQQBBADYCnNCAgABBAEEANgKQ0ICAAAsgBEEIaiEDDAoLAkBBACgClNCAgAAiACACTQ0AQQAoAqDQgIAAIgMgAmoiBCAAIAJrIgVBAXI2AgRBACAFNgKU0ICAAEEAIAQ2AqDQgIAAIAMgAkEDcjYCBCADQQhqIQMMCgsCQAJAQQAoAuDTgIAARQ0AQQAoAujTgIAAIQQMAQtBAEJ/NwLs04CAAEEAQoCAhICAgMAANwLk04CAAEEAIAFBDGpBcHFB2KrVqgVzNgLg04CAAEEAQQA2AvTTgIAAQQBBADYCxNOAgABBgIAEIQQLQQAhAwJAIAQgAkHHAGoiB2oiBkEAIARrIgtxIgggAksNAEEAQTA2AvjTgIAADAoLAkBBACgCwNOAgAAiA0UNAAJAQQAoArjTgIAAIgQgCGoiBSAETQ0AIAUgA00NAQtBACEDQQBBMDYC+NOAgAAMCgtBAC0AxNOAgABBBHENBAJAAkACQEEAKAKg0ICAACIERQ0AQcjTgIAAIQMDQAJAIAMoAgAiBSAESw0AIAUgAygCBGogBEsNAwsgAygCCCIDDQALC0EAEMuAgIAAIgBBf0YNBSAIIQYCQEEAKALk04CAACIDQX9qIgQgAHFFDQAgCCAAayAEIABqQQAgA2txaiEGCyAGIAJNDQUgBkH+////B0sNBQJAQQAoAsDTgIAAIgNFDQBBACgCuNOAgAAiBCAGaiIFIARNDQYgBSADSw0GCyAGEMuAgIAAIgMgAEcNAQwHCyAGIABrIAtxIgZB/v///wdLDQQgBhDLgICAACIAIAMoAgAgAygCBGpGDQMgACEDCwJAIANBf0YNACACQcgAaiAGTQ0AAkAgByAGa0EAKALo04CAACIEakEAIARrcSIEQf7///8HTQ0AIAMhAAwHCwJAIAQQy4CAgABBf0YNACAEIAZqIQYgAyEADAcLQQAgBmsQy4CAgAAaDAQLIAMhACADQX9HDQUMAwtBACEIDAcLQQAhAAwFCyAAQX9HDQILQQBBACgCxNOAgABBBHI2AsTTgIAACyAIQf7///8HSw0BIAgQy4CAgAAhAEEAEMuAgIAAIQMgAEF/Rg0BIANBf0YNASAAIANPDQEgAyAAayIGIAJBOGpNDQELQQBBACgCuNOAgAAgBmoiAzYCuNOAgAACQCADQQAoArzTgIAATQ0AQQAgAzYCvNOAgAALAkACQAJAAkBBACgCoNCAgAAiBEUNAEHI04CAACEDA0AgACADKAIAIgUgAygCBCIIakYNAiADKAIIIgMNAAwDCwsCQAJAQQAoApjQgIAAIgNFDQAgACADTw0BC0EAIAA2ApjQgIAAC0EAIQNBACAGNgLM04CAAEEAIAA2AsjTgIAAQQBBfzYCqNCAgABBAEEAKALg04CAADYCrNCAgABBAEEANgLU04CAAANAIANBxNCAgABqIANBuNCAgABqIgQ2AgAgBCADQbDQgIAAaiIFNgIAIANBvNCAgABqIAU2AgAgA0HM0ICAAGogA0HA0ICAAGoiBTYCACAFIAQ2AgAgA0HU0ICAAGogA0HI0ICAAGoiBDYCACAEIAU2AgAgA0HQ0ICAAGogBDYCACADQSBqIgNBgAJHDQALIABBeCAAa0EPcUEAIABBCGpBD3EbIgNqIgQgBkFIaiIFIANrIgNBAXI2AgRBAEEAKALw04CAADYCpNCAgABBACADNgKU0ICAAEEAIAQ2AqDQgIAAIAAgBWpBODYCBAwCCyADLQAMQQhxDQAgBCAFSQ0AIAQgAE8NACAEQXggBGtBD3FBACAEQQhqQQ9xGyIFaiIAQQAoApTQgIAAIAZqIgsgBWsiBUEBcjYCBCADIAggBmo2AgRBAEEAKALw04CAADYCpNCAgABBACAFNgKU0ICAAEEAIAA2AqDQgIAAIAQgC2pBODYCBAwBCwJAIABBACgCmNCAgAAiCE8NAEEAIAA2ApjQgIAAIAAhCAsgACAGaiEFQcjTgIAAIQMCQAJAAkACQAJAAkACQANAIAMoAgAgBUYNASADKAIIIgMNAAwCCwsgAy0ADEEIcUUNAQtByNOAgAAhAwNAAkAgAygCACIFIARLDQAgBSADKAIEaiIFIARLDQMLIAMoAgghAwwACwsgAyAANgIAIAMgAygCBCAGajYCBCAAQXggAGtBD3FBACAAQQhqQQ9xG2oiCyACQQNyNgIEIAVBeCAFa0EPcUEAIAVBCGpBD3EbaiIGIAsgAmoiAmshAwJAIAYgBEcNAEEAIAI2AqDQgIAAQQBBACgClNCAgAAgA2oiAzYClNCAgAAgAiADQQFyNgIEDAMLAkAgBkEAKAKc0ICAAEcNAEEAIAI2ApzQgIAAQQBBACgCkNCAgAAgA2oiAzYCkNCAgAAgAiADQQFyNgIEIAIgA2ogAzYCAAwDCwJAIAYoAgQiBEEDcUEBRw0AIARBeHEhBwJAAkAgBEH/AUsNACAGKAIIIgUgBEEDdiIIQQN0QbDQgIAAaiIARhoCQCAGKAIMIgQgBUcNAEEAQQAoAojQgIAAQX4gCHdxNgKI0ICAAAwCCyAEIABGGiAEIAU2AgggBSAENgIMDAELIAYoAhghCQJAAkAgBigCDCIAIAZGDQAgBigCCCIEIAhJGiAAIAQ2AgggBCAANgIMDAELAkAgBkEUaiIEKAIAIgUNACAGQRBqIgQoAgAiBQ0AQQAhAAwBCwNAIAQhCCAFIgBBFGoiBCgCACIFDQAgAEEQaiEEIAAoAhAiBQ0ACyAIQQA2AgALIAlFDQACQAJAIAYgBigCHCIFQQJ0QbjSgIAAaiIEKAIARw0AIAQgADYCACAADQFBAEEAKAKM0ICAAEF+IAV3cTYCjNCAgAAMAgsgCUEQQRQgCSgCECAGRhtqIAA2AgAgAEUNAQsgACAJNgIYAkAgBigCECIERQ0AIAAgBDYCECAEIAA2AhgLIAYoAhQiBEUNACAAQRRqIAQ2AgAgBCAANgIYCyAHIANqIQMgBiAHaiIGKAIEIQQLIAYgBEF+cTYCBCACIANqIAM2AgAgAiADQQFyNgIEAkAgA0H/AUsNACADQXhxQbDQgIAAaiEEAkACQEEAKAKI0ICAACIFQQEgA0EDdnQiA3ENAEEAIAUgA3I2AojQgIAAIAQhAwwBCyAEKAIIIQMLIAMgAjYCDCAEIAI2AgggAiAENgIMIAIgAzYCCAwDC0EfIQQCQCADQf///wdLDQAgA0EIdiIEIARBgP4/akEQdkEIcSIEdCIFIAVBgOAfakEQdkEEcSIFdCIAIABBgIAPakEQdkECcSIAdEEPdiAEIAVyIAByayIEQQF0IAMgBEEVanZBAXFyQRxqIQQLIAIgBDYCHCACQgA3AhAgBEECdEG40oCAAGohBQJAQQAoAozQgIAAIgBBASAEdCIIcQ0AIAUgAjYCAEEAIAAgCHI2AozQgIAAIAIgBTYCGCACIAI2AgggAiACNgIMDAMLIANBAEEZIARBAXZrIARBH0YbdCEEIAUoAgAhAANAIAAiBSgCBEF4cSADRg0CIARBHXYhACAEQQF0IQQgBSAAQQRxakEQaiIIKAIAIgANAAsgCCACNgIAIAIgBTYCGCACIAI2AgwgAiACNgIIDAILIABBeCAAa0EPcUEAIABBCGpBD3EbIgNqIgsgBkFIaiIIIANrIgNBAXI2AgQgACAIakE4NgIEIAQgBUE3IAVrQQ9xQQAgBUFJakEPcRtqQUFqIgggCCAEQRBqSRsiCEEjNgIEQQBBACgC8NOAgAA2AqTQgIAAQQAgAzYClNCAgABBACALNgKg0ICAACAIQRBqQQApAtDTgIAANwIAIAhBACkCyNOAgAA3AghBACAIQQhqNgLQ04CAAEEAIAY2AszTgIAAQQAgADYCyNOAgABBAEEANgLU04CAACAIQSRqIQMDQCADQQc2AgAgA0EEaiIDIAVJDQALIAggBEYNAyAIIAgoAgRBfnE2AgQgCCAIIARrIgA2AgAgBCAAQQFyNgIEAkAgAEH/AUsNACAAQXhxQbDQgIAAaiEDAkACQEEAKAKI0ICAACIFQQEgAEEDdnQiAHENAEEAIAUgAHI2AojQgIAAIAMhBQwBCyADKAIIIQULIAUgBDYCDCADIAQ2AgggBCADNgIMIAQgBTYCCAwEC0EfIQMCQCAAQf///wdLDQAgAEEIdiIDIANBgP4/akEQdkEIcSIDdCIFIAVBgOAfakEQdkEEcSIFdCIIIAhBgIAPakEQdkECcSIIdEEPdiADIAVyIAhyayIDQQF0IAAgA0EVanZBAXFyQRxqIQMLIAQgAzYCHCAEQgA3AhAgA0ECdEG40oCAAGohBQJAQQAoAozQgIAAIghBASADdCIGcQ0AIAUgBDYCAEEAIAggBnI2AozQgIAAIAQgBTYCGCAEIAQ2AgggBCAENgIMDAQLIABBAEEZIANBAXZrIANBH0YbdCEDIAUoAgAhCANAIAgiBSgCBEF4cSAARg0DIANBHXYhCCADQQF0IQMgBSAIQQRxakEQaiIGKAIAIggNAAsgBiAENgIAIAQgBTYCGCAEIAQ2AgwgBCAENgIIDAMLIAUoAggiAyACNgIMIAUgAjYCCCACQQA2AhggAiAFNgIMIAIgAzYCCAsgC0EIaiEDDAULIAUoAggiAyAENgIMIAUgBDYCCCAEQQA2AhggBCAFNgIMIAQgAzYCCAtBACgClNCAgAAiAyACTQ0AQQAoAqDQgIAAIgQgAmoiBSADIAJrIgNBAXI2AgRBACADNgKU0ICAAEEAIAU2AqDQgIAAIAQgAkEDcjYCBCAEQQhqIQMMAwtBACEDQQBBMDYC+NOAgAAMAgsCQCALRQ0AAkACQCAIIAgoAhwiBUECdEG40oCAAGoiAygCAEcNACADIAA2AgAgAA0BQQAgB0F+IAV3cSIHNgKM0ICAAAwCCyALQRBBFCALKAIQIAhGG2ogADYCACAARQ0BCyAAIAs2AhgCQCAIKAIQIgNFDQAgACADNgIQIAMgADYCGAsgCEEUaigCACIDRQ0AIABBFGogAzYCACADIAA2AhgLAkACQCAEQQ9LDQAgCCAEIAJqIgNBA3I2AgQgCCADaiIDIAMoAgRBAXI2AgQMAQsgCCACaiIAIARBAXI2AgQgCCACQQNyNgIEIAAgBGogBDYCAAJAIARB/wFLDQAgBEF4cUGw0ICAAGohAwJAAkBBACgCiNCAgAAiBUEBIARBA3Z0IgRxDQBBACAFIARyNgKI0ICAACADIQQMAQsgAygCCCEECyAEIAA2AgwgAyAANgIIIAAgAzYCDCAAIAQ2AggMAQtBHyEDAkAgBEH///8HSw0AIARBCHYiAyADQYD+P2pBEHZBCHEiA3QiBSAFQYDgH2pBEHZBBHEiBXQiAiACQYCAD2pBEHZBAnEiAnRBD3YgAyAFciACcmsiA0EBdCAEIANBFWp2QQFxckEcaiEDCyAAIAM2AhwgAEIANwIQIANBAnRBuNKAgABqIQUCQCAHQQEgA3QiAnENACAFIAA2AgBBACAHIAJyNgKM0ICAACAAIAU2AhggACAANgIIIAAgADYCDAwBCyAEQQBBGSADQQF2ayADQR9GG3QhAyAFKAIAIQICQANAIAIiBSgCBEF4cSAERg0BIANBHXYhAiADQQF0IQMgBSACQQRxakEQaiIGKAIAIgINAAsgBiAANgIAIAAgBTYCGCAAIAA2AgwgACAANgIIDAELIAUoAggiAyAANgIMIAUgADYCCCAAQQA2AhggACAFNgIMIAAgAzYCCAsgCEEIaiEDDAELAkAgCkUNAAJAAkAgACAAKAIcIgVBAnRBuNKAgABqIgMoAgBHDQAgAyAINgIAIAgNAUEAIAlBfiAFd3E2AozQgIAADAILIApBEEEUIAooAhAgAEYbaiAINgIAIAhFDQELIAggCjYCGAJAIAAoAhAiA0UNACAIIAM2AhAgAyAINgIYCyAAQRRqKAIAIgNFDQAgCEEUaiADNgIAIAMgCDYCGAsCQAJAIARBD0sNACAAIAQgAmoiA0EDcjYCBCAAIANqIgMgAygCBEEBcjYCBAwBCyAAIAJqIgUgBEEBcjYCBCAAIAJBA3I2AgQgBSAEaiAENgIAAkAgB0UNACAHQXhxQbDQgIAAaiECQQAoApzQgIAAIQMCQAJAQQEgB0EDdnQiCCAGcQ0AQQAgCCAGcjYCiNCAgAAgAiEIDAELIAIoAgghCAsgCCADNgIMIAIgAzYCCCADIAI2AgwgAyAINgIIC0EAIAU2ApzQgIAAQQAgBDYCkNCAgAALIABBCGohAwsgAUEQaiSAgICAACADCwoAIAAQyYCAgAAL4g0BB38CQCAARQ0AIABBeGoiASAAQXxqKAIAIgJBeHEiAGohAwJAIAJBAXENACACQQNxRQ0BIAEgASgCACICayIBQQAoApjQgIAAIgRJDQEgAiAAaiEAAkAgAUEAKAKc0ICAAEYNAAJAIAJB/wFLDQAgASgCCCIEIAJBA3YiBUEDdEGw0ICAAGoiBkYaAkAgASgCDCICIARHDQBBAEEAKAKI0ICAAEF+IAV3cTYCiNCAgAAMAwsgAiAGRhogAiAENgIIIAQgAjYCDAwCCyABKAIYIQcCQAJAIAEoAgwiBiABRg0AIAEoAggiAiAESRogBiACNgIIIAIgBjYCDAwBCwJAIAFBFGoiAigCACIEDQAgAUEQaiICKAIAIgQNAEEAIQYMAQsDQCACIQUgBCIGQRRqIgIoAgAiBA0AIAZBEGohAiAGKAIQIgQNAAsgBUEANgIACyAHRQ0BAkACQCABIAEoAhwiBEECdEG40oCAAGoiAigCAEcNACACIAY2AgAgBg0BQQBBACgCjNCAgABBfiAEd3E2AozQgIAADAMLIAdBEEEUIAcoAhAgAUYbaiAGNgIAIAZFDQILIAYgBzYCGAJAIAEoAhAiAkUNACAGIAI2AhAgAiAGNgIYCyABKAIUIgJFDQEgBkEUaiACNgIAIAIgBjYCGAwBCyADKAIEIgJBA3FBA0cNACADIAJBfnE2AgRBACAANgKQ0ICAACABIABqIAA2AgAgASAAQQFyNgIEDwsgASADTw0AIAMoAgQiAkEBcUUNAAJAAkAgAkECcQ0AAkAgA0EAKAKg0ICAAEcNAEEAIAE2AqDQgIAAQQBBACgClNCAgAAgAGoiADYClNCAgAAgASAAQQFyNgIEIAFBACgCnNCAgABHDQNBAEEANgKQ0ICAAEEAQQA2ApzQgIAADwsCQCADQQAoApzQgIAARw0AQQAgATYCnNCAgABBAEEAKAKQ0ICAACAAaiIANgKQ0ICAACABIABBAXI2AgQgASAAaiAANgIADwsgAkF4cSAAaiEAAkACQCACQf8BSw0AIAMoAggiBCACQQN2IgVBA3RBsNCAgABqIgZGGgJAIAMoAgwiAiAERw0AQQBBACgCiNCAgABBfiAFd3E2AojQgIAADAILIAIgBkYaIAIgBDYCCCAEIAI2AgwMAQsgAygCGCEHAkACQCADKAIMIgYgA0YNACADKAIIIgJBACgCmNCAgABJGiAGIAI2AgggAiAGNgIMDAELAkAgA0EUaiICKAIAIgQNACADQRBqIgIoAgAiBA0AQQAhBgwBCwNAIAIhBSAEIgZBFGoiAigCACIEDQAgBkEQaiECIAYoAhAiBA0ACyAFQQA2AgALIAdFDQACQAJAIAMgAygCHCIEQQJ0QbjSgIAAaiICKAIARw0AIAIgBjYCACAGDQFBAEEAKAKM0ICAAEF+IAR3cTYCjNCAgAAMAgsgB0EQQRQgBygCECADRhtqIAY2AgAgBkUNAQsgBiAHNgIYAkAgAygCECICRQ0AIAYgAjYCECACIAY2AhgLIAMoAhQiAkUNACAGQRRqIAI2AgAgAiAGNgIYCyABIABqIAA2AgAgASAAQQFyNgIEIAFBACgCnNCAgABHDQFBACAANgKQ0ICAAA8LIAMgAkF+cTYCBCABIABqIAA2AgAgASAAQQFyNgIECwJAIABB/wFLDQAgAEF4cUGw0ICAAGohAgJAAkBBACgCiNCAgAAiBEEBIABBA3Z0IgBxDQBBACAEIAByNgKI0ICAACACIQAMAQsgAigCCCEACyAAIAE2AgwgAiABNgIIIAEgAjYCDCABIAA2AggPC0EfIQICQCAAQf///wdLDQAgAEEIdiICIAJBgP4/akEQdkEIcSICdCIEIARBgOAfakEQdkEEcSIEdCIGIAZBgIAPakEQdkECcSIGdEEPdiACIARyIAZyayICQQF0IAAgAkEVanZBAXFyQRxqIQILIAEgAjYCHCABQgA3AhAgAkECdEG40oCAAGohBAJAAkBBACgCjNCAgAAiBkEBIAJ0IgNxDQAgBCABNgIAQQAgBiADcjYCjNCAgAAgASAENgIYIAEgATYCCCABIAE2AgwMAQsgAEEAQRkgAkEBdmsgAkEfRht0IQIgBCgCACEGAkADQCAGIgQoAgRBeHEgAEYNASACQR12IQYgAkEBdCECIAQgBkEEcWpBEGoiAygCACIGDQALIAMgATYCACABIAQ2AhggASABNgIMIAEgATYCCAwBCyAEKAIIIgAgATYCDCAEIAE2AgggAUEANgIYIAEgBDYCDCABIAA2AggLQQBBACgCqNCAgABBf2oiAUF/IAEbNgKo0ICAAAsLBAAAAAtOAAJAIAANAD8AQRB0DwsCQCAAQf//A3ENACAAQX9MDQACQCAAQRB2QAAiAEF/Rw0AQQBBMDYC+NOAgABBfw8LIABBEHQPCxDKgICAAAAL8gICA38BfgJAIAJFDQAgACABOgAAIAIgAGoiA0F/aiABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBfWogAToAACADQX5qIAE6AAAgAkEHSQ0AIAAgAToAAyADQXxqIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIFayICQSBJDQAgAa1CgYCAgBB+IQYgAyAFaiEBA0AgASAGNwMYIAEgBjcDECABIAY3AwggASAGNwMAIAFBIGohASACQWBqIgJBH0sNAAsLIAALC45IAQBBgAgLhkgBAAAAAgAAAAMAAAAAAAAAAAAAAAQAAAAFAAAAAAAAAAAAAAAGAAAABwAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEludmFsaWQgY2hhciBpbiB1cmwgcXVlcnkAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9ib2R5AENvbnRlbnQtTGVuZ3RoIG92ZXJmbG93AENodW5rIHNpemUgb3ZlcmZsb3cAUmVzcG9uc2Ugb3ZlcmZsb3cASW52YWxpZCBtZXRob2QgZm9yIEhUVFAveC54IHJlcXVlc3QASW52YWxpZCBtZXRob2QgZm9yIFJUU1AveC54IHJlcXVlc3QARXhwZWN0ZWQgU09VUkNFIG1ldGhvZCBmb3IgSUNFL3gueCByZXF1ZXN0AEludmFsaWQgY2hhciBpbiB1cmwgZnJhZ21lbnQgc3RhcnQARXhwZWN0ZWQgZG90AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fc3RhdHVzAEludmFsaWQgcmVzcG9uc2Ugc3RhdHVzAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMAVXNlciBjYWxsYmFjayBlcnJvcgBgb25fcmVzZXRgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19oZWFkZXJgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2JlZ2luYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlYCBjYWxsYmFjayBlcnJvcgBgb25fc3RhdHVzX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdmVyc2lvbl9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3VybF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21ldGhvZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lYCBjYWxsYmFjayBlcnJvcgBVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNlcnZlcgBJbnZhbGlkIGhlYWRlciB2YWx1ZSBjaGFyAEludmFsaWQgaGVhZGVyIGZpZWxkIGNoYXIAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl92ZXJzaW9uAEludmFsaWQgbWlub3IgdmVyc2lvbgBJbnZhbGlkIG1ham9yIHZlcnNpb24ARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgdmVyc2lvbgBFeHBlY3RlZCBDUkxGIGFmdGVyIHZlcnNpb24ASW52YWxpZCBIVFRQIHZlcnNpb24ASW52YWxpZCBoZWFkZXIgdG9rZW4AU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl91cmwASW52YWxpZCBjaGFyYWN0ZXJzIGluIHVybABVbmV4cGVjdGVkIHN0YXJ0IGNoYXIgaW4gdXJsAERvdWJsZSBAIGluIHVybABFbXB0eSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXJhY3RlciBpbiBDb250ZW50LUxlbmd0aABEdXBsaWNhdGUgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyIGluIHVybCBwYXRoAENvbnRlbnQtTGVuZ3RoIGNhbid0IGJlIHByZXNlbnQgd2l0aCBUcmFuc2Zlci1FbmNvZGluZwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBzaXplAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX3ZhbHVlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgdmFsdWUATWlzc2luZyBleHBlY3RlZCBMRiBhZnRlciBoZWFkZXIgdmFsdWUASW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGVkIHZhbHVlAFBhdXNlZCBieSBvbl9oZWFkZXJzX2NvbXBsZXRlAEludmFsaWQgRU9GIHN0YXRlAG9uX3Jlc2V0IHBhdXNlAG9uX2NodW5rX2hlYWRlciBwYXVzZQBvbl9tZXNzYWdlX2JlZ2luIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZSBwYXVzZQBvbl9zdGF0dXNfY29tcGxldGUgcGF1c2UAb25fdmVyc2lvbl9jb21wbGV0ZSBwYXVzZQBvbl91cmxfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX3ZhbHVlX2NvbXBsZXRlIHBhdXNlAG9uX21lc3NhZ2VfY29tcGxldGUgcGF1c2UAb25fbWV0aG9kX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl9maWVsZF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fbmFtZSBwYXVzZQBVbmV4cGVjdGVkIHNwYWNlIGFmdGVyIHN0YXJ0IGxpbmUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fbmFtZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIG5hbWUAUGF1c2Ugb24gQ09OTkVDVC9VcGdyYWRlAFBhdXNlIG9uIFBSSS9VcGdyYWRlAEV4cGVjdGVkIEhUVFAvMiBDb25uZWN0aW9uIFByZWZhY2UAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9tZXRob2QARXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgbWV0aG9kAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25faGVhZGVyX2ZpZWxkAFBhdXNlZABJbnZhbGlkIHdvcmQgZW5jb3VudGVyZWQASW52YWxpZCBtZXRob2QgZW5jb3VudGVyZWQAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzY2hlbWEAUmVxdWVzdCBoYXMgaW52YWxpZCBgVHJhbnNmZXItRW5jb2RpbmdgAFNXSVRDSF9QUk9YWQBVU0VfUFJPWFkATUtBQ1RJVklUWQBVTlBST0NFU1NBQkxFX0VOVElUWQBDT1BZAE1PVkVEX1BFUk1BTkVOVExZAFRPT19FQVJMWQBOT1RJRlkARkFJTEVEX0RFUEVOREVOQ1kAQkFEX0dBVEVXQVkAUExBWQBQVVQAQ0hFQ0tPVVQAR0FURVdBWV9USU1FT1VUAFJFUVVFU1RfVElNRU9VVABORVRXT1JLX0NPTk5FQ1RfVElNRU9VVABDT05ORUNUSU9OX1RJTUVPVVQATE9HSU5fVElNRU9VVABORVRXT1JLX1JFQURfVElNRU9VVABQT1NUAE1JU0RJUkVDVEVEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfTE9BRF9CQUxBTkNFRF9SRVFVRVNUAEJBRF9SRVFVRVNUAEhUVFBfUkVRVUVTVF9TRU5UX1RPX0hUVFBTX1BPUlQAUkVQT1JUAElNX0FfVEVBUE9UAFJFU0VUX0NPTlRFTlQATk9fQ09OVEVOVABQQVJUSUFMX0NPTlRFTlQASFBFX0lOVkFMSURfQ09OU1RBTlQASFBFX0NCX1JFU0VUAEdFVABIUEVfU1RSSUNUAENPTkZMSUNUAFRFTVBPUkFSWV9SRURJUkVDVABQRVJNQU5FTlRfUkVESVJFQ1QAQ09OTkVDVABNVUxUSV9TVEFUVVMASFBFX0lOVkFMSURfU1RBVFVTAFRPT19NQU5ZX1JFUVVFU1RTAEVBUkxZX0hJTlRTAFVOQVZBSUxBQkxFX0ZPUl9MRUdBTF9SRUFTT05TAE9QVElPTlMAU1dJVENISU5HX1BST1RPQ09MUwBWQVJJQU5UX0FMU09fTkVHT1RJQVRFUwBNVUxUSVBMRV9DSE9JQ0VTAElOVEVSTkFMX1NFUlZFUl9FUlJPUgBXRUJfU0VSVkVSX1VOS05PV05fRVJST1IAUkFJTEdVTl9FUlJPUgBJREVOVElUWV9QUk9WSURFUl9BVVRIRU5USUNBVElPTl9FUlJPUgBTU0xfQ0VSVElGSUNBVEVfRVJST1IASU5WQUxJRF9YX0ZPUldBUkRFRF9GT1IAU0VUX1BBUkFNRVRFUgBHRVRfUEFSQU1FVEVSAEhQRV9VU0VSAFNFRV9PVEhFUgBIUEVfQ0JfQ0hVTktfSEVBREVSAE1LQ0FMRU5EQVIAU0VUVVAAV0VCX1NFUlZFUl9JU19ET1dOAFRFQVJET1dOAEhQRV9DTE9TRURfQ09OTkVDVElPTgBIRVVSSVNUSUNfRVhQSVJBVElPTgBESVNDT05ORUNURURfT1BFUkFUSU9OAE5PTl9BVVRIT1JJVEFUSVZFX0lORk9STUFUSU9OAEhQRV9JTlZBTElEX1ZFUlNJT04ASFBFX0NCX01FU1NBR0VfQkVHSU4AU0lURV9JU19GUk9aRU4ASFBFX0lOVkFMSURfSEVBREVSX1RPS0VOAElOVkFMSURfVE9LRU4ARk9SQklEREVOAEVOSEFOQ0VfWU9VUl9DQUxNAEhQRV9JTlZBTElEX1VSTABCTE9DS0VEX0JZX1BBUkVOVEFMX0NPTlRST0wATUtDT0wAQUNMAEhQRV9JTlRFUk5BTABSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFX1VOT0ZGSUNJQUwASFBFX09LAFVOTElOSwBVTkxPQ0sAUFJJAFJFVFJZX1dJVEgASFBFX0lOVkFMSURfQ09OVEVOVF9MRU5HVEgASFBFX1VORVhQRUNURURfQ09OVEVOVF9MRU5HVEgARkxVU0gAUFJPUFBBVENIAE0tU0VBUkNIAFVSSV9UT09fTE9ORwBQUk9DRVNTSU5HAE1JU0NFTExBTkVPVVNfUEVSU0lTVEVOVF9XQVJOSU5HAE1JU0NFTExBTkVPVVNfV0FSTklORwBIUEVfSU5WQUxJRF9UUkFOU0ZFUl9FTkNPRElORwBFeHBlY3RlZCBDUkxGAEhQRV9JTlZBTElEX0NIVU5LX1NJWkUATU9WRQBDT05USU5VRQBIUEVfQ0JfU1RBVFVTX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJTX0NPTVBMRVRFAEhQRV9DQl9WRVJTSU9OX0NPTVBMRVRFAEhQRV9DQl9VUkxfQ09NUExFVEUASFBFX0NCX0NIVU5LX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX05BTUVfQ09NUExFVEUASFBFX0NCX01FU1NBR0VfQ09NUExFVEUASFBFX0NCX01FVEhPRF9DT01QTEVURQBIUEVfQ0JfSEVBREVSX0ZJRUxEX0NPTVBMRVRFAERFTEVURQBIUEVfSU5WQUxJRF9FT0ZfU1RBVEUASU5WQUxJRF9TU0xfQ0VSVElGSUNBVEUAUEFVU0UATk9fUkVTUE9OU0UAVU5TVVBQT1JURURfTUVESUFfVFlQRQBHT05FAE5PVF9BQ0NFUFRBQkxFAFNFUlZJQ0VfVU5BVkFJTEFCTEUAUkFOR0VfTk9UX1NBVElTRklBQkxFAE9SSUdJTl9JU19VTlJFQUNIQUJMRQBSRVNQT05TRV9JU19TVEFMRQBQVVJHRQBNRVJHRQBSRVFVRVNUX0hFQURFUl9GSUVMRFNfVE9PX0xBUkdFAFJFUVVFU1RfSEVBREVSX1RPT19MQVJHRQBQQVlMT0FEX1RPT19MQVJHRQBJTlNVRkZJQ0lFTlRfU1RPUkFHRQBIUEVfUEFVU0VEX1VQR1JBREUASFBFX1BBVVNFRF9IMl9VUEdSQURFAFNPVVJDRQBBTk5PVU5DRQBUUkFDRQBIUEVfVU5FWFBFQ1RFRF9TUEFDRQBERVNDUklCRQBVTlNVQlNDUklCRQBSRUNPUkQASFBFX0lOVkFMSURfTUVUSE9EAE5PVF9GT1VORABQUk9QRklORABVTkJJTkQAUkVCSU5EAFVOQVVUSE9SSVpFRABNRVRIT0RfTk9UX0FMTE9XRUQASFRUUF9WRVJTSU9OX05PVF9TVVBQT1JURUQAQUxSRUFEWV9SRVBPUlRFRABBQ0NFUFRFRABOT1RfSU1QTEVNRU5URUQATE9PUF9ERVRFQ1RFRABIUEVfQ1JfRVhQRUNURUQASFBFX0xGX0VYUEVDVEVEAENSRUFURUQASU1fVVNFRABIUEVfUEFVU0VEAFRJTUVPVVRfT0NDVVJFRABQQVlNRU5UX1JFUVVJUkVEAFBSRUNPTkRJVElPTl9SRVFVSVJFRABQUk9YWV9BVVRIRU5USUNBVElPTl9SRVFVSVJFRABORVRXT1JLX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAExFTkdUSF9SRVFVSVJFRABTU0xfQ0VSVElGSUNBVEVfUkVRVUlSRUQAVVBHUkFERV9SRVFVSVJFRABQQUdFX0VYUElSRUQAUFJFQ09ORElUSU9OX0ZBSUxFRABFWFBFQ1RBVElPTl9GQUlMRUQAUkVWQUxJREFUSU9OX0ZBSUxFRABTU0xfSEFORFNIQUtFX0ZBSUxFRABMT0NLRUQAVFJBTlNGT1JNQVRJT05fQVBQTElFRABOT1RfTU9ESUZJRUQATk9UX0VYVEVOREVEAEJBTkRXSURUSF9MSU1JVF9FWENFRURFRABTSVRFX0lTX09WRVJMT0FERUQASEVBRABFeHBlY3RlZCBIVFRQLwAAXhMAACYTAAAwEAAA8BcAAJ0TAAAVEgAAORcAAPASAAAKEAAAdRIAAK0SAACCEwAATxQAAH8QAACgFQAAIxQAAIkSAACLFAAATRUAANQRAADPFAAAEBgAAMkWAADcFgAAwREAAOAXAAC7FAAAdBQAAHwVAADlFAAACBcAAB8QAABlFQAAoxQAACgVAAACFQAAmRUAACwQAACLGQAATw8AANQOAABqEAAAzhAAAAIXAACJDgAAbhMAABwTAABmFAAAVhcAAMETAADNEwAAbBMAAGgXAABmFwAAXxcAACITAADODwAAaQ4AANgOAABjFgAAyxMAAKoOAAAoFwAAJhcAAMUTAABdFgAA6BEAAGcTAABlEwAA8hYAAHMTAAAdFwAA+RYAAPMRAADPDgAAzhUAAAwSAACzEQAApREAAGEQAAAyFwAAuxMAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIDAgICAgIAAAICAAICAAICAgICAgICAgIABAAAAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbG9zZWVlcC1hbGl2ZQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEAAAEBAAEBAAEBAQEBAQEBAQEAAAAAAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AAAAAAAAAAAAAAAAAAAByYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AAAAAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQIAAQMAAAAAAAAAAAAAAAAAAAAAAAAEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAAAAQAAAgAAAAAAAAAAAAAAAAAAAAAAAAMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAIAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABOT1VOQ0VFQ0tPVVRORUNURVRFQ1JJQkVMVVNIRVRFQURTRUFSQ0hSR0VDVElWSVRZTEVOREFSVkVPVElGWVBUSU9OU0NIU0VBWVNUQVRDSEdFT1JESVJFQ1RPUlRSQ0hQQVJBTUVURVJVUkNFQlNDUklCRUFSRE9XTkFDRUlORE5LQ0tVQlNDUklCRUhUVFAvQURUUC8="},53434:C=>{C.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dHBfZ2V0X3VwZ3JhZGUAEwxsbGh0dHBfcmVzZXQAFA5sbGh0dHBfZXhlY3V0ZQAVFGxsaHR0cF9zZXR0aW5nc19pbml0ABYNbGxodHRwX2ZpbmlzaAAXDGxsaHR0cF9wYXVzZQAYDWxsaHR0cF9yZXN1bWUAGRtsbGh0dHBfcmVzdW1lX2FmdGVyX3VwZ3JhZGUAGhBsbGh0dHBfZ2V0X2Vycm5vABsXbGxodHRwX2dldF9lcnJvcl9yZWFzb24AHBdsbGh0dHBfc2V0X2Vycm9yX3JlYXNvbgAdFGxsaHR0cF9nZXRfZXJyb3JfcG9zAB4RbGxodHRwX2Vycm5vX25hbWUAHxJsbGh0dHBfbWV0aG9kX25hbWUAIBJsbGh0dHBfc3RhdHVzX25hbWUAIRpsbGh0dHBfc2V0X2xlbmllbnRfaGVhZGVycwAiIWxsaHR0cF9zZXRfbGVuaWVudF9jaHVua2VkX2xlbmd0aAAjHWxsaHR0cF9zZXRfbGVuaWVudF9rZWVwX2FsaXZlACQkbGxodHRwX3NldF9sZW5pZW50X3RyYW5zZmVyX2VuY29kaW5nACUYbGxodHRwX21lc3NhZ2VfbmVlZHNfZW9mAD8JFwEAQQELEQECAwQFCwYHNTk3MS8tJyspCrLgAkUCAAsIABCIgICAAAsZACAAEMKAgIAAGiAAIAI2AjggACABOgAoCxwAIAAgAC8BMiAALQAuIAAQwYCAgAAQgICAgAALKgEBf0HAABDGgICAACIBEMKAgIAAGiABQYCIgIAANgI4IAEgADoAKCABCwoAIAAQyICAgAALBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LRQEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABDCgICAABogACAENgI4IAAgAzoAKCAAIAI6AC0gACABNgIYCxEAIAAgASABIAJqEMOAgIAACxAAIABBAEHcABDMgICAABoLZwEBf0EAIQECQCAAKAIMDQACQAJAAkACQCAALQAvDgMBAAMCCyAAKAI4IgFFDQAgASgCLCIBRQ0AIAAgARGAgICAAAAiAQ0DC0EADwsQyoCAgAAACyAAQcOWgIAANgIQQQ4hAQsgAQseAAJAIAAoAgwNACAAQdGbgIAANgIQIABBFTYCDAsLFgACQCAAKAIMQRVHDQAgAEEANgIMCwsWAAJAIAAoAgxBFkcNACAAQQA2AgwLCwcAIAAoAgwLBwAgACgCEAsJACAAIAE2AhALBwAgACgCFAsiAAJAIABBJEkNABDKgICAAAALIABBAnRBoLOAgABqKAIACyIAAkAgAEEuSQ0AEMqAgIAAAAsgAEECdEGwtICAAGooAgAL7gsBAX9B66iAgAAhAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABBnH9qDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0Hhp4CAAA8LQaShgIAADwtBy6yAgAAPC0H+sYCAAA8LQcCkgIAADwtBq6SAgAAPC0GNqICAAA8LQeKmgIAADwtBgLCAgAAPC0G5r4CAAA8LQdekgIAADwtB75+AgAAPC0Hhn4CAAA8LQfqfgIAADwtB8qCAgAAPC0Gor4CAAA8LQa6ygIAADwtBiLCAgAAPC0Hsp4CAAA8LQYKigIAADwtBjp2AgAAPC0HQroCAAA8LQcqjgIAADwtBxbKAgAAPC0HfnICAAA8LQdKcgIAADwtBxKCAgAAPC0HXoICAAA8LQaKfgIAADwtB7a6AgAAPC0GrsICAAA8LQdSlgIAADwtBzK6AgAAPC0H6roCAAA8LQfyrgIAADwtB0rCAgAAPC0HxnYCAAA8LQbuggIAADwtB96uAgAAPC0GQsYCAAA8LQdexgIAADwtBoq2AgAAPC0HUp4CAAA8LQeCrgIAADwtBn6yAgAAPC0HrsYCAAA8LQdWfgIAADwtByrGAgAAPC0HepYCAAA8LQdSegIAADwtB9JyAgAAPC0GnsoCAAA8LQbGdgIAADwtBoJ2AgAAPC0G5sYCAAA8LQbywgIAADwtBkqGAgAAPC0GzpoCAAA8LQemsgIAADwtBrJ6AgAAPC0HUq4CAAA8LQfemgIAADwtBgKaAgAAPC0GwoYCAAA8LQf6egIAADwtBjaOAgAAPC0GJrYCAAA8LQfeigIAADwtBoLGAgAAPC0Gun4CAAA8LQcalgIAADwtB6J6AgAAPC0GTooCAAA8LQcKvgIAADwtBw52AgAAPC0GLrICAAA8LQeGdgIAADwtBja+AgAAPC0HqoYCAAA8LQbStgIAADwtB0q+AgAAPC0HfsoCAAA8LQdKygIAADwtB8LCAgAAPC0GpooCAAA8LQfmjgIAADwtBmZ6AgAAPC0G1rICAAA8LQZuwgIAADwtBkrKAgAAPC0G2q4CAAA8LQcKigIAADwtB+LKAgAAPC0GepYCAAA8LQdCigIAADwtBup6AgAAPC0GBnoCAAA8LEMqAgIAAAAtB1qGAgAAhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAgAiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCBCIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQcaRgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIwIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAggiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2ioCAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCNCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIMIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZqAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAjgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCECIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZWQgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAI8IgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAhQiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEGqm4CAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCQCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIYIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABB7ZOAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCJCIERQ0AIAAgBBGAgICAAAAhAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIsIgRFDQAgACAEEYCAgIAAACEDCyADC0kBAn9BACEDAkAgACgCOCIERQ0AIAQoAigiBEUNACAAIAEgAiABayAEEYGAgIAAACIDQX9HDQAgAEH2iICAADYCEEEYIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCUCIERQ0AIAAgBBGAgICAAAAhAwsgAwtJAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAIcIgRFDQAgACABIAIgAWsgBBGBgICAAAAiA0F/Rw0AIABBwpmAgAA2AhBBGCEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAkgiBEUNACAAIAQRgICAgAAAIQMLIAMLSQECf0EAIQMCQCAAKAI4IgRFDQAgBCgCICIERQ0AIAAgASACIAFrIAQRgYCAgAAAIgNBf0cNACAAQZSUgIAANgIQQRghAwsgAwsuAQJ/QQAhAwJAIAAoAjgiBEUNACAEKAJMIgRFDQAgACAEEYCAgIAAACEDCyADCy4BAn9BACEDAkAgACgCOCIERQ0AIAQoAlQiBEUNACAAIAQRgICAgAAAIQMLIAMLLgECf0EAIQMCQCAAKAI4IgRFDQAgBCgCWCIERQ0AIAAgBBGAgICAAAAhAwsgAwtFAQF/AkACQCAALwEwQRRxQRRHDQBBASEDIAAtAChBAUYNASAALwEyQeUARiEDDAELIAAtAClBBUYhAwsgACADOgAuQQAL/gEBA39BASEDAkAgAC8BMCIEQQhxDQAgACkDIEIAUiEDCwJAAkAgAC0ALkUNAEEBIQUgAC0AKUEFRg0BQQEhBSAEQcAAcUUgA3FBAUcNAQtBACEFIARBwABxDQBBAiEFIARB//8DcSIDQQhxDQACQCADQYAEcUUNAAJAIAAtAChBAUcNACAALQAtQQpxDQBBBQ8LQQQPCwJAIANBIHENAAJAIAAtAChBAUYNACAALwEyQf//A3EiAEGcf2pB5ABJDQAgAEHMAUYNACAAQbACRg0AQQQhBSAEQShxRQ0CIANBiARxQYAERg0CC0EADwtBAEEDIAApAyBQGyEFCyAFC2IBAn9BACEBAkAgAC0AKEEBRg0AIAAvATJB//8DcSICQZx/akHkAEkNACACQcwBRg0AIAJBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhASAAQYgEcUGABEYNACAAQShxRSEBCyABC6cBAQN/AkACQAJAIAAtACpFDQAgAC0AK0UNAEEAIQMgAC8BMCIEQQJxRQ0BDAILQQAhAyAALwEwIgRBAXFFDQELQQEhAyAALQAoQQFGDQAgAC8BMkH//wNxIgVBnH9qQeQASQ0AIAVBzAFGDQAgBUGwAkYNACAEQcAAcQ0AQQAhAyAEQYgEcUGABEYNACAEQShxQQBHIQMLIABBADsBMCAAQQA6AC8gAwuZAQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC0kBAXsgAEEQav0MAAAAAAAAAAAAAAAAAAAAACIB/QsDACAAIAH9CwMAIABBMGogAf0LAwAgAEEgaiAB/QsDACAAQd0BNgIcQQALewEBfwJAIAAoAgwiAw0AAkAgACgCBEUNACAAIAE2AgQLAkAgACABIAIQxICAgAAiAw0AIAAoAgwPCyAAIAM2AhxBACEDIAAoAgQiAUUNACAAIAEgAiAAKAIIEYGAgIAAACIBRQ0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AcsBygG4AckBuQHIAboBuwG8Ab0BvgG/AcABwQHCAcMBxAHFAcYBANwBC0EAIRAMxgELQQ4hEAzFAQtBDSEQDMQBC0EPIRAMwwELQRAhEAzCAQtBEyEQDMEBC0EUIRAMwAELQRUhEAy/AQtBFiEQDL4BC0EXIRAMvQELQRghEAy8AQtBGSEQDLsBC0EaIRAMugELQRshEAy5AQtBHCEQDLgBC0EIIRAMtwELQR0hEAy2AQtBICEQDLUBC0EfIRAMtAELQQchEAyzAQtBISEQDLIBC0EiIRAMsQELQR4hEAywAQtBIyEQDK8BC0ESIRAMrgELQREhEAytAQtBJCEQDKwBC0ElIRAMqwELQSYhEAyqAQtBJyEQDKkBC0HDASEQDKgBC0EpIRAMpwELQSshEAymAQtBLCEQDKUBC0EtIRAMpAELQS4hEAyjAQtBLyEQDKIBC0HEASEQDKEBC0EwIRAMoAELQTQhEAyfAQtBDCEQDJ4BC0ExIRAMnQELQTIhEAycAQtBMyEQDJsBC0E5IRAMmgELQTUhEAyZAQtBxQEhEAyYAQtBCyEQDJcBC0E6IRAMlgELQTYhEAyVAQtBCiEQDJQBC0E3IRAMkwELQTghEAySAQtBPCEQDJEBC0E7IRAMkAELQT0hEAyPAQtBCSEQDI4BC0EoIRAMjQELQT4hEAyMAQtBPyEQDIsBC0HAACEQDIoBC0HBACEQDIkBC0HCACEQDIgBC0HDACEQDIcBC0HEACEQDIYBC0HFACEQDIUBC0HGACEQDIQBC0EqIRAMgwELQccAIRAMggELQcgAIRAMgQELQckAIRAMgAELQcoAIRAMfwtBywAhEAx+C0HNACEQDH0LQcwAIRAMfAtBzgAhEAx7C0HPACEQDHoLQdAAIRAMeQtB0QAhEAx4C0HSACEQDHcLQdMAIRAMdgtB1AAhEAx1C0HWACEQDHQLQdUAIRAMcwtBBiEQDHILQdcAIRAMcQtBBSEQDHALQdgAIRAMbwtBBCEQDG4LQdkAIRAMbQtB2gAhEAxsC0HbACEQDGsLQdwAIRAMagtBAyEQDGkLQd0AIRAMaAtB3gAhEAxnC0HfACEQDGYLQeEAIRAMZQtB4AAhEAxkC0HiACEQDGMLQeMAIRAMYgtBAiEQDGELQeQAIRAMYAtB5QAhEAxfC0HmACEQDF4LQecAIRAMXQtB6AAhEAxcC0HpACEQDFsLQeoAIRAMWgtB6wAhEAxZC0HsACEQDFgLQe0AIRAMVwtB7gAhEAxWC0HvACEQDFULQfAAIRAMVAtB8QAhEAxTC0HyACEQDFILQfMAIRAMUQtB9AAhEAxQC0H1ACEQDE8LQfYAIRAMTgtB9wAhEAxNC0H4ACEQDEwLQfkAIRAMSwtB+gAhEAxKC0H7ACEQDEkLQfwAIRAMSAtB/QAhEAxHC0H+ACEQDEYLQf8AIRAMRQtBgAEhEAxEC0GBASEQDEMLQYIBIRAMQgtBgwEhEAxBC0GEASEQDEALQYUBIRAMPwtBhgEhEAw+C0GHASEQDD0LQYgBIRAMPAtBiQEhEAw7C0GKASEQDDoLQYsBIRAMOQtBjAEhEAw4C0GNASEQDDcLQY4BIRAMNgtBjwEhEAw1C0GQASEQDDQLQZEBIRAMMwtBkgEhEAwyC0GTASEQDDELQZQBIRAMMAtBlQEhEAwvC0GWASEQDC4LQZcBIRAMLQtBmAEhEAwsC0GZASEQDCsLQZoBIRAMKgtBmwEhEAwpC0GcASEQDCgLQZ0BIRAMJwtBngEhEAwmC0GfASEQDCULQaABIRAMJAtBoQEhEAwjC0GiASEQDCILQaMBIRAMIQtBpAEhEAwgC0GlASEQDB8LQaYBIRAMHgtBpwEhEAwdC0GoASEQDBwLQakBIRAMGwtBqgEhEAwaC0GrASEQDBkLQawBIRAMGAtBrQEhEAwXC0GuASEQDBYLQQEhEAwVC0GvASEQDBQLQbABIRAMEwtBsQEhEAwSC0GzASEQDBELQbIBIRAMEAtBtAEhEAwPC0G1ASEQDA4LQbYBIRAMDQtBtwEhEAwMC0G4ASEQDAsLQbkBIRAMCgtBugEhEAwJC0G7ASEQDAgLQcYBIRAMBwtBvAEhEAwGC0G9ASEQDAULQb4BIRAMBAtBvwEhEAwDC0HAASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB4fICEjJSg/QEFERUZHSElKS0xNT1BRUlPeA1dZW1xdYGJlZmdoaWprbG1vcHFyc3R1dnd4eXp7fH1+gAGCAYUBhgGHAYkBiwGMAY0BjgGPAZABkQGUAZUBlgGXAZgBmQGaAZsBnAGdAZ4BnwGgAaEBogGjAaQBpQGmAacBqAGpAaoBqwGsAa0BrgGvAbABsQGyAbMBtAG1AbYBtwG4AbkBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgHHAcgByQHKAcsBzAHNAc4BzwHQAdEB0gHTAdQB1QHWAdcB2AHZAdoB2wHcAd0B3gHgAeEB4gHjAeQB5QHmAecB6AHpAeoB6wHsAe0B7gHvAfAB8QHyAfMBmQKkArAC/gL+AgsgASIEIAJHDfMBQd0BIRAM/wMLIAEiECACRw3dAUHDASEQDP4DCyABIgEgAkcNkAFB9wAhEAz9AwsgASIBIAJHDYYBQe8AIRAM/AMLIAEiASACRw1/QeoAIRAM+wMLIAEiASACRw17QegAIRAM+gMLIAEiASACRw14QeYAIRAM+QMLIAEiASACRw0aQRghEAz4AwsgASIBIAJHDRRBEiEQDPcDCyABIgEgAkcNWUHFACEQDPYDCyABIgEgAkcNSkE/IRAM9QMLIAEiASACRw1IQTwhEAz0AwsgASIBIAJHDUFBMSEQDPMDCyAALQAuQQFGDesDDIcCCyAAIAEiASACEMCAgIAAQQFHDeYBIABCADcDIAznAQsgACABIgEgAhC0gICAACIQDecBIAEhAQz1AgsCQCABIgEgAkcNAEEGIRAM8AMLIAAgAUEBaiIBIAIQu4CAgAAiEA3oASABIQEMMQsgAEIANwMgQRIhEAzVAwsgASIQIAJHDStBHSEQDO0DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8LmAgABqLQAAIhBBAkYNACAQQX9qDgTeAewB4AHrAewBCyABQQFqIgEgAkcNAAtBGCEQDN0DCwJAIAEiASACRg0AIABBi4CAgAA2AgggACABNgIEIAEhAUEHIRAMxAMLQRkhEAzcAwsgAUEBaiEBDAILAkAgASIUIAJHDQBBGiEQDNsDCyAUIQECQCAULQAAQXNqDhTdAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAu4C7gLuAgDuAgtBACEQIABBADYCHCAAQa+LgIAANgIQIABBAjYCDCAAIBRBAWo2AhQM2gMLAkAgAS0AACIQQTtGDQAgEEENRw3oASABQQFqIQEM5QILIAFBAWohAQtBIiEQDL8DCwJAIAEiECACRw0AQRwhEAzYAwtCACERIBAhASAQLQAAQVBqDjfnAeYBAQIDBAUGBwgAAAAAAAAACQoLDA0OAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPEBESExQAC0EeIRAMvQMLQgIhEQzlAQtCAyERDOQBC0IEIREM4wELQgUhEQziAQtCBiERDOEBC0IHIREM4AELQgghEQzfAQtCCSERDN4BC0IKIREM3QELQgshEQzcAQtCDCERDNsBC0INIREM2gELQg4hEQzZAQtCDyERDNgBC0IKIREM1wELQgshEQzWAQtCDCERDNUBC0INIREM1AELQg4hEQzTAQtCDyERDNIBC0IAIRECQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAtAABBUGoON+UB5AEAAQIDBAUGB+YB5gHmAeYB5gHmAeYBCAkKCwwN5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAQ4PEBESE+YBC0ICIREM5AELQgMhEQzjAQtCBCERDOIBC0IFIREM4QELQgYhEQzgAQtCByERDN8BC0IIIREM3gELQgkhEQzdAQtCCiERDNwBC0ILIREM2wELQgwhEQzaAQtCDSERDNkBC0IOIREM2AELQg8hEQzXAQtCCiERDNYBC0ILIREM1QELQgwhEQzUAQtCDSERDNMBC0IOIREM0gELQg8hEQzRAQsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3SAUEfIRAMwAMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQSQhEAynAwtBICEQDL8DCyAAIAEiECACEL6AgIAAQX9qDgW2AQDFAgHRAdIBC0ERIRAMpAMLIABBAToALyAQIQEMuwMLIAEiASACRw3SAUEkIRAMuwMLIAEiDSACRw0eQcYAIRAMugMLIAAgASIBIAIQsoCAgAAiEA3UASABIQEMtQELIAEiECACRw0mQdAAIRAMuAMLAkAgASIBIAJHDQBBKCEQDLgDCyAAQQA2AgQgAEGMgICAADYCCCAAIAEgARCxgICAACIQDdMBIAEhAQzYAQsCQCABIhAgAkcNAEEpIRAMtwMLIBAtAAAiAUEgRg0UIAFBCUcN0wEgEEEBaiEBDBULAkAgASIBIAJGDQAgAUEBaiEBDBcLQSohEAy1AwsCQCABIhAgAkcNAEErIRAMtQMLAkAgEC0AACIBQQlGDQAgAUEgRw3VAQsgAC0ALEEIRg3TASAQIQEMkQMLAkAgASIBIAJHDQBBLCEQDLQDCyABLQAAQQpHDdUBIAFBAWohAQzJAgsgASIOIAJHDdUBQS8hEAyyAwsDQAJAIAEtAAAiEEEgRg0AAkAgEEF2ag4EANwB3AEA2gELIAEhAQzgAQsgAUEBaiIBIAJHDQALQTEhEAyxAwtBMiEQIAEiFCACRg2wAyACIBRrIAAoAgAiAWohFSAUIAFrQQNqIRYCQANAIBQtAAAiF0EgciAXIBdBv39qQf8BcUEaSRtB/wFxIAFB8LuAgABqLQAARw0BAkAgAUEDRw0AQQYhAQyWAwsgAUEBaiEBIBRBAWoiFCACRw0ACyAAIBU2AgAMsQMLIABBADYCACAUIQEM2QELQTMhECABIhQgAkYNrwMgAiAUayAAKAIAIgFqIRUgFCABa0EIaiEWAkADQCAULQAAIhdBIHIgFyAXQb9/akH/AXFBGkkbQf8BcSABQfS7gIAAai0AAEcNAQJAIAFBCEcNAEEFIQEMlQMLIAFBAWohASAUQQFqIhQgAkcNAAsgACAVNgIADLADCyAAQQA2AgAgFCEBDNgBC0E0IRAgASIUIAJGDa4DIAIgFGsgACgCACIBaiEVIBQgAWtBBWohFgJAA0AgFC0AACIXQSByIBcgF0G/f2pB/wFxQRpJG0H/AXEgAUHQwoCAAGotAABHDQECQCABQQVHDQBBByEBDJQDCyABQQFqIQEgFEEBaiIUIAJHDQALIAAgFTYCAAyvAwsgAEEANgIAIBQhAQzXAQsCQCABIgEgAkYNAANAAkAgAS0AAEGAvoCAAGotAAAiEEEBRg0AIBBBAkYNCiABIQEM3QELIAFBAWoiASACRw0AC0EwIRAMrgMLQTAhEAytAwsCQCABIgEgAkYNAANAAkAgAS0AACIQQSBGDQAgEEF2ag4E2QHaAdoB2QHaAQsgAUEBaiIBIAJHDQALQTghEAytAwtBOCEQDKwDCwNAAkAgAS0AACIQQSBGDQAgEEEJRw0DCyABQQFqIgEgAkcNAAtBPCEQDKsDCwNAAkAgAS0AACIQQSBGDQACQAJAIBBBdmoOBNoBAQHaAQALIBBBLEYN2wELIAEhAQwECyABQQFqIgEgAkcNAAtBPyEQDKoDCyABIQEM2wELQcAAIRAgASIUIAJGDagDIAIgFGsgACgCACIBaiEWIBQgAWtBBmohFwJAA0AgFC0AAEEgciABQYDAgIAAai0AAEcNASABQQZGDY4DIAFBAWohASAUQQFqIhQgAkcNAAsgACAWNgIADKkDCyAAQQA2AgAgFCEBC0E2IRAMjgMLAkAgASIPIAJHDQBBwQAhEAynAwsgAEGMgICAADYCCCAAIA82AgQgDyEBIAAtACxBf2oOBM0B1QHXAdkBhwMLIAFBAWohAQzMAQsCQCABIgEgAkYNAANAAkAgAS0AACIQQSByIBAgEEG/f2pB/wFxQRpJG0H/AXEiEEEJRg0AIBBBIEYNAAJAAkACQAJAIBBBnX9qDhMAAwMDAwMDAwEDAwMDAwMDAwMCAwsgAUEBaiEBQTEhEAyRAwsgAUEBaiEBQTIhEAyQAwsgAUEBaiEBQTMhEAyPAwsgASEBDNABCyABQQFqIgEgAkcNAAtBNSEQDKUDC0E1IRAMpAMLAkAgASIBIAJGDQADQAJAIAEtAABBgLyAgABqLQAAQQFGDQAgASEBDNMBCyABQQFqIgEgAkcNAAtBPSEQDKQDC0E9IRAMowMLIAAgASIBIAIQsICAgAAiEA3WASABIQEMAQsgEEEBaiEBC0E8IRAMhwMLAkAgASIBIAJHDQBBwgAhEAygAwsCQANAAkAgAS0AAEF3ag4YAAL+Av4ChAP+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gL+Av4C/gIA/gILIAFBAWoiASACRw0AC0HCACEQDKADCyABQQFqIQEgAC0ALUEBcUUNvQEgASEBC0EsIRAMhQMLIAEiASACRw3TAUHEACEQDJ0DCwNAAkAgAS0AAEGQwICAAGotAABBAUYNACABIQEMtwILIAFBAWoiASACRw0AC0HFACEQDJwDCyANLQAAIhBBIEYNswEgEEE6Rw2BAyAAKAIEIQEgAEEANgIEIAAgASANEK+AgIAAIgEN0AEgDUEBaiEBDLMCC0HHACEQIAEiDSACRg2aAyACIA1rIAAoAgAiAWohFiANIAFrQQVqIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQZDCgIAAai0AAEcNgAMgAUEFRg30AiABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyaAwtByAAhECABIg0gAkYNmQMgAiANayAAKAIAIgFqIRYgDSABa0EJaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUGWwoCAAGotAABHDf8CAkAgAUEJRw0AQQIhAQz1AgsgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMmQMLAkAgASINIAJHDQBByQAhEAyZAwsCQAJAIA0tAAAiAUEgciABIAFBv39qQf8BcUEaSRtB/wFxQZJ/ag4HAIADgAOAA4ADgAMBgAMLIA1BAWohAUE+IRAMgAMLIA1BAWohAUE/IRAM/wILQcoAIRAgASINIAJGDZcDIAIgDWsgACgCACIBaiEWIA0gAWtBAWohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFBoMKAgABqLQAARw39AiABQQFGDfACIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJcDC0HLACEQIAEiDSACRg2WAyACIA1rIAAoAgAiAWohFiANIAFrQQ5qIRcDQCANLQAAIhRBIHIgFCAUQb9/akH/AXFBGkkbQf8BcSABQaLCgIAAai0AAEcN/AIgAUEORg3wAiABQQFqIQEgDUEBaiINIAJHDQALIAAgFjYCAAyWAwtBzAAhECABIg0gAkYNlQMgAiANayAAKAIAIgFqIRYgDSABa0EPaiEXA0AgDS0AACIUQSByIBQgFEG/f2pB/wFxQRpJG0H/AXEgAUHAwoCAAGotAABHDfsCAkAgAUEPRw0AQQMhAQzxAgsgAUEBaiEBIA1BAWoiDSACRw0ACyAAIBY2AgAMlQMLQc0AIRAgASINIAJGDZQDIAIgDWsgACgCACIBaiEWIA0gAWtBBWohFwNAIA0tAAAiFEEgciAUIBRBv39qQf8BcUEaSRtB/wFxIAFB0MKAgABqLQAARw36AgJAIAFBBUcNAEEEIQEM8AILIAFBAWohASANQQFqIg0gAkcNAAsgACAWNgIADJQDCwJAIAEiDSACRw0AQc4AIRAMlAMLAkACQAJAAkAgDS0AACIBQSByIAEgAUG/f2pB/wFxQRpJG0H/AXFBnX9qDhMA/QL9Av0C/QL9Av0C/QL9Av0C/QL9Av0CAf0C/QL9AgID/QILIA1BAWohAUHBACEQDP0CCyANQQFqIQFBwgAhEAz8AgsgDUEBaiEBQcMAIRAM+wILIA1BAWohAUHEACEQDPoCCwJAIAEiASACRg0AIABBjYCAgAA2AgggACABNgIEIAEhAUHFACEQDPoCC0HPACEQDJIDCyAQIQECQAJAIBAtAABBdmoOBAGoAqgCAKgCCyAQQQFqIQELQSchEAz4AgsCQCABIgEgAkcNAEHRACEQDJEDCwJAIAEtAABBIEYNACABIQEMjQELIAFBAWohASAALQAtQQFxRQ3HASABIQEMjAELIAEiFyACRw3IAUHSACEQDI8DC0HTACEQIAEiFCACRg2OAyACIBRrIAAoAgAiAWohFiAUIAFrQQFqIRcDQCAULQAAIAFB1sKAgABqLQAARw3MASABQQFGDccBIAFBAWohASAUQQFqIhQgAkcNAAsgACAWNgIADI4DCwJAIAEiASACRw0AQdUAIRAMjgMLIAEtAABBCkcNzAEgAUEBaiEBDMcBCwJAIAEiASACRw0AQdYAIRAMjQMLAkACQCABLQAAQXZqDgQAzQHNAQHNAQsgAUEBaiEBDMcBCyABQQFqIQFBygAhEAzzAgsgACABIgEgAhCugICAACIQDcsBIAEhAUHNACEQDPICCyAALQApQSJGDYUDDKYCCwJAIAEiASACRw0AQdsAIRAMigMLQQAhFEEBIRdBASEWQQAhEAJAAkACQAJAAkACQAJAAkACQCABLQAAQVBqDgrUAdMBAAECAwQFBgjVAQtBAiEQDAYLQQMhEAwFC0EEIRAMBAtBBSEQDAMLQQYhEAwCC0EHIRAMAQtBCCEQC0EAIRdBACEWQQAhFAzMAQtBCSEQQQEhFEEAIRdBACEWDMsBCwJAIAEiASACRw0AQd0AIRAMiQMLIAEtAABBLkcNzAEgAUEBaiEBDKYCCyABIgEgAkcNzAFB3wAhEAyHAwsCQCABIgEgAkYNACAAQY6AgIAANgIIIAAgATYCBCABIQFB0AAhEAzuAgtB4AAhEAyGAwtB4QAhECABIgEgAkYNhQMgAiABayAAKAIAIhRqIRYgASAUa0EDaiEXA0AgAS0AACAUQeLCgIAAai0AAEcNzQEgFEEDRg3MASAUQQFqIRQgAUEBaiIBIAJHDQALIAAgFjYCAAyFAwtB4gAhECABIgEgAkYNhAMgAiABayAAKAIAIhRqIRYgASAUa0ECaiEXA0AgAS0AACAUQebCgIAAai0AAEcNzAEgFEECRg3OASAUQQFqIRQgAUEBaiIBIAJHDQALIAAgFjYCAAyEAwtB4wAhECABIgEgAkYNgwMgAiABayAAKAIAIhRqIRYgASAUa0EDaiEXA0AgAS0AACAUQenCgIAAai0AAEcNywEgFEEDRg3OASAUQQFqIRQgAUEBaiIBIAJHDQALIAAgFjYCAAyDAwsCQCABIgEgAkcNAEHlACEQDIMDCyAAIAFBAWoiASACEKiAgIAAIhANzQEgASEBQdYAIRAM6QILAkAgASIBIAJGDQADQAJAIAEtAAAiEEEgRg0AAkACQAJAIBBBuH9qDgsAAc8BzwHPAc8BzwHPAc8BzwECzwELIAFBAWohAUHSACEQDO0CCyABQQFqIQFB0wAhEAzsAgsgAUEBaiEBQdQAIRAM6wILIAFBAWoiASACRw0AC0HkACEQDIIDC0HkACEQDIEDCwNAAkAgAS0AAEHwwoCAAGotAAAiEEEBRg0AIBBBfmoOA88B0AHRAdIBCyABQQFqIgEgAkcNAAtB5gAhEAyAAwsCQCABIgEgAkYNACABQQFqIQEMAwtB5wAhEAz/AgsDQAJAIAEtAABB8MSAgABqLQAAIhBBAUYNAAJAIBBBfmoOBNIB0wHUAQDVAQsgASEBQdcAIRAM5wILIAFBAWoiASACRw0AC0HoACEQDP4CCwJAIAEiASACRw0AQekAIRAM/gILAkAgAS0AACIQQXZqDhq6AdUB1QG8AdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAdUB1QHVAcoB1QHVAQDTAQsgAUEBaiEBC0EGIRAM4wILA0ACQCABLQAAQfDGgIAAai0AAEEBRg0AIAEhAQyeAgsgAUEBaiIBIAJHDQALQeoAIRAM+wILAkAgASIBIAJGDQAgAUEBaiEBDAMLQesAIRAM+gILAkAgASIBIAJHDQBB7AAhEAz6AgsgAUEBaiEBDAELAkAgASIBIAJHDQBB7QAhEAz5AgsgAUEBaiEBC0EEIRAM3gILAkAgASIUIAJHDQBB7gAhEAz3AgsgFCEBAkACQAJAIBQtAABB8MiAgABqLQAAQX9qDgfUAdUB1gEAnAIBAtcBCyAUQQFqIQEMCgsgFEEBaiEBDM0BC0EAIRAgAEEANgIcIABBm5KAgAA2AhAgAEEHNgIMIAAgFEEBajYCFAz2AgsCQANAAkAgAS0AAEHwyICAAGotAAAiEEEERg0AAkACQCAQQX9qDgfSAdMB1AHZAQAEAdkBCyABIQFB2gAhEAzgAgsgAUEBaiEBQdwAIRAM3wILIAFBAWoiASACRw0AC0HvACEQDPYCCyABQQFqIQEMywELAkAgASIUIAJHDQBB8AAhEAz1AgsgFC0AAEEvRw3UASAUQQFqIQEMBgsCQCABIhQgAkcNAEHxACEQDPQCCwJAIBQtAAAiAUEvRw0AIBRBAWohAUHdACEQDNsCCyABQXZqIgRBFksN0wFBASAEdEGJgIACcUUN0wEMygILAkAgASIBIAJGDQAgAUEBaiEBQd4AIRAM2gILQfIAIRAM8gILAkAgASIUIAJHDQBB9AAhEAzyAgsgFCEBAkAgFC0AAEHwzICAAGotAABBf2oOA8kClAIA1AELQeEAIRAM2AILAkAgASIUIAJGDQADQAJAIBQtAABB8MqAgABqLQAAIgFBA0YNAAJAIAFBf2oOAssCANUBCyAUIQFB3wAhEAzaAgsgFEEBaiIUIAJHDQALQfMAIRAM8QILQfMAIRAM8AILAkAgASIBIAJGDQAgAEGPgICAADYCCCAAIAE2AgQgASEBQeAAIRAM1wILQfUAIRAM7wILAkAgASIBIAJHDQBB9gAhEAzvAgsgAEGPgICAADYCCCAAIAE2AgQgASEBC0EDIRAM1AILA0AgAS0AAEEgRw3DAiABQQFqIgEgAkcNAAtB9wAhEAzsAgsCQCABIgEgAkcNAEH4ACEQDOwCCyABLQAAQSBHDc4BIAFBAWohAQzvAQsgACABIgEgAhCsgICAACIQDc4BIAEhAQyOAgsCQCABIgQgAkcNAEH6ACEQDOoCCyAELQAAQcwARw3RASAEQQFqIQFBEyEQDM8BCwJAIAEiBCACRw0AQfsAIRAM6QILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEANAIAQtAAAgAUHwzoCAAGotAABHDdABIAFBBUYNzgEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBB+wAhEAzoAgsCQCABIgQgAkcNAEH8ACEQDOgCCwJAAkAgBC0AAEG9f2oODADRAdEB0QHRAdEB0QHRAdEB0QHRAQHRAQsgBEEBaiEBQeYAIRAMzwILIARBAWohAUHnACEQDM4CCwJAIAEiBCACRw0AQf0AIRAM5wILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQe3PgIAAai0AAEcNzwEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQf0AIRAM5wILIABBADYCACAQQQFqIQFBECEQDMwBCwJAIAEiBCACRw0AQf4AIRAM5gILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQfbOgIAAai0AAEcNzgEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQf4AIRAM5gILIABBADYCACAQQQFqIQFBFiEQDMsBCwJAIAEiBCACRw0AQf8AIRAM5QILIAIgBGsgACgCACIBaiEUIAQgAWtBA2ohEAJAA0AgBC0AACABQfzOgIAAai0AAEcNzQEgAUEDRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQf8AIRAM5QILIABBADYCACAQQQFqIQFBBSEQDMoBCwJAIAEiBCACRw0AQYABIRAM5AILIAQtAABB2QBHDcsBIARBAWohAUEIIRAMyQELAkAgASIEIAJHDQBBgQEhEAzjAgsCQAJAIAQtAABBsn9qDgMAzAEBzAELIARBAWohAUHrACEQDMoCCyAEQQFqIQFB7AAhEAzJAgsCQCABIgQgAkcNAEGCASEQDOICCwJAAkAgBC0AAEG4f2oOCADLAcsBywHLAcsBywEBywELIARBAWohAUHqACEQDMkCCyAEQQFqIQFB7QAhEAzIAgsCQCABIgQgAkcNAEGDASEQDOECCyACIARrIAAoAgAiAWohECAEIAFrQQJqIRQCQANAIAQtAAAgAUGAz4CAAGotAABHDckBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgEDYCAEGDASEQDOECC0EAIRAgAEEANgIAIBRBAWohAQzGAQsCQCABIgQgAkcNAEGEASEQDOACCyACIARrIAAoAgAiAWohFCAEIAFrQQRqIRACQANAIAQtAAAgAUGDz4CAAGotAABHDcgBIAFBBEYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGEASEQDOACCyAAQQA2AgAgEEEBaiEBQSMhEAzFAQsCQCABIgQgAkcNAEGFASEQDN8CCwJAAkAgBC0AAEG0f2oOCADIAcgByAHIAcgByAEByAELIARBAWohAUHvACEQDMYCCyAEQQFqIQFB8AAhEAzFAgsCQCABIgQgAkcNAEGGASEQDN4CCyAELQAAQcUARw3FASAEQQFqIQEMgwILAkAgASIEIAJHDQBBhwEhEAzdAgsgAiAEayAAKAIAIgFqIRQgBCABa0EDaiEQAkADQCAELQAAIAFBiM+AgABqLQAARw3FASABQQNGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBhwEhEAzdAgsgAEEANgIAIBBBAWohAUEtIRAMwgELAkAgASIEIAJHDQBBiAEhEAzcAgsgAiAEayAAKAIAIgFqIRQgBCABa0EIaiEQAkADQCAELQAAIAFB0M+AgABqLQAARw3EASABQQhGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBiAEhEAzcAgsgAEEANgIAIBBBAWohAUEpIRAMwQELAkAgASIBIAJHDQBBiQEhEAzbAgtBASEQIAEtAABB3wBHDcABIAFBAWohAQyBAgsCQCABIgQgAkcNAEGKASEQDNoCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRADQCAELQAAIAFBjM+AgABqLQAARw3BASABQQFGDa8CIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQYoBIRAM2QILAkAgASIEIAJHDQBBiwEhEAzZAgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFBjs+AgABqLQAARw3BASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBiwEhEAzZAgsgAEEANgIAIBBBAWohAUECIRAMvgELAkAgASIEIAJHDQBBjAEhEAzYAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFB8M+AgABqLQAARw3AASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBjAEhEAzYAgsgAEEANgIAIBBBAWohAUEfIRAMvQELAkAgASIEIAJHDQBBjQEhEAzXAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFB8s+AgABqLQAARw2/ASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBjQEhEAzXAgsgAEEANgIAIBBBAWohAUEJIRAMvAELAkAgASIEIAJHDQBBjgEhEAzWAgsCQAJAIAQtAABBt39qDgcAvwG/Ab8BvwG/AQG/AQsgBEEBaiEBQfgAIRAMvQILIARBAWohAUH5ACEQDLwCCwJAIAEiBCACRw0AQY8BIRAM1QILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQZHPgIAAai0AAEcNvQEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQY8BIRAM1QILIABBADYCACAQQQFqIQFBGCEQDLoBCwJAIAEiBCACRw0AQZABIRAM1AILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQZfPgIAAai0AAEcNvAEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZABIRAM1AILIABBADYCACAQQQFqIQFBFyEQDLkBCwJAIAEiBCACRw0AQZEBIRAM0wILIAIgBGsgACgCACIBaiEUIAQgAWtBBmohEAJAA0AgBC0AACABQZrPgIAAai0AAEcNuwEgAUEGRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZEBIRAM0wILIABBADYCACAQQQFqIQFBFSEQDLgBCwJAIAEiBCACRw0AQZIBIRAM0gILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQaHPgIAAai0AAEcNugEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZIBIRAM0gILIABBADYCACAQQQFqIQFBHiEQDLcBCwJAIAEiBCACRw0AQZMBIRAM0QILIAQtAABBzABHDbgBIARBAWohAUEKIRAMtgELAkAgBCACRw0AQZQBIRAM0AILAkACQCAELQAAQb9/ag4PALkBuQG5AbkBuQG5AbkBuQG5AbkBuQG5AbkBAbkBCyAEQQFqIQFB/gAhEAy3AgsgBEEBaiEBQf8AIRAMtgILAkAgBCACRw0AQZUBIRAMzwILAkACQCAELQAAQb9/ag4DALgBAbgBCyAEQQFqIQFB/QAhEAy2AgsgBEEBaiEEQYABIRAMtQILAkAgBCACRw0AQZYBIRAMzgILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQafPgIAAai0AAEcNtgEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZYBIRAMzgILIABBADYCACAQQQFqIQFBCyEQDLMBCwJAIAQgAkcNAEGXASEQDM0CCwJAAkACQAJAIAQtAABBU2oOIwC4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBuAG4AbgBAbgBuAG4AbgBuAECuAG4AbgBA7gBCyAEQQFqIQFB+wAhEAy2AgsgBEEBaiEBQfwAIRAMtQILIARBAWohBEGBASEQDLQCCyAEQQFqIQRBggEhEAyzAgsCQCAEIAJHDQBBmAEhEAzMAgsgAiAEayAAKAIAIgFqIRQgBCABa0EEaiEQAkADQCAELQAAIAFBqc+AgABqLQAARw20ASABQQRGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBmAEhEAzMAgsgAEEANgIAIBBBAWohAUEZIRAMsQELAkAgBCACRw0AQZkBIRAMywILIAIgBGsgACgCACIBaiEUIAQgAWtBBWohEAJAA0AgBC0AACABQa7PgIAAai0AAEcNswEgAUEFRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZkBIRAMywILIABBADYCACAQQQFqIQFBBiEQDLABCwJAIAQgAkcNAEGaASEQDMoCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUG0z4CAAGotAABHDbIBIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGaASEQDMoCCyAAQQA2AgAgEEEBaiEBQRwhEAyvAQsCQCAEIAJHDQBBmwEhEAzJAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBts+AgABqLQAARw2xASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBmwEhEAzJAgsgAEEANgIAIBBBAWohAUEnIRAMrgELAkAgBCACRw0AQZwBIRAMyAILAkACQCAELQAAQax/ag4CAAGxAQsgBEEBaiEEQYYBIRAMrwILIARBAWohBEGHASEQDK4CCwJAIAQgAkcNAEGdASEQDMcCCyACIARrIAAoAgAiAWohFCAEIAFrQQFqIRACQANAIAQtAAAgAUG4z4CAAGotAABHDa8BIAFBAUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGdASEQDMcCCyAAQQA2AgAgEEEBaiEBQSYhEAysAQsCQCAEIAJHDQBBngEhEAzGAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFBus+AgABqLQAARw2uASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBngEhEAzGAgsgAEEANgIAIBBBAWohAUEDIRAMqwELAkAgBCACRw0AQZ8BIRAMxQILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQe3PgIAAai0AAEcNrQEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQZ8BIRAMxQILIABBADYCACAQQQFqIQFBDCEQDKoBCwJAIAQgAkcNAEGgASEQDMQCCyACIARrIAAoAgAiAWohFCAEIAFrQQNqIRACQANAIAQtAAAgAUG8z4CAAGotAABHDawBIAFBA0YNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGgASEQDMQCCyAAQQA2AgAgEEEBaiEBQQ0hEAypAQsCQCAEIAJHDQBBoQEhEAzDAgsCQAJAIAQtAABBun9qDgsArAGsAawBrAGsAawBrAGsAawBAawBCyAEQQFqIQRBiwEhEAyqAgsgBEEBaiEEQYwBIRAMqQILAkAgBCACRw0AQaIBIRAMwgILIAQtAABB0ABHDakBIARBAWohBAzpAQsCQCAEIAJHDQBBowEhEAzBAgsCQAJAIAQtAABBt39qDgcBqgGqAaoBqgGqAQCqAQsgBEEBaiEEQY4BIRAMqAILIARBAWohAUEiIRAMpgELAkAgBCACRw0AQaQBIRAMwAILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQcDPgIAAai0AAEcNqAEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQaQBIRAMwAILIABBADYCACAQQQFqIQFBHSEQDKUBCwJAIAQgAkcNAEGlASEQDL8CCwJAAkAgBC0AAEGuf2oOAwCoAQGoAQsgBEEBaiEEQZABIRAMpgILIARBAWohAUEEIRAMpAELAkAgBCACRw0AQaYBIRAMvgILAkACQAJAAkACQCAELQAAQb9/ag4VAKoBqgGqAaoBqgGqAaoBqgGqAaoBAaoBqgECqgGqAQOqAaoBBKoBCyAEQQFqIQRBiAEhEAyoAgsgBEEBaiEEQYkBIRAMpwILIARBAWohBEGKASEQDKYCCyAEQQFqIQRBjwEhEAylAgsgBEEBaiEEQZEBIRAMpAILAkAgBCACRw0AQacBIRAMvQILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQe3PgIAAai0AAEcNpQEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQacBIRAMvQILIABBADYCACAQQQFqIQFBESEQDKIBCwJAIAQgAkcNAEGoASEQDLwCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHCz4CAAGotAABHDaQBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGoASEQDLwCCyAAQQA2AgAgEEEBaiEBQSwhEAyhAQsCQCAEIAJHDQBBqQEhEAy7AgsgAiAEayAAKAIAIgFqIRQgBCABa0EEaiEQAkADQCAELQAAIAFBxc+AgABqLQAARw2jASABQQRGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBqQEhEAy7AgsgAEEANgIAIBBBAWohAUErIRAMoAELAkAgBCACRw0AQaoBIRAMugILIAIgBGsgACgCACIBaiEUIAQgAWtBAmohEAJAA0AgBC0AACABQcrPgIAAai0AAEcNogEgAUECRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQaoBIRAMugILIABBADYCACAQQQFqIQFBFCEQDJ8BCwJAIAQgAkcNAEGrASEQDLkCCwJAAkACQAJAIAQtAABBvn9qDg8AAQKkAaQBpAGkAaQBpAGkAaQBpAGkAaQBA6QBCyAEQQFqIQRBkwEhEAyiAgsgBEEBaiEEQZQBIRAMoQILIARBAWohBEGVASEQDKACCyAEQQFqIQRBlgEhEAyfAgsCQCAEIAJHDQBBrAEhEAy4AgsgBC0AAEHFAEcNnwEgBEEBaiEEDOABCwJAIAQgAkcNAEGtASEQDLcCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHNz4CAAGotAABHDZ8BIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEGtASEQDLcCCyAAQQA2AgAgEEEBaiEBQQ4hEAycAQsCQCAEIAJHDQBBrgEhEAy2AgsgBC0AAEHQAEcNnQEgBEEBaiEBQSUhEAybAQsCQCAEIAJHDQBBrwEhEAy1AgsgAiAEayAAKAIAIgFqIRQgBCABa0EIaiEQAkADQCAELQAAIAFB0M+AgABqLQAARw2dASABQQhGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBrwEhEAy1AgsgAEEANgIAIBBBAWohAUEqIRAMmgELAkAgBCACRw0AQbABIRAMtAILAkACQCAELQAAQat/ag4LAJ0BnQGdAZ0BnQGdAZ0BnQGdAQGdAQsgBEEBaiEEQZoBIRAMmwILIARBAWohBEGbASEQDJoCCwJAIAQgAkcNAEGxASEQDLMCCwJAAkAgBC0AAEG/f2oOFACcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAGcAZwBnAEBnAELIARBAWohBEGZASEQDJoCCyAEQQFqIQRBnAEhEAyZAgsCQCAEIAJHDQBBsgEhEAyyAgsgAiAEayAAKAIAIgFqIRQgBCABa0EDaiEQAkADQCAELQAAIAFB2c+AgABqLQAARw2aASABQQNGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBsgEhEAyyAgsgAEEANgIAIBBBAWohAUEhIRAMlwELAkAgBCACRw0AQbMBIRAMsQILIAIgBGsgACgCACIBaiEUIAQgAWtBBmohEAJAA0AgBC0AACABQd3PgIAAai0AAEcNmQEgAUEGRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbMBIRAMsQILIABBADYCACAQQQFqIQFBGiEQDJYBCwJAIAQgAkcNAEG0ASEQDLACCwJAAkACQCAELQAAQbt/ag4RAJoBmgGaAZoBmgGaAZoBmgGaAQGaAZoBmgGaAZoBApoBCyAEQQFqIQRBnQEhEAyYAgsgBEEBaiEEQZ4BIRAMlwILIARBAWohBEGfASEQDJYCCwJAIAQgAkcNAEG1ASEQDK8CCyACIARrIAAoAgAiAWohFCAEIAFrQQVqIRACQANAIAQtAAAgAUHkz4CAAGotAABHDZcBIAFBBUYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG1ASEQDK8CCyAAQQA2AgAgEEEBaiEBQSghEAyUAQsCQCAEIAJHDQBBtgEhEAyuAgsgAiAEayAAKAIAIgFqIRQgBCABa0ECaiEQAkADQCAELQAAIAFB6s+AgABqLQAARw2WASABQQJGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBtgEhEAyuAgsgAEEANgIAIBBBAWohAUEHIRAMkwELAkAgBCACRw0AQbcBIRAMrQILAkACQCAELQAAQbt/ag4OAJYBlgGWAZYBlgGWAZYBlgGWAZYBlgGWAQGWAQsgBEEBaiEEQaEBIRAMlAILIARBAWohBEGiASEQDJMCCwJAIAQgAkcNAEG4ASEQDKwCCyACIARrIAAoAgAiAWohFCAEIAFrQQJqIRACQANAIAQtAAAgAUHtz4CAAGotAABHDZQBIAFBAkYNASABQQFqIQEgBEEBaiIEIAJHDQALIAAgFDYCAEG4ASEQDKwCCyAAQQA2AgAgEEEBaiEBQRIhEAyRAQsCQCAEIAJHDQBBuQEhEAyrAgsgAiAEayAAKAIAIgFqIRQgBCABa0EBaiEQAkADQCAELQAAIAFB8M+AgABqLQAARw2TASABQQFGDQEgAUEBaiEBIARBAWoiBCACRw0ACyAAIBQ2AgBBuQEhEAyrAgsgAEEANgIAIBBBAWohAUEgIRAMkAELAkAgBCACRw0AQboBIRAMqgILIAIgBGsgACgCACIBaiEUIAQgAWtBAWohEAJAA0AgBC0AACABQfLPgIAAai0AAEcNkgEgAUEBRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQboBIRAMqgILIABBADYCACAQQQFqIQFBDyEQDI8BCwJAIAQgAkcNAEG7ASEQDKkCCwJAAkAgBC0AAEG3f2oOBwCSAZIBkgGSAZIBAZIBCyAEQQFqIQRBpQEhEAyQAgsgBEEBaiEEQaYBIRAMjwILAkAgBCACRw0AQbwBIRAMqAILIAIgBGsgACgCACIBaiEUIAQgAWtBB2ohEAJAA0AgBC0AACABQfTPgIAAai0AAEcNkAEgAUEHRg0BIAFBAWohASAEQQFqIgQgAkcNAAsgACAUNgIAQbwBIRAMqAILIABBADYCACAQQQFqIQFBGyEQDI0BCwJAIAQgAkcNAEG9ASEQDKcCCwJAAkACQCAELQAAQb5/ag4SAJEBkQGRAZEBkQGRAZEBkQGRAQGRAZEBkQGRAZEBkQECkQELIARBAWohBEGkASEQDI8CCyAEQQFqIQRBpwEhEAyOAgsgBEEBaiEEQagBIRAMjQILAkAgBCACRw0AQb4BIRAMpgILIAQtAABBzgBHDY0BIARBAWohBAzPAQsCQCAEIAJHDQBBvwEhEAylAgsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAELQAAQb9/ag4VAAECA5wBBAUGnAGcAZwBBwgJCgucAQwNDg+cAQsgBEEBaiEBQegAIRAMmgILIARBAWohAUHpACEQDJkCCyAEQQFqIQFB7gAhEAyYAgsgBEEBaiEBQfIAIRAMlwILIARBAWohAUHzACEQDJYCCyAEQQFqIQFB9gAhEAyVAgsgBEEBaiEBQfcAIRAMlAILIARBAWohAUH6ACEQDJMCCyAEQQFqIQRBgwEhEAySAgsgBEEBaiEEQYQBIRAMkQILIARBAWohBEGFASEQDJACCyAEQQFqIQRBkgEhEAyPAgsgBEEBaiEEQZgBIRAMjgILIARBAWohBEGgASEQDI0CCyAEQQFqIQRBowEhEAyMAgsgBEEBaiEEQaoBIRAMiwILAkAgBCACRg0AIABBkICAgAA2AgggACAENgIEQasBIRAMiwILQcABIRAMowILIAAgBSACEKqAgIAAIgENiwEgBSEBDFwLAkAgBiACRg0AIAZBAWohBQyNAQtBwgEhEAyhAgsDQAJAIBAtAABBdmoOBIwBAACPAQALIBBBAWoiECACRw0AC0HDASEQDKACCwJAIAcgAkYNACAAQZGAgIAANgIIIAAgBzYCBCAHIQFBASEQDIcCC0HEASEQDJ8CCwJAIAcgAkcNAEHFASEQDJ8CCwJAAkAgBy0AAEF2ag4EAc4BzgEAzgELIAdBAWohBgyNAQsgB0EBaiEFDIkBCwJAIAcgAkcNAEHGASEQDJ4CCwJAAkAgBy0AAEF2ag4XAY8BjwEBjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BAI8BCyAHQQFqIQcLQbABIRAMhAILAkAgCCACRw0AQcgBIRAMnQILIAgtAABBIEcNjQEgAEEAOwEyIAhBAWohAUGzASEQDIMCCyABIRcCQANAIBciByACRg0BIActAABBUGpB/wFxIhBBCk8NzAECQCAALwEyIhRBmTNLDQAgACAUQQpsIhQ7ATIgEEH//wNzIBRB/v8DcUkNACAHQQFqIRcgACAUIBBqIhA7ATIgEEH//wNxQegHSQ0BCwtBACEQIABBADYCHCAAQcGJgIAANgIQIABBDTYCDCAAIAdBAWo2AhQMnAILQccBIRAMmwILIAAgCCACEK6AgIAAIhBFDcoBIBBBFUcNjAEgAEHIATYCHCAAIAg2AhQgAEHJl4CAADYCECAAQRU2AgxBACEQDJoCCwJAIAkgAkcNAEHMASEQDJoCC0EAIRRBASEXQQEhFkEAIRACQAJAAkACQAJAAkACQAJAAkAgCS0AAEFQag4KlgGVAQABAgMEBQYIlwELQQIhEAwGC0EDIRAMBQtBBCEQDAQLQQUhEAwDC0EGIRAMAgtBByEQDAELQQghEAtBACEXQQAhFkEAIRQMjgELQQkhEEEBIRRBACEXQQAhFgyNAQsCQCAKIAJHDQBBzgEhEAyZAgsgCi0AAEEuRw2OASAKQQFqIQkMygELIAsgAkcNjgFB0AEhEAyXAgsCQCALIAJGDQAgAEGOgICAADYCCCAAIAs2AgRBtwEhEAz+AQtB0QEhEAyWAgsCQCAEIAJHDQBB0gEhEAyWAgsgAiAEayAAKAIAIhBqIRQgBCAQa0EEaiELA0AgBC0AACAQQfzPgIAAai0AAEcNjgEgEEEERg3pASAQQQFqIRAgBEEBaiIEIAJHDQALIAAgFDYCAEHSASEQDJUCCyAAIAwgAhCsgICAACIBDY0BIAwhAQy4AQsCQCAEIAJHDQBB1AEhEAyUAgsgAiAEayAAKAIAIhBqIRQgBCAQa0EBaiEMA0AgBC0AACAQQYHQgIAAai0AAEcNjwEgEEEBRg2OASAQQQFqIRAgBEEBaiIEIAJHDQALIAAgFDYCAEHUASEQDJMCCwJAIAQgAkcNAEHWASEQDJMCCyACIARrIAAoAgAiEGohFCAEIBBrQQJqIQsDQCAELQAAIBBBg9CAgABqLQAARw2OASAQQQJGDZABIBBBAWohECAEQQFqIgQgAkcNAAsgACAUNgIAQdYBIRAMkgILAkAgBCACRw0AQdcBIRAMkgILAkACQCAELQAAQbt/ag4QAI8BjwGPAY8BjwGPAY8BjwGPAY8BjwGPAY8BjwEBjwELIARBAWohBEG7ASEQDPkBCyAEQQFqIQRBvAEhEAz4AQsCQCAEIAJHDQBB2AEhEAyRAgsgBC0AAEHIAEcNjAEgBEEBaiEEDMQBCwJAIAQgAkYNACAAQZCAgIAANgIIIAAgBDYCBEG+ASEQDPcBC0HZASEQDI8CCwJAIAQgAkcNAEHaASEQDI8CCyAELQAAQcgARg3DASAAQQE6ACgMuQELIABBAjoALyAAIAQgAhCmgICAACIQDY0BQcIBIRAM9AELIAAtAChBf2oOArcBuQG4AQsDQAJAIAQtAABBdmoOBACOAY4BAI4BCyAEQQFqIgQgAkcNAAtB3QEhEAyLAgsgAEEAOgAvIAAtAC1BBHFFDYQCCyAAQQA6AC8gAEEBOgA0IAEhAQyMAQsgEEEVRg3aASAAQQA2AhwgACABNgIUIABBp46AgAA2AhAgAEESNgIMQQAhEAyIAgsCQCAAIBAgAhC0gICAACIEDQAgECEBDIECCwJAIARBFUcNACAAQQM2AhwgACAQNgIUIABBsJiAgAA2AhAgAEEVNgIMQQAhEAyIAgsgAEEANgIcIAAgEDYCFCAAQaeOgIAANgIQIABBEjYCDEEAIRAMhwILIBBBFUYN1gEgAEEANgIcIAAgATYCFCAAQdqNgIAANgIQIABBFDYCDEEAIRAMhgILIAAoAgQhFyAAQQA2AgQgECARp2oiFiEBIAAgFyAQIBYgFBsiEBC1gICAACIURQ2NASAAQQc2AhwgACAQNgIUIAAgFDYCDEEAIRAMhQILIAAgAC8BMEGAAXI7ATAgASEBC0EqIRAM6gELIBBBFUYN0QEgAEEANgIcIAAgATYCFCAAQYOMgIAANgIQIABBEzYCDEEAIRAMggILIBBBFUYNzwEgAEEANgIcIAAgATYCFCAAQZqPgIAANgIQIABBIjYCDEEAIRAMgQILIAAoAgQhECAAQQA2AgQCQCAAIBAgARC3gICAACIQDQAgAUEBaiEBDI0BCyAAQQw2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAMgAILIBBBFUYNzAEgAEEANgIcIAAgATYCFCAAQZqPgIAANgIQIABBIjYCDEEAIRAM/wELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC3gICAACIQDQAgAUEBaiEBDIwBCyAAQQ02AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM/gELIBBBFUYNyQEgAEEANgIcIAAgATYCFCAAQcaMgIAANgIQIABBIzYCDEEAIRAM/QELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC5gICAACIQDQAgAUEBaiEBDIsBCyAAQQ42AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM/AELIABBADYCHCAAIAE2AhQgAEHAlYCAADYCECAAQQI2AgxBACEQDPsBCyAQQRVGDcUBIABBADYCHCAAIAE2AhQgAEHGjICAADYCECAAQSM2AgxBACEQDPoBCyAAQRA2AhwgACABNgIUIAAgEDYCDEEAIRAM+QELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARC5gICAACIEDQAgAUEBaiEBDPEBCyAAQRE2AhwgACAENgIMIAAgAUEBajYCFEEAIRAM+AELIBBBFUYNwQEgAEEANgIcIAAgATYCFCAAQcaMgIAANgIQIABBIzYCDEEAIRAM9wELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC5gICAACIQDQAgAUEBaiEBDIgBCyAAQRM2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM9gELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARC5gICAACIEDQAgAUEBaiEBDO0BCyAAQRQ2AhwgACAENgIMIAAgAUEBajYCFEEAIRAM9QELIBBBFUYNvQEgAEEANgIcIAAgATYCFCAAQZqPgIAANgIQIABBIjYCDEEAIRAM9AELIAAoAgQhECAAQQA2AgQCQCAAIBAgARC3gICAACIQDQAgAUEBaiEBDIYBCyAAQRY2AhwgACAQNgIMIAAgAUEBajYCFEEAIRAM8wELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARC3gICAACIEDQAgAUEBaiEBDOkBCyAAQRc2AhwgACAENgIMIAAgAUEBajYCFEEAIRAM8gELIABBADYCHCAAIAE2AhQgAEHNk4CAADYCECAAQQw2AgxBACEQDPEBC0IBIRELIBBBAWohAQJAIAApAyAiEkL//////////w9WDQAgACASQgSGIBGENwMgIAEhAQyEAQsgAEEANgIcIAAgATYCFCAAQa2JgIAANgIQIABBDDYCDEEAIRAM7wELIABBADYCHCAAIBA2AhQgAEHNk4CAADYCECAAQQw2AgxBACEQDO4BCyAAKAIEIRcgAEEANgIEIBAgEadqIhYhASAAIBcgECAWIBQbIhAQtYCAgAAiFEUNcyAAQQU2AhwgACAQNgIUIAAgFDYCDEEAIRAM7QELIABBADYCHCAAIBA2AhQgAEGqnICAADYCECAAQQ82AgxBACEQDOwBCyAAIBAgAhC0gICAACIBDQEgECEBC0EOIRAM0QELAkAgAUEVRw0AIABBAjYCHCAAIBA2AhQgAEGwmICAADYCECAAQRU2AgxBACEQDOoBCyAAQQA2AhwgACAQNgIUIABBp46AgAA2AhAgAEESNgIMQQAhEAzpAQsgAUEBaiEQAkAgAC8BMCIBQYABcUUNAAJAIAAgECACELuAgIAAIgENACAQIQEMcAsgAUEVRw26ASAAQQU2AhwgACAQNgIUIABB+ZeAgAA2AhAgAEEVNgIMQQAhEAzpAQsCQCABQaAEcUGgBEcNACAALQAtQQJxDQAgAEEANgIcIAAgEDYCFCAAQZaTgIAANgIQIABBBDYCDEEAIRAM6QELIAAgECACEL2AgIAAGiAQIQECQAJAAkACQAJAIAAgECACELOAgIAADhYCAQAEBAQEBAQEBAQEBAQEBAQEBAQDBAsgAEEBOgAuCyAAIAAvATBBwAByOwEwIBAhAQtBJiEQDNEBCyAAQSM2AhwgACAQNgIUIABBpZaAgAA2AhAgAEEVNgIMQQAhEAzpAQsgAEEANgIcIAAgEDYCFCAAQdWLgIAANgIQIABBETYCDEEAIRAM6AELIAAtAC1BAXFFDQFBwwEhEAzOAQsCQCANIAJGDQADQAJAIA0tAABBIEYNACANIQEMxAELIA1BAWoiDSACRw0AC0ElIRAM5wELQSUhEAzmAQsgACgCBCEEIABBADYCBCAAIAQgDRCvgICAACIERQ2tASAAQSY2AhwgACAENgIMIAAgDUEBajYCFEEAIRAM5QELIBBBFUYNqwEgAEEANgIcIAAgATYCFCAAQf2NgIAANgIQIABBHTYCDEEAIRAM5AELIABBJzYCHCAAIAE2AhQgACAQNgIMQQAhEAzjAQsgECEBQQEhFAJAAkACQAJAAkACQAJAIAAtACxBfmoOBwYFBQMBAgAFCyAAIAAvATBBCHI7ATAMAwtBAiEUDAELQQQhFAsgAEEBOgAsIAAgAC8BMCAUcjsBMAsgECEBC0ErIRAMygELIABBADYCHCAAIBA2AhQgAEGrkoCAADYCECAAQQs2AgxBACEQDOIBCyAAQQA2AhwgACABNgIUIABB4Y+AgAA2AhAgAEEKNgIMQQAhEAzhAQsgAEEAOgAsIBAhAQy9AQsgECEBQQEhFAJAAkACQAJAAkAgAC0ALEF7ag4EAwECAAULIAAgAC8BMEEIcjsBMAwDC0ECIRQMAQtBBCEUCyAAQQE6ACwgACAALwEwIBRyOwEwCyAQIQELQSkhEAzFAQsgAEEANgIcIAAgATYCFCAAQfCUgIAANgIQIABBAzYCDEEAIRAM3QELAkAgDi0AAEENRw0AIAAoAgQhASAAQQA2AgQCQCAAIAEgDhCxgICAACIBDQAgDkEBaiEBDHULIABBLDYCHCAAIAE2AgwgACAOQQFqNgIUQQAhEAzdAQsgAC0ALUEBcUUNAUHEASEQDMMBCwJAIA4gAkcNAEEtIRAM3AELAkACQANAAkAgDi0AAEF2ag4EAgAAAwALIA5BAWoiDiACRw0AC0EtIRAM3QELIAAoAgQhASAAQQA2AgQCQCAAIAEgDhCxgICAACIBDQAgDiEBDHQLIABBLDYCHCAAIA42AhQgACABNgIMQQAhEAzcAQsgACgCBCEBIABBADYCBAJAIAAgASAOELGAgIAAIgENACAOQQFqIQEMcwsgAEEsNgIcIAAgATYCDCAAIA5BAWo2AhRBACEQDNsBCyAAKAIEIQQgAEEANgIEIAAgBCAOELGAgIAAIgQNoAEgDiEBDM4BCyAQQSxHDQEgAUEBaiEQQQEhAQJAAkACQAJAAkAgAC0ALEF7ag4EAwECBAALIBAhAQwEC0ECIQEMAQtBBCEBCyAAQQE6ACwgACAALwEwIAFyOwEwIBAhAQwBCyAAIAAvATBBCHI7ATAgECEBC0E5IRAMvwELIABBADoALCABIQELQTQhEAy9AQsgACAALwEwQSByOwEwIAEhAQwCCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQsYCAgAAiBA0AIAEhAQzHAQsgAEE3NgIcIAAgATYCFCAAIAQ2AgxBACEQDNQBCyAAQQg6ACwgASEBC0EwIRAMuQELAkAgAC0AKEEBRg0AIAEhAQwECyAALQAtQQhxRQ2TASABIQEMAwsgAC0AMEEgcQ2UAUHFASEQDLcBCwJAIA8gAkYNAAJAA0ACQCAPLQAAQVBqIgFB/wFxQQpJDQAgDyEBQTUhEAy6AQsgACkDICIRQpmz5syZs+bMGVYNASAAIBFCCn4iETcDICARIAGtQv8BgyISQn+FVg0BIAAgESASfDcDICAPQQFqIg8gAkcNAAtBOSEQDNEBCyAAKAIEIQIgAEEANgIEIAAgAiAPQQFqIgQQsYCAgAAiAg2VASAEIQEMwwELQTkhEAzPAQsCQCAALwEwIgFBCHFFDQAgAC0AKEEBRw0AIAAtAC1BCHFFDZABCyAAIAFB9/sDcUGABHI7ATAgDyEBC0E3IRAMtAELIAAgAC8BMEEQcjsBMAyrAQsgEEEVRg2LASAAQQA2AhwgACABNgIUIABB8I6AgAA2AhAgAEEcNgIMQQAhEAzLAQsgAEHDADYCHCAAIAE2AgwgACANQQFqNgIUQQAhEAzKAQsCQCABLQAAQTpHDQAgACgCBCEQIABBADYCBAJAIAAgECABEK+AgIAAIhANACABQQFqIQEMYwsgAEHDADYCHCAAIBA2AgwgACABQQFqNgIUQQAhEAzKAQsgAEEANgIcIAAgATYCFCAAQbGRgIAANgIQIABBCjYCDEEAIRAMyQELIABBADYCHCAAIAE2AhQgAEGgmYCAADYCECAAQR42AgxBACEQDMgBCyAAQQA2AgALIABBgBI7ASogACAXQQFqIgEgAhCogICAACIQDQEgASEBC0HHACEQDKwBCyAQQRVHDYMBIABB0QA2AhwgACABNgIUIABB45eAgAA2AhAgAEEVNgIMQQAhEAzEAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMXgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAzDAQsgAEEANgIcIAAgFDYCFCAAQcGogIAANgIQIABBBzYCDCAAQQA2AgBBACEQDMIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxdCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDMEBC0EAIRAgAEEANgIcIAAgATYCFCAAQYCRgIAANgIQIABBCTYCDAzAAQsgEEEVRg19IABBADYCHCAAIAE2AhQgAEGUjYCAADYCECAAQSE2AgxBACEQDL8BC0EBIRZBACEXQQAhFEEBIRALIAAgEDoAKyABQQFqIQECQAJAIAAtAC1BEHENAAJAAkACQCAALQAqDgMBAAIECyAWRQ0DDAILIBQNAQwCCyAXRQ0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQrYCAgAAiEA0AIAEhAQxcCyAAQdgANgIcIAAgATYCFCAAIBA2AgxBACEQDL4BCyAAKAIEIQQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQytAQsgAEHZADYCHCAAIAE2AhQgACAENgIMQQAhEAy9AQsgACgCBCEEIABBADYCBAJAIAAgBCABEK2AgIAAIgQNACABIQEMqwELIABB2gA2AhwgACABNgIUIAAgBDYCDEEAIRAMvAELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKkBCyAAQdwANgIcIAAgATYCFCAAIAQ2AgxBACEQDLsBCwJAIAEtAABBUGoiEEH/AXFBCk8NACAAIBA6ACogAUEBaiEBQc8AIRAMogELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKcBCyAAQd4ANgIcIAAgATYCFCAAIAQ2AgxBACEQDLoBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKUEjTw0AIAEhAQxZCyAAQQA2AhwgACABNgIUIABB04mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHSADYCHCAAIBQ2AhQgACABNgIMQQAhEAykAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHTADYCHCAAIBQ2AhQgACABNgIMQQAhEAyjAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMQwsgAEHlADYCHCAAIBQ2AhQgACABNgIMQQAhEAyiAQsgAEEANgIcIAAgFDYCFCAAQcOPgIAANgIQIABBBzYCDEEAIRAMoQELIABBADYCHCAAIAE2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKABC0EAIRAgAEEANgIcIAAgFDYCFCAAQYycgIAANgIQIABBBzYCDAyfAQsgAEEANgIcIAAgFDYCFCAAQYycgIAANgIQIABBBzYCDEEAIRAMngELIABBADYCHCAAIBQ2AhQgAEH+kYCAADYCECAAQQc2AgxBACEQDJ0BCyAAQQA2AhwgACABNgIUIABBjpuAgAA2AhAgAEEGNgIMQQAhEAycAQsgEEEVRg1XIABBADYCHCAAIAE2AhQgAEHMjoCAADYCECAAQSA2AgxBACEQDJsBCyAAQQA2AgAgEEEBaiEBQSQhEAsgACAQOgApIAAoAgQhECAAQQA2AgQgACAQIAEQq4CAgAAiEA1UIAEhAQw+CyAAQQA2AgALQQAhECAAQQA2AhwgACAENgIUIABB8ZuAgAA2AhAgAEEGNgIMDJcBCyABQRVGDVAgAEEANgIcIAAgBTYCFCAAQfCMgIAANgIQIABBGzYCDEEAIRAMlgELIAAoAgQhBSAAQQA2AgQgACAFIBAQqYCAgAAiBQ0BIBBBAWohBQtBrQEhEAx7CyAAQcEBNgIcIAAgBTYCDCAAIBBBAWo2AhRBACEQDJMBCyAAKAIEIQYgAEEANgIEIAAgBiAQEKmAgIAAIgYNASAQQQFqIQYLQa4BIRAMeAsgAEHCATYCHCAAIAY2AgwgACAQQQFqNgIUQQAhEAyQAQsgAEEANgIcIAAgBzYCFCAAQZeLgIAANgIQIABBDTYCDEEAIRAMjwELIABBADYCHCAAIAg2AhQgAEHjkICAADYCECAAQQk2AgxBACEQDI4BCyAAQQA2AhwgACAINgIUIABBlI2AgAA2AhAgAEEhNgIMQQAhEAyNAQtBASEWQQAhF0EAIRRBASEQCyAAIBA6ACsgCUEBaiEIAkACQCAALQAtQRBxDQACQAJAAkAgAC0AKg4DAQACBAsgFkUNAwwCCyAUDQEMAgsgF0UNAQsgACgCBCEQIABBADYCBCAAIBAgCBCtgICAACIQRQ09IABByQE2AhwgACAINgIUIAAgEDYCDEEAIRAMjAELIAAoAgQhBCAAQQA2AgQgACAEIAgQrYCAgAAiBEUNdiAAQcoBNgIcIAAgCDYCFCAAIAQ2AgxBACEQDIsBCyAAKAIEIQQgAEEANgIEIAAgBCAJEK2AgIAAIgRFDXQgAEHLATYCHCAAIAk2AhQgACAENgIMQQAhEAyKAQsgACgCBCEEIABBADYCBCAAIAQgChCtgICAACIERQ1yIABBzQE2AhwgACAKNgIUIAAgBDYCDEEAIRAMiQELAkAgCy0AAEFQaiIQQf8BcUEKTw0AIAAgEDoAKiALQQFqIQpBtgEhEAxwCyAAKAIEIQQgAEEANgIEIAAgBCALEK2AgIAAIgRFDXAgAEHPATYCHCAAIAs2AhQgACAENgIMQQAhEAyIAQsgAEEANgIcIAAgBDYCFCAAQZCzgIAANgIQIABBCDYCDCAAQQA2AgBBACEQDIcBCyABQRVGDT8gAEEANgIcIAAgDDYCFCAAQcyOgIAANgIQIABBIDYCDEEAIRAMhgELIABBgQQ7ASggACgCBCEQIABCADcDACAAIBAgDEEBaiIMEKuAgIAAIhBFDTggAEHTATYCHCAAIAw2AhQgACAQNgIMQQAhEAyFAQsgAEEANgIAC0EAIRAgAEEANgIcIAAgBDYCFCAAQdibgIAANgIQIABBCDYCDAyDAQsgACgCBCEQIABCADcDACAAIBAgC0EBaiILEKuAgIAAIhANAUHGASEQDGkLIABBAjoAKAxVCyAAQdUBNgIcIAAgCzYCFCAAIBA2AgxBACEQDIABCyAQQRVGDTcgAEEANgIcIAAgBDYCFCAAQaSMgIAANgIQIABBEDYCDEEAIRAMfwsgAC0ANEEBRw00IAAgBCACELyAgIAAIhBFDTQgEEEVRw01IABB3AE2AhwgACAENgIUIABB1ZaAgAA2AhAgAEEVNgIMQQAhEAx+C0EAIRAgAEEANgIcIABBr4uAgAA2AhAgAEECNgIMIAAgFEEBajYCFAx9C0EAIRAMYwtBAiEQDGILQQ0hEAxhC0EPIRAMYAtBJSEQDF8LQRMhEAxeC0EVIRAMXQtBFiEQDFwLQRchEAxbC0EYIRAMWgtBGSEQDFkLQRohEAxYC0EbIRAMVwtBHCEQDFYLQR0hEAxVC0EfIRAMVAtBISEQDFMLQSMhEAxSC0HGACEQDFELQS4hEAxQC0EvIRAMTwtBOyEQDE4LQT0hEAxNC0HIACEQDEwLQckAIRAMSwtBywAhEAxKC0HMACEQDEkLQc4AIRAMSAtB0QAhEAxHC0HVACEQDEYLQdgAIRAMRQtB2QAhEAxEC0HbACEQDEMLQeQAIRAMQgtB5QAhEAxBC0HxACEQDEALQfQAIRAMPwtBjQEhEAw+C0GXASEQDD0LQakBIRAMPAtBrAEhEAw7C0HAASEQDDoLQbkBIRAMOQtBrwEhEAw4C0GxASEQDDcLQbIBIRAMNgtBtAEhEAw1C0G1ASEQDDQLQboBIRAMMwtBvQEhEAwyC0G/ASEQDDELQcEBIRAMMAsgAEEANgIcIAAgBDYCFCAAQemLgIAANgIQIABBHzYCDEEAIRAMSAsgAEHbATYCHCAAIAQ2AhQgAEH6loCAADYCECAAQRU2AgxBACEQDEcLIABB+AA2AhwgACAMNgIUIABBypiAgAA2AhAgAEEVNgIMQQAhEAxGCyAAQdEANgIcIAAgBTYCFCAAQbCXgIAANgIQIABBFTYCDEEAIRAMRQsgAEH5ADYCHCAAIAE2AhQgACAQNgIMQQAhEAxECyAAQfgANgIcIAAgATYCFCAAQcqYgIAANgIQIABBFTYCDEEAIRAMQwsgAEHkADYCHCAAIAE2AhQgAEHjl4CAADYCECAAQRU2AgxBACEQDEILIABB1wA2AhwgACABNgIUIABByZeAgAA2AhAgAEEVNgIMQQAhEAxBCyAAQQA2AhwgACABNgIUIABBuY2AgAA2AhAgAEEaNgIMQQAhEAxACyAAQcIANgIcIAAgATYCFCAAQeOYgIAANgIQIABBFTYCDEEAIRAMPwsgAEEANgIEIAAgDyAPELGAgIAAIgRFDQEgAEE6NgIcIAAgBDYCDCAAIA9BAWo2AhRBACEQDD4LIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCxgICAACIERQ0AIABBOzYCHCAAIAQ2AgwgACABQQFqNgIUQQAhEAw+CyABQQFqIQEMLQsgD0EBaiEBDC0LIABBADYCHCAAIA82AhQgAEHkkoCAADYCECAAQQQ2AgxBACEQDDsLIABBNjYCHCAAIAQ2AhQgACACNgIMQQAhEAw6CyAAQS42AhwgACAONgIUIAAgBDYCDEEAIRAMOQsgAEHQADYCHCAAIAE2AhQgAEGRmICAADYCECAAQRU2AgxBACEQDDgLIA1BAWohAQwsCyAAQRU2AhwgACABNgIUIABBgpmAgAA2AhAgAEEVNgIMQQAhEAw2CyAAQRs2AhwgACABNgIUIABBkZeAgAA2AhAgAEEVNgIMQQAhEAw1CyAAQQ82AhwgACABNgIUIABBkZeAgAA2AhAgAEEVNgIMQQAhEAw0CyAAQQs2AhwgACABNgIUIABBkZeAgAA2AhAgAEEVNgIMQQAhEAwzCyAAQRo2AhwgACABNgIUIABBgpmAgAA2AhAgAEEVNgIMQQAhEAwyCyAAQQs2AhwgACABNgIUIABBgpmAgAA2AhAgAEEVNgIMQQAhEAwxCyAAQQo2AhwgACABNgIUIABB5JaAgAA2AhAgAEEVNgIMQQAhEAwwCyAAQR42AhwgACABNgIUIABB+ZeAgAA2AhAgAEEVNgIMQQAhEAwvCyAAQQA2AhwgACAQNgIUIABB2o2AgAA2AhAgAEEUNgIMQQAhEAwuCyAAQQQ2AhwgACABNgIUIABBsJiAgAA2AhAgAEEVNgIMQQAhEAwtCyAAQQA2AgAgC0EBaiELC0G4ASEQDBILIABBADYCACAQQQFqIQFB9QAhEAwRCyABIQECQCAALQApQQVHDQBB4wAhEAwRC0HiACEQDBALQQAhECAAQQA2AhwgAEHkkYCAADYCECAAQQc2AgwgACAUQQFqNgIUDCgLIABBADYCACAXQQFqIQFBwAAhEAwOC0EBIQELIAAgAToALCAAQQA2AgAgF0EBaiEBC0EoIRAMCwsgASEBC0E4IRAMCQsCQCABIg8gAkYNAANAAkAgDy0AAEGAvoCAAGotAAAiAUEBRg0AIAFBAkcNAyAPQQFqIQEMBAsgD0EBaiIPIAJHDQALQT4hEAwiC0E+IRAMIQsgAEEAOgAsIA8hAQwBC0ELIRAMBgtBOiEQDAULIAFBAWohAUEtIRAMBAsgACABOgAsIABBADYCACAWQQFqIQFBDCEQDAMLIABBADYCACAXQQFqIQFBCiEQDAILIABBADYCAAsgAEEAOgAsIA0hAUEJIRAMAAsLQQAhECAAQQA2AhwgACALNgIUIABBzZCAgAA2AhAgAEEJNgIMDBcLQQAhECAAQQA2AhwgACAKNgIUIABB6YqAgAA2AhAgAEEJNgIMDBYLQQAhECAAQQA2AhwgACAJNgIUIABBt5CAgAA2AhAgAEEJNgIMDBULQQAhECAAQQA2AhwgACAINgIUIABBnJGAgAA2AhAgAEEJNgIMDBQLQQAhECAAQQA2AhwgACABNgIUIABBzZCAgAA2AhAgAEEJNgIMDBMLQQAhECAAQQA2AhwgACABNgIUIABB6YqAgAA2AhAgAEEJNgIMDBILQQAhECAAQQA2AhwgACABNgIUIABBt5CAgAA2AhAgAEEJNgIMDBELQQAhECAAQQA2AhwgACABNgIUIABBnJGAgAA2AhAgAEEJNgIMDBALQQAhECAAQQA2AhwgACABNgIUIABBl5WAgAA2AhAgAEEPNgIMDA8LQQAhECAAQQA2AhwgACABNgIUIABBl5WAgAA2AhAgAEEPNgIMDA4LQQAhECAAQQA2AhwgACABNgIUIABBwJKAgAA2AhAgAEELNgIMDA0LQQAhECAAQQA2AhwgACABNgIUIABBlYmAgAA2AhAgAEELNgIMDAwLQQAhECAAQQA2AhwgACABNgIUIABB4Y+AgAA2AhAgAEEKNgIMDAsLQQAhECAAQQA2AhwgACABNgIUIABB+4+AgAA2AhAgAEEKNgIMDAoLQQAhECAAQQA2AhwgACABNgIUIABB8ZmAgAA2AhAgAEECNgIMDAkLQQAhECAAQQA2AhwgACABNgIUIABBxJSAgAA2AhAgAEECNgIMDAgLQQAhECAAQQA2AhwgACABNgIUIABB8pWAgAA2AhAgAEECNgIMDAcLIABBAjYCHCAAIAE2AhQgAEGcmoCAADYCECAAQRY2AgxBACEQDAYLQQEhEAwFC0HUACEQIAEiBCACRg0EIANBCGogACAEIAJB2MKAgABBChDFgICAACADKAIMIQQgAygCCA4DAQQCAAsQyoCAgAAACyAAQQA2AhwgAEG1moCAADYCECAAQRc2AgwgACAEQQFqNgIUQQAhEAwCCyAAQQA2AhwgACAENgIUIABBypqAgAA2AhAgAEEJNgIMQQAhEAwBCwJAIAEiBCACRw0AQSIhEAwBCyAAQYmAgIAANgIIIAAgBDYCBEEhIRALIANBEGokgICAgAAgEAuvAQECfyABKAIAIQYCQAJAIAIgA0YNACAEIAZqIQQgBiADaiACayEHIAIgBkF/cyAFaiIGaiEFA0ACQCACLQAAIAQtAABGDQBBAiEEDAMLAkAgBg0AQQAhBCAFIQIMAwsgBkF/aiEGIARBAWohBCACQQFqIgIgA0cNAAsgByEGIAMhAgsgAEEBNgIAIAEgBjYCACAAIAI2AgQPCyABQQA2AgAgACAENgIAIAAgAjYCBAsKACAAEMeAgIAAC/I2AQt/I4CAgIAAQRBrIgEkgICAgAACQEEAKAKg0ICAAA0AQQAQy4CAgABBgNSEgABrIgJB2QBJDQBBACEDAkBBACgC4NOAgAAiBA0AQQBCfzcC7NOAgABBAEKAgISAgIDAADcC5NOAgABBACABQQhqQXBxQdiq1aoFcyIENgLg04CAAEEAQQA2AvTTgIAAQQBBADYCxNOAgAALQQAgAjYCzNOAgABBAEGA1ISAADYCyNOAgABBAEGA1ISAADYCmNCAgABBACAENgKs0ICAAEEAQX82AqjQgIAAA0AgA0HE0ICAAGogA0G40ICAAGoiBDYCACAEIANBsNCAgABqIgU2AgAgA0G80ICAAGogBTYCACADQczQgIAAaiADQcDQgIAAaiIFNgIAIAUgBDYCACADQdTQgIAAaiADQcjQgIAAaiIENgIAIAQgBTYCACADQdDQgIAAaiAENgIAIANBIGoiA0GAAkcNAAtBgNSEgABBeEGA1ISAAGtBD3FBAEGA1ISAAEEIakEPcRsiA2oiBEEEaiACQUhqIgUgA2siA0EBcjYCAEEAQQAoAvDTgIAANgKk0ICAAEEAIAM2ApTQgIAAQQAgBDYCoNCAgABBgNSEgAAgBWpBODYCBAsCQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAEHsAUsNAAJAQQAoAojQgIAAIgZBECAAQRNqQXBxIABBC0kbIgJBA3YiBHYiA0EDcUUNAAJAAkAgA0EBcSAEckEBcyIFQQN0IgRBsNCAgABqIgMgBEG40ICAAGooAgAiBCgCCCICRw0AQQAgBkF+IAV3cTYCiNCAgAAMAQsgAyACNgIIIAIgAzYCDAsgBEEIaiEDIAQgBUEDdCIFQQNyNgIEIAQgBWoiBCAEKAIEQQFyNgIEDAwLIAJBACgCkNCAgAAiB00NAQJAIANFDQACQAJAIAMgBHRBAiAEdCIDQQAgA2tycSIDQQAgA2txQX9qIgMgA0EMdkEQcSIDdiIEQQV2QQhxIgUgA3IgBCAFdiIDQQJ2QQRxIgRyIAMgBHYiA0EBdkECcSIEciADIAR2IgNBAXZBAXEiBHIgAyAEdmoiBEEDdCIDQbDQgIAAaiIFIANBuNCAgABqKAIAIgMoAggiAEcNAEEAIAZBfiAEd3EiBjYCiNCAgAAMAQsgBSAANgIIIAAgBTYCDAsgAyACQQNyNgIEIAMgBEEDdCIEaiAEIAJrIgU2AgAgAyACaiIAIAVBAXI2AgQCQCAHRQ0AIAdBeHFBsNCAgABqIQJBACgCnNCAgAAhBAJAAkAgBkEBIAdBA3Z0IghxDQBBACAGIAhyNgKI0ICAACACIQgMAQsgAigCCCEICyAIIAQ2AgwgAiAENgIIIAQgAjYCDCAEIAg2AggLIANBCGohA0EAIAA2ApzQgIAAQQAgBTYCkNCAgAAMDAtBACgCjNCAgAAiCUUNASAJQQAgCWtxQX9qIgMgA0EMdkEQcSIDdiIEQQV2QQhxIgUgA3IgBCAFdiIDQQJ2QQRxIgRyIAMgBHYiA0EBdkECcSIEciADIAR2IgNBAXZBAXEiBHIgAyAEdmpBAnRBuNKAgABqKAIAIgAoAgRBeHEgAmshBCAAIQUCQANAAkAgBSgCECIDDQAgBUEUaigCACIDRQ0CCyADKAIEQXhxIAJrIgUgBCAFIARJIgUbIQQgAyAAIAUbIQAgAyEFDAALCyAAKAIYIQoCQCAAKAIMIgggAEYNACAAKAIIIgNBACgCmNCAgABJGiAIIAM2AgggAyAINgIMDAsLAkAgAEEUaiIFKAIAIgMNACAAKAIQIgNFDQMgAEEQaiEFCwNAIAUhCyADIghBFGoiBSgCACIDDQAgCEEQaiEFIAgoAhAiAw0ACyALQQA2AgAMCgtBfyECIABBv39LDQAgAEETaiIDQXBxIQJBACgCjNCAgAAiB0UNAEEAIQsCQCACQYACSQ0AQR8hCyACQf///wdLDQAgA0EIdiIDIANBgP4/akEQdkEIcSIDdCIEIARBgOAfakEQdkEEcSIEdCIFIAVBgIAPakEQdkECcSIFdEEPdiADIARyIAVyayIDQQF0IAIgA0EVanZBAXFyQRxqIQsLQQAgAmshBAJAAkACQAJAIAtBAnRBuNKAgABqKAIAIgUNAEEAIQNBACEIDAELQQAhAyACQQBBGSALQQF2ayALQR9GG3QhAEEAIQgDQAJAIAUoAgRBeHEgAmsiBiAETw0AIAYhBCAFIQggBg0AQQAhBCAFIQggBSEDDAMLIAMgBUEUaigCACIGIAYgBSAAQR12QQRxakEQaigCACIFRhsgAyAGGyEDIABBAXQhACAFDQALCwJAIAMgCHINAEEAIQhBAiALdCIDQQAgA2tyIAdxIgNFDQMgA0EAIANrcUF/aiIDIANBDHZBEHEiA3YiBUEFdkEIcSIAIANyIAUgAHYiA0ECdkEEcSIFciADIAV2IgNBAXZBAnEiBXIgAyAFdiIDQQF2QQFxIgVyIAMgBXZqQQJ0QbjSgIAAaigCACEDCyADRQ0BCwNAIAMoAgRBeHEgAmsiBiAESSEAAkAgAygCECIFDQAgA0EUaigCACEFCyAGIAQgABshBCADIAggABshCCAFIQMgBQ0ACwsgCEUNACAEQQAoApDQgIAAIAJrTw0AIAgoAhghCwJAIAgoAgwiACAIRg0AIAgoAggiA0EAKAKY0ICAAEkaIAAgAzYCCCADIAA2AgwMCQsCQCAIQRRqIgUoAgAiAw0AIAgoAhAiA0UNAyAIQRBqIQULA0AgBSEGIAMiAEEUaiIFKAIAIgMNACAAQRBqIQUgACgCECIDDQALIAZBADYCAAwICwJAQQAoApDQgIAAIgMgAkkNAEEAKAKc0ICAACEEAkACQCADIAJrIgVBEEkNACAEIAJqIgAgBUEBcjYCBEEAIAU2ApDQgIAAQQAgADYCnNCAgAAgBCADaiAFNgIAIAQgAkEDcjYCBAwBCyAEIANBA3I2AgQgBCADaiIDIAMoAgRBAXI2AgRBAEEANgKc0ICAAEEAQQA2ApDQgIAACyAEQQhqIQMMCgsCQEEAKAKU0ICAACIAIAJNDQBBACgCoNCAgAAiAyACaiIEIAAgAmsiBUEBcjYCBEEAIAU2ApTQgIAAQQAgBDYCoNCAgAAgAyACQQNyNgIEIANBCGohAwwKCwJAAkBBACgC4NOAgABFDQBBACgC6NOAgAAhBAwBC0EAQn83AuzTgIAAQQBCgICEgICAwAA3AuTTgIAAQQAgAUEMakFwcUHYqtWqBXM2AuDTgIAAQQBBADYC9NOAgABBAEEANgLE04CAAEGAgAQhBAtBACEDAkAgBCACQccAaiIHaiIGQQAgBGsiC3EiCCACSw0AQQBBMDYC+NOAgAAMCgsCQEEAKALA04CAACIDRQ0AAkBBACgCuNOAgAAiBCAIaiIFIARNDQAgBSADTQ0BC0EAIQNBAEEwNgL404CAAAwKC0EALQDE04CAAEEEcQ0EAkACQAJAQQAoAqDQgIAAIgRFDQBByNOAgAAhAwNAAkAgAygCACIFIARLDQAgBSADKAIEaiAESw0DCyADKAIIIgMNAAsLQQAQy4CAgAAiAEF/Rg0FIAghBgJAQQAoAuTTgIAAIgNBf2oiBCAAcUUNACAIIABrIAQgAGpBACADa3FqIQYLIAYgAk0NBSAGQf7///8HSw0FAkBBACgCwNOAgAAiA0UNAEEAKAK404CAACIEIAZqIgUgBE0NBiAFIANLDQYLIAYQy4CAgAAiAyAARw0BDAcLIAYgAGsgC3EiBkH+////B0sNBCAGEMuAgIAAIgAgAygCACADKAIEakYNAyAAIQMLAkAgA0F/Rg0AIAJByABqIAZNDQACQCAHIAZrQQAoAujTgIAAIgRqQQAgBGtxIgRB/v///wdNDQAgAyEADAcLAkAgBBDLgICAAEF/Rg0AIAQgBmohBiADIQAMBwtBACAGaxDLgICAABoMBAsgAyEAIANBf0cNBQwDC0EAIQgMBwtBACEADAULIABBf0cNAgtBAEEAKALE04CAAEEEcjYCxNOAgAALIAhB/v///wdLDQEgCBDLgICAACEAQQAQy4CAgAAhAyAAQX9GDQEgA0F/Rg0BIAAgA08NASADIABrIgYgAkE4ak0NAQtBAEEAKAK404CAACAGaiIDNgK404CAAAJAIANBACgCvNOAgABNDQBBACADNgK804CAAAsCQAJAAkACQEEAKAKg0ICAACIERQ0AQcjTgIAAIQMDQCAAIAMoAgAiBSADKAIEIghqRg0CIAMoAggiAw0ADAMLCwJAAkBBACgCmNCAgAAiA0UNACAAIANPDQELQQAgADYCmNCAgAALQQAhA0EAIAY2AszTgIAAQQAgADYCyNOAgABBAEF/NgKo0ICAAEEAQQAoAuDTgIAANgKs0ICAAEEAQQA2AtTTgIAAA0AgA0HE0ICAAGogA0G40ICAAGoiBDYCACAEIANBsNCAgABqIgU2AgAgA0G80ICAAGogBTYCACADQczQgIAAaiADQcDQgIAAaiIFNgIAIAUgBDYCACADQdTQgIAAaiADQcjQgIAAaiIENgIAIAQgBTYCACADQdDQgIAAaiAENgIAIANBIGoiA0GAAkcNAAsgAEF4IABrQQ9xQQAgAEEIakEPcRsiA2oiBCAGQUhqIgUgA2siA0EBcjYCBEEAQQAoAvDTgIAANgKk0ICAAEEAIAM2ApTQgIAAQQAgBDYCoNCAgAAgACAFakE4NgIEDAILIAMtAAxBCHENACAEIAVJDQAgBCAATw0AIARBeCAEa0EPcUEAIARBCGpBD3EbIgVqIgBBACgClNCAgAAgBmoiCyAFayIFQQFyNgIEIAMgCCAGajYCBEEAQQAoAvDTgIAANgKk0ICAAEEAIAU2ApTQgIAAQQAgADYCoNCAgAAgBCALakE4NgIEDAELAkAgAEEAKAKY0ICAACIITw0AQQAgADYCmNCAgAAgACEICyAAIAZqIQVByNOAgAAhAwJAAkACQAJAAkACQAJAA0AgAygCACAFRg0BIAMoAggiAw0ADAILCyADLQAMQQhxRQ0BC0HI04CAACEDA0ACQCADKAIAIgUgBEsNACAFIAMoAgRqIgUgBEsNAwsgAygCCCEDDAALCyADIAA2AgAgAyADKAIEIAZqNgIEIABBeCAAa0EPcUEAIABBCGpBD3EbaiILIAJBA3I2AgQgBUF4IAVrQQ9xQQAgBUEIakEPcRtqIgYgCyACaiICayEDAkAgBiAERw0AQQAgAjYCoNCAgABBAEEAKAKU0ICAACADaiIDNgKU0ICAACACIANBAXI2AgQMAwsCQCAGQQAoApzQgIAARw0AQQAgAjYCnNCAgABBAEEAKAKQ0ICAACADaiIDNgKQ0ICAACACIANBAXI2AgQgAiADaiADNgIADAMLAkAgBigCBCIEQQNxQQFHDQAgBEF4cSEHAkACQCAEQf8BSw0AIAYoAggiBSAEQQN2IghBA3RBsNCAgABqIgBGGgJAIAYoAgwiBCAFRw0AQQBBACgCiNCAgABBfiAId3E2AojQgIAADAILIAQgAEYaIAQgBTYCCCAFIAQ2AgwMAQsgBigCGCEJAkACQCAGKAIMIgAgBkYNACAGKAIIIgQgCEkaIAAgBDYCCCAEIAA2AgwMAQsCQCAGQRRqIgQoAgAiBQ0AIAZBEGoiBCgCACIFDQBBACEADAELA0AgBCEIIAUiAEEUaiIEKAIAIgUNACAAQRBqIQQgACgCECIFDQALIAhBADYCAAsgCUUNAAJAAkAgBiAGKAIcIgVBAnRBuNKAgABqIgQoAgBHDQAgBCAANgIAIAANAUEAQQAoAozQgIAAQX4gBXdxNgKM0ICAAAwCCyAJQRBBFCAJKAIQIAZGG2ogADYCACAARQ0BCyAAIAk2AhgCQCAGKAIQIgRFDQAgACAENgIQIAQgADYCGAsgBigCFCIERQ0AIABBFGogBDYCACAEIAA2AhgLIAcgA2ohAyAGIAdqIgYoAgQhBAsgBiAEQX5xNgIEIAIgA2ogAzYCACACIANBAXI2AgQCQCADQf8BSw0AIANBeHFBsNCAgABqIQQCQAJAQQAoAojQgIAAIgVBASADQQN2dCIDcQ0AQQAgBSADcjYCiNCAgAAgBCEDDAELIAQoAgghAwsgAyACNgIMIAQgAjYCCCACIAQ2AgwgAiADNgIIDAMLQR8hBAJAIANB////B0sNACADQQh2IgQgBEGA/j9qQRB2QQhxIgR0IgUgBUGA4B9qQRB2QQRxIgV0IgAgAEGAgA9qQRB2QQJxIgB0QQ92IAQgBXIgAHJrIgRBAXQgAyAEQRVqdkEBcXJBHGohBAsgAiAENgIcIAJCADcCECAEQQJ0QbjSgIAAaiEFAkBBACgCjNCAgAAiAEEBIAR0IghxDQAgBSACNgIAQQAgACAIcjYCjNCAgAAgAiAFNgIYIAIgAjYCCCACIAI2AgwMAwsgA0EAQRkgBEEBdmsgBEEfRht0IQQgBSgCACEAA0AgACIFKAIEQXhxIANGDQIgBEEddiEAIARBAXQhBCAFIABBBHFqQRBqIggoAgAiAA0ACyAIIAI2AgAgAiAFNgIYIAIgAjYCDCACIAI2AggMAgsgAEF4IABrQQ9xQQAgAEEIakEPcRsiA2oiCyAGQUhqIgggA2siA0EBcjYCBCAAIAhqQTg2AgQgBCAFQTcgBWtBD3FBACAFQUlqQQ9xG2pBQWoiCCAIIARBEGpJGyIIQSM2AgRBAEEAKALw04CAADYCpNCAgABBACADNgKU0ICAAEEAIAs2AqDQgIAAIAhBEGpBACkC0NOAgAA3AgAgCEEAKQLI04CAADcCCEEAIAhBCGo2AtDTgIAAQQAgBjYCzNOAgABBACAANgLI04CAAEEAQQA2AtTTgIAAIAhBJGohAwNAIANBBzYCACADQQRqIgMgBUkNAAsgCCAERg0DIAggCCgCBEF+cTYCBCAIIAggBGsiADYCACAEIABBAXI2AgQCQCAAQf8BSw0AIABBeHFBsNCAgABqIQMCQAJAQQAoAojQgIAAIgVBASAAQQN2dCIAcQ0AQQAgBSAAcjYCiNCAgAAgAyEFDAELIAMoAgghBQsgBSAENgIMIAMgBDYCCCAEIAM2AgwgBCAFNgIIDAQLQR8hAwJAIABB////B0sNACAAQQh2IgMgA0GA/j9qQRB2QQhxIgN0IgUgBUGA4B9qQRB2QQRxIgV0IgggCEGAgA9qQRB2QQJxIgh0QQ92IAMgBXIgCHJrIgNBAXQgACADQRVqdkEBcXJBHGohAwsgBCADNgIcIARCADcCECADQQJ0QbjSgIAAaiEFAkBBACgCjNCAgAAiCEEBIAN0IgZxDQAgBSAENgIAQQAgCCAGcjYCjNCAgAAgBCAFNgIYIAQgBDYCCCAEIAQ2AgwMBAsgAEEAQRkgA0EBdmsgA0EfRht0IQMgBSgCACEIA0AgCCIFKAIEQXhxIABGDQMgA0EddiEIIANBAXQhAyAFIAhBBHFqQRBqIgYoAgAiCA0ACyAGIAQ2AgAgBCAFNgIYIAQgBDYCDCAEIAQ2AggMAwsgBSgCCCIDIAI2AgwgBSACNgIIIAJBADYCGCACIAU2AgwgAiADNgIICyALQQhqIQMMBQsgBSgCCCIDIAQ2AgwgBSAENgIIIARBADYCGCAEIAU2AgwgBCADNgIIC0EAKAKU0ICAACIDIAJNDQBBACgCoNCAgAAiBCACaiIFIAMgAmsiA0EBcjYCBEEAIAM2ApTQgIAAQQAgBTYCoNCAgAAgBCACQQNyNgIEIARBCGohAwwDC0EAIQNBAEEwNgL404CAAAwCCwJAIAtFDQACQAJAIAggCCgCHCIFQQJ0QbjSgIAAaiIDKAIARw0AIAMgADYCACAADQFBACAHQX4gBXdxIgc2AozQgIAADAILIAtBEEEUIAsoAhAgCEYbaiAANgIAIABFDQELIAAgCzYCGAJAIAgoAhAiA0UNACAAIAM2AhAgAyAANgIYCyAIQRRqKAIAIgNFDQAgAEEUaiADNgIAIAMgADYCGAsCQAJAIARBD0sNACAIIAQgAmoiA0EDcjYCBCAIIANqIgMgAygCBEEBcjYCBAwBCyAIIAJqIgAgBEEBcjYCBCAIIAJBA3I2AgQgACAEaiAENgIAAkAgBEH/AUsNACAEQXhxQbDQgIAAaiEDAkACQEEAKAKI0ICAACIFQQEgBEEDdnQiBHENAEEAIAUgBHI2AojQgIAAIAMhBAwBCyADKAIIIQQLIAQgADYCDCADIAA2AgggACADNgIMIAAgBDYCCAwBC0EfIQMCQCAEQf///wdLDQAgBEEIdiIDIANBgP4/akEQdkEIcSIDdCIFIAVBgOAfakEQdkEEcSIFdCICIAJBgIAPakEQdkECcSICdEEPdiADIAVyIAJyayIDQQF0IAQgA0EVanZBAXFyQRxqIQMLIAAgAzYCHCAAQgA3AhAgA0ECdEG40oCAAGohBQJAIAdBASADdCICcQ0AIAUgADYCAEEAIAcgAnI2AozQgIAAIAAgBTYCGCAAIAA2AgggACAANgIMDAELIARBAEEZIANBAXZrIANBH0YbdCEDIAUoAgAhAgJAA0AgAiIFKAIEQXhxIARGDQEgA0EddiECIANBAXQhAyAFIAJBBHFqQRBqIgYoAgAiAg0ACyAGIAA2AgAgACAFNgIYIAAgADYCDCAAIAA2AggMAQsgBSgCCCIDIAA2AgwgBSAANgIIIABBADYCGCAAIAU2AgwgACADNgIICyAIQQhqIQMMAQsCQCAKRQ0AAkACQCAAIAAoAhwiBUECdEG40oCAAGoiAygCAEcNACADIAg2AgAgCA0BQQAgCUF+IAV3cTYCjNCAgAAMAgsgCkEQQRQgCigCECAARhtqIAg2AgAgCEUNAQsgCCAKNgIYAkAgACgCECIDRQ0AIAggAzYCECADIAg2AhgLIABBFGooAgAiA0UNACAIQRRqIAM2AgAgAyAINgIYCwJAAkAgBEEPSw0AIAAgBCACaiIDQQNyNgIEIAAgA2oiAyADKAIEQQFyNgIEDAELIAAgAmoiBSAEQQFyNgIEIAAgAkEDcjYCBCAFIARqIAQ2AgACQCAHRQ0AIAdBeHFBsNCAgABqIQJBACgCnNCAgAAhAwJAAkBBASAHQQN2dCIIIAZxDQBBACAIIAZyNgKI0ICAACACIQgMAQsgAigCCCEICyAIIAM2AgwgAiADNgIIIAMgAjYCDCADIAg2AggLQQAgBTYCnNCAgABBACAENgKQ0ICAAAsgAEEIaiEDCyABQRBqJICAgIAAIAMLCgAgABDJgICAAAviDQEHfwJAIABFDQAgAEF4aiIBIABBfGooAgAiAkF4cSIAaiEDAkAgAkEBcQ0AIAJBA3FFDQEgASABKAIAIgJrIgFBACgCmNCAgAAiBEkNASACIABqIQACQCABQQAoApzQgIAARg0AAkAgAkH/AUsNACABKAIIIgQgAkEDdiIFQQN0QbDQgIAAaiIGRhoCQCABKAIMIgIgBEcNAEEAQQAoAojQgIAAQX4gBXdxNgKI0ICAAAwDCyACIAZGGiACIAQ2AgggBCACNgIMDAILIAEoAhghBwJAAkAgASgCDCIGIAFGDQAgASgCCCICIARJGiAGIAI2AgggAiAGNgIMDAELAkAgAUEUaiICKAIAIgQNACABQRBqIgIoAgAiBA0AQQAhBgwBCwNAIAIhBSAEIgZBFGoiAigCACIEDQAgBkEQaiECIAYoAhAiBA0ACyAFQQA2AgALIAdFDQECQAJAIAEgASgCHCIEQQJ0QbjSgIAAaiICKAIARw0AIAIgBjYCACAGDQFBAEEAKAKM0ICAAEF+IAR3cTYCjNCAgAAMAwsgB0EQQRQgBygCECABRhtqIAY2AgAgBkUNAgsgBiAHNgIYAkAgASgCECICRQ0AIAYgAjYCECACIAY2AhgLIAEoAhQiAkUNASAGQRRqIAI2AgAgAiAGNgIYDAELIAMoAgQiAkEDcUEDRw0AIAMgAkF+cTYCBEEAIAA2ApDQgIAAIAEgAGogADYCACABIABBAXI2AgQPCyABIANPDQAgAygCBCICQQFxRQ0AAkACQCACQQJxDQACQCADQQAoAqDQgIAARw0AQQAgATYCoNCAgABBAEEAKAKU0ICAACAAaiIANgKU0ICAACABIABBAXI2AgQgAUEAKAKc0ICAAEcNA0EAQQA2ApDQgIAAQQBBADYCnNCAgAAPCwJAIANBACgCnNCAgABHDQBBACABNgKc0ICAAEEAQQAoApDQgIAAIABqIgA2ApDQgIAAIAEgAEEBcjYCBCABIABqIAA2AgAPCyACQXhxIABqIQACQAJAIAJB/wFLDQAgAygCCCIEIAJBA3YiBUEDdEGw0ICAAGoiBkYaAkAgAygCDCICIARHDQBBAEEAKAKI0ICAAEF+IAV3cTYCiNCAgAAMAgsgAiAGRhogAiAENgIIIAQgAjYCDAwBCyADKAIYIQcCQAJAIAMoAgwiBiADRg0AIAMoAggiAkEAKAKY0ICAAEkaIAYgAjYCCCACIAY2AgwMAQsCQCADQRRqIgIoAgAiBA0AIANBEGoiAigCACIEDQBBACEGDAELA0AgAiEFIAQiBkEUaiICKAIAIgQNACAGQRBqIQIgBigCECIEDQALIAVBADYCAAsgB0UNAAJAAkAgAyADKAIcIgRBAnRBuNKAgABqIgIoAgBHDQAgAiAGNgIAIAYNAUEAQQAoAozQgIAAQX4gBHdxNgKM0ICAAAwCCyAHQRBBFCAHKAIQIANGG2ogBjYCACAGRQ0BCyAGIAc2AhgCQCADKAIQIgJFDQAgBiACNgIQIAIgBjYCGAsgAygCFCICRQ0AIAZBFGogAjYCACACIAY2AhgLIAEgAGogADYCACABIABBAXI2AgQgAUEAKAKc0ICAAEcNAUEAIAA2ApDQgIAADwsgAyACQX5xNgIEIAEgAGogADYCACABIABBAXI2AgQLAkAgAEH/AUsNACAAQXhxQbDQgIAAaiECAkACQEEAKAKI0ICAACIEQQEgAEEDdnQiAHENAEEAIAQgAHI2AojQgIAAIAIhAAwBCyACKAIIIQALIAAgATYCDCACIAE2AgggASACNgIMIAEgADYCCA8LQR8hAgJAIABB////B0sNACAAQQh2IgIgAkGA/j9qQRB2QQhxIgJ0IgQgBEGA4B9qQRB2QQRxIgR0IgYgBkGAgA9qQRB2QQJxIgZ0QQ92IAIgBHIgBnJrIgJBAXQgACACQRVqdkEBcXJBHGohAgsgASACNgIcIAFCADcCECACQQJ0QbjSgIAAaiEEAkACQEEAKAKM0ICAACIGQQEgAnQiA3ENACAEIAE2AgBBACAGIANyNgKM0ICAACABIAQ2AhggASABNgIIIAEgATYCDAwBCyAAQQBBGSACQQF2ayACQR9GG3QhAiAEKAIAIQYCQANAIAYiBCgCBEF4cSAARg0BIAJBHXYhBiACQQF0IQIgBCAGQQRxakEQaiIDKAIAIgYNAAsgAyABNgIAIAEgBDYCGCABIAE2AgwgASABNgIIDAELIAQoAggiACABNgIMIAQgATYCCCABQQA2AhggASAENgIMIAEgADYCCAtBAEEAKAKo0ICAAEF/aiIBQX8gARs2AqjQgIAACwsEAAAAC04AAkAgAA0APwBBEHQPCwJAIABB//8DcQ0AIABBf0wNAAJAIABBEHZAACIAQX9HDQBBAEEwNgL404CAAEF/DwsgAEEQdA8LEMqAgIAAAAvyAgIDfwF+AkAgAkUNACAAIAE6AAAgAiAAaiIDQX9qIAE6AAAgAkEDSQ0AIAAgAToAAiAAIAE6AAEgA0F9aiABOgAAIANBfmogAToAACACQQdJDQAgACABOgADIANBfGogAToAACACQQlJDQAgAEEAIABrQQNxIgRqIgMgAUH/AXFBgYKECGwiATYCACADIAIgBGtBfHEiBGoiAkF8aiABNgIAIARBCUkNACADIAE2AgggAyABNgIEIAJBeGogATYCACACQXRqIAE2AgAgBEEZSQ0AIAMgATYCGCADIAE2AhQgAyABNgIQIAMgATYCDCACQXBqIAE2AgAgAkFsaiABNgIAIAJBaGogATYCACACQWRqIAE2AgAgBCADQQRxQRhyIgVrIgJBIEkNACABrUKBgICAEH4hBiADIAVqIQEDQCABIAY3AxggASAGNwMQIAEgBjcDCCABIAY3AwAgAUEgaiEBIAJBYGoiAkEfSw0ACwsgAAsLjkgBAEGACAuGSAEAAAACAAAAAwAAAAAAAAAAAAAABAAAAAUAAAAAAAAAAAAAAAYAAAAHAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABsb3NlZWVwLWFsaXZlAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgAAAAAAAAAAAAAAAAAAAHJhbnNmZXItZW5jb2RpbmdwZ3JhZGUNCg0KDQpTTQ0KDQpUVFAvQ0UvVFNQLwAAAAAAAAAAAAAAAAECAAEDAAAAAAAAAAAAAAAAAAAAAAAABAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAABAgABAwAAAAAAAAAAAAAAAAAAAAAAAAQBAQUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAAAAAAAAAABAAACAAAAAAAAAAAAAAAAAAAAAAAAAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.enumToMap=void 0;function enumToMap(C){const q={};Object.keys(C).forEach((re=>{const ae=C[re];if(typeof ae==="number"){q[re]=ae}}));return q}q.enumToMap=enumToMap},47501:(C,q,re)=>{const{kClients:ae}=re(36443);const Ue=re(59965);const{kAgent:lt,kMockAgentSet:Pt,kMockAgentGet:Wt,kDispatches:Ar,kIsMockActive:Er,kNetConnect:Ir,kGetNetConnect:Br,kOptions:kr,kFactory:Pr}=re(91117);const Qr=re(47365);const Fr=re(94004);const{matchValue:Dr,buildMockOptions:xr}=re(53397);const{InvalidArgumentError:Mr,UndiciError:Ur}=re(68707);const Nr=re(28611);const Lr=re(91529);const jr=re(56142);class FakeWeakRef{constructor(C){this.value=C}deref(){return this.value}}class MockAgent extends Nr{constructor(C){super(C);this[Ir]=true;this[Er]=true;if(C&&C.agent&&typeof C.agent.dispatch!=="function"){throw new Mr("Argument opts.agent must implement Agent")}const q=C&&C.agent?C.agent:new Ue(C);this[lt]=q;this[ae]=q[ae];this[kr]=xr(C)}get(C){let q=this[Wt](C);if(!q){q=this[Pr](C);this[Pt](C,q)}return q}dispatch(C,q){this.get(C.origin);return this[lt].dispatch(C,q)}async close(){await this[lt].close();this[ae].clear()}deactivate(){this[Er]=false}activate(){this[Er]=true}enableNetConnect(C){if(typeof C==="string"||typeof C==="function"||C instanceof RegExp){if(Array.isArray(this[Ir])){this[Ir].push(C)}else{this[Ir]=[C]}}else if(typeof C==="undefined"){this[Ir]=true}else{throw new Mr("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[Ir]=false}get isMockActive(){return this[Er]}[Pt](C,q){this[ae].set(C,new FakeWeakRef(q))}[Pr](C){const q=Object.assign({agent:this},this[kr]);return this[kr]&&this[kr].connections===1?new Qr(C,q):new Fr(C,q)}[Wt](C){const q=this[ae].get(C);if(q){return q.deref()}if(typeof C!=="string"){const q=this[Pr]("http://localhost:9999");this[Pt](C,q);return q}for(const[q,re]of Array.from(this[ae])){const ae=re.deref();if(ae&&typeof q!=="string"&&Dr(q,C)){const q=this[Pr](C);this[Pt](C,q);q[Ar]=ae[Ar];return q}}}[Br](){return this[Ir]}pendingInterceptors(){const C=this[ae];return Array.from(C.entries()).flatMap((([C,q])=>q.deref()[Ar].map((q=>({...q,origin:C}))))).filter((({pending:C})=>C))}assertNoPendingInterceptors({pendingInterceptorsFormatter:C=new jr}={}){const q=this.pendingInterceptors();if(q.length===0){return}const re=new Lr("interceptor","interceptors").pluralize(q.length);throw new Ur(`\n${re.count} ${re.noun} ${re.is} pending:\n\n${C.format(q)}\n`.trim())}}C.exports=MockAgent},47365:(C,q,re)=>{const{promisify:ae}=re(39023);const Ue=re(86197);const{buildMockDispatch:lt}=re(53397);const{kDispatches:Pt,kMockAgent:Wt,kClose:Ar,kOriginalClose:Er,kOrigin:Ir,kOriginalDispatch:Br,kConnected:kr}=re(91117);const{MockInterceptor:Pr}=re(31511);const Qr=re(36443);const{InvalidArgumentError:Fr}=re(68707);class MockClient extends Ue{constructor(C,q){super(C,q);if(!q||!q.agent||typeof q.agent.dispatch!=="function"){throw new Fr("Argument opts.agent must implement Agent")}this[Wt]=q.agent;this[Ir]=C;this[Pt]=[];this[kr]=1;this[Br]=this.dispatch;this[Er]=this.close.bind(this);this.dispatch=lt.call(this);this.close=this[Ar]}get[Qr.kConnected](){return this[kr]}intercept(C){return new Pr(C,this[Pt])}async[Ar](){await ae(this[Er])();this[kr]=0;this[Wt][Qr.kClients].delete(this[Ir])}}C.exports=MockClient},52429:(C,q,re)=>{const{UndiciError:ae}=re(68707);class MockNotMatchedError extends ae{constructor(C){super(C);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=C||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}C.exports={MockNotMatchedError:MockNotMatchedError}},31511:(C,q,re)=>{const{getResponseData:ae,buildKey:Ue,addMockDispatch:lt}=re(53397);const{kDispatches:Pt,kDispatchKey:Wt,kDefaultHeaders:Ar,kDefaultTrailers:Er,kContentLength:Ir,kMockDispatch:Br}=re(91117);const{InvalidArgumentError:kr}=re(68707);const{buildURL:Pr}=re(3440);class MockScope{constructor(C){this[Br]=C}delay(C){if(typeof C!=="number"||!Number.isInteger(C)||C<=0){throw new kr("waitInMs must be a valid integer > 0")}this[Br].delay=C;return this}persist(){this[Br].persist=true;return this}times(C){if(typeof C!=="number"||!Number.isInteger(C)||C<=0){throw new kr("repeatTimes must be a valid integer > 0")}this[Br].times=C;return this}}class MockInterceptor{constructor(C,q){if(typeof C!=="object"){throw new kr("opts must be an object")}if(typeof C.path==="undefined"){throw new kr("opts.path must be defined")}if(typeof C.method==="undefined"){C.method="GET"}if(typeof C.path==="string"){if(C.query){C.path=Pr(C.path,C.query)}else{const q=new URL(C.path,"data://");C.path=q.pathname+q.search}}if(typeof C.method==="string"){C.method=C.method.toUpperCase()}this[Wt]=Ue(C);this[Pt]=q;this[Ar]={};this[Er]={};this[Ir]=false}createMockScopeDispatchData(C,q,re={}){const Ue=ae(q);const lt=this[Ir]?{"content-length":Ue.length}:{};const Pt={...this[Ar],...lt,...re.headers};const Wt={...this[Er],...re.trailers};return{statusCode:C,data:q,headers:Pt,trailers:Wt}}validateReplyParameters(C,q,re){if(typeof C==="undefined"){throw new kr("statusCode must be defined")}if(typeof q==="undefined"){throw new kr("data must be defined")}if(typeof re!=="object"){throw new kr("responseOptions must be an object")}}reply(C){if(typeof C==="function"){const wrappedDefaultsCallback=q=>{const re=C(q);if(typeof re!=="object"){throw new kr("reply options callback must return an object")}const{statusCode:ae,data:Ue="",responseOptions:lt={}}=re;this.validateReplyParameters(ae,Ue,lt);return{...this.createMockScopeDispatchData(ae,Ue,lt)}};const q=lt(this[Pt],this[Wt],wrappedDefaultsCallback);return new MockScope(q)}const[q,re="",ae={}]=[...arguments];this.validateReplyParameters(q,re,ae);const Ue=this.createMockScopeDispatchData(q,re,ae);const Ar=lt(this[Pt],this[Wt],Ue);return new MockScope(Ar)}replyWithError(C){if(typeof C==="undefined"){throw new kr("error must be defined")}const q=lt(this[Pt],this[Wt],{error:C});return new MockScope(q)}defaultReplyHeaders(C){if(typeof C==="undefined"){throw new kr("headers must be defined")}this[Ar]=C;return this}defaultReplyTrailers(C){if(typeof C==="undefined"){throw new kr("trailers must be defined")}this[Er]=C;return this}replyContentLength(){this[Ir]=true;return this}}C.exports.MockInterceptor=MockInterceptor;C.exports.MockScope=MockScope},94004:(C,q,re)=>{const{promisify:ae}=re(39023);const Ue=re(35076);const{buildMockDispatch:lt}=re(53397);const{kDispatches:Pt,kMockAgent:Wt,kClose:Ar,kOriginalClose:Er,kOrigin:Ir,kOriginalDispatch:Br,kConnected:kr}=re(91117);const{MockInterceptor:Pr}=re(31511);const Qr=re(36443);const{InvalidArgumentError:Fr}=re(68707);class MockPool extends Ue{constructor(C,q){super(C,q);if(!q||!q.agent||typeof q.agent.dispatch!=="function"){throw new Fr("Argument opts.agent must implement Agent")}this[Wt]=q.agent;this[Ir]=C;this[Pt]=[];this[kr]=1;this[Br]=this.dispatch;this[Er]=this.close.bind(this);this.dispatch=lt.call(this);this.close=this[Ar]}get[Qr.kConnected](){return this[kr]}intercept(C){return new Pr(C,this[Pt])}async[Ar](){await ae(this[Er])();this[kr]=0;this[Wt][Qr.kClients].delete(this[Ir])}}C.exports=MockPool},91117:C=>{C.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:(C,q,re)=>{const{MockNotMatchedError:ae}=re(52429);const{kDispatches:Ue,kMockAgent:lt,kOriginalDispatch:Pt,kOrigin:Wt,kGetNetConnect:Ar}=re(91117);const{buildURL:Er,nop:Ir}=re(3440);const{STATUS_CODES:Br}=re(58611);const{types:{isPromise:kr}}=re(39023);function matchValue(C,q){if(typeof C==="string"){return C===q}if(C instanceof RegExp){return C.test(q)}if(typeof C==="function"){return C(q)===true}return false}function lowerCaseEntries(C){return Object.fromEntries(Object.entries(C).map((([C,q])=>[C.toLocaleLowerCase(),q])))}function getHeaderByName(C,q){if(Array.isArray(C)){for(let re=0;re!C)).filter((({path:C})=>matchValue(safeUrl(C),Ue)));if(lt.length===0){throw new ae(`Mock dispatch not matched for path '${Ue}'`)}lt=lt.filter((({method:C})=>matchValue(C,q.method)));if(lt.length===0){throw new ae(`Mock dispatch not matched for method '${q.method}'`)}lt=lt.filter((({body:C})=>typeof C!=="undefined"?matchValue(C,q.body):true));if(lt.length===0){throw new ae(`Mock dispatch not matched for body '${q.body}'`)}lt=lt.filter((C=>matchHeaders(C,q.headers)));if(lt.length===0){throw new ae(`Mock dispatch not matched for headers '${typeof q.headers==="object"?JSON.stringify(q.headers):q.headers}'`)}return lt[0]}function addMockDispatch(C,q,re){const ae={timesInvoked:0,times:1,persist:false,consumed:false};const Ue=typeof re==="function"?{callback:re}:{...re};const lt={...ae,...q,pending:true,data:{error:null,...Ue}};C.push(lt);return lt}function deleteMockDispatch(C,q){const re=C.findIndex((C=>{if(!C.consumed){return false}return matchKey(C,q)}));if(re!==-1){C.splice(re,1)}}function buildKey(C){const{path:q,method:re,body:ae,headers:Ue,query:lt}=C;return{path:q,method:re,body:ae,headers:Ue,query:lt}}function generateKeyValues(C){return Object.entries(C).reduce(((C,[q,re])=>[...C,Buffer.from(`${q}`),Array.isArray(re)?re.map((C=>Buffer.from(`${C}`))):Buffer.from(`${re}`)]),[])}function getStatusText(C){return Br[C]||"unknown"}async function getResponse(C){const q=[];for await(const re of C){q.push(re)}return Buffer.concat(q).toString("utf8")}function mockDispatch(C,q){const re=buildKey(C);const ae=getMockDispatch(this[Ue],re);ae.timesInvoked++;if(ae.data.callback){ae.data={...ae.data,...ae.data.callback(C)}}const{data:{statusCode:lt,data:Pt,headers:Wt,trailers:Ar,error:Er},delay:Br,persist:Pr}=ae;const{timesInvoked:Qr,times:Fr}=ae;ae.consumed=!Pr&&Qr>=Fr;ae.pending=Qr0){setTimeout((()=>{handleReply(this[Ue])}),Br)}else{handleReply(this[Ue])}function handleReply(ae,Ue=Pt){const Er=Array.isArray(C.headers)?buildHeadersFromArray(C.headers):C.headers;const Br=typeof Ue==="function"?Ue({...C,headers:Er}):Ue;if(kr(Br)){Br.then((C=>handleReply(ae,C)));return}const Pr=getResponseData(Br);const Qr=generateKeyValues(Wt);const Fr=generateKeyValues(Ar);q.abort=Ir;q.onHeaders(lt,Qr,resume,getStatusText(lt));q.onData(Buffer.from(Pr));q.onComplete(Fr);deleteMockDispatch(ae,re)}function resume(){}return true}function buildMockDispatch(){const C=this[lt];const q=this[Wt];const re=this[Pt];return function dispatch(Ue,lt){if(C.isMockActive){try{mockDispatch.call(this,Ue,lt)}catch(Pt){if(Pt instanceof ae){const Wt=C[Ar]();if(Wt===false){throw new ae(`${Pt.message}: subsequent request to origin ${q} was not allowed (net.connect disabled)`)}if(checkNetConnect(Wt,q)){re.call(this,Ue,lt)}else{throw new ae(`${Pt.message}: subsequent request to origin ${q} was not allowed (net.connect is not enabled for this origin)`)}}else{throw Pt}}}else{re.call(this,Ue,lt)}}}function checkNetConnect(C,q){const re=new URL(q);if(C===true){return true}else if(Array.isArray(C)&&C.some((C=>matchValue(C,re.host)))){return true}return false}function buildMockOptions(C){if(C){const{agent:q,...re}=C;return re}}C.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:(C,q,re)=>{const{Transform:ae}=re(2203);const{Console:Ue}=re(64236);C.exports=class PendingInterceptorsFormatter{constructor({disableColors:C}={}){this.transform=new ae({transform(C,q,re){re(null,C)}});this.logger=new Ue({stdout:this.transform,inspectOptions:{colors:!C&&!process.env.CI}})}format(C){const q=C.map((({method:C,path:q,data:{statusCode:re},persist:ae,times:Ue,timesInvoked:lt,origin:Pt})=>({Method:C,Origin:Pt,Path:q,"Status code":re,Persistent:ae?"✅":"❌",Invocations:lt,Remaining:ae?Infinity:Ue-lt})));this.logger.table(q);return this.transform.read().toString()}}},91529:C=>{const q={pronoun:"it",is:"is",was:"was",this:"this"};const re={pronoun:"they",is:"are",was:"were",this:"these"};C.exports=class Pluralizer{constructor(C,q){this.singular=C;this.plural=q}pluralize(C){const ae=C===1;const Ue=ae?q:re;const lt=ae?this.singular:this.plural;return{...Ue,count:C,noun:lt}}}},34869:C=>{const q=2048;const re=q-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(q);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&re)===this.bottom}push(C){this.list[this.top]=C;this.top=this.top+1&re}shift(){const C=this.list[this.bottom];if(C===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&re;return C}}C.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(C){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(C)}shift(){const C=this.tail;const q=C.shift();if(C.isEmpty()&&C.next!==null){this.tail=C.next}return q}}},58640:(C,q,re)=>{const ae=re(50001);const Ue=re(34869);const{kConnected:lt,kSize:Pt,kRunning:Wt,kPending:Ar,kQueued:Er,kBusy:Ir,kFree:Br,kUrl:kr,kClose:Pr,kDestroy:Qr,kDispatch:Fr}=re(36443);const Dr=re(24622);const xr=Symbol("clients");const Mr=Symbol("needDrain");const Ur=Symbol("queue");const Nr=Symbol("closed resolve");const Lr=Symbol("onDrain");const jr=Symbol("onConnect");const Gr=Symbol("onDisconnect");const Vr=Symbol("onConnectionError");const Hr=Symbol("get dispatcher");const Wr=Symbol("add client");const $r=Symbol("remove client");const Kr=Symbol("stats");class PoolBase extends ae{constructor(){super();this[Ur]=new Ue;this[xr]=[];this[Er]=0;const C=this;this[Lr]=function onDrain(q,re){const ae=C[Ur];let Ue=false;while(!Ue){const q=ae.shift();if(!q){break}C[Er]--;Ue=!this.dispatch(q.opts,q.handler)}this[Mr]=Ue;if(!this[Mr]&&C[Mr]){C[Mr]=false;C.emit("drain",q,[C,...re])}if(C[Nr]&&ae.isEmpty()){Promise.all(C[xr].map((C=>C.close()))).then(C[Nr])}};this[jr]=(q,re)=>{C.emit("connect",q,[C,...re])};this[Gr]=(q,re,ae)=>{C.emit("disconnect",q,[C,...re],ae)};this[Vr]=(q,re,ae)=>{C.emit("connectionError",q,[C,...re],ae)};this[Kr]=new Dr(this)}get[Ir](){return this[Mr]}get[lt](){return this[xr].filter((C=>C[lt])).length}get[Br](){return this[xr].filter((C=>C[lt]&&!C[Mr])).length}get[Ar](){let C=this[Er];for(const{[Ar]:q}of this[xr]){C+=q}return C}get[Wt](){let C=0;for(const{[Wt]:q}of this[xr]){C+=q}return C}get[Pt](){let C=this[Er];for(const{[Pt]:q}of this[xr]){C+=q}return C}get stats(){return this[Kr]}async[Pr](){if(this[Ur].isEmpty()){return Promise.all(this[xr].map((C=>C.close())))}else{return new Promise((C=>{this[Nr]=C}))}}async[Qr](C){while(true){const q=this[Ur].shift();if(!q){break}q.handler.onError(C)}return Promise.all(this[xr].map((q=>q.destroy(C))))}[Fr](C,q){const re=this[Hr]();if(!re){this[Mr]=true;this[Ur].push({opts:C,handler:q});this[Er]++}else if(!re.dispatch(C,q)){re[Mr]=true;this[Mr]=!this[Hr]()}return!this[Mr]}[Wr](C){C.on("drain",this[Lr]).on("connect",this[jr]).on("disconnect",this[Gr]).on("connectionError",this[Vr]);this[xr].push(C);if(this[Mr]){process.nextTick((()=>{if(this[Mr]){this[Lr](C[kr],[this,C])}}))}return this}[$r](C){C.close((()=>{const q=this[xr].indexOf(C);if(q!==-1){this[xr].splice(q,1)}}));this[Mr]=this[xr].some((C=>!C[Mr]&&C.closed!==true&&C.destroyed!==true))}}C.exports={PoolBase:PoolBase,kClients:xr,kNeedDrain:Mr,kAddClient:Wr,kRemoveClient:$r,kGetDispatcher:Hr}},24622:(C,q,re)=>{const{kFree:ae,kConnected:Ue,kPending:lt,kQueued:Pt,kRunning:Wt,kSize:Ar}=re(36443);const Er=Symbol("pool");class PoolStats{constructor(C){this[Er]=C}get connected(){return this[Er][Ue]}get free(){return this[Er][ae]}get pending(){return this[Er][lt]}get queued(){return this[Er][Pt]}get running(){return this[Er][Wt]}get size(){return this[Er][Ar]}}C.exports=PoolStats},35076:(C,q,re)=>{const{PoolBase:ae,kClients:Ue,kNeedDrain:lt,kAddClient:Pt,kGetDispatcher:Wt}=re(58640);const Ar=re(86197);const{InvalidArgumentError:Er}=re(68707);const Ir=re(3440);const{kUrl:Br,kInterceptors:kr}=re(36443);const Pr=re(59136);const Qr=Symbol("options");const Fr=Symbol("connections");const Dr=Symbol("factory");function defaultFactory(C,q){return new Ar(C,q)}class Pool extends ae{constructor(C,{connections:q,factory:re=defaultFactory,connect:ae,connectTimeout:Ue,tls:lt,maxCachedSessions:Pt,socketPath:Wt,autoSelectFamily:Ar,autoSelectFamilyAttemptTimeout:xr,allowH2:Mr,...Ur}={}){super();if(q!=null&&(!Number.isFinite(q)||q<0)){throw new Er("invalid connections")}if(typeof re!=="function"){throw new Er("factory must be a function.")}if(ae!=null&&typeof ae!=="function"&&typeof ae!=="object"){throw new Er("connect must be a function or an object")}if(typeof ae!=="function"){ae=Pr({...lt,maxCachedSessions:Pt,allowH2:Mr,socketPath:Wt,timeout:Ue,...Ir.nodeHasAutoSelectFamily&&Ar?{autoSelectFamily:Ar,autoSelectFamilyAttemptTimeout:xr}:undefined,...ae})}this[kr]=Ur.interceptors&&Ur.interceptors.Pool&&Array.isArray(Ur.interceptors.Pool)?Ur.interceptors.Pool:[];this[Fr]=q||null;this[Br]=Ir.parseOrigin(C);this[Qr]={...Ir.deepClone(Ur),connect:ae,allowH2:Mr};this[Qr].interceptors=Ur.interceptors?{...Ur.interceptors}:undefined;this[Dr]=re}[Wt](){let C=this[Ue].find((C=>!C[lt]));if(C){return C}if(!this[Fr]||this[Ue].length{const{kProxy:ae,kClose:Ue,kDestroy:lt,kInterceptors:Pt}=re(36443);const{URL:Wt}=re(87016);const Ar=re(59965);const Er=re(35076);const Ir=re(50001);const{InvalidArgumentError:Br,RequestAbortedError:kr}=re(68707);const Pr=re(59136);const Qr=Symbol("proxy agent");const Fr=Symbol("proxy client");const Dr=Symbol("proxy headers");const xr=Symbol("request tls settings");const Mr=Symbol("proxy tls settings");const Ur=Symbol("connect endpoint function");function defaultProtocolPort(C){return C==="https:"?443:80}function buildProxyOptions(C){if(typeof C==="string"){C={uri:C}}if(!C||!C.uri){throw new Br("Proxy opts.uri is mandatory")}return{uri:C.uri,protocol:C.protocol||"https"}}function defaultFactory(C,q){return new Er(C,q)}class ProxyAgent extends Ir{constructor(C){super(C);this[ae]=buildProxyOptions(C);this[Qr]=new Ar(C);this[Pt]=C.interceptors&&C.interceptors.ProxyAgent&&Array.isArray(C.interceptors.ProxyAgent)?C.interceptors.ProxyAgent:[];if(typeof C==="string"){C={uri:C}}if(!C||!C.uri){throw new Br("Proxy opts.uri is mandatory")}const{clientFactory:q=defaultFactory}=C;if(typeof q!=="function"){throw new Br("Proxy opts.clientFactory must be a function.")}this[xr]=C.requestTls;this[Mr]=C.proxyTls;this[Dr]=C.headers||{};const re=new Wt(C.uri);const{origin:Ue,port:lt,host:Er,username:Ir,password:Nr}=re;if(C.auth&&C.token){throw new Br("opts.auth cannot be used in combination with opts.token")}else if(C.auth){this[Dr]["proxy-authorization"]=`Basic ${C.auth}`}else if(C.token){this[Dr]["proxy-authorization"]=C.token}else if(Ir&&Nr){this[Dr]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(Ir)}:${decodeURIComponent(Nr)}`).toString("base64")}`}const Lr=Pr({...C.proxyTls});this[Ur]=Pr({...C.requestTls});this[Fr]=q(re,{connect:Lr});this[Qr]=new Ar({...C,connect:async(C,q)=>{let re=C.host;if(!C.port){re+=`:${defaultProtocolPort(C.protocol)}`}try{const{socket:ae,statusCode:Pt}=await this[Fr].connect({origin:Ue,port:lt,path:re,signal:C.signal,headers:{...this[Dr],host:Er}});if(Pt!==200){ae.on("error",(()=>{})).destroy();q(new kr(`Proxy response (${Pt}) !== 200 when HTTP Tunneling`))}if(C.protocol!=="https:"){q(null,ae);return}let Wt;if(this[xr]){Wt=this[xr].servername}else{Wt=C.servername}this[Ur]({...C,servername:Wt,httpSocket:ae},q)}catch(C){q(C)}}})}dispatch(C,q){const{host:re}=new Wt(C.origin);const ae=buildHeaders(C.headers);throwIfProxyAuthIsSent(ae);return this[Qr].dispatch({...C,headers:{...ae,host:re}},q)}async[Ue](){await this[Qr].close();await this[Fr].close()}async[lt](){await this[Qr].destroy();await this[Fr].destroy()}}function buildHeaders(C){if(Array.isArray(C)){const q={};for(let re=0;reC.toLowerCase()==="proxy-authorization"));if(q){throw new Br("Proxy-Authorization should be sent in ProxyAgent constructor")}}C.exports=ProxyAgent},28804:C=>{let q=Date.now();let re;const ae=[];function onTimeout(){q=Date.now();let C=ae.length;let re=0;while(re0&&q>=Ue.state){Ue.state=-1;Ue.callback(Ue.opaque)}if(Ue.state===-1){Ue.state=-2;if(re!==C-1){ae[re]=ae.pop()}else{ae.pop()}C-=1}else{re+=1}}if(ae.length>0){refreshTimeout()}}function refreshTimeout(){if(re&&re.refresh){re.refresh()}else{clearTimeout(re);re=setTimeout(onTimeout,1e3);if(re.unref){re.unref()}}}class Timeout{constructor(C,q,re){this.callback=C;this.delay=q;this.opaque=re;this.state=-2;this.refresh()}refresh(){if(this.state===-2){ae.push(this);if(!re||ae.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}C.exports={setTimeout(C,q,re){return q<1e3?setTimeout(C,q,re):new Timeout(C,q,re)},clearTimeout(C){if(C instanceof Timeout){C.clear()}else{clearTimeout(C)}}}},68550:(C,q,re)=>{const ae=re(31637);const{uid:Ue,states:lt}=re(45913);const{kReadyState:Pt,kSentClose:Wt,kByteParser:Ar,kReceivedClose:Er}=re(62933);const{fireEvent:Ir,failWebsocketConnection:Br}=re(3574);const{CloseEvent:kr}=re(46255);const{makeRequest:Pr}=re(25194);const{fetching:Qr}=re(12315);const{Headers:Fr}=re(26349);const{getGlobalDispatcher:Dr}=re(32581);const{kHeadersList:xr}=re(36443);const Mr={};Mr.open=ae.channel("undici:websocket:open");Mr.close=ae.channel("undici:websocket:close");Mr.socketError=ae.channel("undici:websocket:socket_error");let Ur;try{Ur=re(76982)}catch{}function establishWebSocketConnection(C,q,re,ae,lt){const Pt=C;Pt.protocol=C.protocol==="ws:"?"http:":"https:";const Wt=Pr({urlList:[Pt],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(lt.headers){const C=new Fr(lt.headers)[xr];Wt.headersList=C}const Ar=Ur.randomBytes(16).toString("base64");Wt.headersList.append("sec-websocket-key",Ar);Wt.headersList.append("sec-websocket-version","13");for(const C of q){Wt.headersList.append("sec-websocket-protocol",C)}const Er="";const Ir=Qr({request:Wt,useParallelQueue:true,dispatcher:lt.dispatcher??Dr(),processResponse(C){if(C.type==="error"||C.status!==101){Br(re,"Received network error or non-101 status code.");return}if(q.length!==0&&!C.headersList.get("Sec-WebSocket-Protocol")){Br(re,"Server did not respond with sent protocols.");return}if(C.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){Br(re,'Server did not set Upgrade header to "websocket".');return}if(C.headersList.get("Connection")?.toLowerCase()!=="upgrade"){Br(re,'Server did not set Connection header to "upgrade".');return}const lt=C.headersList.get("Sec-WebSocket-Accept");const Pt=Ur.createHash("sha1").update(Ar+Ue).digest("base64");if(lt!==Pt){Br(re,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const Ir=C.headersList.get("Sec-WebSocket-Extensions");if(Ir!==null&&Ir!==Er){Br(re,"Received different permessage-deflate than the one set.");return}const kr=C.headersList.get("Sec-WebSocket-Protocol");if(kr!==null&&kr!==Wt.headersList.get("Sec-WebSocket-Protocol")){Br(re,"Protocol was not set in the opening handshake.");return}C.socket.on("data",onSocketData);C.socket.on("close",onSocketClose);C.socket.on("error",onSocketError);if(Mr.open.hasSubscribers){Mr.open.publish({address:C.socket.address(),protocol:kr,extensions:Ir})}ae(C)}});return Ir}function onSocketData(C){if(!this.ws[Ar].write(C)){this.pause()}}function onSocketClose(){const{ws:C}=this;const q=C[Wt]&&C[Er];let re=1005;let ae="";const Ue=C[Ar].closingInfo;if(Ue){re=Ue.code??1005;ae=Ue.reason}else if(!C[Wt]){re=1006}C[Pt]=lt.CLOSED;Ir("close",C,kr,{wasClean:q,code:re,reason:ae});if(Mr.close.hasSubscribers){Mr.close.publish({websocket:C,code:re,reason:ae})}}function onSocketError(C){const{ws:q}=this;q[Pt]=lt.CLOSING;if(Mr.socketError.hasSubscribers){Mr.socketError.publish(C)}this.destroy()}C.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:C=>{const q="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const re={enumerable:true,writable:false,configurable:false};const ae={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const Ue={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const lt=2**16-1;const Pt={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const Wt=Buffer.allocUnsafe(0);C.exports={uid:q,staticPropertyDescriptors:re,states:ae,opcodes:Ue,maxUnsigned16Bit:lt,parserStates:Pt,emptyBuffer:Wt}},46255:(C,q,re)=>{const{webidl:ae}=re(74222);const{kEnumerableProperty:Ue}=re(3440);const{MessagePort:lt}=re(28167);class MessageEvent extends Event{#o;constructor(C,q={}){ae.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});C=ae.converters.DOMString(C);q=ae.converters.MessageEventInit(q);super(C,q);this.#o=q}get data(){ae.brandCheck(this,MessageEvent);return this.#o.data}get origin(){ae.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){ae.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){ae.brandCheck(this,MessageEvent);return this.#o.source}get ports(){ae.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(C,q=false,re=false,Ue=null,lt="",Pt="",Wt=null,Ar=[]){ae.brandCheck(this,MessageEvent);ae.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(C,{bubbles:q,cancelable:re,data:Ue,origin:lt,lastEventId:Pt,source:Wt,ports:Ar})}}class CloseEvent extends Event{#o;constructor(C,q={}){ae.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});C=ae.converters.DOMString(C);q=ae.converters.CloseEventInit(q);super(C,q);this.#o=q}get wasClean(){ae.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){ae.brandCheck(this,CloseEvent);return this.#o.code}get reason(){ae.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(C,q){ae.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(C,q);C=ae.converters.DOMString(C);q=ae.converters.ErrorEventInit(q??{});this.#o=q}get message(){ae.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){ae.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){ae.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){ae.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){ae.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:Ue,origin:Ue,lastEventId:Ue,source:Ue,ports:Ue,initMessageEvent:Ue});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:Ue,code:Ue,wasClean:Ue});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:Ue,filename:Ue,lineno:Ue,colno:Ue,error:Ue});ae.converters.MessagePort=ae.interfaceConverter(lt);ae.converters["sequence"]=ae.sequenceConverter(ae.converters.MessagePort);const Pt=[{key:"bubbles",converter:ae.converters.boolean,defaultValue:false},{key:"cancelable",converter:ae.converters.boolean,defaultValue:false},{key:"composed",converter:ae.converters.boolean,defaultValue:false}];ae.converters.MessageEventInit=ae.dictionaryConverter([...Pt,{key:"data",converter:ae.converters.any,defaultValue:null},{key:"origin",converter:ae.converters.USVString,defaultValue:""},{key:"lastEventId",converter:ae.converters.DOMString,defaultValue:""},{key:"source",converter:ae.nullableConverter(ae.converters.MessagePort),defaultValue:null},{key:"ports",converter:ae.converters["sequence"],get defaultValue(){return[]}}]);ae.converters.CloseEventInit=ae.dictionaryConverter([...Pt,{key:"wasClean",converter:ae.converters.boolean,defaultValue:false},{key:"code",converter:ae.converters["unsigned short"],defaultValue:0},{key:"reason",converter:ae.converters.USVString,defaultValue:""}]);ae.converters.ErrorEventInit=ae.dictionaryConverter([...Pt,{key:"message",converter:ae.converters.DOMString,defaultValue:""},{key:"filename",converter:ae.converters.USVString,defaultValue:""},{key:"lineno",converter:ae.converters["unsigned long"],defaultValue:0},{key:"colno",converter:ae.converters["unsigned long"],defaultValue:0},{key:"error",converter:ae.converters.any}]);C.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(C,q,re)=>{const{maxUnsigned16Bit:ae}=re(45913);let Ue;try{Ue=re(76982)}catch{}class WebsocketFrameSend{constructor(C){this.frameData=C;this.maskKey=Ue.randomBytes(4)}createFrame(C){const q=this.frameData?.byteLength??0;let re=q;let Ue=6;if(q>ae){Ue+=8;re=127}else if(q>125){Ue+=2;re=126}const lt=Buffer.allocUnsafe(q+Ue);lt[0]=lt[1]=0;lt[0]|=128;lt[0]=(lt[0]&240)+C;
-/*! ws. MIT License. Einar Otto Stangvik  */lt[Ue-4]=this.maskKey[0];lt[Ue-3]=this.maskKey[1];lt[Ue-2]=this.maskKey[2];lt[Ue-1]=this.maskKey[3];lt[1]=re;if(re===126){lt.writeUInt16BE(q,2)}else if(re===127){lt[2]=lt[3]=0;lt.writeUIntBE(q,4,6)}lt[1]|=128;for(let C=0;C{const{Writable:ae}=re(2203);const Ue=re(31637);const{parserStates:lt,opcodes:Pt,states:Wt,emptyBuffer:Ar}=re(45913);const{kReadyState:Er,kSentClose:Ir,kResponse:Br,kReceivedClose:kr}=re(62933);const{isValidStatusCode:Pr,failWebsocketConnection:Qr,websocketMessageReceived:Fr}=re(3574);const{WebsocketFrameSend:Dr}=re(31237);const xr={};xr.ping=Ue.channel("undici:websocket:ping");xr.pong=Ue.channel("undici:websocket:pong");class ByteParser extends ae{#i=[];#a=0;#c=lt.INFO;#l={};#u=[];constructor(C){super();this.ws=C}_write(C,q,re){this.#i.push(C);this.#a+=C.length;this.run(re)}run(C){while(true){if(this.#c===lt.INFO){if(this.#a<2){return C()}const q=this.consume(2);this.#l.fin=(q[0]&128)!==0;this.#l.opcode=q[0]&15;this.#l.originalOpcode??=this.#l.opcode;this.#l.fragmented=!this.#l.fin&&this.#l.opcode!==Pt.CONTINUATION;if(this.#l.fragmented&&this.#l.opcode!==Pt.BINARY&&this.#l.opcode!==Pt.TEXT){Qr(this.ws,"Invalid frame type was fragmented.");return}const re=q[1]&127;if(re<=125){this.#l.payloadLength=re;this.#c=lt.READ_DATA}else if(re===126){this.#c=lt.PAYLOADLENGTH_16}else if(re===127){this.#c=lt.PAYLOADLENGTH_64}if(this.#l.fragmented&&re>125){Qr(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#l.opcode===Pt.PING||this.#l.opcode===Pt.PONG||this.#l.opcode===Pt.CLOSE)&&re>125){Qr(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#l.opcode===Pt.CLOSE){if(re===1){Qr(this.ws,"Received close frame with a 1-byte body.");return}const C=this.consume(re);this.#l.closeInfo=this.parseCloseBody(false,C);if(!this.ws[Ir]){const C=Buffer.allocUnsafe(2);C.writeUInt16BE(this.#l.closeInfo.code,0);const q=new Dr(C);this.ws[Br].socket.write(q.createFrame(Pt.CLOSE),(C=>{if(!C){this.ws[Ir]=true}}))}this.ws[Er]=Wt.CLOSING;this.ws[kr]=true;this.end();return}else if(this.#l.opcode===Pt.PING){const q=this.consume(re);if(!this.ws[kr]){const C=new Dr(q);this.ws[Br].socket.write(C.createFrame(Pt.PONG));if(xr.ping.hasSubscribers){xr.ping.publish({payload:q})}}this.#c=lt.INFO;if(this.#a>0){continue}else{C();return}}else if(this.#l.opcode===Pt.PONG){const q=this.consume(re);if(xr.pong.hasSubscribers){xr.pong.publish({payload:q})}if(this.#a>0){continue}else{C();return}}}else if(this.#c===lt.PAYLOADLENGTH_16){if(this.#a<2){return C()}const q=this.consume(2);this.#l.payloadLength=q.readUInt16BE(0);this.#c=lt.READ_DATA}else if(this.#c===lt.PAYLOADLENGTH_64){if(this.#a<8){return C()}const q=this.consume(8);const re=q.readUInt32BE(0);if(re>2**31-1){Qr(this.ws,"Received payload length > 2^31 bytes.");return}const ae=q.readUInt32BE(4);this.#l.payloadLength=(re<<8)+ae;this.#c=lt.READ_DATA}else if(this.#c===lt.READ_DATA){if(this.#a=this.#l.payloadLength){const C=this.consume(this.#l.payloadLength);this.#u.push(C);if(!this.#l.fragmented||this.#l.fin&&this.#l.opcode===Pt.CONTINUATION){const C=Buffer.concat(this.#u);Fr(this.ws,this.#l.originalOpcode,C);this.#l={};this.#u.length=0}this.#c=lt.INFO}}if(this.#a>0){continue}else{C();break}}}consume(C){if(C>this.#a){return null}else if(C===0){return Ar}if(this.#i[0].length===C){this.#a-=this.#i[0].length;return this.#i.shift()}const q=Buffer.allocUnsafe(C);let re=0;while(re!==C){const ae=this.#i[0];const{length:Ue}=ae;if(Ue+re===C){q.set(this.#i.shift(),re);break}else if(Ue+re>C){q.set(ae.subarray(0,C-re),re);this.#i[0]=ae.subarray(C-re);break}else{q.set(this.#i.shift(),re);re+=ae.length}}this.#a-=C;return q}parseCloseBody(C,q){let re;if(q.length>=2){re=q.readUInt16BE(0)}if(C){if(!Pr(re)){return null}return{code:re}}let ae=q.subarray(2);if(ae[0]===239&&ae[1]===187&&ae[2]===191){ae=ae.subarray(3)}if(re!==undefined&&!Pr(re)){return null}try{ae=new TextDecoder("utf-8",{fatal:true}).decode(ae)}catch{return null}return{code:re,reason:ae}}get closingInfo(){return this.#l.closeInfo}}C.exports={ByteParser:ByteParser}},62933:C=>{C.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:(C,q,re)=>{const{kReadyState:ae,kController:Ue,kResponse:lt,kBinaryType:Pt,kWebSocketURL:Wt}=re(62933);const{states:Ar,opcodes:Er}=re(45913);const{MessageEvent:Ir,ErrorEvent:Br}=re(46255);function isEstablished(C){return C[ae]===Ar.OPEN}function isClosing(C){return C[ae]===Ar.CLOSING}function isClosed(C){return C[ae]===Ar.CLOSED}function fireEvent(C,q,re=Event,ae){const Ue=new re(C,ae);q.dispatchEvent(Ue)}function websocketMessageReceived(C,q,re){if(C[ae]!==Ar.OPEN){return}let Ue;if(q===Er.TEXT){try{Ue=new TextDecoder("utf-8",{fatal:true}).decode(re)}catch{failWebsocketConnection(C,"Received invalid UTF-8 in text frame.");return}}else if(q===Er.BINARY){if(C[Pt]==="blob"){Ue=new Blob([re])}else{Ue=new Uint8Array(re).buffer}}fireEvent("message",C,Ir,{origin:C[Wt].origin,data:Ue})}function isValidSubprotocol(C){if(C.length===0){return false}for(const q of C){const C=q.charCodeAt(0);if(C<33||C>126||q==="("||q===")"||q==="<"||q===">"||q==="@"||q===","||q===";"||q===":"||q==="\\"||q==='"'||q==="/"||q==="["||q==="]"||q==="?"||q==="="||q==="{"||q==="}"||C===32||C===9){return false}}return true}function isValidStatusCode(C){if(C>=1e3&&C<1015){return C!==1004&&C!==1005&&C!==1006}return C>=3e3&&C<=4999}function failWebsocketConnection(C,q){const{[Ue]:re,[lt]:ae}=C;re.abort();if(ae?.socket&&!ae.socket.destroyed){ae.socket.destroy()}if(q){fireEvent("error",C,Br,{error:new Error(q)})}}C.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(C,q,re)=>{const{webidl:ae}=re(74222);const{DOMException:Ue}=re(87326);const{URLSerializer:lt}=re(94322);const{getGlobalOrigin:Pt}=re(75628);const{staticPropertyDescriptors:Wt,states:Ar,opcodes:Er,emptyBuffer:Ir}=re(45913);const{kWebSocketURL:Br,kReadyState:kr,kController:Pr,kBinaryType:Qr,kResponse:Fr,kSentClose:Dr,kByteParser:xr}=re(62933);const{isEstablished:Mr,isClosing:Ur,isValidSubprotocol:Nr,failWebsocketConnection:Lr,fireEvent:jr}=re(3574);const{establishWebSocketConnection:Gr}=re(68550);const{WebsocketFrameSend:Vr}=re(31237);const{ByteParser:Hr}=re(43171);const{kEnumerableProperty:Wr,isBlobLike:$r}=re(3440);const{getGlobalDispatcher:Kr}=re(32581);const{types:zr}=re(39023);let Jr=false;class WebSocket extends EventTarget{#d={open:null,error:null,close:null,message:null};#p=0;#f="";#h="";constructor(C,q=[]){super();ae.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!Jr){Jr=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const re=ae.converters["DOMString or sequence or WebSocketInit"](q);C=ae.converters.USVString(C);q=re.protocols;const lt=Pt();let Wt;try{Wt=new URL(C,lt)}catch(C){throw new Ue(C,"SyntaxError")}if(Wt.protocol==="http:"){Wt.protocol="ws:"}else if(Wt.protocol==="https:"){Wt.protocol="wss:"}if(Wt.protocol!=="ws:"&&Wt.protocol!=="wss:"){throw new Ue(`Expected a ws: or wss: protocol, got ${Wt.protocol}`,"SyntaxError")}if(Wt.hash||Wt.href.endsWith("#")){throw new Ue("Got fragment","SyntaxError")}if(typeof q==="string"){q=[q]}if(q.length!==new Set(q.map((C=>C.toLowerCase()))).size){throw new Ue("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(q.length>0&&!q.every((C=>Nr(C)))){throw new Ue("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[Br]=new URL(Wt.href);this[Pr]=Gr(Wt,q,this,(C=>this.#g(C)),re);this[kr]=WebSocket.CONNECTING;this[Qr]="blob"}close(C=undefined,q=undefined){ae.brandCheck(this,WebSocket);if(C!==undefined){C=ae.converters["unsigned short"](C,{clamp:true})}if(q!==undefined){q=ae.converters.USVString(q)}if(C!==undefined){if(C!==1e3&&(C<3e3||C>4999)){throw new Ue("invalid code","InvalidAccessError")}}let re=0;if(q!==undefined){re=Buffer.byteLength(q);if(re>123){throw new Ue(`Reason must be less than 123 bytes; received ${re}`,"SyntaxError")}}if(this[kr]===WebSocket.CLOSING||this[kr]===WebSocket.CLOSED){}else if(!Mr(this)){Lr(this,"Connection was closed before it was established.");this[kr]=WebSocket.CLOSING}else if(!Ur(this)){const ae=new Vr;if(C!==undefined&&q===undefined){ae.frameData=Buffer.allocUnsafe(2);ae.frameData.writeUInt16BE(C,0)}else if(C!==undefined&&q!==undefined){ae.frameData=Buffer.allocUnsafe(2+re);ae.frameData.writeUInt16BE(C,0);ae.frameData.write(q,2,"utf-8")}else{ae.frameData=Ir}const Ue=this[Fr].socket;Ue.write(ae.createFrame(Er.CLOSE),(C=>{if(!C){this[Dr]=true}}));this[kr]=Ar.CLOSING}else{this[kr]=WebSocket.CLOSING}}send(C){ae.brandCheck(this,WebSocket);ae.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});C=ae.converters.WebSocketSendData(C);if(this[kr]===WebSocket.CONNECTING){throw new Ue("Sent before connected.","InvalidStateError")}if(!Mr(this)||Ur(this)){return}const q=this[Fr].socket;if(typeof C==="string"){const re=Buffer.from(C);const ae=new Vr(re);const Ue=ae.createFrame(Er.TEXT);this.#p+=re.byteLength;q.write(Ue,(()=>{this.#p-=re.byteLength}))}else if(zr.isArrayBuffer(C)){const re=Buffer.from(C);const ae=new Vr(re);const Ue=ae.createFrame(Er.BINARY);this.#p+=re.byteLength;q.write(Ue,(()=>{this.#p-=re.byteLength}))}else if(ArrayBuffer.isView(C)){const re=Buffer.from(C,C.byteOffset,C.byteLength);const ae=new Vr(re);const Ue=ae.createFrame(Er.BINARY);this.#p+=re.byteLength;q.write(Ue,(()=>{this.#p-=re.byteLength}))}else if($r(C)){const re=new Vr;C.arrayBuffer().then((C=>{const ae=Buffer.from(C);re.frameData=ae;const Ue=re.createFrame(Er.BINARY);this.#p+=ae.byteLength;q.write(Ue,(()=>{this.#p-=ae.byteLength}))}))}}get readyState(){ae.brandCheck(this,WebSocket);return this[kr]}get bufferedAmount(){ae.brandCheck(this,WebSocket);return this.#p}get url(){ae.brandCheck(this,WebSocket);return lt(this[Br])}get extensions(){ae.brandCheck(this,WebSocket);return this.#h}get protocol(){ae.brandCheck(this,WebSocket);return this.#f}get onopen(){ae.brandCheck(this,WebSocket);return this.#d.open}set onopen(C){ae.brandCheck(this,WebSocket);if(this.#d.open){this.removeEventListener("open",this.#d.open)}if(typeof C==="function"){this.#d.open=C;this.addEventListener("open",C)}else{this.#d.open=null}}get onerror(){ae.brandCheck(this,WebSocket);return this.#d.error}set onerror(C){ae.brandCheck(this,WebSocket);if(this.#d.error){this.removeEventListener("error",this.#d.error)}if(typeof C==="function"){this.#d.error=C;this.addEventListener("error",C)}else{this.#d.error=null}}get onclose(){ae.brandCheck(this,WebSocket);return this.#d.close}set onclose(C){ae.brandCheck(this,WebSocket);if(this.#d.close){this.removeEventListener("close",this.#d.close)}if(typeof C==="function"){this.#d.close=C;this.addEventListener("close",C)}else{this.#d.close=null}}get onmessage(){ae.brandCheck(this,WebSocket);return this.#d.message}set onmessage(C){ae.brandCheck(this,WebSocket);if(this.#d.message){this.removeEventListener("message",this.#d.message)}if(typeof C==="function"){this.#d.message=C;this.addEventListener("message",C)}else{this.#d.message=null}}get binaryType(){ae.brandCheck(this,WebSocket);return this[Qr]}set binaryType(C){ae.brandCheck(this,WebSocket);if(C!=="blob"&&C!=="arraybuffer"){this[Qr]="blob"}else{this[Qr]=C}}#g(C){this[Fr]=C;const q=new Hr(this);q.on("drain",(function onParserDrain(){this.ws[Fr].socket.resume()}));C.socket.ws=this;this[xr]=q;this[kr]=Ar.OPEN;const re=C.headersList.get("sec-websocket-extensions");if(re!==null){this.#h=re}const ae=C.headersList.get("sec-websocket-protocol");if(ae!==null){this.#f=ae}jr("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=Ar.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=Ar.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=Ar.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=Ar.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:Wt,OPEN:Wt,CLOSING:Wt,CLOSED:Wt,url:Wr,readyState:Wr,bufferedAmount:Wr,onopen:Wr,onerror:Wr,onclose:Wr,close:Wr,onmessage:Wr,binaryType:Wr,send:Wr,extensions:Wr,protocol:Wr,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:Wt,OPEN:Wt,CLOSING:Wt,CLOSED:Wt});ae.converters["sequence"]=ae.sequenceConverter(ae.converters.DOMString);ae.converters["DOMString or sequence"]=function(C){if(ae.util.Type(C)==="Object"&&Symbol.iterator in C){return ae.converters["sequence"](C)}return ae.converters.DOMString(C)};ae.converters.WebSocketInit=ae.dictionaryConverter([{key:"protocols",converter:ae.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:C=>C,get defaultValue(){return Kr()}},{key:"headers",converter:ae.nullableConverter(ae.converters.HeadersInit)}]);ae.converters["DOMString or sequence or WebSocketInit"]=function(C){if(ae.util.Type(C)==="Object"&&!(Symbol.iterator in C)){return ae.converters.WebSocketInit(C)}return{protocols:ae.converters["DOMString or sequence"](C)}};ae.converters.WebSocketSendData=function(C){if(ae.util.Type(C)==="Object"){if($r(C)){return ae.converters.Blob(C,{strict:false})}if(ArrayBuffer.isView(C)||zr.isAnyArrayBuffer(C)){return ae.converters.BufferSource(C)}}return ae.converters.USVString(C)};C.exports={WebSocket:WebSocket}},33843:(C,q)=>{Object.defineProperty(q,"__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""}q.getUserAgent=getUserAgent},74106:function(C){(function(q,re,ae){if(true&&C.exports)C.exports=ae();else if(typeof define==="function"&&define.amd)define(ae);else re[q]=ae()})("urljoin",this,(function(){function normalize(C){var q=[];if(C.length===0){return""}if(typeof C[0]!=="string"){throw new TypeError("Url must be a string. Received "+C[0])}if(C[0].match(/^[^/:]+:\/*$/)&&C.length>1){var re=C.shift();C[0]=re+C[0]}if(C[0].match(/^file:\/\/\//)){C[0]=C[0].replace(/^([^/:]+):\/*/,"$1:///")}else{C[0]=C[0].replace(/^([^/:]+):\/*/,"$1://")}for(var ae=0;ae0){Ue=Ue.replace(/^[\/]+/,"")}if(ae0?"?":"")+Pt.join("&");return lt}return function(){var C;if(typeof arguments[0]==="object"){C=arguments[0]}else{C=[].slice.call(arguments)}return normalize(C)}}))},37531:C=>{function isValidUTF8(C){const q=C.length;let re=0;while(re=q||(C[re+1]&192)!==128||(C[re+2]&192)!==128||C[re]===224&&(C[re+1]&224)===128||C[re]===237&&(C[re+1]&224)===160){return false}re+=3}else if((C[re]&248)===240){if(re+3>=q||(C[re+1]&192)!==128||(C[re+2]&192)!==128||(C[re+3]&192)!==128||C[re]===240&&(C[re+1]&240)===128||C[re]===244&&C[re+1]>143||C[re]>244){return false}re+=4}else{return false}}return true}C.exports=isValidUTF8},40397:(C,q,re)=>{try{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)(re.ab+"prebuilds/linux-x64/node.napi.node")}catch(q){C.exports=re(37531)}},12048:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});Object.defineProperty(q,"v1",{enumerable:true,get:function(){return ae.default}});Object.defineProperty(q,"v3",{enumerable:true,get:function(){return Ue.default}});Object.defineProperty(q,"v4",{enumerable:true,get:function(){return lt.default}});Object.defineProperty(q,"v5",{enumerable:true,get:function(){return Pt.default}});Object.defineProperty(q,"NIL",{enumerable:true,get:function(){return Wt.default}});Object.defineProperty(q,"version",{enumerable:true,get:function(){return Ar.default}});Object.defineProperty(q,"validate",{enumerable:true,get:function(){return Er.default}});Object.defineProperty(q,"stringify",{enumerable:true,get:function(){return Ir.default}});Object.defineProperty(q,"parse",{enumerable:true,get:function(){return Br.default}});var ae=_interopRequireDefault(re(6415));var Ue=_interopRequireDefault(re(51697));var lt=_interopRequireDefault(re(4676));var Pt=_interopRequireDefault(re(69771));var Wt=_interopRequireDefault(re(37723));var Ar=_interopRequireDefault(re(15868));var Er=_interopRequireDefault(re(36200));var Ir=_interopRequireDefault(re(37597));var Br=_interopRequireDefault(re(17267));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}},10216:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(76982));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function md5(C){if(Array.isArray(C)){C=Buffer.from(C)}else if(typeof C==="string"){C=Buffer.from(C,"utf8")}return ae.default.createHash("md5").update(C).digest()}var Ue=md5;q["default"]=Ue},37723:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var re="00000000-0000-0000-0000-000000000000";q["default"]=re},17267:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(36200));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function parse(C){if(!(0,ae.default)(C)){throw TypeError("Invalid UUID")}let q;const re=new Uint8Array(16);re[0]=(q=parseInt(C.slice(0,8),16))>>>24;re[1]=q>>>16&255;re[2]=q>>>8&255;re[3]=q&255;re[4]=(q=parseInt(C.slice(9,13),16))>>>8;re[5]=q&255;re[6]=(q=parseInt(C.slice(14,18),16))>>>8;re[7]=q&255;re[8]=(q=parseInt(C.slice(19,23),16))>>>8;re[9]=q&255;re[10]=(q=parseInt(C.slice(24,36),16))/1099511627776&255;re[11]=q/4294967296&255;re[12]=q>>>24&255;re[13]=q>>>16&255;re[14]=q>>>8&255;re[15]=q&255;return re}var Ue=parse;q["default"]=Ue},67879:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var re=/^(?:[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;q["default"]=re},12973:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=rng;var ae=_interopRequireDefault(re(76982));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}const Ue=new Uint8Array(256);let lt=Ue.length;function rng(){if(lt>Ue.length-16){ae.default.randomFillSync(Ue);lt=0}return Ue.slice(lt,lt+=16)}},507:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(76982));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function sha1(C){if(Array.isArray(C)){C=Buffer.from(C)}else if(typeof C==="string"){C=Buffer.from(C,"utf8")}return ae.default.createHash("sha1").update(C).digest()}var Ue=sha1;q["default"]=Ue},37597:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(36200));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}const Ue=[];for(let C=0;C<256;++C){Ue.push((C+256).toString(16).substr(1))}function stringify(C,q=0){const re=(Ue[C[q+0]]+Ue[C[q+1]]+Ue[C[q+2]]+Ue[C[q+3]]+"-"+Ue[C[q+4]]+Ue[C[q+5]]+"-"+Ue[C[q+6]]+Ue[C[q+7]]+"-"+Ue[C[q+8]]+Ue[C[q+9]]+"-"+Ue[C[q+10]]+Ue[C[q+11]]+Ue[C[q+12]]+Ue[C[q+13]]+Ue[C[q+14]]+Ue[C[q+15]]).toLowerCase();if(!(0,ae.default)(re)){throw TypeError("Stringified UUID is invalid")}return re}var lt=stringify;q["default"]=lt},6415:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(12973));var Ue=_interopRequireDefault(re(37597));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}let lt;let Pt;let Wt=0;let Ar=0;function v1(C,q,re){let Er=q&&re||0;const Ir=q||new Array(16);C=C||{};let Br=C.node||lt;let kr=C.clockseq!==undefined?C.clockseq:Pt;if(Br==null||kr==null){const q=C.random||(C.rng||ae.default)();if(Br==null){Br=lt=[q[0]|1,q[1],q[2],q[3],q[4],q[5]]}if(kr==null){kr=Pt=(q[6]<<8|q[7])&16383}}let Pr=C.msecs!==undefined?C.msecs:Date.now();let Qr=C.nsecs!==undefined?C.nsecs:Ar+1;const Fr=Pr-Wt+(Qr-Ar)/1e4;if(Fr<0&&C.clockseq===undefined){kr=kr+1&16383}if((Fr<0||Pr>Wt)&&C.nsecs===undefined){Qr=0}if(Qr>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}Wt=Pr;Ar=Qr;Pt=kr;Pr+=122192928e5;const Dr=((Pr&268435455)*1e4+Qr)%4294967296;Ir[Er++]=Dr>>>24&255;Ir[Er++]=Dr>>>16&255;Ir[Er++]=Dr>>>8&255;Ir[Er++]=Dr&255;const xr=Pr/4294967296*1e4&268435455;Ir[Er++]=xr>>>8&255;Ir[Er++]=xr&255;Ir[Er++]=xr>>>24&15|16;Ir[Er++]=xr>>>16&255;Ir[Er++]=kr>>>8|128;Ir[Er++]=kr&255;for(let C=0;C<6;++C){Ir[Er+C]=Br[C]}return q||(0,Ue.default)(Ir)}var Er=v1;q["default"]=Er},51697:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(92930));var Ue=_interopRequireDefault(re(10216));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}const lt=(0,ae.default)("v3",48,Ue.default);var Pt=lt;q["default"]=Pt},92930:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=_default;q.URL=q.DNS=void 0;var ae=_interopRequireDefault(re(37597));var Ue=_interopRequireDefault(re(17267));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function stringToBytes(C){C=unescape(encodeURIComponent(C));const q=[];for(let re=0;re{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(12973));var Ue=_interopRequireDefault(re(37597));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function v4(C,q,re){C=C||{};const lt=C.random||(C.rng||ae.default)();lt[6]=lt[6]&15|64;lt[8]=lt[8]&63|128;if(q){re=re||0;for(let C=0;C<16;++C){q[re+C]=lt[C]}return q}return(0,Ue.default)(lt)}var lt=v4;q["default"]=lt},69771:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(92930));var Ue=_interopRequireDefault(re(507));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}const lt=(0,ae.default)("v5",80,Ue.default);var Pt=lt;q["default"]=Pt},36200:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(67879));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function validate(C){return typeof C==="string"&&ae.default.test(C)}var Ue=validate;q["default"]=Ue},15868:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(36200));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function version(C){if(!(0,ae.default)(C)){throw TypeError("Invalid UUID")}return parseInt(C.substr(14,1),16)}var Ue=version;q["default"]=Ue},68296:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};var Wt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.VoyageAIClient=void 0;const Ar=lt(re(67149));const Er=lt(re(70015));const Ir=lt(re(19528));const Br=Wt(re(74106));const kr=lt(re(49727));class VoyageAIClient{constructor(C={}){this._options=C}embed(C,q){var re,ae;return Pt(this,void 0,void 0,(function*(){const Ue=yield((re=this._options.fetcher)!==null&&re!==void 0?re:Er.fetcher)({url:(0,Br.default)((ae=yield Er.Supplier.get(this._options.environment))!==null&&ae!==void 0?ae:Ar.VoyageAIEnvironment.Default,"embeddings"),method:"POST",headers:{Authorization:yield this._getAuthorizationHeader(),"X-Fern-Language":"JavaScript","X-Fern-SDK-Name":"voyageai","X-Fern-SDK-Version":"0.0.1-5","User-Agent":"voyageai/0.0.1-5","X-Fern-Runtime":Er.RUNTIME.type,"X-Fern-Runtime-Version":Er.RUNTIME.version},contentType:"application/json",requestType:"json",body:Ir.EmbedRequest.jsonOrThrow(C,{unrecognizedObjectKeys:"strip"}),timeoutMs:(q===null||q===void 0?void 0:q.timeoutInSeconds)!=null?q.timeoutInSeconds*1e3:6e4,maxRetries:q===null||q===void 0?void 0:q.maxRetries,abortSignal:q===null||q===void 0?void 0:q.abortSignal});if(Ue.ok){return Ir.EmbedResponse.parseOrThrow(Ue.body,{unrecognizedObjectKeys:"passthrough",allowUnrecognizedUnionMembers:true,allowUnrecognizedEnumValues:true,skipValidation:true,breadcrumbsPrefix:["response"]})}if(Ue.error.reason==="status-code"){throw new kr.VoyageAIError({statusCode:Ue.error.statusCode,body:Ue.error.body})}switch(Ue.error.reason){case"non-json":throw new kr.VoyageAIError({statusCode:Ue.error.statusCode,body:Ue.error.rawBody});case"timeout":throw new kr.VoyageAITimeoutError;case"unknown":throw new kr.VoyageAIError({message:Ue.error.errorMessage})}}))}rerank(C,q){var re,ae;return Pt(this,void 0,void 0,(function*(){const Ue=yield((re=this._options.fetcher)!==null&&re!==void 0?re:Er.fetcher)({url:(0,Br.default)((ae=yield Er.Supplier.get(this._options.environment))!==null&&ae!==void 0?ae:Ar.VoyageAIEnvironment.Default,"rerank"),method:"POST",headers:{Authorization:yield this._getAuthorizationHeader(),"X-Fern-Language":"JavaScript","X-Fern-SDK-Name":"voyageai","X-Fern-SDK-Version":"0.0.1-5","User-Agent":"voyageai/0.0.1-5","X-Fern-Runtime":Er.RUNTIME.type,"X-Fern-Runtime-Version":Er.RUNTIME.version},contentType:"application/json",requestType:"json",body:Ir.RerankRequest.jsonOrThrow(C,{unrecognizedObjectKeys:"strip"}),timeoutMs:(q===null||q===void 0?void 0:q.timeoutInSeconds)!=null?q.timeoutInSeconds*1e3:6e4,maxRetries:q===null||q===void 0?void 0:q.maxRetries,abortSignal:q===null||q===void 0?void 0:q.abortSignal});if(Ue.ok){return Ir.RerankResponse.parseOrThrow(Ue.body,{unrecognizedObjectKeys:"passthrough",allowUnrecognizedUnionMembers:true,allowUnrecognizedEnumValues:true,skipValidation:true,breadcrumbsPrefix:["response"]})}if(Ue.error.reason==="status-code"){throw new kr.VoyageAIError({statusCode:Ue.error.statusCode,body:Ue.error.body})}switch(Ue.error.reason){case"non-json":throw new kr.VoyageAIError({statusCode:Ue.error.statusCode,body:Ue.error.rawBody});case"timeout":throw new kr.VoyageAITimeoutError;case"unknown":throw new kr.VoyageAIError({message:Ue.error.errorMessage})}}))}_getAuthorizationHeader(){var C;return Pt(this,void 0,void 0,(function*(){const q=(C=yield Er.Supplier.get(this._options.apiKey))!==null&&C!==void 0?C:process===null||process===void 0?void 0:process.env["VOYAGE_API_KEY"];if(q==null){throw new kr.VoyageAIError({message:"Please specify VOYAGE_API_KEY when instantiating the client."})}return`Bearer ${q}`}))}}q.VoyageAIClient=VoyageAIClient},61542:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(70257),q)},70257:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},52983:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(5562),q);Ue(re(61542),q)},74560:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},39288:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.EmbedRequestInputType=void 0;q.EmbedRequestInputType={Query:"query",Document:"document"}},84552:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},21627:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},67429:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},68800:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},5331:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},45453:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},5562:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(74560),q);Ue(re(39288),q);Ue(re(21627),q);Ue(re(67429),q);Ue(re(84552),q);Ue(re(5331),q);Ue(re(45453),q);Ue(re(68800),q)},64250:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.BasicAuth=void 0;const ae=re(45810);const Ue=/^Basic /i;q.BasicAuth={toAuthorizationHeader:C=>{if(C==null){return undefined}const q=ae.Base64.encode(`${C.username}:${C.password}`);return`Basic ${q}`},fromAuthorizationHeader:C=>{const q=C.replace(Ue,"");const re=ae.Base64.decode(q);const[lt,Pt]=re.split(":",2);if(lt==null||Pt==null){throw new Error("Invalid basic auth")}return{username:lt,password:Pt}}}},87816:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.BearerToken=void 0;const re=/^Bearer /i;q.BearerToken={toAuthorizationHeader:C=>{if(C==null){return undefined}return`Bearer ${C}`},fromAuthorizationHeader:C=>C.replace(re,"").trim()}},34782:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.BearerToken=q.BasicAuth=void 0;var ae=re(64250);Object.defineProperty(q,"BasicAuth",{enumerable:true,get:function(){return ae.BasicAuth}});var Ue=re(87816);Object.defineProperty(q,"BearerToken",{enumerable:true,get:function(){return Ue.BearerToken}})},65768:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.fetcher=q.fetcherImpl=void 0;const Ue=re(12909);const lt=re(41123);const Pt=re(46370);const Wt=re(37124);const Ar=re(64432);const Er=re(7186);function fetcherImpl(C){return ae(this,void 0,void 0,(function*(){const q={};if(C.body!==undefined&&C.contentType!=null){q["Content-Type"]=C.contentType}if(C.headers!=null){for(const[re,ae]of Object.entries(C.headers)){if(ae!=null){q[re]=ae}}}const re=(0,Ue.createRequestUrl)(C.url,C.queryParameters);let Ir=yield(0,Pt.getRequestBody)({body:C.body,type:C.requestType==="json"?"json":"other"});const Br=yield(0,lt.getFetchFn)();try{const Ue=yield(0,Er.requestWithRetries)((()=>ae(this,void 0,void 0,(function*(){return(0,Ar.makeRequest)(Br,re,C.method,q,Ir,C.timeoutMs,C.abortSignal,C.withCredentials,C.duplex)}))),C.maxRetries);let lt=yield(0,Wt.getResponseBody)(Ue,C.responseType);if(Ue.status>=200&&Ue.status<400){return{ok:true,body:lt,headers:Ue.headers}}else{return{ok:false,error:{reason:"status-code",statusCode:Ue.status,body:lt}}}}catch(q){if(C.abortSignal!=null&&C.abortSignal.aborted){return{ok:false,error:{reason:"unknown",errorMessage:"The user aborted a request"}}}else if(q instanceof Error&&q.name==="AbortError"){return{ok:false,error:{reason:"timeout"}}}else if(q instanceof Error){return{ok:false,error:{reason:"unknown",errorMessage:q.message}}}return{ok:false,error:{reason:"unknown",errorMessage:JSON.stringify(q)}}}}))}q.fetcherImpl=fetcherImpl;q.fetcher=fetcherImpl},29323:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.Supplier=void 0;q.Supplier={get:C=>re(void 0,void 0,void 0,(function*(){if(typeof C==="function"){return C()}else{return C}}))}},12909:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.createRequestUrl=void 0;const Ue=ae(re(40240));function createRequestUrl(C,q){return Object.keys(q!==null&&q!==void 0?q:{}).length>0?`${C}?${Ue.default.stringify(q,{arrayFormat:"repeat"})}`:C}q.createRequestUrl=createRequestUrl},41123:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getFetchFn=void 0;const Wt=re(66544);function getFetchFn(){return Pt(this,void 0,void 0,(function*(){if(Wt.RUNTIME.type==="node"&&Wt.RUNTIME.parsedVersion!=null&&Wt.RUNTIME.parsedVersion>=18){return fetch}if(Wt.RUNTIME.type==="node"){return(yield Promise.resolve().then((()=>lt(re(49086))))).default}if(typeof fetch=="function"){return fetch}return(yield Promise.resolve().then((()=>lt(re(49086))))).default}))}q.getFetchFn=getFetchFn},57230:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.getHeader=void 0;function getHeader(C,q){for(const[re,ae]of Object.entries(C)){if(re.toLowerCase()===q.toLowerCase()){return ae}}return undefined}q.getHeader=getHeader},46370:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getRequestBody=void 0;function getRequestBody({body:C,type:q}){return re(this,void 0,void 0,(function*(){if(q.includes("json")){return JSON.stringify(C)}else{return C}}))}q.getRequestBody=getRequestBody},37124:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getResponseBody=void 0;const Ue=re(73819);function getResponseBody(C,q){return ae(this,void 0,void 0,(function*(){if(C.body!=null&&q==="blob"){return yield C.blob()}else if(C.body!=null&&q==="sse"){return C.body}else if(C.body!=null&&q==="streaming"){return(0,Ue.chooseStreamWrapper)(C.body)}else if(C.body!=null&&q==="text"){return yield C.text()}else{const q=yield C.text();if(q.length>0){try{let C=JSON.parse(q);return C}catch(re){return{ok:false,error:{reason:"non-json",statusCode:C.status,rawBody:q}}}}else{return undefined}}}))}q.getResponseBody=getResponseBody},28175:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Supplier=q.getHeader=q.fetcher=void 0;var ae=re(65768);Object.defineProperty(q,"fetcher",{enumerable:true,get:function(){return ae.fetcher}});var Ue=re(57230);Object.defineProperty(q,"getHeader",{enumerable:true,get:function(){return Ue.getHeader}});var lt=re(29323);Object.defineProperty(q,"Supplier",{enumerable:true,get:function(){return lt.Supplier}})},64432:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.makeRequest=void 0;const Ue=re(24530);const makeRequest=(C,q,re,lt,Pt,Wt,Ar,Er,Ir)=>ae(void 0,void 0,void 0,(function*(){const ae=[];let Br=undefined;if(Wt!=null){const{signal:C,abortId:q}=(0,Ue.getTimeoutSignal)(Wt);Br=q;ae.push(C)}if(Ar!=null){ae.push(Ar)}let kr=(0,Ue.anySignal)(ae);const Pr=yield C(q,{method:re,headers:lt,body:Pt,signal:kr,credentials:Er?"include":undefined,duplex:Ir});if(Br!=null){clearTimeout(Br)}return Pr}));q.makeRequest=makeRequest},7186:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.requestWithRetries=void 0;const ae=1;const Ue=60;const lt=2;function requestWithRetries(C,q=lt){return re(this,void 0,void 0,(function*(){let re=yield C();for(let lt=0;lt=500){const q=Math.min(ae*Math.pow(2,lt),Ue);yield new Promise((C=>setTimeout(C,q)));re=yield C()}else{break}}return re}))}q.requestWithRetries=requestWithRetries},24530:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.anySignal=q.getTimeoutSignal=void 0;const re="timeout";function getTimeoutSignal(C){const q=new AbortController;const ae=setTimeout((()=>q.abort(re)),C);return{signal:q.signal,abortId:ae}}q.getTimeoutSignal=getTimeoutSignal;function anySignal(...C){const q=C.length===1&&Array.isArray(C[0])?C[0]:C;const re=new AbortController;for(const C of q){if(C.aborted){re.abort(C===null||C===void 0?void 0:C.reason);break}C.addEventListener("abort",(()=>re.abort(C===null||C===void 0?void 0:C.reason)),{signal:re.signal})}return re.signal}q.anySignal=anySignal},75810:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.Node18UniversalStreamWrapper=void 0;class Node18UniversalStreamWrapper{constructor(C){this.readableStream=C;this.reader=this.readableStream.getReader();this.events={data:[],end:[],error:[],readable:[],close:[],pause:[],resume:[]};this.paused=false;this.resumeCallback=null;this.encoding=null}on(C,q){var re;(re=this.events[C])===null||re===void 0?void 0:re.push(q)}off(C,q){var re;this.events[C]=(re=this.events[C])===null||re===void 0?void 0:re.filter((C=>C!==q))}pipe(C){this.on("data",(q=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._write(q)}else if(C instanceof WritableStream){const re=C.getWriter();re.write(q).then((()=>re.releaseLock()))}else{C.write(q)}}))));this.on("end",(()=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._end()}else if(C instanceof WritableStream){const q=C.getWriter();q.close()}else{C.end()}}))));this.on("error",(q=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._error(q)}else if(C instanceof WritableStream){const re=C.getWriter();re.abort(q)}else{C.destroy(q)}}))));this._startReading();return C}pipeTo(C){return this.pipe(C)}unpipe(C){this.off("data",(q=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._write(q)}else if(C instanceof WritableStream){const re=C.getWriter();re.write(q).then((()=>re.releaseLock()))}else{C.write(q)}}))));this.off("end",(()=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._end()}else if(C instanceof WritableStream){const q=C.getWriter();q.close()}else{C.end()}}))));this.off("error",(q=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._error(q)}else if(C instanceof WritableStream){const re=C.getWriter();re.abort(q)}else{C.destroy(q)}}))))}destroy(C){this.reader.cancel(C).then((()=>{this._emit("close")})).catch((C=>{this._emit("error",C)}))}pause(){this.paused=true;this._emit("pause")}resume(){if(this.paused){this.paused=false;this._emit("resume");if(this.resumeCallback){this.resumeCallback();this.resumeCallback=null}}}get isPaused(){return this.paused}read(){return re(this,void 0,void 0,(function*(){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){return undefined}return q}))}setEncoding(C){this.encoding=C}text(){return re(this,void 0,void 0,(function*(){const C=[];while(true){const{done:q,value:re}=yield this.reader.read();if(q){break}if(re){C.push(re)}}const q=new TextDecoder(this.encoding||"utf-8");return q.decode(yield new Blob(C).arrayBuffer())}))}json(){return re(this,void 0,void 0,(function*(){const C=yield this.text();return JSON.parse(C)}))}_write(C){this._emit("data",C)}_end(){this._emit("end")}_error(C){this._emit("error",C)}_emit(C,q){if(this.events[C]){for(const re of this.events[C]||[]){re(q)}}}_startReading(){return re(this,void 0,void 0,(function*(){try{this._emit("readable");while(true){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){this._emit("end");this._emit("close");break}if(q){this._emit("data",q)}}}catch(C){this._emit("error",C)}}))}[Symbol.asyncIterator](){return{next:()=>re(this,void 0,void 0,(function*(){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){return{done:true,value:undefined}}return{done:false,value:q}})),[Symbol.asyncIterator](){return this}}}}q.Node18UniversalStreamWrapper=Node18UniversalStreamWrapper},3480:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};var ae=this&&this.__asyncValues||function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q=C[Symbol.asyncIterator],re;return q?q.call(C):(C=typeof __values==="function"?__values(C):C[Symbol.iterator](),re={},verb("next"),verb("throw"),verb("return"),re[Symbol.asyncIterator]=function(){return this},re);function verb(q){re[q]=C[q]&&function(re){return new Promise((function(ae,Ue){re=C[q](re),settle(ae,Ue,re.done,re.value)}))}}function settle(C,q,re,ae){Promise.resolve(ae).then((function(q){C({value:q,done:re})}),q)}};Object.defineProperty(q,"__esModule",{value:true});q.NodePre18StreamWrapper=void 0;class NodePre18StreamWrapper{constructor(C){this.readableStream=C}on(C,q){this.readableStream.on(C,q)}off(C,q){this.readableStream.off(C,q)}pipe(C){this.readableStream.pipe(C);return C}pipeTo(C){return this.pipe(C)}unpipe(C){if(C){this.readableStream.unpipe(C)}else{this.readableStream.unpipe()}}destroy(C){this.readableStream.destroy(C)}pause(){this.readableStream.pause()}resume(){this.readableStream.resume()}get isPaused(){return this.readableStream.isPaused()}read(){return re(this,void 0,void 0,(function*(){return new Promise(((C,q)=>{const re=this.readableStream.read();if(re){C(re)}else{this.readableStream.once("readable",(()=>{const q=this.readableStream.read();C(q)}));this.readableStream.once("error",q)}}))}))}setEncoding(C){this.readableStream.setEncoding(C);this.encoding=C}text(){var C,q;return re(this,void 0,void 0,(function*(){const re=[];const Ue=new TextEncoder;this.readableStream.setEncoding(this.encoding||"utf-8");try{for(var lt=ae(this.readableStream),Pt;Pt=yield lt.next(),!Pt.done;){const C=Pt.value;re.push(Ue.encode(C))}}catch(q){C={error:q}}finally{try{if(Pt&&!Pt.done&&(q=lt.return))yield q.call(lt)}finally{if(C)throw C.error}}const Wt=new TextDecoder(this.encoding||"utf-8");return Wt.decode(Buffer.concat(re))}))}json(){return re(this,void 0,void 0,(function*(){const C=yield this.text();return JSON.parse(C)}))}[Symbol.asyncIterator](){const C=this.readableStream;const q=C[Symbol.asyncIterator]();return{next(){return re(this,void 0,void 0,(function*(){const{value:C,done:re}=yield q.next();return{value:C,done:re}}))},[Symbol.asyncIterator](){return this}}}}q.NodePre18StreamWrapper=NodePre18StreamWrapper},50176:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.UndiciStreamWrapper=void 0;class UndiciStreamWrapper{constructor(C){this.readableStream=C;this.reader=this.readableStream.getReader();this.events={data:[],end:[],error:[],readable:[],close:[],pause:[],resume:[]};this.paused=false;this.resumeCallback=null;this.encoding=null}on(C,q){var re;(re=this.events[C])===null||re===void 0?void 0:re.push(q)}off(C,q){var re;this.events[C]=(re=this.events[C])===null||re===void 0?void 0:re.filter((C=>C!==q))}pipe(C){this.on("data",(q=>{if(C instanceof UndiciStreamWrapper){C._write(q)}else{const re=C.getWriter();re.write(q).then((()=>re.releaseLock()))}}));this.on("end",(()=>{if(C instanceof UndiciStreamWrapper){C._end()}else{const q=C.getWriter();q.close()}}));this.on("error",(q=>{if(C instanceof UndiciStreamWrapper){C._error(q)}else{const re=C.getWriter();re.abort(q)}}));this._startReading();return C}pipeTo(C){return this.pipe(C)}unpipe(C){this.off("data",(q=>{if(C instanceof UndiciStreamWrapper){C._write(q)}else{const re=C.getWriter();re.write(q).then((()=>re.releaseLock()))}}));this.off("end",(()=>{if(C instanceof UndiciStreamWrapper){C._end()}else{const q=C.getWriter();q.close()}}));this.off("error",(q=>{if(C instanceof UndiciStreamWrapper){C._error(q)}else{const re=C.getWriter();re.abort(q)}}))}destroy(C){this.reader.cancel(C).then((()=>{this._emit("close")})).catch((C=>{this._emit("error",C)}))}pause(){this.paused=true;this._emit("pause")}resume(){if(this.paused){this.paused=false;this._emit("resume");if(this.resumeCallback){this.resumeCallback();this.resumeCallback=null}}}get isPaused(){return this.paused}read(){return re(this,void 0,void 0,(function*(){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){return undefined}return q}))}setEncoding(C){this.encoding=C}text(){return re(this,void 0,void 0,(function*(){const C=[];while(true){const{done:q,value:re}=yield this.reader.read();if(q){break}if(re){C.push(re)}}const q=new TextDecoder(this.encoding||"utf-8");return q.decode(yield new Blob(C).arrayBuffer())}))}json(){return re(this,void 0,void 0,(function*(){const C=yield this.text();return JSON.parse(C)}))}_write(C){this._emit("data",C)}_end(){this._emit("end")}_error(C){this._emit("error",C)}_emit(C,q){if(this.events[C]){for(const re of this.events[C]||[]){re(q)}}}_startReading(){return re(this,void 0,void 0,(function*(){try{this._emit("readable");while(true){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){this._emit("end");this._emit("close");break}if(q){this._emit("data",q)}}}catch(C){this._emit("error",C)}}))}[Symbol.asyncIterator](){return{next:()=>re(this,void 0,void 0,(function*(){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){return{done:true,value:undefined}}return{done:false,value:q}})),[Symbol.asyncIterator](){return this}}}}q.UndiciStreamWrapper=UndiciStreamWrapper},73819:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.chooseStreamWrapper=void 0;const Wt=re(66544);function chooseStreamWrapper(C){return Pt(this,void 0,void 0,(function*(){if(Wt.RUNTIME.type==="node"&&Wt.RUNTIME.parsedVersion!=null&&Wt.RUNTIME.parsedVersion>=18){return new((yield Promise.resolve().then((()=>lt(re(75810))))).Node18UniversalStreamWrapper)(C)}else if(Wt.RUNTIME.type!=="node"&&typeof fetch==="function"){return new((yield Promise.resolve().then((()=>lt(re(50176))))).UndiciStreamWrapper)(C)}else{return new((yield Promise.resolve().then((()=>lt(re(3480))))).NodePre18StreamWrapper)(C)}}))}q.chooseStreamWrapper=chooseStreamWrapper},70015:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};var Pt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.serialization=void 0;lt(re(28175),q);lt(re(34782),q);lt(re(66544),q);q.serialization=Pt(re(68716))},66544:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.RUNTIME=void 0;var ae=re(38496);Object.defineProperty(q,"RUNTIME",{enumerable:true,get:function(){return ae.RUNTIME}})},38496:(C,q)=>{var re,ae,Ue,lt,Pt;Object.defineProperty(q,"__esModule",{value:true});q.RUNTIME=void 0;const Wt=typeof window!=="undefined"&&typeof window.document!=="undefined";const Ar=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((re=self.constructor)===null||re===void 0?void 0:re.name)==="DedicatedWorkerGlobalScope"||((ae=self.constructor)===null||ae===void 0?void 0:ae.name)==="ServiceWorkerGlobalScope"||((Ue=self.constructor)===null||Ue===void 0?void 0:Ue.name)==="SharedWorkerGlobalScope");const Er=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const Ir=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Br=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((lt=process.versions)===null||lt===void 0?void 0:lt.node)&&!Er&&!Ir;const kr=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative";const Pr=typeof globalThis!=="undefined"&&((Pt=globalThis===null||globalThis===void 0?void 0:globalThis.navigator)===null||Pt===void 0?void 0:Pt.userAgent)==="Cloudflare-Workers";q.RUNTIME=evaluateRuntime();function evaluateRuntime(){if(Wt){return{type:"browser",version:window.navigator.userAgent}}if(Pr){return{type:"workerd"}}if(Ar){return{type:"web-worker"}}if(Er){return{type:"deno",version:Deno.version.deno}}if(Ir){return{type:"bun",version:Bun.version}}if(Br){return{type:"node",version:process.versions.node,parsedVersion:Number(process.versions.node.split(".")[0])}}if(kr){return{type:"react-native"}}return{type:"unknown"}}},87757:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.SchemaType=void 0;q.SchemaType={DATE:"date",ENUM:"enum",LIST:"list",STRING_LITERAL:"stringLiteral",BOOLEAN_LITERAL:"booleanLiteral",OBJECT:"object",ANY:"any",BOOLEAN:"boolean",NUMBER:"number",STRING:"string",UNKNOWN:"unknown",RECORD:"record",SET:"set",UNION:"union",UNDISCRIMINATED_UNION:"undiscriminatedUnion",OPTIONAL:"optional"}},12472:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.date=void 0;const ae=re(87757);const Ue=re(34849);const lt=re(98618);const Pt=re(93753);const Wt=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;function date(){const C={parse:(C,{breadcrumbsPrefix:q=[]}={})=>{if(typeof C!=="string"){return{ok:false,errors:[{path:q,message:(0,Ue.getErrorMessageForIncorrectType)(C,"string")}]}}if(!Wt.test(C)){return{ok:false,errors:[{path:q,message:(0,Ue.getErrorMessageForIncorrectType)(C,"ISO 8601 date string")}]}}return{ok:true,value:new Date(C)}},json:(C,{breadcrumbsPrefix:q=[]}={})=>{if(C instanceof Date){return{ok:true,value:C.toISOString()}}else{return{ok:false,errors:[{path:q,message:(0,Ue.getErrorMessageForIncorrectType)(C,"Date object")}]}}},getType:()=>ae.SchemaType.DATE};return Object.assign(Object.assign({},(0,lt.maybeSkipValidation)(C)),(0,Pt.getSchemaUtils)(C))}q.date=date},92118:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.date=void 0;var ae=re(12472);Object.defineProperty(q,"date",{enumerable:true,get:function(){return ae.date}})},21990:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.enum_=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);function enum_(C){const q=new Set(C);const re=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.ENUM,((C,{allowUnrecognizedEnumValues:re,breadcrumbsPrefix:ae=[]}={})=>{if(typeof C!=="string"){return{ok:false,errors:[{path:ae,message:(0,lt.getErrorMessageForIncorrectType)(C,"string")}]}}if(!q.has(C)&&!re){return{ok:false,errors:[{path:ae,message:(0,lt.getErrorMessageForIncorrectType)(C,"enum")}]}}return{ok:true,value:C}}));return re()}q.enum_=enum_},45563:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.enum_=void 0;var ae=re(21990);Object.defineProperty(q,"enum_",{enumerable:true,get:function(){return ae.enum_}})},2557:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(92118),q);Ue(re(45563),q);Ue(re(46028),q);Ue(re(79950),q);Ue(re(82758),q);Ue(re(23005),q);Ue(re(90463),q);Ue(re(11264),q);Ue(re(44567),q);Ue(re(93753),q);Ue(re(99914),q);Ue(re(26949),q);Ue(re(11397),q)},46028:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.lazyObject=q.lazy=void 0;var ae=re(83512);Object.defineProperty(q,"lazy",{enumerable:true,get:function(){return ae.lazy}});var Ue=re(60447);Object.defineProperty(q,"lazyObject",{enumerable:true,get:function(){return Ue.lazyObject}})},83512:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.getMemoizedSchema=q.constructLazyBaseSchema=q.lazy=void 0;const ae=re(93753);function lazy(C){const q=constructLazyBaseSchema(C);return Object.assign(Object.assign({},q),(0,ae.getSchemaUtils)(q))}q.lazy=lazy;function constructLazyBaseSchema(C){return{parse:(q,re)=>getMemoizedSchema(C).parse(q,re),json:(q,re)=>getMemoizedSchema(C).json(q,re),getType:()=>getMemoizedSchema(C).getType()}}q.constructLazyBaseSchema=constructLazyBaseSchema;function getMemoizedSchema(C){const q=C;if(q.__zurg_memoized==null){q.__zurg_memoized=C()}return q.__zurg_memoized}q.getMemoizedSchema=getMemoizedSchema},60447:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.lazyObject=void 0;const ae=re(23005);const Ue=re(90463);const lt=re(93753);const Pt=re(83512);function lazyObject(C){const q=Object.assign(Object.assign({},(0,Pt.constructLazyBaseSchema)(C)),{_getRawProperties:()=>(0,Pt.getMemoizedSchema)(C)._getRawProperties(),_getParsedProperties:()=>(0,Pt.getMemoizedSchema)(C)._getParsedProperties()});return Object.assign(Object.assign(Object.assign(Object.assign({},q),(0,lt.getSchemaUtils)(q)),(0,Ue.getObjectLikeUtils)(q)),(0,ae.getObjectUtils)(q))}q.lazyObject=lazyObject},79950:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.list=void 0;var ae=re(59932);Object.defineProperty(q,"list",{enumerable:true,get:function(){return ae.list}})},59932:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.list=void 0;const ae=re(87757);const Ue=re(34849);const lt=re(98618);const Pt=re(93753);function list(C){const q={parse:(q,re)=>validateAndTransformArray(q,((q,ae)=>{var Ue;return C.parse(q,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],`[${ae}]`]}))})),json:(q,re)=>validateAndTransformArray(q,((q,ae)=>{var Ue;return C.json(q,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],`[${ae}]`]}))})),getType:()=>ae.SchemaType.LIST};return Object.assign(Object.assign({},(0,lt.maybeSkipValidation)(q)),(0,Pt.getSchemaUtils)(q))}q.list=list;function validateAndTransformArray(C,q){if(!Array.isArray(C)){return{ok:false,errors:[{message:(0,Ue.getErrorMessageForIncorrectType)(C,"list"),path:[]}]}}const re=C.map(((C,re)=>q(C,re)));return re.reduce(((C,q)=>{if(C.ok&&q.ok){return{ok:true,value:[...C.value,q.value]}}const re=[];if(!C.ok){re.push(...C.errors)}if(!q.ok){re.push(...q.errors)}return{ok:false,errors:re}}),{ok:true,value:[]})}},51739:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.booleanLiteral=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);function booleanLiteral(C){const q=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.BOOLEAN_LITERAL,((q,{breadcrumbsPrefix:re=[]}={})=>{if(q===C){return{ok:true,value:C}}else{return{ok:false,errors:[{path:re,message:(0,lt.getErrorMessageForIncorrectType)(q,`${C.toString()}`)}]}}}));return q()}q.booleanLiteral=booleanLiteral},82758:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.booleanLiteral=q.stringLiteral=void 0;var ae=re(57170);Object.defineProperty(q,"stringLiteral",{enumerable:true,get:function(){return ae.stringLiteral}});var Ue=re(51739);Object.defineProperty(q,"booleanLiteral",{enumerable:true,get:function(){return Ue.booleanLiteral}})},57170:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.stringLiteral=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);function stringLiteral(C){const q=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.STRING_LITERAL,((q,{breadcrumbsPrefix:re=[]}={})=>{if(q===C){return{ok:true,value:C}}else{return{ok:false,errors:[{path:re,message:(0,lt.getErrorMessageForIncorrectType)(q,`"${C}"`)}]}}}));return q()}q.stringLiteral=stringLiteral},61810:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.withParsedProperties=q.getObjectLikeUtils=void 0;const ae=re(69057);const Ue=re(34849);const lt=re(82437);const Pt=re(93753);function getObjectLikeUtils(C){return{withParsedProperties:q=>withParsedProperties(C,q)}}q.getObjectLikeUtils=getObjectLikeUtils;function withParsedProperties(C,q){const re={parse:(re,ae)=>{const Ue=C.parse(re,ae);if(!Ue.ok){return Ue}const lt=Object.entries(q).reduce(((C,[q,re])=>Object.assign(Object.assign({},C),{[q]:typeof re==="function"?re(Ue.value):re})),{});return{ok:true,value:Object.assign(Object.assign({},Ue.value),lt)}},json:(re,Pt)=>{var Wt;if(!(0,lt.isPlainObject)(re)){return{ok:false,errors:[{path:(Wt=Pt===null||Pt===void 0?void 0:Pt.breadcrumbsPrefix)!==null&&Wt!==void 0?Wt:[],message:(0,Ue.getErrorMessageForIncorrectType)(re,"object")}]}}const Ar=new Set(Object.keys(q));const Er=(0,ae.filterObject)(re,Object.keys(re).filter((C=>!Ar.has(C))));return C.json(Er,Pt)},getType:()=>C.getType()};return Object.assign(Object.assign(Object.assign({},re),(0,Pt.getSchemaUtils)(re)),getObjectLikeUtils(re))}q.withParsedProperties=withParsedProperties},90463:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.withParsedProperties=q.getObjectLikeUtils=void 0;var ae=re(61810);Object.defineProperty(q,"getObjectLikeUtils",{enumerable:true,get:function(){return ae.getObjectLikeUtils}});Object.defineProperty(q,"withParsedProperties",{enumerable:true,get:function(){return ae.withParsedProperties}})},23005:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.property=q.isProperty=q.objectWithoutOptionalProperties=q.object=q.getObjectUtils=void 0;var ae=re(59502);Object.defineProperty(q,"getObjectUtils",{enumerable:true,get:function(){return ae.getObjectUtils}});Object.defineProperty(q,"object",{enumerable:true,get:function(){return ae.object}});var Ue=re(78845);Object.defineProperty(q,"objectWithoutOptionalProperties",{enumerable:true,get:function(){return Ue.objectWithoutOptionalProperties}});var lt=re(78064);Object.defineProperty(q,"isProperty",{enumerable:true,get:function(){return lt.isProperty}});Object.defineProperty(q,"property",{enumerable:true,get:function(){return lt.property}})},59502:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.getObjectUtils=q.object=void 0;const ae=re(87757);const Ue=re(68038);const lt=re(69057);const Pt=re(34849);const Wt=re(82437);const Ar=re(19516);const Er=re(98618);const Ir=re(73408);const Br=re(90463);const kr=re(93753);const Pr=re(78064);function object(C){const q={_getRawProperties:()=>Object.entries(C).map((([C,q])=>(0,Pr.isProperty)(q)?q.rawKey:C)),_getParsedProperties:()=>(0,Ar.keys)(C),parse:(q,re)=>{const ae={};const lt=[];for(const[q,re]of(0,Ue.entries)(C)){const C=(0,Pr.isProperty)(re)?re.rawKey:q;const Ue=(0,Pr.isProperty)(re)?re.valueSchema:re;const Pt={rawKey:C,parsedKey:q,valueSchema:Ue};ae[C]=Pt;if(isSchemaRequired(Ue)){lt.push(C)}}return validateAndTransformObject({value:q,requiredKeys:lt,getProperty:C=>{const q=ae[C];if(q==null){return undefined}return{transformedKey:q.parsedKey,transform:ae=>{var Ue;return q.valueSchema.parse(ae,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],C]}))}}},unrecognizedObjectKeys:re===null||re===void 0?void 0:re.unrecognizedObjectKeys,skipValidation:re===null||re===void 0?void 0:re.skipValidation,breadcrumbsPrefix:re===null||re===void 0?void 0:re.breadcrumbsPrefix,omitUndefined:re===null||re===void 0?void 0:re.omitUndefined})},json:(q,re)=>{const ae=[];for(const[q,re]of(0,Ue.entries)(C)){const C=(0,Pr.isProperty)(re)?re.valueSchema:re;if(isSchemaRequired(C)){ae.push(q)}}return validateAndTransformObject({value:q,requiredKeys:ae,getProperty:q=>{const ae=C[q];if(ae==null){return undefined}if((0,Pr.isProperty)(ae)){return{transformedKey:ae.rawKey,transform:C=>{var Ue;return ae.valueSchema.json(C,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],q]}))}}}else{return{transformedKey:q,transform:C=>{var Ue;return ae.json(C,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],q]}))}}}},unrecognizedObjectKeys:re===null||re===void 0?void 0:re.unrecognizedObjectKeys,skipValidation:re===null||re===void 0?void 0:re.skipValidation,breadcrumbsPrefix:re===null||re===void 0?void 0:re.breadcrumbsPrefix,omitUndefined:re===null||re===void 0?void 0:re.omitUndefined})},getType:()=>ae.SchemaType.OBJECT};return Object.assign(Object.assign(Object.assign(Object.assign({},(0,Er.maybeSkipValidation)(q)),(0,kr.getSchemaUtils)(q)),(0,Br.getObjectLikeUtils)(q)),getObjectUtils(q))}q.object=object;function validateAndTransformObject({value:C,requiredKeys:q,getProperty:re,unrecognizedObjectKeys:ae="fail",skipValidation:Ue=false,breadcrumbsPrefix:lt=[]}){if(!(0,Wt.isPlainObject)(C)){return{ok:false,errors:[{path:lt,message:(0,Pt.getErrorMessageForIncorrectType)(C,"object")}]}}const Ar=new Set(q);const Er=[];const Ir={};for(const[q,Ue]of Object.entries(C)){const C=re(q);if(C!=null){Ar.delete(q);const re=C.transform(Ue);if(re.ok){Ir[C.transformedKey]=re.value}else{Ir[q]=Ue;Er.push(...re.errors)}}else{switch(ae){case"fail":Er.push({path:[...lt,q],message:`Unexpected key "${q}"`});break;case"strip":break;case"passthrough":Ir[q]=Ue;break}}}Er.push(...q.filter((C=>Ar.has(C))).map((C=>({path:lt,message:`Missing required key "${C}"`}))));if(Er.length===0||Ue){return{ok:true,value:Ir}}else{return{ok:false,errors:Er}}}function getObjectUtils(C){return{extend:q=>{const re={_getParsedProperties:()=>[...C._getParsedProperties(),...q._getParsedProperties()],_getRawProperties:()=>[...C._getRawProperties(),...q._getRawProperties()],parse:(re,ae)=>validateAndTransformExtendedObject({extensionKeys:q._getRawProperties(),value:re,transformBase:q=>C.parse(q,ae),transformExtension:C=>q.parse(C,ae)}),json:(re,ae)=>validateAndTransformExtendedObject({extensionKeys:q._getParsedProperties(),value:re,transformBase:q=>C.json(q,ae),transformExtension:C=>q.json(C,ae)}),getType:()=>ae.SchemaType.OBJECT};return Object.assign(Object.assign(Object.assign(Object.assign({},re),(0,kr.getSchemaUtils)(re)),(0,Br.getObjectLikeUtils)(re)),getObjectUtils(re))}}}q.getObjectUtils=getObjectUtils;function validateAndTransformExtendedObject({extensionKeys:C,value:q,transformBase:re,transformExtension:ae}){const Ue=new Set(C);const[Pt,Wt]=(0,Ir.partition)((0,Ar.keys)(q),(C=>Ue.has(C)));const Er=re((0,lt.filterObject)(q,Wt));const Br=ae((0,lt.filterObject)(q,Pt));if(Er.ok&&Br.ok){return{ok:true,value:Object.assign(Object.assign({},Er.value),Br.value)}}else{return{ok:false,errors:[...Er.ok?[]:Er.errors,...Br.ok?[]:Br.errors]}}}function isSchemaRequired(C){return!isSchemaOptional(C)}function isSchemaOptional(C){switch(C.getType()){case ae.SchemaType.ANY:case ae.SchemaType.UNKNOWN:case ae.SchemaType.OPTIONAL:return true;default:return false}}},78845:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.objectWithoutOptionalProperties=void 0;const ae=re(59502);function objectWithoutOptionalProperties(C){return(0,ae.object)(C)}q.objectWithoutOptionalProperties=objectWithoutOptionalProperties},78064:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.isProperty=q.property=void 0;function property(C,q){return{rawKey:C,valueSchema:q,isProperty:true}}q.property=property;function isProperty(C){return C.isProperty}q.isProperty=isProperty},36206:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.any=void 0;const ae=re(87757);const Ue=re(76697);q.any=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.ANY,(C=>({ok:true,value:C})))},29564:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.boolean=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);q.boolean=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.BOOLEAN,((C,{breadcrumbsPrefix:q=[]}={})=>{if(typeof C==="boolean"){return{ok:true,value:C}}else{return{ok:false,errors:[{path:q,message:(0,lt.getErrorMessageForIncorrectType)(C,"boolean")}]}}}))},11264:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.unknown=q.string=q.number=q.boolean=q.any=void 0;var ae=re(36206);Object.defineProperty(q,"any",{enumerable:true,get:function(){return ae.any}});var Ue=re(29564);Object.defineProperty(q,"boolean",{enumerable:true,get:function(){return Ue.boolean}});var lt=re(5663);Object.defineProperty(q,"number",{enumerable:true,get:function(){return lt.number}});var Pt=re(6863);Object.defineProperty(q,"string",{enumerable:true,get:function(){return Pt.string}});var Wt=re(5226);Object.defineProperty(q,"unknown",{enumerable:true,get:function(){return Wt.unknown}})},5663:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.number=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);q.number=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.NUMBER,((C,{breadcrumbsPrefix:q=[]}={})=>{if(typeof C==="number"){return{ok:true,value:C}}else{return{ok:false,errors:[{path:q,message:(0,lt.getErrorMessageForIncorrectType)(C,"number")}]}}}))},6863:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.string=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);q.string=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.STRING,((C,{breadcrumbsPrefix:q=[]}={})=>{if(typeof C==="string"){return{ok:true,value:C}}else{return{ok:false,errors:[{path:q,message:(0,lt.getErrorMessageForIncorrectType)(C,"string")}]}}}))},5226:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.unknown=void 0;const ae=re(87757);const Ue=re(76697);q.unknown=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.UNKNOWN,(C=>({ok:true,value:C})))},44567:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.record=void 0;var ae=re(26282);Object.defineProperty(q,"record",{enumerable:true,get:function(){return ae.record}})},26282:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.record=void 0;const ae=re(87757);const Ue=re(68038);const lt=re(34849);const Pt=re(82437);const Wt=re(98618);const Ar=re(93753);function record(C,q){const re={parse:(re,Ue)=>validateAndTransformRecord({value:re,isKeyNumeric:C.getType()===ae.SchemaType.NUMBER,transformKey:q=>{var re;return C.parse(q,Object.assign(Object.assign({},Ue),{breadcrumbsPrefix:[...(re=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&re!==void 0?re:[],`${q} (key)`]}))},transformValue:(C,re)=>{var ae;return q.parse(C,Object.assign(Object.assign({},Ue),{breadcrumbsPrefix:[...(ae=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&ae!==void 0?ae:[],`${re}`]}))},breadcrumbsPrefix:Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix}),json:(re,Ue)=>validateAndTransformRecord({value:re,isKeyNumeric:C.getType()===ae.SchemaType.NUMBER,transformKey:q=>{var re;return C.json(q,Object.assign(Object.assign({},Ue),{breadcrumbsPrefix:[...(re=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&re!==void 0?re:[],`${q} (key)`]}))},transformValue:(C,re)=>{var ae;return q.json(C,Object.assign(Object.assign({},Ue),{breadcrumbsPrefix:[...(ae=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&ae!==void 0?ae:[],`${re}`]}))},breadcrumbsPrefix:Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix}),getType:()=>ae.SchemaType.RECORD};return Object.assign(Object.assign({},(0,Wt.maybeSkipValidation)(re)),(0,Ar.getSchemaUtils)(re))}q.record=record;function validateAndTransformRecord({value:C,isKeyNumeric:q,transformKey:re,transformValue:ae,breadcrumbsPrefix:Wt=[]}){if(!(0,Pt.isPlainObject)(C)){return{ok:false,errors:[{path:Wt,message:(0,lt.getErrorMessageForIncorrectType)(C,"object")}]}}return(0,Ue.entries)(C).reduce(((C,[Ue,lt])=>{if(lt==null){return C}const Pt=C;let Wt=Ue;if(q){const C=Ue.length>0?Number(Ue):NaN;if(!isNaN(C)){Wt=C}}const Ar=re(Wt);const Er=ae(lt,Wt);if(Pt.ok&&Ar.ok&&Er.ok){return{ok:true,value:Object.assign(Object.assign({},Pt.value),{[Ar.value]:Er.value})}}const Ir=[];if(!Pt.ok){Ir.push(...Pt.errors)}if(!Ar.ok){Ir.push(...Ar.errors)}if(!Er.ok){Ir.push(...Er.errors)}return{ok:false,errors:Ir}}),{ok:true,value:{}})}},53981:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.JsonError=void 0;const ae=re(50768);class JsonError extends Error{constructor(C){super(C.map(ae.stringifyValidationError).join("; "));this.errors=C;Object.setPrototypeOf(this,JsonError.prototype)}}q.JsonError=JsonError},11946:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ParseError=void 0;const ae=re(50768);class ParseError extends Error{constructor(C){super(C.map(ae.stringifyValidationError).join("; "));this.errors=C;Object.setPrototypeOf(this,ParseError.prototype)}}q.ParseError=ParseError},30397:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.transform=q.optional=q.getSchemaUtils=void 0;const ae=re(87757);const Ue=re(53981);const lt=re(11946);function getSchemaUtils(C){return{optional:()=>optional(C),transform:q=>transform(C,q),parseOrThrow:(q,re)=>{const ae=C.parse(q,re);if(ae.ok){return ae.value}throw new lt.ParseError(ae.errors)},jsonOrThrow:(q,re)=>{const ae=C.json(q,re);if(ae.ok){return ae.value}throw new Ue.JsonError(ae.errors)}}}q.getSchemaUtils=getSchemaUtils;function optional(C){const q={parse:(q,re)=>{if(q==null){return{ok:true,value:undefined}}return C.parse(q,re)},json:(q,re)=>{if((re===null||re===void 0?void 0:re.omitUndefined)&&q===undefined){return{ok:true,value:undefined}}if(q==null){return{ok:true,value:null}}return C.json(q,re)},getType:()=>ae.SchemaType.OPTIONAL};return Object.assign(Object.assign({},q),getSchemaUtils(q))}q.optional=optional;function transform(C,q){const re={parse:(re,ae)=>{const Ue=C.parse(re,ae);if(!Ue.ok){return Ue}return{ok:true,value:q.transform(Ue.value)}},json:(re,ae)=>{const Ue=q.untransform(re);return C.json(Ue,ae)},getType:()=>C.getType()};return Object.assign(Object.assign({},re),getSchemaUtils(re))}q.transform=transform},93753:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ParseError=q.JsonError=q.transform=q.optional=q.getSchemaUtils=void 0;var ae=re(30397);Object.defineProperty(q,"getSchemaUtils",{enumerable:true,get:function(){return ae.getSchemaUtils}});Object.defineProperty(q,"optional",{enumerable:true,get:function(){return ae.optional}});Object.defineProperty(q,"transform",{enumerable:true,get:function(){return ae.transform}});var Ue=re(53981);Object.defineProperty(q,"JsonError",{enumerable:true,get:function(){return Ue.JsonError}});var lt=re(11946);Object.defineProperty(q,"ParseError",{enumerable:true,get:function(){return lt.ParseError}})},50768:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.stringifyValidationError=void 0;function stringifyValidationError(C){if(C.path.length===0){return C.message}return`${C.path.join(" -> ")}: ${C.message}`}q.stringifyValidationError=stringifyValidationError},99914:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.set=void 0;var ae=re(14426);Object.defineProperty(q,"set",{enumerable:true,get:function(){return ae.set}})},14426:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.set=void 0;const ae=re(87757);const Ue=re(34849);const lt=re(98618);const Pt=re(79950);const Wt=re(93753);function set(C){const q=(0,Pt.list)(C);const re={parse:(C,re)=>{const ae=q.parse(C,re);if(ae.ok){return{ok:true,value:new Set(ae.value)}}else{return ae}},json:(C,re)=>{var ae;if(!(C instanceof Set)){return{ok:false,errors:[{path:(ae=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&ae!==void 0?ae:[],message:(0,Ue.getErrorMessageForIncorrectType)(C,"Set")}]}}const lt=q.json([...C],re);return lt},getType:()=>ae.SchemaType.SET};return Object.assign(Object.assign({},(0,lt.maybeSkipValidation)(re)),(0,Wt.getSchemaUtils)(re))}q.set=set},26949:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.undiscriminatedUnion=void 0;var ae=re(13153);Object.defineProperty(q,"undiscriminatedUnion",{enumerable:true,get:function(){return ae.undiscriminatedUnion}})},13153:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.undiscriminatedUnion=void 0;const ae=re(87757);const Ue=re(98618);const lt=re(93753);function undiscriminatedUnion(C){const q={parse:(q,re)=>validateAndTransformUndiscriminatedUnion(((C,re)=>C.parse(q,re)),C,re),json:(q,re)=>validateAndTransformUndiscriminatedUnion(((C,re)=>C.json(q,re)),C,re),getType:()=>ae.SchemaType.UNDISCRIMINATED_UNION};return Object.assign(Object.assign({},(0,Ue.maybeSkipValidation)(q)),(0,lt.getSchemaUtils)(q))}q.undiscriminatedUnion=undiscriminatedUnion;function validateAndTransformUndiscriminatedUnion(C,q,re){const ae=[];for(const[Ue,lt]of q.entries()){const q=C(lt,Object.assign(Object.assign({},re),{skipValidation:false}));if(q.ok){return q}else{for(const C of q.errors){ae.push({path:C.path,message:`[Variant ${Ue}] ${C.message}`})}}}return{ok:false,errors:ae}}},57240:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.discriminant=void 0;function discriminant(C,q){return{parsedDiscriminant:C,rawDiscriminant:q}}q.discriminant=discriminant},11397:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.union=q.discriminant=void 0;var ae=re(57240);Object.defineProperty(q,"discriminant",{enumerable:true,get:function(){return ae.discriminant}});var Ue=re(28558);Object.defineProperty(q,"union",{enumerable:true,get:function(){return Ue.union}})},28558:function(C,q,re){var ae=this&&this.__rest||function(C,q){var re={};for(var ae in C)if(Object.prototype.hasOwnProperty.call(C,ae)&&q.indexOf(ae)<0)re[ae]=C[ae];if(C!=null&&typeof Object.getOwnPropertySymbols==="function")for(var Ue=0,ae=Object.getOwnPropertySymbols(C);UetransformAndValidateUnion({value:C,discriminant:re,transformedDiscriminant:ae,transformDiscriminantValue:C=>{var q;return lt.parse(C,{allowUnrecognizedEnumValues:Ue===null||Ue===void 0?void 0:Ue.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...(q=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&q!==void 0?q:[],re]})},getAdditionalPropertiesSchema:C=>q[C],allowUnrecognizedUnionMembers:Ue===null||Ue===void 0?void 0:Ue.allowUnrecognizedUnionMembers,transformAdditionalProperties:(C,q)=>q.parse(C,Ue),breadcrumbsPrefix:Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix}),json:(C,Ue)=>transformAndValidateUnion({value:C,discriminant:ae,transformedDiscriminant:re,transformDiscriminantValue:C=>{var q;return lt.json(C,{allowUnrecognizedEnumValues:Ue===null||Ue===void 0?void 0:Ue.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...(q=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&q!==void 0?q:[],ae]})},getAdditionalPropertiesSchema:C=>q[C],allowUnrecognizedUnionMembers:Ue===null||Ue===void 0?void 0:Ue.allowUnrecognizedUnionMembers,transformAdditionalProperties:(C,q)=>q.json(C,Ue),breadcrumbsPrefix:Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix}),getType:()=>Ue.SchemaType.UNION};return Object.assign(Object.assign(Object.assign({},(0,Ar.maybeSkipValidation)(Pt)),(0,Br.getSchemaUtils)(Pt)),(0,Ir.getObjectLikeUtils)(Pt))}q.union=union;function transformAndValidateUnion({value:C,discriminant:q,transformedDiscriminant:re,transformDiscriminantValue:Ue,getAdditionalPropertiesSchema:Wt,allowUnrecognizedUnionMembers:Ar=false,transformAdditionalProperties:Er,breadcrumbsPrefix:Ir=[]}){if(!(0,Pt.isPlainObject)(C)){return{ok:false,errors:[{path:Ir,message:(0,lt.getErrorMessageForIncorrectType)(C,"object")}]}}const Br=C,kr=q,Pr=Br[kr],Qr=ae(Br,[typeof kr==="symbol"?kr:kr+""]);if(Pr==null){return{ok:false,errors:[{path:Ir,message:`Missing discriminant ("${q}")`}]}}const Fr=Ue(Pr);if(!Fr.ok){return{ok:false,errors:Fr.errors}}const Dr=Wt(Fr.value);if(Dr==null){if(Ar){return{ok:true,value:Object.assign({[re]:Fr.value},Qr)}}else{return{ok:false,errors:[{path:[...Ir,q],message:"Unexpected discriminant value"}]}}}const xr=Er(Qr,Dr);if(!xr.ok){return xr}return{ok:true,value:Object.assign({[re]:Pr},xr.value)}}},68716:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(2557),q)},76697:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.createIdentitySchemaCreator=void 0;const ae=re(93753);const Ue=re(98618);function createIdentitySchemaCreator(C,q){return()=>{const re={parse:q,json:q,getType:()=>C};return Object.assign(Object.assign({},(0,Ue.maybeSkipValidation)(re)),(0,ae.getSchemaUtils)(re))}}q.createIdentitySchemaCreator=createIdentitySchemaCreator},68038:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.entries=void 0;function entries(C){return Object.entries(C)}q.entries=entries},69057:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.filterObject=void 0;function filterObject(C,q){const re=new Set(q);return Object.entries(C).reduce(((C,[q,ae])=>{if(re.has(q)){C[q]=ae}return C}),{})}q.filterObject=filterObject},34849:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.getErrorMessageForIncorrectType=void 0;function getErrorMessageForIncorrectType(C,q){return`Expected ${q}. Received ${getTypeAsString(C)}.`}q.getErrorMessageForIncorrectType=getErrorMessageForIncorrectType;function getTypeAsString(C){if(Array.isArray(C)){return"list"}if(C===null){return"null"}switch(typeof C){case"string":return`"${C}"`;case"number":case"boolean":case"undefined":return`${C}`}return typeof C}},82437:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.isPlainObject=void 0;function isPlainObject(C){if(typeof C!=="object"||C===null){return false}if(Object.getPrototypeOf(C)===null){return true}let q=C;while(Object.getPrototypeOf(q)!==null){q=Object.getPrototypeOf(q)}return Object.getPrototypeOf(C)===q}q.isPlainObject=isPlainObject},19516:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.keys=void 0;function keys(C){return Object.keys(C)}q.keys=keys},98618:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.maybeSkipValidation=void 0;function maybeSkipValidation(C){return Object.assign(Object.assign({},C),{json:transformAndMaybeSkipValidation(C.json),parse:transformAndMaybeSkipValidation(C.parse)})}q.maybeSkipValidation=maybeSkipValidation;function transformAndMaybeSkipValidation(C){return(q,re)=>{const ae=C(q,re);const{skipValidation:Ue=false}=re!==null&&re!==void 0?re:{};if(!ae.ok&&Ue){console.warn(["Failed to validate.",...ae.errors.map((C=>"  - "+(C.path.length>0?`${C.path.join(".")}: ${C.message}`:C.message)))].join("\n"));return{ok:true,value:q}}else{return ae}}}},73408:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.partition=void 0;function partition(C,q){const re=[],ae=[];for(const Ue of C){if(q(Ue)){re.push(Ue)}else{ae.push(Ue)}}return[re,ae]}q.partition=partition},67149:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.VoyageAIEnvironment=void 0;q.VoyageAIEnvironment={Default:"https://api.voyageai.com/v1"}},57544:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.VoyageAIError=void 0;class VoyageAIError extends Error{constructor({message:C,statusCode:q,body:re}){super(buildMessage({message:C,statusCode:q,body:re}));Object.setPrototypeOf(this,VoyageAIError.prototype);if(q!=null){this.statusCode=q}if(re!==undefined){this.body=re}}}q.VoyageAIError=VoyageAIError;function buildMessage({message:C,statusCode:q,body:re}){let ae=[];if(C!=null){ae.push(C)}if(q!=null){ae.push(`Status code: ${q.toString()}`)}if(re!=null){ae.push(`Body: ${JSON.stringify(re,undefined,2)}`)}return ae.join("\n")}},30647:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.VoyageAITimeoutError=void 0;class VoyageAITimeoutError extends Error{constructor(){super("Timeout");Object.setPrototypeOf(this,VoyageAITimeoutError.prototype)}}q.VoyageAITimeoutError=VoyageAITimeoutError},49727:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.VoyageAITimeoutError=q.VoyageAIError=void 0;var ae=re(57544);Object.defineProperty(q,"VoyageAIError",{enumerable:true,get:function(){return ae.VoyageAIError}});var Ue=re(30647);Object.defineProperty(q,"VoyageAITimeoutError",{enumerable:true,get:function(){return Ue.VoyageAITimeoutError}})},2975:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.VoyageAITimeoutError=q.VoyageAIError=q.VoyageAIEnvironment=q.VoyageAIClient=q.VoyageAI=void 0;q.VoyageAI=lt(re(52983));var Pt=re(68296);Object.defineProperty(q,"VoyageAIClient",{enumerable:true,get:function(){return Pt.VoyageAIClient}});var Wt=re(67149);Object.defineProperty(q,"VoyageAIEnvironment",{enumerable:true,get:function(){return Wt.VoyageAIEnvironment}});var Ar=re(49727);Object.defineProperty(q,"VoyageAIError",{enumerable:true,get:function(){return Ar.VoyageAIError}});Object.defineProperty(q,"VoyageAITimeoutError",{enumerable:true,get:function(){return Ar.VoyageAITimeoutError}})},69002:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(22741),q)},32483:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedRequest=void 0;const Pt=lt(re(70015));const Wt=re(7836);const Ar=re(33572);q.EmbedRequest=Pt.serialization.object({input:Wt.EmbedRequestInput,model:Pt.serialization.string(),inputType:Pt.serialization.property("input_type",Ar.EmbedRequestInputType.optional()),truncation:Pt.serialization.boolean().optional(),encodingFormat:Pt.serialization.property("encoding_format",Pt.serialization.stringLiteral("base64").optional())})},40113:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.RerankRequest=void 0;const Pt=lt(re(70015));q.RerankRequest=Pt.serialization.object({query:Pt.serialization.string(),documents:Pt.serialization.list(Pt.serialization.string()),model:Pt.serialization.string(),topK:Pt.serialization.property("top_k",Pt.serialization.number().optional()),returnDocuments:Pt.serialization.property("return_documents",Pt.serialization.boolean().optional()),truncation:Pt.serialization.boolean().optional()})},22741:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.RerankRequest=q.EmbedRequest=void 0;var ae=re(32483);Object.defineProperty(q,"EmbedRequest",{enumerable:true,get:function(){return ae.EmbedRequest}});var Ue=re(40113);Object.defineProperty(q,"RerankRequest",{enumerable:true,get:function(){return Ue.RerankRequest}})},19528:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(23382),q);Ue(re(69002),q)},7836:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedRequestInput=void 0;const Pt=lt(re(70015));q.EmbedRequestInput=Pt.serialization.undiscriminatedUnion([Pt.serialization.string(),Pt.serialization.list(Pt.serialization.string())])},33572:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedRequestInputType=void 0;const Pt=lt(re(70015));q.EmbedRequestInputType=Pt.serialization.enum_(["query","document"])},70716:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedResponse=void 0;const Pt=lt(re(70015));const Wt=re(29239);const Ar=re(72697);q.EmbedResponse=Pt.serialization.object({object:Pt.serialization.string().optional(),data:Pt.serialization.list(Wt.EmbedResponseDataItem).optional(),model:Pt.serialization.string().optional(),usage:Ar.EmbedResponseUsage.optional()})},29239:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedResponseDataItem=void 0;const Pt=lt(re(70015));q.EmbedResponseDataItem=Pt.serialization.object({object:Pt.serialization.string().optional(),embedding:Pt.serialization.list(Pt.serialization.number()).optional(),index:Pt.serialization.number().optional()})},72697:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedResponseUsage=void 0;const Pt=lt(re(70015));q.EmbedResponseUsage=Pt.serialization.object({totalTokens:Pt.serialization.property("total_tokens",Pt.serialization.number().optional())})},20412:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.RerankResponse=void 0;const Pt=lt(re(70015));const Wt=re(98583);const Ar=re(82841);q.RerankResponse=Pt.serialization.object({object:Pt.serialization.string().optional(),data:Pt.serialization.list(Wt.RerankResponseDataItem).optional(),model:Pt.serialization.string().optional(),usage:Ar.RerankResponseUsage.optional()})},98583:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.RerankResponseDataItem=void 0;const Pt=lt(re(70015));q.RerankResponseDataItem=Pt.serialization.object({index:Pt.serialization.number().optional(),relevanceScore:Pt.serialization.property("relevance_score",Pt.serialization.number().optional()),document:Pt.serialization.string().optional()})},82841:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.RerankResponseUsage=void 0;const Pt=lt(re(70015));q.RerankResponseUsage=Pt.serialization.object({totalTokens:Pt.serialization.property("total_tokens",Pt.serialization.number().optional())})},23382:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(7836),q);Ue(re(33572),q);Ue(re(29239),q);Ue(re(72697),q);Ue(re(70716),q);Ue(re(98583),q);Ue(re(82841),q);Ue(re(20412),q)},37125:C=>{var q={};C.exports=q;function sign(C){return C<0?-1:1}function evenRound(C){if(C%1===.5&&(C&1)===0){return Math.floor(C)}else{return Math.round(C)}}function createNumberConversion(C,q){if(!q.unsigned){--C}const re=q.unsigned?0:-Math.pow(2,C);const ae=Math.pow(2,C)-1;const Ue=q.moduloBitLength?Math.pow(2,q.moduloBitLength):Math.pow(2,C);const lt=q.moduloBitLength?Math.pow(2,q.moduloBitLength-1):Math.pow(2,C-1);return function(C,Pt){if(!Pt)Pt={};let Wt=+C;if(Pt.enforceRange){if(!Number.isFinite(Wt)){throw new TypeError("Argument is not a finite number")}Wt=sign(Wt)*Math.floor(Math.abs(Wt));if(Wtae){throw new TypeError("Argument is not in byte range")}return Wt}if(!isNaN(Wt)&&Pt.clamp){Wt=evenRound(Wt);if(Wtae)Wt=ae;return Wt}if(!Number.isFinite(Wt)||Wt===0){return 0}Wt=sign(Wt)*Math.floor(Math.abs(Wt));Wt=Wt%Ue;if(!q.unsigned&&Wt>=lt){return Wt-Ue}else if(q.unsigned){if(Wt<0){Wt+=Ue}else if(Wt===-0){return 0}}return Wt}}q["void"]=function(){return undefined};q["boolean"]=function(C){return!!C};q["byte"]=createNumberConversion(8,{unsigned:false});q["octet"]=createNumberConversion(8,{unsigned:true});q["short"]=createNumberConversion(16,{unsigned:false});q["unsigned short"]=createNumberConversion(16,{unsigned:true});q["long"]=createNumberConversion(32,{unsigned:false});q["unsigned long"]=createNumberConversion(32,{unsigned:true});q["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});q["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});q["double"]=function(C){const q=+C;if(!Number.isFinite(q)){throw new TypeError("Argument is not a finite floating-point value")}return q};q["unrestricted double"]=function(C){const q=+C;if(isNaN(q)){throw new TypeError("Argument is NaN")}return q};q["float"]=q["double"];q["unrestricted float"]=q["unrestricted double"];q["DOMString"]=function(C,q){if(!q)q={};if(q.treatNullAsEmptyString&&C===null){return""}return String(C)};q["ByteString"]=function(C,q){const re=String(C);let ae=undefined;for(let C=0;(ae=re.codePointAt(C))!==undefined;++C){if(ae>255){throw new TypeError("Argument is not a valid bytestring")}}return re};q["USVString"]=function(C){const q=String(C);const re=q.length;const ae=[];for(let C=0;C57343){ae.push(String.fromCodePoint(Ue))}else if(56320<=Ue&&Ue<=57343){ae.push(String.fromCodePoint(65533))}else{if(C===re-1){ae.push(String.fromCodePoint(65533))}else{const re=q.charCodeAt(C+1);if(56320<=re&&re<=57343){const q=Ue&1023;const lt=re&1023;ae.push(String.fromCodePoint((2<<15)+(2<<9)*q+lt));++C}else{ae.push(String.fromCodePoint(65533))}}}}return ae.join("")};q["Date"]=function(C,q){if(!(C instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(C)){return undefined}return C};q["RegExp"]=function(C,q){if(!(C instanceof RegExp)){C=new RegExp(C)}return C}},29751:(C,q,re)=>{C.exports=re(65064)},80893:C=>{var q={disableWarnings:false,deprecationWarningMap:{},warn:function(C){if(!this.disableWarnings&&this.deprecationWarningMap[C]){console.warn("DEPRECATION WARNING: "+this.deprecationWarningMap[C]);this.deprecationWarningMap[C]=false}}};C.exports=q},85601:(C,q,re)=>{var ae=re(57643);var Ue=re(4618);var lt=re(73546);const Pt=0;const Wt=1;const Ar=2;const Er=3;C.exports=W3CWebSocket;function W3CWebSocket(C,q,re,Ue,Wt,Ar){lt.EventTarget.call(this);Ar=Ar||{};Ar.assembleFragments=true;var Er=this;this._url=C;this._readyState=Pt;this._protocol=undefined;this._extensions="";this._bufferedAmount=0;this._binaryType="arraybuffer";this._connection=undefined;this._client=new ae(Ar);this._client.on("connect",(function(C){onConnect.call(Er,C)}));this._client.on("connectFailed",(function(){onConnectFailed.call(Er)}));this._client.connect(C,q,re,Ue,Wt)}Object.defineProperties(W3CWebSocket.prototype,{url:{get:function(){return this._url}},readyState:{get:function(){return this._readyState}},protocol:{get:function(){return this._protocol}},extensions:{get:function(){return this._extensions}},bufferedAmount:{get:function(){return this._bufferedAmount}}});Object.defineProperties(W3CWebSocket.prototype,{binaryType:{get:function(){return this._binaryType},set:function(C){if(C!=="arraybuffer"){throw new SyntaxError('just "arraybuffer" type allowed for "binaryType" attribute')}this._binaryType=C}}});[["CONNECTING",Pt],["OPEN",Wt],["CLOSING",Ar],["CLOSED",Er]].forEach((function(C){Object.defineProperty(W3CWebSocket.prototype,C[0],{get:function(){return C[1]}})}));[["CONNECTING",Pt],["OPEN",Wt],["CLOSING",Ar],["CLOSED",Er]].forEach((function(C){Object.defineProperty(W3CWebSocket,C[0],{get:function(){return C[1]}})}));W3CWebSocket.prototype.send=function(C){if(this._readyState!==Wt){throw new Error("cannot call send() while not connected")}if(typeof C==="string"||C instanceof String){this._connection.sendUTF(C)}else{if(C instanceof Buffer){this._connection.sendBytes(C)}else if(C.byteLength||C.byteLength===0){C=Ue(C);this._connection.sendBytes(C)}else{throw new Error("unknown binary data:",C)}}};W3CWebSocket.prototype.close=function(C,q){switch(this._readyState){case Pt:onConnectFailed.call(this);this._client.on("connect",(function(re){if(C){re.close(C,q)}else{re.close()}}));break;case Wt:this._readyState=Ar;if(C){this._connection.close(C,q)}else{this._connection.close()}break;case Ar:case Er:break}};function createCloseEvent(C,q){var re=new lt.Event("close");re.code=C;re.reason=q;re.wasClean=typeof C==="undefined"||C===1e3;return re}function createMessageEvent(C){var q=new lt.Event("message");q.data=C;return q}function onConnect(C){var q=this;this._readyState=Wt;this._connection=C;this._protocol=C.protocol;this._extensions=C.extensions;this._connection.on("close",(function(C,re){onClose.call(q,C,re)}));this._connection.on("message",(function(C){onMessage.call(q,C)}));this.dispatchEvent(new lt.Event("open"))}function onConnectFailed(){destroy.call(this);this._readyState=Er;try{this.dispatchEvent(new lt.Event("error"))}finally{this.dispatchEvent(createCloseEvent(1006,"connection failed"))}}function onClose(C,q){destroy.call(this);this._readyState=Er;this.dispatchEvent(createCloseEvent(C,q||""))}function onMessage(C){if(C.utf8Data){this.dispatchEvent(createMessageEvent(C.utf8Data))}else if(C.binaryData){if(this.binaryType==="arraybuffer"){var q=C.binaryData;var re=new ArrayBuffer(q.length);var ae=new Uint8Array(re);for(var Ue=0,lt=q.length;Ue{var ae=re(4402);var Ue=ae.extend;var lt=re(39023);var Pt=re(24434).EventEmitter;var Wt=re(58611);var Ar=re(65692);var Er=re(87016);var Ir=re(76982);var Br=re(86304);var kr=ae.bufferAllocUnsafe;var Pr=["(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"," ",String.fromCharCode(9)];var Qr=["hostname","port","method","path","headers"];function WebSocketClient(C){Pt.call(this);this.config={maxReceivedFrameSize:1048576,maxReceivedMessageSize:8388608,fragmentOutgoingMessages:true,fragmentationThreshold:16384,webSocketVersion:13,assembleFragments:true,disableNagleAlgorithm:true,closeTimeout:5e3,tlsOptions:{}};if(C){var q;if(C.tlsOptions){q=C.tlsOptions;delete C.tlsOptions}else{q={}}Ue(this.config,C);Ue(this.config.tlsOptions,q)}this._req=null;switch(this.config.webSocketVersion){case 8:case 13:break;default:throw new Error("Requested webSocketVersion is not supported. Allowed values are 8 and 13.")}}lt.inherits(WebSocketClient,Pt);WebSocketClient.prototype.connect=function(C,q,re,lt,Pt){var Ir=this;if(typeof q==="string"){if(q.length>0){q=[q]}else{q=[]}}if(!(q instanceof Array)){q=[]}this.protocols=q;this.origin=re;if(typeof C==="string"){this.url=Er.parse(C)}else{this.url=C}if(!this.url.protocol){throw new Error("You must specify a full WebSocket URL, including protocol.")}if(!this.url.host){throw new Error("You must specify a full WebSocket URL, including hostname. Relative URLs are not supported.")}this.secure=this.url.protocol==="wss:";this.protocols.forEach((function(C){for(var q=0;q126||Pr.indexOf(ae)!==-1){throw new Error('Protocol list contains invalid character "'+String.fromCharCode(re)+'"')}}}));var Br={"ws:":"80","wss:":"443"};if(!this.url.port){this.url.port=Br[this.url.protocol]}var Fr=kr(16);for(var Dr=0;Dr<16;Dr++){Fr[Dr]=Math.round(Math.random()*255)}this.base64nonce=Fr.toString("base64");var xr=this.url.hostname;if(this.url.protocol==="ws:"&&this.url.port!=="80"||this.url.protocol==="wss:"&&this.url.port!=="443"){xr+=":"+this.url.port}var Mr={};if(this.secure&&this.config.tlsOptions.hasOwnProperty("headers")){Ue(Mr,this.config.tlsOptions.headers)}if(lt){Ue(Mr,lt)}Ue(Mr,{Upgrade:"websocket",Connection:"Upgrade","Sec-WebSocket-Version":this.config.webSocketVersion.toString(10),"Sec-WebSocket-Key":this.base64nonce,Host:Mr.Host||xr});if(this.protocols.length>0){Mr["Sec-WebSocket-Protocol"]=this.protocols.join(", ")}if(this.origin){if(this.config.webSocketVersion===13){Mr["Origin"]=this.origin}else if(this.config.webSocketVersion===8){Mr["Sec-WebSocket-Origin"]=this.origin}}var Ur;if(this.url.pathname){Ur=this.url.path}else if(this.url.path){Ur="/"+this.url.path}else{Ur="/"}function handleRequestError(C){Ir._req=null;Ir.emit("connectFailed",C)}var Nr={agent:false};if(Pt){Ue(Nr,Pt)}Ue(Nr,{hostname:this.url.hostname,port:this.url.port,method:"GET",path:Ur,headers:Mr});if(this.secure){var Lr=this.config.tlsOptions;for(var jr in Lr){if(Lr.hasOwnProperty(jr)&&Qr.indexOf(jr)===-1){Nr[jr]=Lr[jr]}}}var Gr=this._req=(this.secure?Ar:Wt).request(Nr);Gr.on("upgrade",(function handleRequestUpgrade(C,q,re){Ir._req=null;Gr.removeListener("error",handleRequestError);Ir.socket=q;Ir.response=C;Ir.firstDataChunk=re;Ir.validateHandshake()}));Gr.on("error",handleRequestError);Gr.on("response",(function(C){Ir._req=null;if(ae.eventEmitterListenerCount(Ir,"httpResponse")>0){Ir.emit("httpResponse",C,Ir);if(C.socket){C.socket.end()}}else{var q=[];for(var re in C.headers){q.push(re+": "+C.headers[re])}Ir.failHandshake("Server responded with a non-101 status: "+C.statusCode+" "+C.statusMessage+"\nResponse Headers Follow:\n"+q.join("\n")+"\n")}}));Gr.end()};WebSocketClient.prototype.validateHandshake=function(){var C=this.response.headers;if(this.protocols.length>0){this.protocol=C["sec-websocket-protocol"];if(this.protocol){if(this.protocols.indexOf(this.protocol)===-1){this.failHandshake("Server did not respond with a requested protocol.");return}}else{this.failHandshake("Expected a Sec-WebSocket-Protocol header.");return}}if(!(C["connection"]&&C["connection"].toLocaleLowerCase()==="upgrade")){this.failHandshake("Expected a Connection: Upgrade header from the server");return}if(!(C["upgrade"]&&C["upgrade"].toLocaleLowerCase()==="websocket")){this.failHandshake("Expected an Upgrade: websocket header from the server");return}var q=Ir.createHash("sha1");q.update(this.base64nonce+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");var re=q.digest("base64");if(!C["sec-websocket-accept"]){this.failHandshake("Expected Sec-WebSocket-Accept header from server");return}if(C["sec-websocket-accept"]!==re){this.failHandshake("Sec-WebSocket-Accept header from server didn't match expected value of "+re);return}this.succeedHandshake()};WebSocketClient.prototype.failHandshake=function(C){if(this.socket&&this.socket.writable){this.socket.end()}this.emit("connectFailed",new Error(C))};WebSocketClient.prototype.succeedHandshake=function(){var C=new Br(this.socket,[],this.protocol,true,this.config);C.webSocketVersion=this.config.webSocketVersion;C._addSocketEventListeners();this.emit("connect",C);if(this.firstDataChunk.length>0){C.handleSocketData(this.firstDataChunk)}this.firstDataChunk=null};WebSocketClient.prototype.abort=function(){if(this._req){this._req.abort()}};C.exports=WebSocketClient},86304:(C,q,re)=>{var ae=re(39023);var Ue=re(4402);var lt=re(24434).EventEmitter;var Pt=re(84087);var Wt=re(91308);var Ar=re(40397);var Er=Ue.bufferAllocUnsafe;var Ir=Ue.bufferFromString;const Br="open";const kr="peer_requested_close";const Pr="ending";const Qr="closed";var Fr="setImmediate"in global?global.setImmediate.bind(global):process.nextTick.bind(process);var Dr=0;function WebSocketConnection(C,q,re,ae,Ar){this._debug=Ue.BufferingLogger("websocket:connection",++Dr);this._debug("constructor");if(this._debug.enabled){instrumentSocketForDebugging(this,C)}lt.call(this);this._pingListenerCount=0;this.on("newListener",(function(C){if(C==="ping"){this._pingListenerCount++}})).on("removeListener",(function(C){if(C==="ping"){this._pingListenerCount--}}));this.config=Ar;this.socket=C;this.protocol=re;this.extensions=q;this.remoteAddress=C.remoteAddress;this.closeReasonCode=-1;this.closeDescription=null;this.closeEventEmitted=false;this.maskOutgoingPackets=ae;this.maskBytes=Er(4);this.frameHeader=Er(10);this.bufferList=new Wt;this.currentFrame=new Pt(this.maskBytes,this.frameHeader,this.config);this.fragmentationSize=0;this.frameQueue=[];this.connected=true;this.state=Br;this.waitingForCloseResponse=false;this.receivedEnd=false;this.closeTimeout=this.config.closeTimeout;this.assembleFragments=this.config.assembleFragments;this.maxReceivedMessageSize=this.config.maxReceivedMessageSize;this.outputBufferFull=false;this.inputPaused=false;this.receivedDataHandler=this.processReceivedData.bind(this);this._closeTimerHandler=this.handleCloseTimer.bind(this);this.socket.setNoDelay(this.config.disableNagleAlgorithm);this.socket.setTimeout(0);if(this.config.keepalive&&!this.config.useNativeKeepalive){if(typeof this.config.keepaliveInterval!=="number"){throw new Error("keepaliveInterval must be specified and numeric "+"if keepalive is true.")}this._keepaliveTimerHandler=this.handleKeepaliveTimer.bind(this);this.setKeepaliveTimer();if(this.config.dropConnectionOnKeepaliveTimeout){if(typeof this.config.keepaliveGracePeriod!=="number"){throw new Error("keepaliveGracePeriod  must be specified and "+"numeric if dropConnectionOnKeepaliveTimeout "+"is true.")}this._gracePeriodTimerHandler=this.handleGracePeriodTimer.bind(this)}}else if(this.config.keepalive&&this.config.useNativeKeepalive){if(!("setKeepAlive"in this.socket)){throw new Error("Unable to use native keepalive: unsupported by "+"this version of Node.")}this.socket.setKeepAlive(true,this.config.keepaliveInterval)}this.socket.removeAllListeners("error")}WebSocketConnection.CLOSE_REASON_NORMAL=1e3;WebSocketConnection.CLOSE_REASON_GOING_AWAY=1001;WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR=1002;WebSocketConnection.CLOSE_REASON_UNPROCESSABLE_INPUT=1003;WebSocketConnection.CLOSE_REASON_RESERVED=1004;WebSocketConnection.CLOSE_REASON_NOT_PROVIDED=1005;WebSocketConnection.CLOSE_REASON_ABNORMAL=1006;WebSocketConnection.CLOSE_REASON_INVALID_DATA=1007;WebSocketConnection.CLOSE_REASON_POLICY_VIOLATION=1008;WebSocketConnection.CLOSE_REASON_MESSAGE_TOO_BIG=1009;WebSocketConnection.CLOSE_REASON_EXTENSION_REQUIRED=1010;WebSocketConnection.CLOSE_REASON_INTERNAL_SERVER_ERROR=1011;WebSocketConnection.CLOSE_REASON_TLS_HANDSHAKE_FAILED=1015;WebSocketConnection.CLOSE_DESCRIPTIONS={1e3:"Normal connection closure",1001:"Remote peer is going away",1002:"Protocol error",1003:"Unprocessable input",1004:"Reserved",1005:"Reason not provided",1006:"Abnormal closure, no further detail available",1007:"Invalid data received",1008:"Policy violation",1009:"Message too big",1010:"Extension requested by client is required",1011:"Internal Server Error",1015:"TLS Handshake Failed"};function validateCloseReason(C){if(C<1e3){return false}if(C>=1e3&&C<=2999){return[1e3,1001,1002,1003,1007,1008,1009,1010,1011,1012,1013,1014,1015].indexOf(C)!==-1}if(C>=3e3&&C<=3999){return true}if(C>=4e3&&C<=4999){return true}if(C>=5e3){return false}}ae.inherits(WebSocketConnection,lt);WebSocketConnection.prototype._addSocketEventListeners=function(){this.socket.on("error",this.handleSocketError.bind(this));this.socket.on("end",this.handleSocketEnd.bind(this));this.socket.on("close",this.handleSocketClose.bind(this));this.socket.on("drain",this.handleSocketDrain.bind(this));this.socket.on("pause",this.handleSocketPause.bind(this));this.socket.on("resume",this.handleSocketResume.bind(this));this.socket.on("data",this.handleSocketData.bind(this))};WebSocketConnection.prototype.setKeepaliveTimer=function(){this._debug("setKeepaliveTimer");if(!this.config.keepalive||this.config.useNativeKeepalive){return}this.clearKeepaliveTimer();this.clearGracePeriodTimer();this._keepaliveTimeoutID=setTimeout(this._keepaliveTimerHandler,this.config.keepaliveInterval)};WebSocketConnection.prototype.clearKeepaliveTimer=function(){if(this._keepaliveTimeoutID){clearTimeout(this._keepaliveTimeoutID)}};WebSocketConnection.prototype.handleKeepaliveTimer=function(){this._debug("handleKeepaliveTimer");this._keepaliveTimeoutID=null;this.ping();if(this.config.dropConnectionOnKeepaliveTimeout){this.setGracePeriodTimer()}else{this.setKeepaliveTimer()}};WebSocketConnection.prototype.setGracePeriodTimer=function(){this._debug("setGracePeriodTimer");this.clearGracePeriodTimer();this._gracePeriodTimeoutID=setTimeout(this._gracePeriodTimerHandler,this.config.keepaliveGracePeriod)};WebSocketConnection.prototype.clearGracePeriodTimer=function(){if(this._gracePeriodTimeoutID){clearTimeout(this._gracePeriodTimeoutID)}};WebSocketConnection.prototype.handleGracePeriodTimer=function(){this._debug("handleGracePeriodTimer");this._gracePeriodTimeoutID=null;this.drop(WebSocketConnection.CLOSE_REASON_ABNORMAL,"Peer not responding.",true)};WebSocketConnection.prototype.handleSocketData=function(C){this._debug("handleSocketData");this.setKeepaliveTimer();this.bufferList.write(C);this.processReceivedData()};WebSocketConnection.prototype.processReceivedData=function(){this._debug("processReceivedData");if(!this.connected){return}if(this.inputPaused){return}var C=this.currentFrame;if(!C.addData(this.bufferList)){this._debug("-- insufficient data for frame");return}var q=this;if(C.protocolError){this._debug("-- protocol error");process.nextTick((function(){q.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,C.dropReason)}));return}else if(C.frameTooLarge){this._debug("-- frame too large");process.nextTick((function(){q.drop(WebSocketConnection.CLOSE_REASON_MESSAGE_TOO_BIG,C.dropReason)}));return}if(C.rsv1||C.rsv2||C.rsv3){this._debug("-- illegal rsv flag");process.nextTick((function(){q.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Unsupported usage of rsv bits without negotiated extension.")}));return}if(!this.assembleFragments){this._debug("-- emitting frame");process.nextTick((function(){q.emit("frame",C)}))}process.nextTick((function(){q.processFrame(C)}));this.currentFrame=new Pt(this.maskBytes,this.frameHeader,this.config);if(this.bufferList.length>0){Fr(this.receivedDataHandler)}};WebSocketConnection.prototype.handleSocketError=function(C){this._debug("handleSocketError: %j",C);if(this.state===Qr){this._debug("  --- Socket 'error' after 'close'");return}this.closeReasonCode=WebSocketConnection.CLOSE_REASON_ABNORMAL;this.closeDescription="Socket Error: "+C.syscall+" "+C.code;this.connected=false;this.state=Qr;this.fragmentationSize=0;if(Ue.eventEmitterListenerCount(this,"error")>0){this.emit("error",C)}this.socket.destroy();this._debug.printOutput()};WebSocketConnection.prototype.handleSocketEnd=function(){this._debug("handleSocketEnd: received socket end.  state = %s",this.state);this.receivedEnd=true;if(this.state===Qr){this._debug("  --- Socket 'end' after 'close'");return}if(this.state!==kr&&this.state!==Pr){this._debug("  --- UNEXPECTED socket end.");this.socket.end()}};WebSocketConnection.prototype.handleSocketClose=function(C){this._debug("handleSocketClose: received socket close");this.socketHadError=C;this.connected=false;this.state=Qr;if(this.closeReasonCode===-1){this.closeReasonCode=WebSocketConnection.CLOSE_REASON_ABNORMAL;this.closeDescription="Connection dropped by remote peer."}this.clearCloseTimer();this.clearKeepaliveTimer();this.clearGracePeriodTimer();if(!this.closeEventEmitted){this.closeEventEmitted=true;this._debug("-- Emitting WebSocketConnection close event");this.emit("close",this.closeReasonCode,this.closeDescription)}};WebSocketConnection.prototype.handleSocketDrain=function(){this._debug("handleSocketDrain: socket drain event");this.outputBufferFull=false;this.emit("drain")};WebSocketConnection.prototype.handleSocketPause=function(){this._debug("handleSocketPause: socket pause event");this.inputPaused=true;this.emit("pause")};WebSocketConnection.prototype.handleSocketResume=function(){this._debug("handleSocketResume: socket resume event");this.inputPaused=false;this.emit("resume");this.processReceivedData()};WebSocketConnection.prototype.pause=function(){this._debug("pause: pause requested");this.socket.pause()};WebSocketConnection.prototype.resume=function(){this._debug("resume: resume requested");this.socket.resume()};WebSocketConnection.prototype.close=function(C,q){if(this.connected){this._debug("close: Initating clean WebSocket close sequence.");if("number"!==typeof C){C=WebSocketConnection.CLOSE_REASON_NORMAL}if(!validateCloseReason(C)){throw new Error("Close code "+C+" is not valid.")}if("string"!==typeof q){q=WebSocketConnection.CLOSE_DESCRIPTIONS[C]}this.closeReasonCode=C;this.closeDescription=q;this.setCloseTimer();this.sendCloseFrame(this.closeReasonCode,this.closeDescription);this.state=Pr;this.connected=false}};WebSocketConnection.prototype.drop=function(C,q,re){this._debug("drop");if(typeof C!=="number"){C=WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR}if(typeof q!=="string"){q=WebSocketConnection.CLOSE_DESCRIPTIONS[C]}this._debug("Forcefully dropping connection. skipCloseFrame: %s, code: %d, description: %s",re,C,q);this.closeReasonCode=C;this.closeDescription=q;this.frameQueue=[];this.fragmentationSize=0;if(!re){this.sendCloseFrame(C,q)}this.connected=false;this.state=Qr;this.clearCloseTimer();this.clearKeepaliveTimer();this.clearGracePeriodTimer();if(!this.closeEventEmitted){this.closeEventEmitted=true;this._debug("Emitting WebSocketConnection close event");this.emit("close",this.closeReasonCode,this.closeDescription)}this._debug("Drop: destroying socket");this.socket.destroy()};WebSocketConnection.prototype.setCloseTimer=function(){this._debug("setCloseTimer");this.clearCloseTimer();this._debug("Setting close timer");this.waitingForCloseResponse=true;this.closeTimer=setTimeout(this._closeTimerHandler,this.closeTimeout)};WebSocketConnection.prototype.clearCloseTimer=function(){this._debug("clearCloseTimer");if(this.closeTimer){this._debug("Clearing close timer");clearTimeout(this.closeTimer);this.waitingForCloseResponse=false;this.closeTimer=null}};WebSocketConnection.prototype.handleCloseTimer=function(){this._debug("handleCloseTimer");this.closeTimer=null;if(this.waitingForCloseResponse){this._debug("Close response not received from client.  Forcing socket end.");this.waitingForCloseResponse=false;this.state=Qr;this.socket.end()}};WebSocketConnection.prototype.processFrame=function(C){this._debug("processFrame");this._debug(" -- frame: %s",C);if(this.frameQueue.length!==0&&(C.opcode>0&&C.opcode<8)){this.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Illegal frame opcode 0x"+C.opcode.toString(16)+" "+"received in middle of fragmented message.");return}switch(C.opcode){case 2:this._debug("-- Binary Frame");if(this.assembleFragments){if(C.fin){this._debug("---- Emitting 'message' event");this.emit("message",{type:"binary",binaryData:C.binaryPayload})}else{this.frameQueue.push(C);this.fragmentationSize=C.length}}break;case 1:this._debug("-- Text Frame");if(this.assembleFragments){if(C.fin){if(!Ar(C.binaryPayload)){this.drop(WebSocketConnection.CLOSE_REASON_INVALID_DATA,"Invalid UTF-8 Data Received");return}this._debug("---- Emitting 'message' event");this.emit("message",{type:"utf8",utf8Data:C.binaryPayload.toString("utf8")})}else{this.frameQueue.push(C);this.fragmentationSize=C.length}}break;case 0:this._debug("-- Continuation Frame");if(this.assembleFragments){if(this.frameQueue.length===0){this.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Unexpected Continuation Frame");return}this.fragmentationSize+=C.length;if(this.fragmentationSize>this.maxReceivedMessageSize){this.drop(WebSocketConnection.CLOSE_REASON_MESSAGE_TOO_BIG,"Maximum message size exceeded.");return}this.frameQueue.push(C);if(C.fin){var q=0;var re=Er(this.fragmentationSize);var ae=this.frameQueue[0].opcode;this.frameQueue.forEach((function(C){C.binaryPayload.copy(re,q);q+=C.binaryPayload.length}));this.frameQueue=[];this.fragmentationSize=0;switch(ae){case 2:this.emit("message",{type:"binary",binaryData:re});break;case 1:if(!Ar(re)){this.drop(WebSocketConnection.CLOSE_REASON_INVALID_DATA,"Invalid UTF-8 Data Received");return}this.emit("message",{type:"utf8",utf8Data:re.toString("utf8")});break;default:this.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Unexpected first opcode in fragmentation sequence: 0x"+ae.toString(16));return}}}break;case 9:this._debug("-- Ping Frame");if(this._pingListenerCount>0){var Ue=false;var cancel=function(){Ue=true};this.emit("ping",cancel,C.binaryPayload);if(!Ue){this.pong(C.binaryPayload)}}else{this.pong(C.binaryPayload)}break;case 10:this._debug("-- Pong Frame");this.emit("pong",C.binaryPayload);break;case 8:this._debug("-- Close Frame");if(this.waitingForCloseResponse){this._debug("---- Got close response from peer.  Completing closing handshake.");this.clearCloseTimer();this.waitingForCloseResponse=false;this.state=Qr;this.socket.end();return}this._debug("---- Closing handshake initiated by peer.");this.state=kr;var lt;if(C.invalidCloseFrameLength){this.closeReasonCode=1005;lt=WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR}else if(C.closeStatus===-1||validateCloseReason(C.closeStatus)){this.closeReasonCode=C.closeStatus;lt=WebSocketConnection.CLOSE_REASON_NORMAL}else{this.closeReasonCode=C.closeStatus;lt=WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR}if(C.binaryPayload.length>1){if(!Ar(C.binaryPayload)){this.drop(WebSocketConnection.CLOSE_REASON_INVALID_DATA,"Invalid UTF-8 Data Received");return}this.closeDescription=C.binaryPayload.toString("utf8")}else{this.closeDescription=WebSocketConnection.CLOSE_DESCRIPTIONS[this.closeReasonCode]}this._debug("------ Remote peer %s - code: %d - %s - close frame payload length: %d",this.remoteAddress,this.closeReasonCode,this.closeDescription,C.length);this._debug("------ responding to remote peer's close request.");this.sendCloseFrame(lt,null);this.connected=false;break;default:this._debug("-- Unrecognized Opcode %d",C.opcode);this.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Unrecognized Opcode: 0x"+C.opcode.toString(16));break}};WebSocketConnection.prototype.send=function(C,q){this._debug("send");if(Buffer.isBuffer(C)){this.sendBytes(C,q)}else if(typeof C["toString"]==="function"){this.sendUTF(C,q)}else{throw new Error("Data provided must either be a Node Buffer or implement toString()")}};WebSocketConnection.prototype.sendUTF=function(C,q){C=Ir(C.toString(),"utf8");this._debug("sendUTF: %d bytes",C.length);var re=new Pt(this.maskBytes,this.frameHeader,this.config);re.opcode=1;re.binaryPayload=C;this.fragmentAndSend(re,q)};WebSocketConnection.prototype.sendBytes=function(C,q){this._debug("sendBytes");if(!Buffer.isBuffer(C)){throw new Error("You must pass a Node Buffer object to WebSocketConnection.prototype.sendBytes()")}var re=new Pt(this.maskBytes,this.frameHeader,this.config);re.opcode=2;re.binaryPayload=C;this.fragmentAndSend(re,q)};WebSocketConnection.prototype.ping=function(C){this._debug("ping");var q=new Pt(this.maskBytes,this.frameHeader,this.config);q.opcode=9;q.fin=true;if(C){if(!Buffer.isBuffer(C)){C=Ir(C.toString(),"utf8")}if(C.length>125){this._debug("WebSocket: Data for ping is longer than 125 bytes.  Truncating.");C=C.slice(0,124)}q.binaryPayload=C}this.sendFrame(q)};WebSocketConnection.prototype.pong=function(C){this._debug("pong");var q=new Pt(this.maskBytes,this.frameHeader,this.config);q.opcode=10;if(Buffer.isBuffer(C)&&C.length>125){this._debug("WebSocket: Data for pong is longer than 125 bytes.  Truncating.");C=C.slice(0,124)}q.binaryPayload=C;q.fin=true;this.sendFrame(q)};WebSocketConnection.prototype.fragmentAndSend=function(C,q){this._debug("fragmentAndSend");if(C.opcode>7){throw new Error("You cannot fragment control frames.")}var re=this.config.fragmentationThreshold;var ae=C.binaryPayload.length;if(!this.config.fragmentOutgoingMessages||C.binaryPayload&&ae<=re){C.fin=true;this.sendFrame(C,q);return}var Ue=Math.ceil(ae/re);var lt=0;var Wt=function fragmentSentCallback(C){if(C){if(typeof q==="function"){q(C);q=null}return}++lt;if(lt===Ue&&typeof q==="function"){q()}};for(var Ar=1;Ar<=Ue;Ar++){var Er=new Pt(this.maskBytes,this.frameHeader,this.config);Er.opcode=Ar===1?C.opcode:0;Er.fin=Ar===Ue;var Ir=Ar===Ue?ae-re*(Ar-1):re;var Br=re*(Ar-1);Er.binaryPayload=C.binaryPayload.slice(Br,Br+Ir);this.sendFrame(Er,Wt)}};WebSocketConnection.prototype.sendCloseFrame=function(C,q,re){if(typeof C!=="number"){C=WebSocketConnection.CLOSE_REASON_NORMAL}this._debug("sendCloseFrame state: %s, reasonCode: %d, description: %s",this.state,C,q);if(this.state!==Br&&this.state!==kr){return}var ae=new Pt(this.maskBytes,this.frameHeader,this.config);ae.fin=true;ae.opcode=8;ae.closeStatus=C;if(typeof q==="string"){ae.binaryPayload=Ir(q,"utf8")}this.sendFrame(ae,re);this.socket.end()};WebSocketConnection.prototype.sendFrame=function(C,q){this._debug("sendFrame");C.mask=this.maskOutgoingPackets;var re=this.socket.write(C.toBuffer(),q);this.outputBufferFull=!re;return re};C.exports=WebSocketConnection;function instrumentSocketForDebugging(C,q){if(!C._debug.enabled){return}var re=q.emit;q.emit=function(q){C._debug("||| Socket Event  '%s'",q);re.apply(this,arguments)};for(var ae in q){if("function"!==typeof q[ae]){continue}if(["emit"].indexOf(ae)!==-1){continue}(function(re){var ae=q[re];if(re==="on"){q[re]=function proxyMethod__EventEmitter__On(){C._debug("||| Socket method called:  %s (%s)",re,arguments[0]);return ae.apply(this,arguments)};return}q[re]=function proxyMethod(){C._debug("||| Socket method called:  %s",re);return ae.apply(this,arguments)}})(ae)}}},84087:(C,q,re)=>{var ae=re(11486);var Ue=re(4402).bufferAllocUnsafe;const lt=1;const Pt=2;const Wt=3;const Ar=4;const Er=5;const Ir=6;function WebSocketFrame(C,q,re){this.maskBytes=C;this.frameHeader=q;this.config=re;this.maxReceivedFrameSize=re.maxReceivedFrameSize;this.protocolError=false;this.frameTooLarge=false;this.invalidCloseFrameLength=false;this.parseState=lt;this.closeStatus=-1}WebSocketFrame.prototype.addData=function(C){if(this.parseState===lt){if(C.length>=2){C.joinInto(this.frameHeader,0,0,2);C.advance(2);var q=this.frameHeader[0];var re=this.frameHeader[1];this.fin=Boolean(q&128);this.rsv1=Boolean(q&64);this.rsv2=Boolean(q&32);this.rsv3=Boolean(q&16);this.mask=Boolean(re&128);this.opcode=q&15;this.length=re&127;if(this.opcode>=8){if(this.length>125){this.protocolError=true;this.dropReason="Illegal control frame longer than 125 bytes.";return true}if(!this.fin){this.protocolError=true;this.dropReason="Control frames must not be fragmented.";return true}}if(this.length===126){this.parseState=Pt}else if(this.length===127){this.parseState=Wt}else{this.parseState=Ar}}}if(this.parseState===Pt){if(C.length>=2){C.joinInto(this.frameHeader,2,0,2);C.advance(2);this.length=this.frameHeader.readUInt16BE(2);this.parseState=Ar}}else if(this.parseState===Wt){if(C.length>=8){C.joinInto(this.frameHeader,2,0,8);C.advance(8);var Br=[this.frameHeader.readUInt32BE(2),this.frameHeader.readUInt32BE(2+4)];if(Br[0]!==0){this.protocolError=true;this.dropReason="Unsupported 64-bit length frame received";return true}this.length=Br[1];this.parseState=Ar}}if(this.parseState===Ar){if(this.mask){if(C.length>=4){C.joinInto(this.maskBytes,0,0,4);C.advance(4);this.parseState=Er}}else{this.parseState=Er}}if(this.parseState===Er){if(this.length>this.maxReceivedFrameSize){this.frameTooLarge=true;this.dropReason="Frame size of "+this.length.toString(10)+" bytes exceeds maximum accepted frame size";return true}if(this.length===0){this.binaryPayload=Ue(0);this.parseState=Ir;return true}if(C.length>=this.length){this.binaryPayload=C.take(this.length);C.advance(this.length);if(this.mask){ae.unmask(this.binaryPayload,this.maskBytes)}if(this.opcode===8){if(this.length===1){this.binaryPayload=Ue(0);this.invalidCloseFrameLength=true}if(this.length>=2){this.closeStatus=this.binaryPayload.readUInt16BE(0);this.binaryPayload=this.binaryPayload.slice(2)}}this.parseState=Ir;return true}}return false};WebSocketFrame.prototype.throwAwayPayload=function(C){if(C.length>=this.length){C.advance(this.length);this.parseState=Ir;return true}return false};WebSocketFrame.prototype.toBuffer=function(C){var q;var re=2;var lt;var Pt;var Wt=0;var Ar=0;if(this.fin){Wt|=128}if(this.rsv1){Wt|=64}if(this.rsv2){Wt|=32}if(this.rsv3){Wt|=16}if(this.mask){Ar|=128}Wt|=this.opcode&15;if(this.opcode===8){this.length=2;if(this.binaryPayload){this.length+=this.binaryPayload.length}lt=Ue(this.length);lt.writeUInt16BE(this.closeStatus,0);if(this.length>2){this.binaryPayload.copy(lt,2)}}else if(this.binaryPayload){lt=this.binaryPayload;this.length=lt.length}else{this.length=0}if(this.length<=125){Ar|=this.length&127}else if(this.length>125&&this.length<=65535){Ar|=126;re+=2}else if(this.length>65535){Ar|=127;re+=8}var Er=Ue(this.length+re+(this.mask?4:0));Er[0]=Wt;Er[1]=Ar;Pt=2;if(this.length>125&&this.length<=65535){Er.writeUInt16BE(this.length,Pt);Pt+=2}else if(this.length>65535){Er.writeUInt32BE(0,Pt);Er.writeUInt32BE(this.length,Pt+4);Pt+=8}if(this.mask){q=C?0:Math.random()*4294967295>>>0;this.maskBytes.writeUInt32BE(q,0);this.maskBytes.copy(Er,Pt);Pt+=4;if(lt){ae.mask(lt,this.maskBytes,Er,Pt,this.length)}}else if(lt){lt.copy(Er,Pt)}return Er};WebSocketFrame.prototype.toString=function(){return"Opcode: "+this.opcode+", fin: "+this.fin+", length: "+this.length+", hasPayload: "+Boolean(this.binaryPayload)+", masked: "+this.mask};C.exports=WebSocketFrame},9371:(C,q,re)=>{var ae=re(76982);var Ue=re(39023);var lt=re(87016);var Pt=re(24434).EventEmitter;var Wt=re(86304);var Ar=/,\s*/;var Er=/;\s*/;var Ir=/[\r\n]/g;var Br=/,\s*/;var kr=["(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"," ",String.fromCharCode(9)];var Pr=[String.fromCharCode(127)];for(var Qr=0;Qr<31;Qr++){Pr.push(String.fromCharCode(Qr))}var Fr=/([\x00-\x20\x22\x28\x29\x2c\x2f\x3a-\x3f\x40\x5b-\x5e\x7b\x7d\x7f])/;var Dr=/[^\x21\x23-\x2b\x2d-\x3a\x3c-\x5b\x5d-\x7e]/;var xr=/^"[^"]*"$/;var Mr=/[\x00-\x20\x3b]/g;var Ur=/[;,] */;var Nr={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",406:"Not Acceptable",407:"Proxy Authorization Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Long",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",426:"Upgrade Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function WebSocketRequest(C,q,re){Pt.call(this);this.socket=C;this.httpRequest=q;this.resource=q.url;this.remoteAddress=C.remoteAddress;this.remoteAddresses=[this.remoteAddress];this.serverConfig=re;this._socketIsClosing=false;this._socketCloseHandler=this._handleSocketCloseBeforeAccept.bind(this);this.socket.on("end",this._socketCloseHandler);this.socket.on("close",this._socketCloseHandler);this._resolved=false}Ue.inherits(WebSocketRequest,Pt);WebSocketRequest.prototype.readHandshake=function(){var C=this;var q=this.httpRequest;this.resourceURL=lt.parse(this.resource,true);this.host=q.headers["host"];if(!this.host){throw new Error("Client must provide a Host header.")}this.key=q.headers["sec-websocket-key"];if(!this.key){throw new Error("Client must provide a value for Sec-WebSocket-Key.")}this.webSocketVersion=parseInt(q.headers["sec-websocket-version"],10);if(!this.webSocketVersion||isNaN(this.webSocketVersion)){throw new Error("Client must provide a value for Sec-WebSocket-Version.")}switch(this.webSocketVersion){case 8:case 13:break;default:var re=new Error("Unsupported websocket client version: "+this.webSocketVersion+"Only versions 8 and 13 are supported.");re.httpCode=426;re.headers={"Sec-WebSocket-Version":"13"};throw re}if(this.webSocketVersion===13){this.origin=q.headers["origin"]}else if(this.webSocketVersion===8){this.origin=q.headers["sec-websocket-origin"]}var ae=q.headers["sec-websocket-protocol"];this.protocolFullCaseMap={};this.requestedProtocols=[];if(ae){var Ue=ae.split(Ar);Ue.forEach((function(q){var re=q.toLocaleLowerCase();C.requestedProtocols.push(re);C.protocolFullCaseMap[re]=q}))}if(!this.serverConfig.ignoreXForwardedFor&&q.headers["x-forwarded-for"]){var Pt=this.remoteAddress;this.remoteAddresses=q.headers["x-forwarded-for"].split(Br);this.remoteAddresses.push(Pt);this.remoteAddress=this.remoteAddresses[0]}if(this.serverConfig.parseExtensions){var Wt=q.headers["sec-websocket-extensions"];this.requestedExtensions=this.parseExtensions(Wt)}else{this.requestedExtensions=[]}if(this.serverConfig.parseCookies){var Er=q.headers["cookie"];this.cookies=this.parseCookies(Er)}else{this.cookies=[]}};WebSocketRequest.prototype.parseExtensions=function(C){if(!C||C.length===0){return[]}var q=C.toLocaleLowerCase().split(Ar);q.forEach((function(C,q,re){var ae=C.split(Er);var Ue=ae[0];var lt=ae.slice(1);lt.forEach((function(C,q,re){var ae=C.split("=");var Ue={name:ae[0],value:ae[1]};re.splice(q,1,Ue)}));var Pt={name:Ue,params:lt};re.splice(q,1,Pt)}));return q};WebSocketRequest.prototype.parseCookies=function(C){if(!C||typeof C!=="string"){return[]}var q=[];var re=C.split(Ur);re.forEach((function(C){var re=C.indexOf("=");if(re===-1){q.push({name:C,value:null});return}var ae=C.substr(0,re).trim();var Ue=C.substr(++re,C.length).trim();if('"'===Ue[0]){Ue=Ue.slice(1,-1)}q.push({name:ae,value:decodeURIComponent(Ue)})}));return q};WebSocketRequest.prototype.accept=function(C,q,re){this._verifyResolution();var Ue;if(C){Ue=this.protocolFullCaseMap[C.toLocaleLowerCase()];if(typeof Ue==="undefined"){Ue=C}}else{Ue=C}this.protocolFullCaseMap=null;var lt=ae.createHash("sha1");lt.update(this.key+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");var Pt=lt.digest("base64");var Ar="HTTP/1.1 101 Switching Protocols\r\n"+"Upgrade: websocket\r\n"+"Connection: Upgrade\r\n"+"Sec-WebSocket-Accept: "+Pt+"\r\n";if(Ue){for(var Er=0;Er126||kr.indexOf(Pr)!==-1){this.reject(500);throw new Error('Illegal character "'+String.fromCharCode(Pr)+'" in subprotocol.')}}if(this.requestedProtocols.indexOf(C)===-1){this.reject(500);throw new Error("Specified protocol was not requested by the client.")}Ue=Ue.replace(Ir,"");Ar+="Sec-WebSocket-Protocol: "+Ue+"\r\n"}this.requestedProtocols=null;if(q){q=q.replace(Ir,"");if(this.webSocketVersion===13){Ar+="Origin: "+q+"\r\n"}else if(this.webSocketVersion===8){Ar+="Sec-WebSocket-Origin: "+q+"\r\n"}}if(re){if(!Array.isArray(re)){this.reject(500);throw new Error('Value supplied for "cookies" argument must be an array.')}var Qr={};re.forEach(function(C){if(!C.name||!C.value){this.reject(500);throw new Error('Each cookie to set must at least provide a "name" and "value"')}C.name=C.name.replace(Mr,"");C.value=C.value.replace(Mr,"");if(Qr[C.name]){this.reject(500);throw new Error("You may not specify the same cookie name twice.")}Qr[C.name]=true;var q=C.name.match(Fr);if(q){this.reject(500);throw new Error("Illegal character "+q[0]+" in cookie name")}if(C.value.match(xr)){q=C.value.slice(1,-1).match(Dr)}else{q=C.value.match(Dr)}if(q){this.reject(500);throw new Error("Illegal character "+q[0]+" in cookie value")}var re=[C.name+"="+C.value];if(C.path){q=C.path.match(Mr);if(q){this.reject(500);throw new Error("Illegal character "+q[0]+" in cookie path")}re.push("Path="+C.path)}if(C.domain){if(typeof C.domain!=="string"){this.reject(500);throw new Error("Domain must be specified and must be a string.")}q=C.domain.match(Mr);if(q){this.reject(500);throw new Error("Illegal character "+q[0]+" in cookie domain")}re.push("Domain="+C.domain.toLowerCase())}if(C.expires){if(!(C.expires instanceof Date)){this.reject(500);throw new Error('Value supplied for cookie "expires" must be a vaild date object')}re.push("Expires="+C.expires.toGMTString())}if(C.maxage){var ae=C.maxage;if(typeof ae==="string"){ae=parseInt(ae,10)}if(isNaN(ae)||ae<=0){this.reject(500);throw new Error('Value supplied for cookie "maxage" must be a non-zero number')}ae=Math.round(ae);re.push("Max-Age="+ae.toString(10))}if(C.secure){if(typeof C.secure!=="boolean"){this.reject(500);throw new Error('Value supplied for cookie "secure" must be of type boolean')}re.push("Secure")}if(C.httponly){if(typeof C.httponly!=="boolean"){this.reject(500);throw new Error('Value supplied for cookie "httponly" must be of type boolean')}re.push("HttpOnly")}Ar+="Set-Cookie: "+re.join(";")+"\r\n"}.bind(this))}this._resolved=true;this.emit("requestResolved",this);Ar+="\r\n";var Ur=new Wt(this.socket,[],C,false,this.serverConfig);Ur.webSocketVersion=this.webSocketVersion;Ur.remoteAddress=this.remoteAddress;Ur.remoteAddresses=this.remoteAddresses;var Nr=this;if(this._socketIsClosing){cleanupFailedConnection(Ur)}else{this.socket.write(Ar,"ascii",(function(C){if(C){cleanupFailedConnection(Ur);return}Nr._removeSocketCloseListeners();Ur._addSocketEventListeners()}))}this.emit("requestAccepted",Ur);return Ur};WebSocketRequest.prototype.reject=function(C,q,re){this._verifyResolution();this._resolved=true;this.emit("requestResolved",this);if(typeof C!=="number"){C=403}var ae="HTTP/1.1 "+C+" "+Nr[C]+"\r\n"+"Connection: close\r\n";if(q){q=q.replace(Ir,"");ae+="X-WebSocket-Reject-Reason: "+q+"\r\n"}if(re){for(var Ue in re){var lt=re[Ue].toString().replace(Ir,"");var Pt=Ue.replace(Ir,"");ae+=Pt+": "+lt+"\r\n"}}ae+="\r\n";this.socket.end(ae,"ascii");this.emit("requestRejected",this)};WebSocketRequest.prototype._handleSocketCloseBeforeAccept=function(){this._socketIsClosing=true;this._removeSocketCloseListeners()};WebSocketRequest.prototype._removeSocketCloseListeners=function(){this.socket.removeListener("end",this._socketCloseHandler);this.socket.removeListener("close",this._socketCloseHandler)};WebSocketRequest.prototype._verifyResolution=function(){if(this._resolved){throw new Error("WebSocketRequest may only be accepted or rejected one time.")}};function cleanupFailedConnection(C){process.nextTick((function(){C.drop(1006,"TCP connection lost before handshake completed.",true)}))}C.exports=WebSocketRequest},12401:(C,q,re)=>{var ae=re(4402).extend;var Ue=re(39023);var lt=re(24434).EventEmitter;var Pt=re(13144);function WebSocketRouter(C){lt.call(this);this.config={server:null};if(C){ae(this.config,C)}this.handlers=[];this._requestHandler=this.handleRequest.bind(this);if(this.config.server){this.attachServer(this.config.server)}}Ue.inherits(WebSocketRouter,lt);WebSocketRouter.prototype.attachServer=function(C){if(C){this.server=C;this.server.on("request",this._requestHandler)}else{throw new Error("You must specify a WebSocketServer instance to attach to.")}};WebSocketRouter.prototype.detachServer=function(){if(this.server){this.server.removeListener("request",this._requestHandler);this.server=null}else{throw new Error("Cannot detach from server: not attached.")}};WebSocketRouter.prototype.mount=function(C,q,re){if(!C){throw new Error("You must specify a path for this handler.")}if(!q){q="____no_protocol____"}if(!re){throw new Error("You must specify a callback for this handler.")}C=this.pathToRegExp(C);if(!(C instanceof RegExp)){throw new Error("Path must be specified as either a string or a RegExp.")}var ae=C.toString();q=q.toLocaleLowerCase();if(this.findHandlerIndex(ae,q)!==-1){throw new Error("You may only mount one handler per path/protocol combination.")}this.handlers.push({path:C,pathString:ae,protocol:q,callback:re})};WebSocketRouter.prototype.unmount=function(C,q){var re=this.findHandlerIndex(this.pathToRegExp(C).toString(),q);if(re!==-1){this.handlers.splice(re,1)}else{throw new Error("Unable to find a route matching the specified path and protocol.")}};WebSocketRouter.prototype.findHandlerIndex=function(C,q){q=q.toLocaleLowerCase();for(var re=0,ae=this.handlers.length;re{var ae=re(39023);var Ue=re(24434).EventEmitter;function WebSocketRouterRequest(C,q){Ue.call(this);this.webSocketRequest=C;if(q==="____no_protocol____"){this.protocol=null}else{this.protocol=q}this.origin=C.origin;this.resource=C.resource;this.resourceURL=C.resourceURL;this.httpRequest=C.httpRequest;this.remoteAddress=C.remoteAddress;this.webSocketVersion=C.webSocketVersion;this.requestedExtensions=C.requestedExtensions;this.cookies=C.cookies}ae.inherits(WebSocketRouterRequest,Ue);WebSocketRouterRequest.prototype.accept=function(C,q){var re=this.webSocketRequest.accept(this.protocol,C,q);this.emit("requestAccepted",re);return re};WebSocketRouterRequest.prototype.reject=function(C,q,re){this.webSocketRequest.reject(C,q,re);this.emit("requestRejected",this)};C.exports=WebSocketRouterRequest},55143:(C,q,re)=>{var ae=re(4402).extend;var Ue=re(4402);var lt=re(39023);var Pt=re(72859)("websocket:server");var Wt=re(24434).EventEmitter;var Ar=re(9371);var Er=function WebSocketServer(C){Wt.call(this);this._handlers={upgrade:this.handleUpgrade.bind(this),requestAccepted:this.handleRequestAccepted.bind(this),requestResolved:this.handleRequestResolved.bind(this)};this.connections=[];this.pendingRequests=[];if(C){this.mount(C)}};lt.inherits(Er,Wt);Er.prototype.mount=function(C){this.config={httpServer:null,maxReceivedFrameSize:65536,maxReceivedMessageSize:1048576,fragmentOutgoingMessages:true,fragmentationThreshold:16384,keepalive:true,keepaliveInterval:2e4,dropConnectionOnKeepaliveTimeout:true,keepaliveGracePeriod:1e4,useNativeKeepalive:false,assembleFragments:true,autoAcceptConnections:false,ignoreXForwardedFor:false,parseCookies:true,parseExtensions:true,disableNagleAlgorithm:true,closeTimeout:5e3};ae(this.config,C);if(this.config.httpServer){if(!Array.isArray(this.config.httpServer)){this.config.httpServer=[this.config.httpServer]}var q=this._handlers.upgrade;this.config.httpServer.forEach((function(C){C.on("upgrade",q)}))}else{throw new Error("You must specify an httpServer on which to mount the WebSocket server.")}};Er.prototype.unmount=function(){var C=this._handlers.upgrade;this.config.httpServer.forEach((function(q){q.removeListener("upgrade",C)}))};Er.prototype.closeAllConnections=function(){this.connections.forEach((function(C){C.close()}));this.pendingRequests.forEach((function(C){process.nextTick((function(){C.reject(503)}))}))};Er.prototype.broadcast=function(C){if(Buffer.isBuffer(C)){this.broadcastBytes(C)}else if(typeof C.toString==="function"){this.broadcastUTF(C)}};Er.prototype.broadcastUTF=function(C){this.connections.forEach((function(q){q.sendUTF(C)}))};Er.prototype.broadcastBytes=function(C){this.connections.forEach((function(q){q.sendBytes(C)}))};Er.prototype.shutDown=function(){this.unmount();this.closeAllConnections()};Er.prototype.handleUpgrade=function(C,q){var re=this;var ae=new Ar(q,C,this.config);try{ae.readHandshake()}catch(C){ae.reject(C.httpCode?C.httpCode:400,C.message,C.headers);Pt("Invalid handshake: %s",C.message);this.emit("upgradeError",C);return}this.pendingRequests.push(ae);ae.once("requestAccepted",this._handlers.requestAccepted);ae.once("requestResolved",this._handlers.requestResolved);q.once("close",(function(){re._handlers.requestResolved(ae)}));if(!this.config.autoAcceptConnections&&Ue.eventEmitterListenerCount(this,"request")>0){this.emit("request",ae)}else if(this.config.autoAcceptConnections){ae.accept(ae.requestedProtocols[0],ae.origin)}else{ae.reject(404,"No handler is configured to accept the connection.")}};Er.prototype.handleRequestAccepted=function(C){var q=this;C.once("close",(function(re,ae){q.handleConnectionClose(C,re,ae)}));this.connections.push(C);this.emit("connect",C)};Er.prototype.handleConnectionClose=function(C,q,re){var ae=this.connections.indexOf(C);if(ae!==-1){this.connections.splice(ae,1)}this.emit("close",C,q,re)};Er.prototype.handleRequestResolved=function(C){var q=this.pendingRequests.indexOf(C);if(q!==-1){this.pendingRequests.splice(q,1)}};C.exports=Er},4402:(C,q,re)=>{var ae=q.noop=function(){};q.extend=function extend(C,q){for(var re in q){C[re]=q[re]}};q.eventEmitterListenerCount=re(24434).EventEmitter.listenerCount||function(C,q){return C.listeners(q).length};q.bufferAllocUnsafe=Buffer.allocUnsafe?Buffer.allocUnsafe:function oldBufferAllocUnsafe(C){return new Buffer(C)};q.bufferFromString=Buffer.from?Buffer.from:function oldBufferFromString(C,q){return new Buffer(C,q)};q.BufferingLogger=function createBufferingLogger(C,q){var Ue=re(72859)(C);if(Ue.enabled){var lt=new BufferingLogger(C,q,Ue);var Pt=lt.log.bind(lt);Pt.printOutput=lt.printOutput.bind(lt);Pt.enabled=Ue.enabled;return Pt}Ue.printOutput=ae;return Ue};function BufferingLogger(C,q,re){this.logFunction=re;this.identifier=C;this.uniqueID=q;this.buffer=[]}BufferingLogger.prototype.log=function(){this.buffer.push([new Date,Array.prototype.slice.call(arguments)]);return this};BufferingLogger.prototype.clear=function(){this.buffer=[];return this};BufferingLogger.prototype.printOutput=function(C){if(!C){C=this.logFunction}var q=this.uniqueID;this.buffer.forEach((function(re){var ae=re[0].toLocaleString();var Ue=re[1].slice();var lt=Ue[0];if(lt!==void 0&<!==null){lt="%s - %s - "+lt.toString();Ue.splice(0,1,lt,ae,q);C.apply(global,Ue)}}))}},26135:(C,q,re)=>{C.exports=re(39003).version},65064:(C,q,re)=>{C.exports={server:re(55143),client:re(57643),router:re(12401),frame:re(84087),request:re(9371),connection:re(86304),w3cwebsocket:re(85601),deprecation:re(80893),version:re(26135)}},81306:C=>{var q=1e3;var re=q*60;var ae=re*60;var Ue=ae*24;var lt=Ue*365.25;C.exports=function(C,q){q=q||{};var re=typeof C;if(re==="string"&&C.length>0){return parse(C)}else if(re==="number"&&isNaN(C)===false){return q.long?fmtLong(C):fmtShort(C)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(C))};function parse(C){C=String(C);if(C.length>100){return}var Pt=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(C);if(!Pt){return}var Wt=parseFloat(Pt[1]);var Ar=(Pt[2]||"ms").toLowerCase();switch(Ar){case"years":case"year":case"yrs":case"yr":case"y":return Wt*lt;case"days":case"day":case"d":return Wt*Ue;case"hours":case"hour":case"hrs":case"hr":case"h":return Wt*ae;case"minutes":case"minute":case"mins":case"min":case"m":return Wt*re;case"seconds":case"second":case"secs":case"sec":case"s":return Wt*q;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Wt;default:return undefined}}function fmtShort(C){if(C>=Ue){return Math.round(C/Ue)+"d"}if(C>=ae){return Math.round(C/ae)+"h"}if(C>=re){return Math.round(C/re)+"m"}if(C>=q){return Math.round(C/q)+"s"}return C+"ms"}function fmtLong(C){return plural(C,Ue,"day")||plural(C,ae,"hour")||plural(C,re,"minute")||plural(C,q,"second")||C+" ms"}function plural(C,q,re){if(C{q=C.exports=re(17508);q.log=log;q.formatArgs=formatArgs;q.save=save;q.load=load;q.useColors=useColors;q.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();q.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}q.formatters.j=function(C){try{return JSON.stringify(C)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}};function formatArgs(C){var re=this.useColors;C[0]=(re?"%c":"")+this.namespace+(re?" %c":" ")+C[0]+(re?"%c ":" ")+"+"+q.humanize(this.diff);if(!re)return;var ae="color: "+this.color;C.splice(1,0,ae,"color: inherit");var Ue=0;var lt=0;C[0].replace(/%[a-zA-Z%]/g,(function(C){if("%%"===C)return;Ue++;if("%c"===C){lt=Ue}}));C.splice(lt,0,ae)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(C){try{if(null==C){q.storage.removeItem("debug")}else{q.storage.debug=C}}catch(C){}}function load(){var C;try{C=q.storage.debug}catch(C){}if(!C&&typeof process!=="undefined"&&"env"in process){C=process.env.DEBUG}return C}q.enable(load());function localstorage(){try{return window.localStorage}catch(C){}}},17508:(C,q,re)=>{q=C.exports=createDebug.debug=createDebug["default"]=createDebug;q.coerce=coerce;q.disable=disable;q.enable=enable;q.enabled=enabled;q.humanize=re(81306);q.names=[];q.skips=[];q.formatters={};var ae;function selectColor(C){var re=0,ae;for(ae in C){re=(re<<5)-re+C.charCodeAt(ae);re|=0}return q.colors[Math.abs(re)%q.colors.length]}function createDebug(C){function debug(){if(!debug.enabled)return;var C=debug;var re=+new Date;var Ue=re-(ae||re);C.diff=Ue;C.prev=ae;C.curr=re;ae=re;var lt=new Array(arguments.length);for(var Pt=0;Pt{if(typeof process!=="undefined"&&process.type==="renderer"){C.exports=re(87071)}else{C.exports=re(19771)}},19771:(C,q,re)=>{var ae=re(52018);var Ue=re(39023);q=C.exports=re(17508);q.init=init;q.log=log;q.formatArgs=formatArgs;q.save=save;q.load=load;q.useColors=useColors;q.colors=[6,2,3,4,5,1];q.inspectOpts=Object.keys(process.env).filter((function(C){return/^debug_/i.test(C)})).reduce((function(C,q){var re=q.substring(6).toLowerCase().replace(/_([a-z])/g,(function(C,q){return q.toUpperCase()}));var ae=process.env[q];if(/^(yes|on|true|enabled)$/i.test(ae))ae=true;else if(/^(no|off|false|disabled)$/i.test(ae))ae=false;else if(ae==="null")ae=null;else ae=Number(ae);C[re]=ae;return C}),{});var lt=parseInt(process.env.DEBUG_FD,10)||2;if(1!==lt&&2!==lt){Ue.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")()}var Pt=1===lt?process.stdout:2===lt?process.stderr:createWritableStdioStream(lt);function useColors(){return"colors"in q.inspectOpts?Boolean(q.inspectOpts.colors):ae.isatty(lt)}q.formatters.o=function(C){this.inspectOpts.colors=this.useColors;return Ue.inspect(C,this.inspectOpts).split("\n").map((function(C){return C.trim()})).join(" ")};q.formatters.O=function(C){this.inspectOpts.colors=this.useColors;return Ue.inspect(C,this.inspectOpts)};function formatArgs(C){var re=this.namespace;var ae=this.useColors;if(ae){var Ue=this.color;var lt="  [3"+Ue+";1m"+re+" "+"";C[0]=lt+C[0].split("\n").join("\n"+lt);C.push("[3"+Ue+"m+"+q.humanize(this.diff)+"")}else{C[0]=(new Date).toUTCString()+" "+re+" "+C[0]}}function log(){return Pt.write(Ue.format.apply(Ue,arguments)+"\n")}function save(C){if(null==C){delete process.env.DEBUG}else{process.env.DEBUG=C}}function load(){return process.env.DEBUG}function createWritableStdioStream(C){var q;var Ue=process.binding("tty_wrap");switch(Ue.guessHandleType(C)){case"TTY":q=new ae.WriteStream(C);q._type="tty";if(q._handle&&q._handle.unref){q._handle.unref()}break;case"FILE":var lt=re(79896);q=new lt.SyncWriteStream(C,{autoClose:false});q._type="fs";break;case"PIPE":case"TCP":var Pt=re(69278);q=new Pt.Socket({fd:C,readable:false,writable:true});q.readable=false;q.read=null;q._type="pipe";if(q._handle&&q._handle.unref){q._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}q.fd=C;q._isStdio=true;return q}function init(C){C.inspectOpts={};var re=Object.keys(q.inspectOpts);for(var ae=0;ae{var ae=re(20181).Buffer;var Ue=re(24434).EventEmitter;var lt=re(4402).bufferAllocUnsafe;C.exports=BufferList;C.exports.BufferList=BufferList;function BufferList(C){if(!(this instanceof BufferList))return new BufferList(C);Ue.call(this);var q=this;if(typeof C=="undefined")C={};q.encoding=C.encoding;var re={next:null,buffer:null};var Pt={next:null,buffer:null};var Wt=0;q.__defineGetter__("length",(function(){return Wt}));var Ar=0;q.write=function(C){if(!re.buffer){re.buffer=C;Pt=re}else{Pt.next={next:null,buffer:C};Pt=Pt.next}Wt+=C.length;q.emit("write",C);return true};q.end=function(C){if(ae.isBuffer(C))q.write(C)};q.push=function(){var C=[].concat.apply([],arguments);C.forEach(q.write);return q};q.forEach=function(C){if(!re.buffer)return lt(0);if(re.buffer.length-Ar<=0)return q;var ae=re.buffer.slice(Ar);var Ue={buffer:ae,next:re.next};while(Ue&&Ue.buffer){var Pt=C(Ue.buffer);if(Pt)break;Ue=Ue.next}return q};q.join=function(C,ae){if(!re.buffer)return lt(0);if(C==undefined)C=0;if(ae==undefined)ae=q.length;var Ue=lt(ae-C);var Pt=0;q.forEach((function(q){if(Cae)return true}));return Ue};q.joinInto=function(C,ae,Ue,Pt){if(!re.buffer)return new lt(0);if(Ue==undefined)Ue=0;if(Pt==undefined)Pt=q.length;var Wt=C;if(Wt.length-aePt)return true}));return Wt};q.advance=function(C){Ar+=C;Wt-=C;while(re.buffer&&Ar>=re.buffer.length){Ar-=re.buffer.length;re=re.next?re.next:{buffer:null,next:null}}if(re.buffer===null)Pt={next:null,buffer:null};q.emit("advance",C);return q};q.take=function(C,ae){if(C==undefined)C=q.length;else if(typeof C!=="number"){ae=C;C=q.length}var Ue=re;if(!ae)ae=q.encoding;if(ae){var lt="";q.forEach((function(q){if(C<=0)return true;lt+=q.toString(ae,0,Math.min(C,q.length));C-=q.length}));return lt}else{return q.join(0,C)}};q.toString=function(){return q.take("binary")}}re(39023).inherits(BufferList,Ue)},23184:(C,q,re)=>{const ae=re(20905);q.implementation=class URLImpl{constructor(C){const q=C[0];const re=C[1];let Ue=null;if(re!==undefined){Ue=ae.basicURLParse(re);if(Ue==="failure"){throw new TypeError("Invalid base URL")}}const lt=ae.basicURLParse(q,{baseURL:Ue});if(lt==="failure"){throw new TypeError("Invalid URL")}this._url=lt}get href(){return ae.serializeURL(this._url)}set href(C){const q=ae.basicURLParse(C);if(q==="failure"){throw new TypeError("Invalid URL")}this._url=q}get origin(){return ae.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(C){ae.basicURLParse(C+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(C){if(ae.cannotHaveAUsernamePasswordPort(this._url)){return}ae.setTheUsername(this._url,C)}get password(){return this._url.password}set password(C){if(ae.cannotHaveAUsernamePasswordPort(this._url)){return}ae.setThePassword(this._url,C)}get host(){const C=this._url;if(C.host===null){return""}if(C.port===null){return ae.serializeHost(C.host)}return ae.serializeHost(C.host)+":"+ae.serializeInteger(C.port)}set host(C){if(this._url.cannotBeABaseURL){return}ae.basicURLParse(C,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return ae.serializeHost(this._url.host)}set hostname(C){if(this._url.cannotBeABaseURL){return}ae.basicURLParse(C,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return ae.serializeInteger(this._url.port)}set port(C){if(ae.cannotHaveAUsernamePasswordPort(this._url)){return}if(C===""){this._url.port=null}else{ae.basicURLParse(C,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(C){if(this._url.cannotBeABaseURL){return}this._url.path=[];ae.basicURLParse(C,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(C){const q=this._url;if(C===""){q.query=null;return}const re=C[0]==="?"?C.substring(1):C;q.query="";ae.basicURLParse(re,{url:q,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(C){if(C===""){this._url.fragment=null;return}const q=C[0]==="#"?C.substring(1):C;this._url.fragment="";ae.basicURLParse(q,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},66633:(C,q,re)=>{const ae=re(37125);const Ue=re(39857);const lt=re(23184);const Pt=Ue.implSymbol;function URL(q){if(!this||this[Pt]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const re=[];for(let C=0;C{q.URL=re(66633)["interface"];q.serializeURL=re(20905).serializeURL;q.serializeURLOrigin=re(20905).serializeURLOrigin;q.basicURLParse=re(20905).basicURLParse;q.setTheUsername=re(20905).setTheUsername;q.setThePassword=re(20905).setThePassword;q.serializeHost=re(20905).serializeHost;q.serializeInteger=re(20905).serializeInteger;q.parseURL=re(20905).parseURL},20905:(C,q,re)=>{const ae=re(24876);const Ue=re(1552);const lt={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const Pt=Symbol("failure");function countSymbols(C){return ae.ucs2.decode(C).length}function at(C,q){const re=C[q];return isNaN(re)?undefined:String.fromCodePoint(re)}function isASCIIDigit(C){return C>=48&&C<=57}function isASCIIAlpha(C){return C>=65&&C<=90||C>=97&&C<=122}function isASCIIAlphanumeric(C){return isASCIIAlpha(C)||isASCIIDigit(C)}function isASCIIHex(C){return isASCIIDigit(C)||C>=65&&C<=70||C>=97&&C<=102}function isSingleDot(C){return C==="."||C.toLowerCase()==="%2e"}function isDoubleDot(C){C=C.toLowerCase();return C===".."||C==="%2e."||C===".%2e"||C==="%2e%2e"}function isWindowsDriveLetterCodePoints(C,q){return isASCIIAlpha(C)&&(q===58||q===124)}function isWindowsDriveLetterString(C){return C.length===2&&isASCIIAlpha(C.codePointAt(0))&&(C[1]===":"||C[1]==="|")}function isNormalizedWindowsDriveLetterString(C){return C.length===2&&isASCIIAlpha(C.codePointAt(0))&&C[1]===":"}function containsForbiddenHostCodePoint(C){return C.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(C){return C.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(C){return lt[C]!==undefined}function isSpecial(C){return isSpecialScheme(C.scheme)}function defaultPort(C){return lt[C]}function percentEncode(C){let q=C.toString(16).toUpperCase();if(q.length===1){q="0"+q}return"%"+q}function utf8PercentEncode(C){const q=new Buffer(C);let re="";for(let C=0;C126}const Wt=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(C){return isC0ControlPercentEncode(C)||Wt.has(C)}const Ar=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(C){return isPathPercentEncode(C)||Ar.has(C)}function percentEncodeChar(C,q){const re=String.fromCodePoint(C);if(q(C)){return utf8PercentEncode(re)}return re}function parseIPv4Number(C){let q=10;if(C.length>=2&&C.charAt(0)==="0"&&C.charAt(1).toLowerCase()==="x"){C=C.substring(2);q=16}else if(C.length>=2&&C.charAt(0)==="0"){C=C.substring(1);q=8}if(C===""){return 0}const re=q===10?/[^0-9]/:q===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(re.test(C)){return Pt}return parseInt(C,q)}function parseIPv4(C){const q=C.split(".");if(q[q.length-1]===""){if(q.length>1){q.pop()}}if(q.length>4){return C}const re=[];for(const ae of q){if(ae===""){return C}const q=parseIPv4Number(ae);if(q===Pt){return C}re.push(q)}for(let C=0;C255){return Pt}}if(re[re.length-1]>=Math.pow(256,5-re.length)){return Pt}let ae=re.pop();let Ue=0;for(const C of re){ae+=C*Math.pow(256,3-Ue);++Ue}return ae}function serializeIPv4(C){let q="";let re=C;for(let C=1;C<=4;++C){q=String(re%256)+q;if(C!==4){q="."+q}re=Math.floor(re/256)}return q}function parseIPv6(C){const q=[0,0,0,0,0,0,0,0];let re=0;let Ue=null;let lt=0;C=ae.ucs2.decode(C);if(C[lt]===58){if(C[lt+1]!==58){return Pt}lt+=2;++re;Ue=re}while(lt6){return Pt}let ae=0;while(C[lt]!==undefined){let Ue=null;if(ae>0){if(C[lt]===46&&ae<4){++lt}else{return Pt}}if(!isASCIIDigit(C[lt])){return Pt}while(isASCIIDigit(C[lt])){const q=parseInt(at(C,lt));if(Ue===null){Ue=q}else if(Ue===0){return Pt}else{Ue=Ue*10+q}if(Ue>255){return Pt}++lt}q[re]=q[re]*256+Ue;++ae;if(ae===2||ae===4){++re}}if(ae!==4){return Pt}break}else if(C[lt]===58){++lt;if(C[lt]===undefined){return Pt}}else if(C[lt]!==undefined){return Pt}q[re]=ae;++re}if(Ue!==null){let C=re-Ue;re=7;while(re!==0&&C>0){const ae=q[Ue+C-1];q[Ue+C-1]=q[re];q[re]=ae;--re;--C}}else if(Ue===null&&re!==8){return Pt}return q}function serializeIPv6(C){let q="";const re=findLongestZeroSequence(C);const ae=re.idx;let Ue=false;for(let re=0;re<=7;++re){if(Ue&&C[re]===0){continue}else if(Ue){Ue=false}if(ae===re){const C=re===0?"::":":";q+=C;Ue=true;continue}q+=C[re].toString(16);if(re!==7){q+=":"}}return q}function parseHost(C,q){if(C[0]==="["){if(C[C.length-1]!=="]"){return Pt}return parseIPv6(C.substring(1,C.length-1))}if(!q){return parseOpaqueHost(C)}const re=utf8PercentDecode(C);const ae=Ue.toASCII(re,false,Ue.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(ae===null){return Pt}if(containsForbiddenHostCodePoint(ae)){return Pt}const lt=parseIPv4(ae);if(typeof lt==="number"||lt===Pt){return lt}return ae}function parseOpaqueHost(C){if(containsForbiddenHostCodePointExcludingPercent(C)){return Pt}let q="";const re=ae.ucs2.decode(C);for(let C=0;Cre){q=ae;re=Ue}ae=null;Ue=0}else{if(ae===null){ae=lt}++Ue}}if(Ue>re){q=ae;re=Ue}return{idx:q,len:re}}function serializeHost(C){if(typeof C==="number"){return serializeIPv4(C)}if(C instanceof Array){return"["+serializeIPv6(C)+"]"}return C}function trimControlChars(C){return C.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(C){return C.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(C){const q=C.path;if(q.length===0){return}if(C.scheme==="file"&&q.length===1&&isNormalizedWindowsDriveLetter(q[0])){return}q.pop()}function includesCredentials(C){return C.username!==""||C.password!==""}function cannotHaveAUsernamePasswordPort(C){return C.host===null||C.host===""||C.cannotBeABaseURL||C.scheme==="file"}function isNormalizedWindowsDriveLetter(C){return/^[A-Za-z]:$/.test(C)}function URLStateMachine(C,q,re,Ue,lt){this.pointer=0;this.input=C;this.base=q||null;this.encodingOverride=re||"utf-8";this.stateOverride=lt;this.url=Ue;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const C=trimControlChars(this.input);if(C!==this.input){this.parseError=true}this.input=C}const Wt=trimTabAndNewline(this.input);if(Wt!==this.input){this.parseError=true}this.input=Wt;this.state=lt||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=ae.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const C=this.input[this.pointer];const q=isNaN(C)?undefined:String.fromCodePoint(C);const re=this["parse "+this.state](C,q);if(!re){break}else if(re===Pt){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(C,q){if(isASCIIAlpha(C)){this.buffer+=q.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return Pt}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(C,q){if(isASCIIAlphanumeric(C)||C===43||C===45||C===46){this.buffer+=q.toLowerCase()}else if(C===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return Pt}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(C){if(this.base===null||this.base.cannotBeABaseURL&&C!==35){return Pt}else if(this.base.cannotBeABaseURL&&C===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(C){if(C===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(C){if(C===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(C){this.url.scheme=this.base.scheme;if(isNaN(C)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(C===47){this.state="relative slash"}else if(C===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(C===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&C===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(C){if(isSpecial(this.url)&&(C===47||C===92)){if(C===92){this.parseError=true}this.state="special authority ignore slashes"}else if(C===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(C){if(C===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(C){if(C!==47&&C!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(C,q){if(C===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const C=countSymbols(this.buffer);for(let q=0;qMath.pow(2,16)-1){this.parseError=true;return Pt}this.url.port=C===defaultPort(this.url.scheme)?null:C;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return Pt}return true};const Er=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(C){this.url.scheme="file";if(C===47||C===92){if(C===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(C)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(C===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(C===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(C,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!Er.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(C){if(C===47||C===92){if(C===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(C,q){if(isNaN(C)||C===47||C===92||C===63||C===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let C=parseHost(this.buffer,isSpecial(this.url));if(C===Pt){return Pt}if(C==="localhost"){C=""}this.url.host=C;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=q}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(C){if(isSpecial(this.url)){if(C===92){this.parseError=true}this.state="path";if(C!==47&&C!==92){--this.pointer}}else if(!this.stateOverride&&C===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&C===35){this.url.fragment="";this.state="fragment"}else if(C!==undefined){this.state="path";if(C!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(C){if(isNaN(C)||C===47||isSpecial(this.url)&&C===92||!this.stateOverride&&(C===63||C===35)){if(isSpecial(this.url)&&C===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(C!==47&&!(isSpecial(this.url)&&C===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&C!==47&&!(isSpecial(this.url)&&C===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(C===undefined||C===63||C===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(C===63){this.url.query="";this.state="query"}if(C===35){this.url.fragment="";this.state="fragment"}}else{if(C===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(C,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(C){if(C===63){this.url.query="";this.state="query"}else if(C===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(C)&&C!==37){this.parseError=true}if(C===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(C)){this.url.path[0]=this.url.path[0]+percentEncodeChar(C,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(C,q){if(isNaN(C)||!this.stateOverride&&C===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const q=new Buffer(this.buffer);for(let C=0;C126||q[C]===34||q[C]===35||q[C]===60||q[C]===62){this.url.query+=percentEncode(q[C])}else{this.url.query+=String.fromCodePoint(q[C])}}this.buffer="";if(C===35){this.url.fragment="";this.state="fragment"}}else{if(C===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=q}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(C){if(isNaN(C)){}else if(C===0){this.parseError=true}else{if(C===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(C,isC0ControlPercentEncode)}return true};function serializeURL(C,q){let re=C.scheme+":";if(C.host!==null){re+="//";if(C.username!==""||C.password!==""){re+=C.username;if(C.password!==""){re+=":"+C.password}re+="@"}re+=serializeHost(C.host);if(C.port!==null){re+=":"+C.port}}else if(C.host===null&&C.scheme==="file"){re+="//"}if(C.cannotBeABaseURL){re+=C.path[0]}else{for(const q of C.path){re+="/"+q}}if(C.query!==null){re+="?"+C.query}if(!q&&C.fragment!==null){re+="#"+C.fragment}return re}function serializeOrigin(C){let q=C.scheme+"://";q+=serializeHost(C.host);if(C.port!==null){q+=":"+C.port}return q}C.exports.serializeURL=serializeURL;C.exports.serializeURLOrigin=function(q){switch(q.scheme){case"blob":try{return C.exports.serializeURLOrigin(C.exports.parseURL(q.path[0]))}catch(C){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:q.scheme,host:q.host,port:q.port});case"file":return"file://";default:return"null"}};C.exports.basicURLParse=function(C,q){if(q===undefined){q={}}const re=new URLStateMachine(C,q.baseURL,q.encodingOverride,q.url,q.stateOverride);if(re.failure){return"failure"}return re.url};C.exports.setTheUsername=function(C,q){C.username="";const re=ae.ucs2.decode(q);for(let q=0;q{C.exports.mixin=function mixin(C,q){const re=Object.getOwnPropertyNames(q);for(let ae=0;ae{C.exports=wrappy;function wrappy(C,q){if(C&&q)return wrappy(C)(q);if(typeof C!=="function")throw new TypeError("need wrapper function");Object.keys(C).forEach((function(q){wrapper[q]=C[q]}));return wrapper;function wrapper(){var q=new Array(arguments.length);for(var re=0;re{C.exports=writeFile;C.exports.sync=writeFileSync;C.exports._getTmpname=getTmpname;var ae=re(35744);var Ue=re(67324).chain;var lt=re(72024);var Pt=Object.assign||re(39023)._extend;var Wt=0;function getTmpname(C){return C+"."+lt(__filename).hash(String(process.pid)).hash(String(++Wt)).result()}function writeFile(C,q,re,Ue){if(re instanceof Function){Ue=re;re=null}if(!re)re={};ae.realpath(C,(function(ae,lt){_writeFile(lt||C,q,re,Ue)}))}function _writeFile(C,q,re,lt){var Wt=getTmpname(C);if(re.mode&&re.chown){return thenWriteFile()}else{return ae.stat(C,(function(C,q){if(C||!q)return thenWriteFile();re=Pt({},re);if(!re.mode){re.mode=q.mode}if(!re.chown&&process.getuid){re.chown={uid:q.uid,gid:q.gid}}return thenWriteFile()}))}function thenWriteFile(){Ue([[writeFileAsync,Wt,q,re.mode,re.encoding||"utf8"],re.chown&&[ae,ae.chown,Wt,re.chown.uid,re.chown.gid],re.mode&&[ae,ae.chmod,Wt,re.mode],[ae,ae.rename,Wt,C]],(function(C){C?ae.unlink(Wt,(function(){lt(C)})):lt()}))}function writeFileAsync(C,q,Ue,lt,Pt){ae.open(C,"w",re.mode,(function(C,re){if(C)return Pt(C);if(Buffer.isBuffer(q)){return ae.write(re,q,0,q.length,0,syncAndClose)}else if(q!=null){return ae.write(re,String(q),0,String(lt),syncAndClose)}else{return syncAndClose()}function syncAndClose(C){if(C)return Pt(C);ae.fsync(re,(function(C){if(C)return Pt(C);ae.close(re,Pt)}))}}))}}function writeFileSync(C,q,re){if(!re)re={};try{C=ae.realpathSync(C)}catch(C){}var Ue=getTmpname(C);try{if(!re.mode||!re.chown){try{var lt=ae.statSync(C);re=Pt({},re);if(!re.mode){re.mode=lt.mode}if(!re.chown&&process.getuid){re.chown={uid:lt.uid,gid:lt.gid}}}catch(C){}}var Wt=ae.openSync(Ue,"w",re.mode);if(Buffer.isBuffer(q)){ae.writeSync(Wt,q,0,q.length,0)}else if(q!=null){ae.writeSync(Wt,String(q),0,String(re.encoding||"utf8"))}ae.fsyncSync(Wt);ae.closeSync(Wt);if(re.chown)ae.chownSync(Ue,re.chown.uid,re.chown.gid);if(re.mode)ae.chmodSync(Ue,re.mode);ae.renameSync(Ue,C)}catch(C){try{ae.unlinkSync(Ue)}catch(C){}throw C}}},11354:(C,q,re)=>{const ae=re(56681);ae.createWebSocketStream=re(86412);ae.Server=re(70129);ae.Receiver=re(20893);ae.Sender=re(7389);ae.WebSocket=ae;ae.WebSocketServer=ae.Server;C.exports=ae},95803:(C,q,re)=>{const{EMPTY_BUFFER:ae}=re(71791);const Ue=Buffer[Symbol.species];function concat(C,q){if(C.length===0)return ae;if(C.length===1)return C[0];const re=Buffer.allocUnsafe(q);let lt=0;for(let q=0;q{const q=["nodebuffer","arraybuffer","fragments"];const re=typeof Blob!=="undefined";if(re)q.push("blob");C.exports={BINARY_TYPES:q,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:re,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},34634:(C,q,re)=>{const{kForOnEventAttribute:ae,kListener:Ue}=re(71791);const lt=Symbol("kCode");const Pt=Symbol("kData");const Wt=Symbol("kError");const Ar=Symbol("kMessage");const Er=Symbol("kReason");const Ir=Symbol("kTarget");const Br=Symbol("kType");const kr=Symbol("kWasClean");class Event{constructor(C){this[Ir]=null;this[Br]=C}get target(){return this[Ir]}get type(){return this[Br]}}Object.defineProperty(Event.prototype,"target",{enumerable:true});Object.defineProperty(Event.prototype,"type",{enumerable:true});class CloseEvent extends Event{constructor(C,q={}){super(C);this[lt]=q.code===undefined?0:q.code;this[Er]=q.reason===undefined?"":q.reason;this[kr]=q.wasClean===undefined?false:q.wasClean}get code(){return this[lt]}get reason(){return this[Er]}get wasClean(){return this[kr]}}Object.defineProperty(CloseEvent.prototype,"code",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"reason",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"wasClean",{enumerable:true});class ErrorEvent extends Event{constructor(C,q={}){super(C);this[Wt]=q.error===undefined?null:q.error;this[Ar]=q.message===undefined?"":q.message}get error(){return this[Wt]}get message(){return this[Ar]}}Object.defineProperty(ErrorEvent.prototype,"error",{enumerable:true});Object.defineProperty(ErrorEvent.prototype,"message",{enumerable:true});class MessageEvent extends Event{constructor(C,q={}){super(C);this[Pt]=q.data===undefined?null:q.data}get data(){return this[Pt]}}Object.defineProperty(MessageEvent.prototype,"data",{enumerable:true});const Pr={addEventListener(C,q,re={}){for(const lt of this.listeners(C)){if(!re[ae]&<[Ue]===q&&!lt[ae]){return}}let lt;if(C==="message"){lt=function onMessage(C,re){const ae=new MessageEvent("message",{data:re?C:C.toString()});ae[Ir]=this;callListener(q,this,ae)}}else if(C==="close"){lt=function onClose(C,re){const ae=new CloseEvent("close",{code:C,reason:re.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});ae[Ir]=this;callListener(q,this,ae)}}else if(C==="error"){lt=function onError(C){const re=new ErrorEvent("error",{error:C,message:C.message});re[Ir]=this;callListener(q,this,re)}}else if(C==="open"){lt=function onOpen(){const C=new Event("open");C[Ir]=this;callListener(q,this,C)}}else{return}lt[ae]=!!re[ae];lt[Ue]=q;if(re.once){this.once(C,lt)}else{this.on(C,lt)}},removeEventListener(C,q){for(const re of this.listeners(C)){if(re[Ue]===q&&!re[ae]){this.removeListener(C,re);break}}}};C.exports={CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,Event:Event,EventTarget:Pr,MessageEvent:MessageEvent};function callListener(C,q,re){if(typeof C==="object"&&C.handleEvent){C.handleEvent.call(C,re)}else{C.call(q,re)}}},61335:(C,q,re)=>{const{tokenChars:ae}=re(26615);function push(C,q,re){if(C[q]===undefined)C[q]=[re];else C[q].push(re)}function parse(C){const q=Object.create(null);let re=Object.create(null);let Ue=false;let lt=false;let Pt=false;let Wt;let Ar;let Er=-1;let Ir=-1;let Br=-1;let kr=0;for(;kr{let re=C[q];if(!Array.isArray(re))re=[re];return re.map((C=>[q].concat(Object.keys(C).map((q=>{let re=C[q];if(!Array.isArray(re))re=[re];return re.map((C=>C===true?q:`${q}=${C}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")}C.exports={format:format,parse:parse}},10958:C=>{const q=Symbol("kDone");const re=Symbol("kRun");class Limiter{constructor(C){this[q]=()=>{this.pending--;this[re]()};this.concurrency=C||Infinity;this.jobs=[];this.pending=0}add(C){this.jobs.push(C);this[re]()}[re](){if(this.pending===this.concurrency)return;if(this.jobs.length){const C=this.jobs.shift();this.pending++;C(this[q])}}}C.exports=Limiter},4376:(C,q,re)=>{const ae=re(43106);const Ue=re(95803);const lt=re(10958);const{kStatusCode:Pt}=re(71791);const Wt=Buffer[Symbol.species];const Ar=Buffer.from([0,0,255,255]);const Er=Symbol("permessage-deflate");const Ir=Symbol("total-length");const Br=Symbol("callback");const kr=Symbol("buffers");const Pr=Symbol("error");let Qr;class PerMessageDeflate{constructor(C,q,re){this._maxPayload=re|0;this._options=C||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!q;this._deflate=null;this._inflate=null;this.params=null;if(!Qr){const C=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;Qr=new lt(C)}}static get extensionName(){return"permessage-deflate"}offer(){const C={};if(this._options.serverNoContextTakeover){C.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){C.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){C.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){C.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){C.client_max_window_bits=true}return C}accept(C){C=this.normalizeParams(C);this.params=this._isServer?this.acceptAsServer(C):this.acceptAsClient(C);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const C=this._deflate[Br];this._deflate.close();this._deflate=null;if(C){C(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(C){const q=this._options;const re=C.find((C=>{if(q.serverNoContextTakeover===false&&C.server_no_context_takeover||C.server_max_window_bits&&(q.serverMaxWindowBits===false||typeof q.serverMaxWindowBits==="number"&&q.serverMaxWindowBits>C.server_max_window_bits)||typeof q.clientMaxWindowBits==="number"&&!C.client_max_window_bits){return false}return true}));if(!re){throw new Error("None of the extension offers can be accepted")}if(q.serverNoContextTakeover){re.server_no_context_takeover=true}if(q.clientNoContextTakeover){re.client_no_context_takeover=true}if(typeof q.serverMaxWindowBits==="number"){re.server_max_window_bits=q.serverMaxWindowBits}if(typeof q.clientMaxWindowBits==="number"){re.client_max_window_bits=q.clientMaxWindowBits}else if(re.client_max_window_bits===true||q.clientMaxWindowBits===false){delete re.client_max_window_bits}return re}acceptAsClient(C){const q=C[0];if(this._options.clientNoContextTakeover===false&&q.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!q.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){q.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&q.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return q}normalizeParams(C){C.forEach((C=>{Object.keys(C).forEach((q=>{let re=C[q];if(re.length>1){throw new Error(`Parameter "${q}" must have only a single value`)}re=re[0];if(q==="client_max_window_bits"){if(re!==true){const C=+re;if(!Number.isInteger(C)||C<8||C>15){throw new TypeError(`Invalid value for parameter "${q}": ${re}`)}re=C}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${q}": ${re}`)}}else if(q==="server_max_window_bits"){const C=+re;if(!Number.isInteger(C)||C<8||C>15){throw new TypeError(`Invalid value for parameter "${q}": ${re}`)}re=C}else if(q==="client_no_context_takeover"||q==="server_no_context_takeover"){if(re!==true){throw new TypeError(`Invalid value for parameter "${q}": ${re}`)}}else{throw new Error(`Unknown parameter "${q}"`)}C[q]=re}))}));return C}decompress(C,q,re){Qr.add((ae=>{this._decompress(C,q,((C,q)=>{ae();re(C,q)}))}))}compress(C,q,re){Qr.add((ae=>{this._compress(C,q,((C,q)=>{ae();re(C,q)}))}))}_decompress(C,q,re){const lt=this._isServer?"client":"server";if(!this._inflate){const C=`${lt}_max_window_bits`;const q=typeof this.params[C]!=="number"?ae.Z_DEFAULT_WINDOWBITS:this.params[C];this._inflate=ae.createInflateRaw({...this._options.zlibInflateOptions,windowBits:q});this._inflate[Er]=this;this._inflate[Ir]=0;this._inflate[kr]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[Br]=re;this._inflate.write(C);if(q)this._inflate.write(Ar);this._inflate.flush((()=>{const C=this._inflate[Pr];if(C){this._inflate.close();this._inflate=null;re(C);return}const ae=Ue.concat(this._inflate[kr],this._inflate[Ir]);if(this._inflate._readableState.endEmitted){this._inflate.close();this._inflate=null}else{this._inflate[Ir]=0;this._inflate[kr]=[];if(q&&this.params[`${lt}_no_context_takeover`]){this._inflate.reset()}}re(null,ae)}))}_compress(C,q,re){const lt=this._isServer?"server":"client";if(!this._deflate){const C=`${lt}_max_window_bits`;const q=typeof this.params[C]!=="number"?ae.Z_DEFAULT_WINDOWBITS:this.params[C];this._deflate=ae.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:q});this._deflate[Ir]=0;this._deflate[kr]=[];this._deflate.on("data",deflateOnData)}this._deflate[Br]=re;this._deflate.write(C);this._deflate.flush(ae.Z_SYNC_FLUSH,(()=>{if(!this._deflate){return}let C=Ue.concat(this._deflate[kr],this._deflate[Ir]);if(q){C=new Wt(C.buffer,C.byteOffset,C.length-4)}this._deflate[Br]=null;this._deflate[Ir]=0;this._deflate[kr]=[];if(q&&this.params[`${lt}_no_context_takeover`]){this._deflate.reset()}re(null,C)}))}}C.exports=PerMessageDeflate;function deflateOnData(C){this[kr].push(C);this[Ir]+=C.length}function inflateOnData(C){this[Ir]+=C.length;if(this[Er]._maxPayload<1||this[Ir]<=this[Er]._maxPayload){this[kr].push(C);return}this[Pr]=new RangeError("Max payload size exceeded");this[Pr].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";this[Pr][Pt]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(C){this[Er]._inflate=null;C[Pt]=1007;this[Br](C)}},20893:(C,q,re)=>{const{Writable:ae}=re(2203);const Ue=re(4376);const{BINARY_TYPES:lt,EMPTY_BUFFER:Pt,kStatusCode:Wt,kWebSocket:Ar}=re(71791);const{concat:Er,toArrayBuffer:Ir,unmask:Br}=re(95803);const{isValidStatusCode:kr,isValidUTF8:Pr}=re(26615);const Qr=Buffer[Symbol.species];const Fr=0;const Dr=1;const xr=2;const Mr=3;const Ur=4;const Nr=5;const Lr=6;class Receiver extends ae{constructor(C={}){super();this._allowSynchronousEvents=C.allowSynchronousEvents!==undefined?C.allowSynchronousEvents:true;this._binaryType=C.binaryType||lt[0];this._extensions=C.extensions||{};this._isServer=!!C.isServer;this._maxPayload=C.maxPayload|0;this._skipUTF8Validation=!!C.skipUTF8Validation;this[Ar]=undefined;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._errored=false;this._loop=false;this._state=Fr}_write(C,q,re){if(this._opcode===8&&this._state==Fr)return re();this._bufferedBytes+=C.length;this._buffers.push(C);this.startLoop(re)}consume(C){this._bufferedBytes-=C;if(C===this._buffers[0].length)return this._buffers.shift();if(C=re.length){q.set(this._buffers.shift(),ae)}else{q.set(new Uint8Array(re.buffer,re.byteOffset,C),ae);this._buffers[0]=new Qr(re.buffer,re.byteOffset+C,re.length-C)}C-=re.length}while(C>0);return q}startLoop(C){this._loop=true;do{switch(this._state){case Fr:this.getInfo(C);break;case Dr:this.getPayloadLength16(C);break;case xr:this.getPayloadLength64(C);break;case Mr:this.getMask();break;case Ur:this.getData(C);break;case Nr:case Lr:this._loop=false;return}}while(this._loop);if(!this._errored)C()}getInfo(C){if(this._bufferedBytes<2){this._loop=false;return}const q=this.consume(2);if((q[0]&48)!==0){const q=this.createError(RangeError,"RSV2 and RSV3 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_2_3");C(q);return}const re=(q[0]&64)===64;if(re&&!this._extensions[Ue.extensionName]){const q=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");C(q);return}this._fin=(q[0]&128)===128;this._opcode=q[0]&15;this._payloadLength=q[1]&127;if(this._opcode===0){if(re){const q=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");C(q);return}if(!this._fragmented){const q=this.createError(RangeError,"invalid opcode 0",true,1002,"WS_ERR_INVALID_OPCODE");C(q);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){const q=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");C(q);return}this._compressed=re}else if(this._opcode>7&&this._opcode<11){if(!this._fin){const q=this.createError(RangeError,"FIN must be set",true,1002,"WS_ERR_EXPECTED_FIN");C(q);return}if(re){const q=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");C(q);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){const q=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,true,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");C(q);return}}else{const q=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");C(q);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(q[1]&128)===128;if(this._isServer){if(!this._masked){const q=this.createError(RangeError,"MASK must be set",true,1002,"WS_ERR_EXPECTED_MASK");C(q);return}}else if(this._masked){const q=this.createError(RangeError,"MASK must be clear",true,1002,"WS_ERR_UNEXPECTED_MASK");C(q);return}if(this._payloadLength===126)this._state=Dr;else if(this._payloadLength===127)this._state=xr;else this.haveLength(C)}getPayloadLength16(C){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);this.haveLength(C)}getPayloadLength64(C){if(this._bufferedBytes<8){this._loop=false;return}const q=this.consume(8);const re=q.readUInt32BE(0);if(re>Math.pow(2,53-32)-1){const q=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");C(q);return}this._payloadLength=re*Math.pow(2,32)+q.readUInt32BE(4);this.haveLength(C)}haveLength(C){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){const q=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");C(q);return}}if(this._masked)this._state=Mr;else this._state=Ur}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=Ur}getData(C){let q=Pt;if(this._payloadLength){if(this._bufferedBytes7){this.controlMessage(q,C);return}if(this._compressed){this._state=Nr;this.decompress(q,C);return}if(q.length){this._messageLength=this._totalPayloadLength;this._fragments.push(q)}this.dataMessage(C)}decompress(C,q){const re=this._extensions[Ue.extensionName];re.decompress(C,this._fin,((C,re)=>{if(C)return q(C);if(re.length){this._messageLength+=re.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){const C=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");q(C);return}this._fragments.push(re)}this.dataMessage(q);if(this._state===Fr)this.startLoop(q)}))}dataMessage(C){if(!this._fin){this._state=Fr;return}const q=this._messageLength;const re=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let ae;if(this._binaryType==="nodebuffer"){ae=Er(re,q)}else if(this._binaryType==="arraybuffer"){ae=Ir(Er(re,q))}else if(this._binaryType==="blob"){ae=new Blob(re)}else{ae=re}if(this._allowSynchronousEvents){this.emit("message",ae,true);this._state=Fr}else{this._state=Lr;setImmediate((()=>{this.emit("message",ae,true);this._state=Fr;this.startLoop(C)}))}}else{const ae=Er(re,q);if(!this._skipUTF8Validation&&!Pr(ae)){const q=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");C(q);return}if(this._state===Nr||this._allowSynchronousEvents){this.emit("message",ae,false);this._state=Fr}else{this._state=Lr;setImmediate((()=>{this.emit("message",ae,false);this._state=Fr;this.startLoop(C)}))}}}controlMessage(C,q){if(this._opcode===8){if(C.length===0){this._loop=false;this.emit("conclude",1005,Pt);this.end()}else{const re=C.readUInt16BE(0);if(!kr(re)){const C=this.createError(RangeError,`invalid status code ${re}`,true,1002,"WS_ERR_INVALID_CLOSE_CODE");q(C);return}const ae=new Qr(C.buffer,C.byteOffset+2,C.length-2);if(!this._skipUTF8Validation&&!Pr(ae)){const C=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");q(C);return}this._loop=false;this.emit("conclude",re,ae);this.end()}this._state=Fr;return}if(this._allowSynchronousEvents){this.emit(this._opcode===9?"ping":"pong",C);this._state=Fr}else{this._state=Lr;setImmediate((()=>{this.emit(this._opcode===9?"ping":"pong",C);this._state=Fr;this.startLoop(q)}))}}createError(C,q,re,ae,Ue){this._loop=false;this._errored=true;const lt=new C(re?`Invalid WebSocket frame: ${q}`:q);Error.captureStackTrace(lt,this.createError);lt.code=Ue;lt[Wt]=ae;return lt}}C.exports=Receiver},7389:(C,q,re)=>{const{Duplex:ae}=re(2203);const{randomFillSync:Ue}=re(76982);const lt=re(4376);const{EMPTY_BUFFER:Pt,kWebSocket:Wt,NOOP:Ar}=re(71791);const{isBlob:Er,isValidStatusCode:Ir}=re(26615);const{mask:Br,toBuffer:kr}=re(95803);const Pr=Symbol("kByteLength");const Qr=Buffer.alloc(4);const Fr=8*1024;let Dr;let xr=Fr;const Mr=0;const Ur=1;const Nr=2;class Sender{constructor(C,q,re){this._extensions=q||{};if(re){this._generateMask=re;this._maskBuffer=Buffer.alloc(4)}this._socket=C;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._queue=[];this._state=Mr;this.onerror=Ar;this[Wt]=undefined}static frame(C,q){let re;let ae=false;let lt=2;let Pt=false;if(q.mask){re=q.maskBuffer||Qr;if(q.generateMask){q.generateMask(re)}else{if(xr===Fr){if(Dr===undefined){Dr=Buffer.alloc(Fr)}Ue(Dr,0,Fr);xr=0}re[0]=Dr[xr++];re[1]=Dr[xr++];re[2]=Dr[xr++];re[3]=Dr[xr++]}Pt=(re[0]|re[1]|re[2]|re[3])===0;lt=6}let Wt;if(typeof C==="string"){if((!q.mask||Pt)&&q[Pr]!==undefined){Wt=q[Pr]}else{C=Buffer.from(C);Wt=C.length}}else{Wt=C.length;ae=q.mask&&q.readOnly&&!Pt}let Ar=Wt;if(Wt>=65536){lt+=8;Ar=127}else if(Wt>125){lt+=2;Ar=126}const Er=Buffer.allocUnsafe(ae?Wt+lt:lt);Er[0]=q.fin?q.opcode|128:q.opcode;if(q.rsv1)Er[0]|=64;Er[1]=Ar;if(Ar===126){Er.writeUInt16BE(Wt,2)}else if(Ar===127){Er[2]=Er[3]=0;Er.writeUIntBE(Wt,4,6)}if(!q.mask)return[Er,C];Er[1]|=128;Er[lt-4]=re[0];Er[lt-3]=re[1];Er[lt-2]=re[2];Er[lt-1]=re[3];if(Pt)return[Er,C];if(ae){Br(C,re,Er,lt,Wt);return[Er]}Br(C,re,C,0,Wt);return[Er,C]}close(C,q,re,ae){let Ue;if(C===undefined){Ue=Pt}else if(typeof C!=="number"||!Ir(C)){throw new TypeError("First argument must be a valid error code number")}else if(q===undefined||!q.length){Ue=Buffer.allocUnsafe(2);Ue.writeUInt16BE(C,0)}else{const re=Buffer.byteLength(q);if(re>123){throw new RangeError("The message must not be greater than 123 bytes")}Ue=Buffer.allocUnsafe(2+re);Ue.writeUInt16BE(C,0);if(typeof q==="string"){Ue.write(q,2)}else{Ue.set(q,2)}}const lt={[Pr]:Ue.length,fin:true,generateMask:this._generateMask,mask:re,maskBuffer:this._maskBuffer,opcode:8,readOnly:false,rsv1:false};if(this._state!==Mr){this.enqueue([this.dispatch,Ue,false,lt,ae])}else{this.sendFrame(Sender.frame(Ue,lt),ae)}}ping(C,q,re){let ae;let Ue;if(typeof C==="string"){ae=Buffer.byteLength(C);Ue=false}else if(Er(C)){ae=C.size;Ue=false}else{C=kr(C);ae=C.length;Ue=kr.readOnly}if(ae>125){throw new RangeError("The data size must not be greater than 125 bytes")}const lt={[Pr]:ae,fin:true,generateMask:this._generateMask,mask:q,maskBuffer:this._maskBuffer,opcode:9,readOnly:Ue,rsv1:false};if(Er(C)){if(this._state!==Mr){this.enqueue([this.getBlobData,C,false,lt,re])}else{this.getBlobData(C,false,lt,re)}}else if(this._state!==Mr){this.enqueue([this.dispatch,C,false,lt,re])}else{this.sendFrame(Sender.frame(C,lt),re)}}pong(C,q,re){let ae;let Ue;if(typeof C==="string"){ae=Buffer.byteLength(C);Ue=false}else if(Er(C)){ae=C.size;Ue=false}else{C=kr(C);ae=C.length;Ue=kr.readOnly}if(ae>125){throw new RangeError("The data size must not be greater than 125 bytes")}const lt={[Pr]:ae,fin:true,generateMask:this._generateMask,mask:q,maskBuffer:this._maskBuffer,opcode:10,readOnly:Ue,rsv1:false};if(Er(C)){if(this._state!==Mr){this.enqueue([this.getBlobData,C,false,lt,re])}else{this.getBlobData(C,false,lt,re)}}else if(this._state!==Mr){this.enqueue([this.dispatch,C,false,lt,re])}else{this.sendFrame(Sender.frame(C,lt),re)}}send(C,q,re){const ae=this._extensions[lt.extensionName];let Ue=q.binary?2:1;let Pt=q.compress;let Wt;let Ar;if(typeof C==="string"){Wt=Buffer.byteLength(C);Ar=false}else if(Er(C)){Wt=C.size;Ar=false}else{C=kr(C);Wt=C.length;Ar=kr.readOnly}if(this._firstFragment){this._firstFragment=false;if(Pt&&ae&&ae.params[ae._isServer?"server_no_context_takeover":"client_no_context_takeover"]){Pt=Wt>=ae._threshold}this._compress=Pt}else{Pt=false;Ue=0}if(q.fin)this._firstFragment=true;const Ir={[Pr]:Wt,fin:q.fin,generateMask:this._generateMask,mask:q.mask,maskBuffer:this._maskBuffer,opcode:Ue,readOnly:Ar,rsv1:Pt};if(Er(C)){if(this._state!==Mr){this.enqueue([this.getBlobData,C,this._compress,Ir,re])}else{this.getBlobData(C,this._compress,Ir,re)}}else if(this._state!==Mr){this.enqueue([this.dispatch,C,this._compress,Ir,re])}else{this.dispatch(C,this._compress,Ir,re)}}getBlobData(C,q,re,ae){this._bufferedBytes+=re[Pr];this._state=Nr;C.arrayBuffer().then((C=>{if(this._socket.destroyed){const C=new Error("The socket was closed while the blob was being read");process.nextTick(callCallbacks,this,C,ae);return}this._bufferedBytes-=re[Pr];const Ue=kr(C);if(!q){this._state=Mr;this.sendFrame(Sender.frame(Ue,re),ae);this.dequeue()}else{this.dispatch(Ue,q,re,ae)}})).catch((C=>{process.nextTick(onError,this,C,ae)}))}dispatch(C,q,re,ae){if(!q){this.sendFrame(Sender.frame(C,re),ae);return}const Ue=this._extensions[lt.extensionName];this._bufferedBytes+=re[Pr];this._state=Ur;Ue.compress(C,re.fin,((C,q)=>{if(this._socket.destroyed){const C=new Error("The socket was closed while data was being compressed");callCallbacks(this,C,ae);return}this._bufferedBytes-=re[Pr];this._state=Mr;re.readOnly=false;this.sendFrame(Sender.frame(q,re),ae);this.dequeue()}))}dequeue(){while(this._state===Mr&&this._queue.length){const C=this._queue.shift();this._bufferedBytes-=C[3][Pr];Reflect.apply(C[0],this,C.slice(1))}}enqueue(C){this._bufferedBytes+=C[3][Pr];this._queue.push(C)}sendFrame(C,q){if(C.length===2){this._socket.cork();this._socket.write(C[0]);this._socket.write(C[1],q);this._socket.uncork()}else{this._socket.write(C[0],q)}}}C.exports=Sender;function callCallbacks(C,q,re){if(typeof re==="function")re(q);for(let re=0;re{const{Duplex:ae}=re(2203);function emitClose(C){C.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(C){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",C)}}function createWebSocketStream(C,q){let re=true;const Ue=new ae({...q,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});C.on("message",(function message(q,re){const ae=!re&&Ue._readableState.objectMode?q.toString():q;if(!Ue.push(ae))C.pause()}));C.once("error",(function error(C){if(Ue.destroyed)return;re=false;Ue.destroy(C)}));C.once("close",(function close(){if(Ue.destroyed)return;Ue.push(null)}));Ue._destroy=function(q,ae){if(C.readyState===C.CLOSED){ae(q);process.nextTick(emitClose,Ue);return}let lt=false;C.once("error",(function error(C){lt=true;ae(C)}));C.once("close",(function close(){if(!lt)ae(q);process.nextTick(emitClose,Ue)}));if(re)C.terminate()};Ue._final=function(q){if(C.readyState===C.CONNECTING){C.once("open",(function open(){Ue._final(q)}));return}if(C._socket===null)return;if(C._socket._writableState.finished){q();if(Ue._readableState.endEmitted)Ue.destroy()}else{C._socket.once("finish",(function finish(){q()}));C.close()}};Ue._read=function(){if(C.isPaused)C.resume()};Ue._write=function(q,re,ae){if(C.readyState===C.CONNECTING){C.once("open",(function open(){Ue._write(q,re,ae)}));return}C.send(q,ae)};Ue.on("end",duplexOnEnd);Ue.on("error",duplexOnError);return Ue}C.exports=createWebSocketStream},43332:(C,q,re)=>{const{tokenChars:ae}=re(26615);function parse(C){const q=new Set;let re=-1;let Ue=-1;let lt=0;for(lt;lt{const{isUtf8:ae}=re(20181);const{hasBlob:Ue}=re(71791);const lt=[0,0,0,0,0,0,0,0,0,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,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function isValidStatusCode(C){return C>=1e3&&C<=1014&&C!==1004&&C!==1005&&C!==1006||C>=3e3&&C<=4999}function _isValidUTF8(C){const q=C.length;let re=0;while(re=q||(C[re+1]&192)!==128||(C[re+2]&192)!==128||C[re]===224&&(C[re+1]&224)===128||C[re]===237&&(C[re+1]&224)===160){return false}re+=3}else if((C[re]&248)===240){if(re+3>=q||(C[re+1]&192)!==128||(C[re+2]&192)!==128||(C[re+3]&192)!==128||C[re]===240&&(C[re+1]&240)===128||C[re]===244&&C[re+1]>143||C[re]>244){return false}re+=4}else{return false}}return true}function isBlob(C){return Ue&&typeof C==="object"&&typeof C.arrayBuffer==="function"&&typeof C.type==="string"&&typeof C.stream==="function"&&(C[Symbol.toStringTag]==="Blob"||C[Symbol.toStringTag]==="File")}C.exports={isBlob:isBlob,isValidStatusCode:isValidStatusCode,isValidUTF8:_isValidUTF8,tokenChars:lt};if(ae){C.exports.isValidUTF8=function(C){return C.length<24?_isValidUTF8(C):ae(C)}}else if(!process.env.WS_NO_UTF_8_VALIDATE){try{const q=re(40397);C.exports.isValidUTF8=function(C){return C.length<32?_isValidUTF8(C):q(C)}}catch(C){}}},70129:(C,q,re)=>{const ae=re(24434);const Ue=re(58611);const{Duplex:lt}=re(2203);const{createHash:Pt}=re(76982);const Wt=re(61335);const Ar=re(4376);const Er=re(43332);const Ir=re(56681);const{GUID:Br,kWebSocket:kr}=re(71791);const Pr=/^[+/0-9A-Za-z]{22}==$/;const Qr=0;const Fr=1;const Dr=2;class WebSocketServer extends ae{constructor(C,q){super();C={allowSynchronousEvents:true,autoPong:true,maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,WebSocket:Ir,...C};if(C.port==null&&!C.server&&!C.noServer||C.port!=null&&(C.server||C.noServer)||C.server&&C.noServer){throw new TypeError('One and only one of the "port", "server", or "noServer" options '+"must be specified")}if(C.port!=null){this._server=Ue.createServer(((C,q)=>{const re=Ue.STATUS_CODES[426];q.writeHead(426,{"Content-Length":re.length,"Content-Type":"text/plain"});q.end(re)}));this._server.listen(C.port,C.host,C.backlog,q)}else if(C.server){this._server=C.server}if(this._server){const C=this.emit.bind(this,"connection");this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(q,re,ae)=>{this.handleUpgrade(q,re,ae,C)}})}if(C.perMessageDeflate===true)C.perMessageDeflate={};if(C.clientTracking){this.clients=new Set;this._shouldEmitClose=false}this.options=C;this._state=Qr}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(C){if(this._state===Dr){if(C){this.once("close",(()=>{C(new Error("The server is not running"))}))}process.nextTick(emitClose,this);return}if(C)this.once("close",C);if(this._state===Fr)return;this._state=Fr;if(this.options.noServer||this.options.server){if(this._server){this._removeListeners();this._removeListeners=this._server=null}if(this.clients){if(!this.clients.size){process.nextTick(emitClose,this)}else{this._shouldEmitClose=true}}else{process.nextTick(emitClose,this)}}else{const C=this._server;this._removeListeners();this._removeListeners=this._server=null;C.close((()=>{emitClose(this)}))}}shouldHandle(C){if(this.options.path){const q=C.url.indexOf("?");const re=q!==-1?C.url.slice(0,q):C.url;if(re!==this.options.path)return false}return true}handleUpgrade(C,q,re,ae){q.on("error",socketOnError);const Ue=C.headers["sec-websocket-key"];const lt=C.headers.upgrade;const Pt=+C.headers["sec-websocket-version"];if(C.method!=="GET"){const re="Invalid HTTP method";abortHandshakeOrEmitwsClientError(this,C,q,405,re);return}if(lt===undefined||lt.toLowerCase()!=="websocket"){const re="Invalid Upgrade header";abortHandshakeOrEmitwsClientError(this,C,q,400,re);return}if(Ue===undefined||!Pr.test(Ue)){const re="Missing or invalid Sec-WebSocket-Key header";abortHandshakeOrEmitwsClientError(this,C,q,400,re);return}if(Pt!==8&&Pt!==13){const re="Missing or invalid Sec-WebSocket-Version header";abortHandshakeOrEmitwsClientError(this,C,q,400,re);return}if(!this.shouldHandle(C)){abortHandshake(q,400);return}const Ir=C.headers["sec-websocket-protocol"];let Br=new Set;if(Ir!==undefined){try{Br=Er.parse(Ir)}catch(re){const ae="Invalid Sec-WebSocket-Protocol header";abortHandshakeOrEmitwsClientError(this,C,q,400,ae);return}}const kr=C.headers["sec-websocket-extensions"];const Qr={};if(this.options.perMessageDeflate&&kr!==undefined){const re=new Ar(this.options.perMessageDeflate,true,this.options.maxPayload);try{const C=Wt.parse(kr);if(C[Ar.extensionName]){re.accept(C[Ar.extensionName]);Qr[Ar.extensionName]=re}}catch(re){const ae="Invalid or unacceptable Sec-WebSocket-Extensions header";abortHandshakeOrEmitwsClientError(this,C,q,400,ae);return}}if(this.options.verifyClient){const lt={origin:C.headers[`${Pt===8?"sec-websocket-origin":"origin"}`],secure:!!(C.socket.authorized||C.socket.encrypted),req:C};if(this.options.verifyClient.length===2){this.options.verifyClient(lt,((lt,Pt,Wt,Ar)=>{if(!lt){return abortHandshake(q,Pt||401,Wt,Ar)}this.completeUpgrade(Qr,Ue,Br,C,q,re,ae)}));return}if(!this.options.verifyClient(lt))return abortHandshake(q,401)}this.completeUpgrade(Qr,Ue,Br,C,q,re,ae)}completeUpgrade(C,q,re,ae,Ue,lt,Er){if(!Ue.readable||!Ue.writable)return Ue.destroy();if(Ue[kr]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}if(this._state>Qr)return abortHandshake(Ue,503);const Ir=Pt("sha1").update(q+Br).digest("base64");const Pr=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Ir}`];const Fr=new this.options.WebSocket(null,undefined,this.options);if(re.size){const C=this.options.handleProtocols?this.options.handleProtocols(re,ae):re.values().next().value;if(C){Pr.push(`Sec-WebSocket-Protocol: ${C}`);Fr._protocol=C}}if(C[Ar.extensionName]){const q=C[Ar.extensionName].params;const re=Wt.format({[Ar.extensionName]:[q]});Pr.push(`Sec-WebSocket-Extensions: ${re}`);Fr._extensions=C}this.emit("headers",Pr,ae);Ue.write(Pr.concat("\r\n").join("\r\n"));Ue.removeListener("error",socketOnError);Fr.setSocket(Ue,lt,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation});if(this.clients){this.clients.add(Fr);Fr.on("close",(()=>{this.clients.delete(Fr);if(this._shouldEmitClose&&!this.clients.size){process.nextTick(emitClose,this)}}))}Er(Fr,ae)}}C.exports=WebSocketServer;function addListeners(C,q){for(const re of Object.keys(q))C.on(re,q[re]);return function removeListeners(){for(const re of Object.keys(q)){C.removeListener(re,q[re])}}}function emitClose(C){C._state=Dr;C.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(C,q,re,ae){re=re||Ue.STATUS_CODES[q];ae={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(re),...ae};C.once("finish",C.destroy);C.end(`HTTP/1.1 ${q} ${Ue.STATUS_CODES[q]}\r\n`+Object.keys(ae).map((C=>`${C}: ${ae[C]}`)).join("\r\n")+"\r\n\r\n"+re)}function abortHandshakeOrEmitwsClientError(C,q,re,ae,Ue){if(C.listenerCount("wsClientError")){const ae=new Error(Ue);Error.captureStackTrace(ae,abortHandshakeOrEmitwsClientError);C.emit("wsClientError",ae,re,q)}else{abortHandshake(re,ae,Ue)}}},56681:(C,q,re)=>{const ae=re(24434);const Ue=re(65692);const lt=re(58611);const Pt=re(69278);const Wt=re(64756);const{randomBytes:Ar,createHash:Er}=re(76982);const{Duplex:Ir,Readable:Br}=re(2203);const{URL:kr}=re(87016);const Pr=re(4376);const Qr=re(20893);const Fr=re(7389);const{isBlob:Dr}=re(26615);const{BINARY_TYPES:xr,EMPTY_BUFFER:Mr,GUID:Ur,kForOnEventAttribute:Nr,kListener:Lr,kStatusCode:jr,kWebSocket:Gr,NOOP:Vr}=re(71791);const{EventTarget:{addEventListener:Hr,removeEventListener:Wr}}=re(34634);const{format:$r,parse:Kr}=re(61335);const{toBuffer:zr}=re(95803);const Jr=30*1e3;const Yr=Symbol("kAborted");const Xr=[8,13];const Zr=["CONNECTING","OPEN","CLOSING","CLOSED"];const en=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class WebSocket extends ae{constructor(C,q,re){super();this._binaryType=xr[0];this._closeCode=1006;this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage=Mr;this._closeTimer=null;this._errorEmitted=false;this._extensions={};this._paused=false;this._protocol="";this._readyState=WebSocket.CONNECTING;this._receiver=null;this._sender=null;this._socket=null;if(C!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(q===undefined){q=[]}else if(!Array.isArray(q)){if(typeof q==="object"&&q!==null){re=q;q=[]}else{q=[q]}}initAsClient(this,C,q,re)}else{this._autoPong=re.autoPong;this._isServer=true}}get binaryType(){return this._binaryType}set binaryType(C){if(!xr.includes(C))return;this._binaryType=C;if(this._receiver)this._receiver._binaryType=C}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(C,q,re){const ae=new Qr({allowSynchronousEvents:re.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:re.maxPayload,skipUTF8Validation:re.skipUTF8Validation});const Ue=new Fr(C,this._extensions,re.generateMask);this._receiver=ae;this._sender=Ue;this._socket=C;ae[Gr]=this;Ue[Gr]=this;C[Gr]=this;ae.on("conclude",receiverOnConclude);ae.on("drain",receiverOnDrain);ae.on("error",receiverOnError);ae.on("message",receiverOnMessage);ae.on("ping",receiverOnPing);ae.on("pong",receiverOnPong);Ue.onerror=senderOnError;if(C.setTimeout)C.setTimeout(0);if(C.setNoDelay)C.setNoDelay();if(q.length>0)C.unshift(q);C.on("close",socketOnClose);C.on("data",socketOnData);C.on("end",socketOnEnd);C.on("error",socketOnError);this._readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[Pr.extensionName]){this._extensions[Pr.extensionName].cleanup()}this._receiver.removeAllListeners();this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(C,q){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const C="WebSocket was closed before the connection was established";abortHandshake(this,this._req,C);return}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)){this._socket.end()}return}this._readyState=WebSocket.CLOSING;this._sender.close(C,q,!this._isServer,(C=>{if(C)return;this._closeFrameSent=true;if(this._closeFrameReceived||this._receiver._writableState.errorEmitted){this._socket.end()}}));setCloseTimer(this)}pause(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=true;this._socket.pause()}ping(C,q,re){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof C==="function"){re=C;C=q=undefined}else if(typeof q==="function"){re=q;q=undefined}if(typeof C==="number")C=C.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,C,re);return}if(q===undefined)q=!this._isServer;this._sender.ping(C||Mr,q,re)}pong(C,q,re){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof C==="function"){re=C;C=q=undefined}else if(typeof q==="function"){re=q;q=undefined}if(typeof C==="number")C=C.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,C,re);return}if(q===undefined)q=!this._isServer;this._sender.pong(C||Mr,q,re)}resume(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=false;if(!this._receiver._writableState.needDrain)this._socket.resume()}send(C,q,re){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof q==="function"){re=q;q={}}if(typeof C==="number")C=C.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,C,re);return}const ae={binary:typeof C!=="string",mask:!this._isServer,compress:true,fin:true,...q};if(!this._extensions[Pr.extensionName]){ae.compress=false}this._sender.send(C||Mr,ae,re)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const C="WebSocket was closed before the connection was established";abortHandshake(this,this._req,C);return}if(this._socket){this._readyState=WebSocket.CLOSING;this._socket.destroy()}}}Object.defineProperty(WebSocket,"CONNECTING",{enumerable:true,value:Zr.indexOf("CONNECTING")});Object.defineProperty(WebSocket.prototype,"CONNECTING",{enumerable:true,value:Zr.indexOf("CONNECTING")});Object.defineProperty(WebSocket,"OPEN",{enumerable:true,value:Zr.indexOf("OPEN")});Object.defineProperty(WebSocket.prototype,"OPEN",{enumerable:true,value:Zr.indexOf("OPEN")});Object.defineProperty(WebSocket,"CLOSING",{enumerable:true,value:Zr.indexOf("CLOSING")});Object.defineProperty(WebSocket.prototype,"CLOSING",{enumerable:true,value:Zr.indexOf("CLOSING")});Object.defineProperty(WebSocket,"CLOSED",{enumerable:true,value:Zr.indexOf("CLOSED")});Object.defineProperty(WebSocket.prototype,"CLOSED",{enumerable:true,value:Zr.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((C=>{Object.defineProperty(WebSocket.prototype,C,{enumerable:true})}));["open","error","close","message"].forEach((C=>{Object.defineProperty(WebSocket.prototype,`on${C}`,{enumerable:true,get(){for(const q of this.listeners(C)){if(q[Nr])return q[Lr]}return null},set(q){for(const q of this.listeners(C)){if(q[Nr]){this.removeListener(C,q);break}}if(typeof q!=="function")return;this.addEventListener(C,q,{[Nr]:true})}})}));WebSocket.prototype.addEventListener=Hr;WebSocket.prototype.removeEventListener=Wr;C.exports=WebSocket;function initAsClient(C,q,re,ae){const Pt={allowSynchronousEvents:true,autoPong:true,protocolVersion:Xr[1],maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:true,followRedirects:false,maxRedirects:10,...ae,socketPath:undefined,hostname:undefined,protocol:undefined,timeout:undefined,method:"GET",host:undefined,path:undefined,port:undefined};C._autoPong=Pt.autoPong;if(!Xr.includes(Pt.protocolVersion)){throw new RangeError(`Unsupported protocol version: ${Pt.protocolVersion} `+`(supported versions: ${Xr.join(", ")})`)}let Wt;if(q instanceof kr){Wt=q}else{try{Wt=new kr(q)}catch(C){throw new SyntaxError(`Invalid URL: ${q}`)}}if(Wt.protocol==="http:"){Wt.protocol="ws:"}else if(Wt.protocol==="https:"){Wt.protocol="wss:"}C._url=Wt.href;const Ir=Wt.protocol==="wss:";const Br=Wt.protocol==="ws+unix:";let Qr;if(Wt.protocol!=="ws:"&&!Ir&&!Br){Qr='The URL\'s protocol must be one of "ws:", "wss:", '+'"http:", "https", or "ws+unix:"'}else if(Br&&!Wt.pathname){Qr="The URL's pathname is empty"}else if(Wt.hash){Qr="The URL contains a fragment identifier"}if(Qr){const q=new SyntaxError(Qr);if(C._redirects===0){throw q}else{emitErrorAndClose(C,q);return}}const Fr=Ir?443:80;const Dr=Ar(16).toString("base64");const xr=Ir?Ue.request:lt.request;const Mr=new Set;let Nr;Pt.createConnection=Pt.createConnection||(Ir?tlsConnect:netConnect);Pt.defaultPort=Pt.defaultPort||Fr;Pt.port=Wt.port||Fr;Pt.host=Wt.hostname.startsWith("[")?Wt.hostname.slice(1,-1):Wt.hostname;Pt.headers={...Pt.headers,"Sec-WebSocket-Version":Pt.protocolVersion,"Sec-WebSocket-Key":Dr,Connection:"Upgrade",Upgrade:"websocket"};Pt.path=Wt.pathname+Wt.search;Pt.timeout=Pt.handshakeTimeout;if(Pt.perMessageDeflate){Nr=new Pr(Pt.perMessageDeflate!==true?Pt.perMessageDeflate:{},false,Pt.maxPayload);Pt.headers["Sec-WebSocket-Extensions"]=$r({[Pr.extensionName]:Nr.offer()})}if(re.length){for(const C of re){if(typeof C!=="string"||!en.test(C)||Mr.has(C)){throw new SyntaxError("An invalid or duplicated subprotocol was specified")}Mr.add(C)}Pt.headers["Sec-WebSocket-Protocol"]=re.join(",")}if(Pt.origin){if(Pt.protocolVersion<13){Pt.headers["Sec-WebSocket-Origin"]=Pt.origin}else{Pt.headers.Origin=Pt.origin}}if(Wt.username||Wt.password){Pt.auth=`${Wt.username}:${Wt.password}`}if(Br){const C=Pt.path.split(":");Pt.socketPath=C[0];Pt.path=C[1]}let Lr;if(Pt.followRedirects){if(C._redirects===0){C._originalIpc=Br;C._originalSecure=Ir;C._originalHostOrSocketPath=Br?Pt.socketPath:Wt.host;const q=ae&&ae.headers;ae={...ae,headers:{}};if(q){for(const[C,re]of Object.entries(q)){ae.headers[C.toLowerCase()]=re}}}else if(C.listenerCount("redirect")===0){const q=Br?C._originalIpc?Pt.socketPath===C._originalHostOrSocketPath:false:C._originalIpc?false:Wt.host===C._originalHostOrSocketPath;if(!q||C._originalSecure&&!Ir){delete Pt.headers.authorization;delete Pt.headers.cookie;if(!q)delete Pt.headers.host;Pt.auth=undefined}}if(Pt.auth&&!ae.headers.authorization){ae.headers.authorization="Basic "+Buffer.from(Pt.auth).toString("base64")}Lr=C._req=xr(Pt);if(C._redirects){C.emit("redirect",C.url,Lr)}}else{Lr=C._req=xr(Pt)}if(Pt.timeout){Lr.on("timeout",(()=>{abortHandshake(C,Lr,"Opening handshake has timed out")}))}Lr.on("error",(q=>{if(Lr===null||Lr[Yr])return;Lr=C._req=null;emitErrorAndClose(C,q)}));Lr.on("response",(Ue=>{const lt=Ue.headers.location;const Wt=Ue.statusCode;if(lt&&Pt.followRedirects&&Wt>=300&&Wt<400){if(++C._redirects>Pt.maxRedirects){abortHandshake(C,Lr,"Maximum redirects exceeded");return}Lr.abort();let Ue;try{Ue=new kr(lt,q)}catch(q){const re=new SyntaxError(`Invalid URL: ${lt}`);emitErrorAndClose(C,re);return}initAsClient(C,Ue,re,ae)}else if(!C.emit("unexpected-response",Lr,Ue)){abortHandshake(C,Lr,`Unexpected server response: ${Ue.statusCode}`)}}));Lr.on("upgrade",((q,re,ae)=>{C.emit("upgrade",q);if(C.readyState!==WebSocket.CONNECTING)return;Lr=C._req=null;const Ue=q.headers.upgrade;if(Ue===undefined||Ue.toLowerCase()!=="websocket"){abortHandshake(C,re,"Invalid Upgrade header");return}const lt=Er("sha1").update(Dr+Ur).digest("base64");if(q.headers["sec-websocket-accept"]!==lt){abortHandshake(C,re,"Invalid Sec-WebSocket-Accept header");return}const Wt=q.headers["sec-websocket-protocol"];let Ar;if(Wt!==undefined){if(!Mr.size){Ar="Server sent a subprotocol but none was requested"}else if(!Mr.has(Wt)){Ar="Server sent an invalid subprotocol"}}else if(Mr.size){Ar="Server sent no subprotocol"}if(Ar){abortHandshake(C,re,Ar);return}if(Wt)C._protocol=Wt;const Ir=q.headers["sec-websocket-extensions"];if(Ir!==undefined){if(!Nr){const q="Server sent a Sec-WebSocket-Extensions header but no extension "+"was requested";abortHandshake(C,re,q);return}let q;try{q=Kr(Ir)}catch(q){const ae="Invalid Sec-WebSocket-Extensions header";abortHandshake(C,re,ae);return}const ae=Object.keys(q);if(ae.length!==1||ae[0]!==Pr.extensionName){const q="Server indicated an extension that was not requested";abortHandshake(C,re,q);return}try{Nr.accept(q[Pr.extensionName])}catch(q){const ae="Invalid Sec-WebSocket-Extensions header";abortHandshake(C,re,ae);return}C._extensions[Pr.extensionName]=Nr}C.setSocket(re,ae,{allowSynchronousEvents:Pt.allowSynchronousEvents,generateMask:Pt.generateMask,maxPayload:Pt.maxPayload,skipUTF8Validation:Pt.skipUTF8Validation})}));if(Pt.finishRequest){Pt.finishRequest(Lr,C)}else{Lr.end()}}function emitErrorAndClose(C,q){C._readyState=WebSocket.CLOSING;C._errorEmitted=true;C.emit("error",q);C.emitClose()}function netConnect(C){C.path=C.socketPath;return Pt.connect(C)}function tlsConnect(C){C.path=undefined;if(!C.servername&&C.servername!==""){C.servername=Pt.isIP(C.host)?"":C.host}return Wt.connect(C)}function abortHandshake(C,q,re){C._readyState=WebSocket.CLOSING;const ae=new Error(re);Error.captureStackTrace(ae,abortHandshake);if(q.setHeader){q[Yr]=true;q.abort();if(q.socket&&!q.socket.destroyed){q.socket.destroy()}process.nextTick(emitErrorAndClose,C,ae)}else{q.destroy(ae);q.once("error",C.emit.bind(C,"error"));q.once("close",C.emitClose.bind(C))}}function sendAfterClose(C,q,re){if(q){const re=Dr(q)?q.size:zr(q).length;if(C._socket)C._sender._bufferedBytes+=re;else C._bufferedAmount+=re}if(re){const q=new Error(`WebSocket is not open: readyState ${C.readyState} `+`(${Zr[C.readyState]})`);process.nextTick(re,q)}}function receiverOnConclude(C,q){const re=this[Gr];re._closeFrameReceived=true;re._closeMessage=q;re._closeCode=C;if(re._socket[Gr]===undefined)return;re._socket.removeListener("data",socketOnData);process.nextTick(resume,re._socket);if(C===1005)re.close();else re.close(C,q)}function receiverOnDrain(){const C=this[Gr];if(!C.isPaused)C._socket.resume()}function receiverOnError(C){const q=this[Gr];if(q._socket[Gr]!==undefined){q._socket.removeListener("data",socketOnData);process.nextTick(resume,q._socket);q.close(C[jr])}if(!q._errorEmitted){q._errorEmitted=true;q.emit("error",C)}}function receiverOnFinish(){this[Gr].emitClose()}function receiverOnMessage(C,q){this[Gr].emit("message",C,q)}function receiverOnPing(C){const q=this[Gr];if(q._autoPong)q.pong(C,!this._isServer,Vr);q.emit("ping",C)}function receiverOnPong(C){this[Gr].emit("pong",C)}function resume(C){C.resume()}function senderOnError(C){const q=this[Gr];if(q.readyState===WebSocket.CLOSED)return;if(q.readyState===WebSocket.OPEN){q._readyState=WebSocket.CLOSING;setCloseTimer(q)}this._socket.end();if(!q._errorEmitted){q._errorEmitted=true;q.emit("error",C)}}function setCloseTimer(C){C._closeTimer=setTimeout(C._socket.destroy.bind(C._socket),Jr)}function socketOnClose(){const C=this[Gr];this.removeListener("close",socketOnClose);this.removeListener("data",socketOnData);this.removeListener("end",socketOnEnd);C._readyState=WebSocket.CLOSING;let q;if(!this._readableState.endEmitted&&!C._closeFrameReceived&&!C._receiver._writableState.errorEmitted&&(q=C._socket.read())!==null){C._receiver.write(q)}C._receiver.end();this[Gr]=undefined;clearTimeout(C._closeTimer);if(C._receiver._writableState.finished||C._receiver._writableState.errorEmitted){C.emitClose()}else{C._receiver.on("error",receiverOnFinish);C._receiver.on("finish",receiverOnFinish)}}function socketOnData(C){if(!this[Gr]._receiver.write(C)){this.pause()}}function socketOnEnd(){const C=this[Gr];C._readyState=WebSocket.CLOSING;C._receiver.end();this.end()}function socketOnError(){const C=this[Gr];this.removeListener("error",socketOnError);this.on("error",Vr);if(C){C._readyState=WebSocket.CLOSING;this.destroy()}}},73546:(C,q,re)=>{C.exports={EventTarget:re(80839),Event:re(21126)}},21126:C=>{C.exports=_Event;function _Event(C){this.type=C;this.isTrusted=false;this._yaeti=true}},80839:C=>{C.exports=_EventTarget;function _EventTarget(){if(typeof this.addEventListener==="function"){return}this._listeners={};this.addEventListener=_addEventListener;this.removeEventListener=_removeEventListener;this.dispatchEvent=_dispatchEvent}Object.defineProperties(_EventTarget.prototype,{listeners:{get:function(){return this._listeners}}});function _addEventListener(C,q){var re,ae,Ue;if(!C||!q){return}re=this._listeners[C];if(re===undefined){this._listeners[C]=re=[]}for(ae=0;!!(Ue=re[ae]);ae++){if(Ue===q){return}}re.push(q)}function _removeEventListener(C,q){var re,ae,Ue;if(!C||!q){return}re=this._listeners[C];if(re===undefined){return}for(ae=0;!!(Ue=re[ae]);ae++){if(Ue===q){re.splice(ae,1);break}}if(re.length===0){delete this._listeners[C]}}function _dispatchEvent(C){var q,re,ae,Ue=false,lt,Pt;if(!C||typeof C.type!=="string"){throw new Error("`event` must have a valid `type` property")}if(C._yaeti){C.target=this;C.cancelable=true}try{C.stopImmediatePropagation=function(){Ue=true}}catch(C){}q=C.type;re=this._listeners[q]||[];ae=this["on"+q];if(typeof ae==="function"){ae.call(this,C)}for(lt=0;!!(Pt=re[lt]);lt++){if(Ue){break}Pt.call(this,C)}return!C.defaultPrevented}},42078:module=>{module.exports=eval("require")("encoding")},42613:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert")},90290:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("async_hooks")},20181:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer")},64236:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("console")},49140:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("constants")},76982:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto")},31637:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("diagnostics_channel")},24434:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("events")},79896:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs")},58611:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http")},85675:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http2")},65692:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("https")},69278:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("net")},78474:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events")},57075:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream")},57975:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util")},70857:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("os")},16928:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("path")},82987:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("perf_hooks")},24876:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("punycode")},83480:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("querystring")},2203:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream")},63774:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream/web")},13193:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("string_decoder")},64756:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls")},52018:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tty")},87016:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("url")},39023:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util")},98253:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util/types")},28167:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("worker_threads")},43106:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib")},27182:(C,q,re)=>{const ae=re(57075).Writable;const Ue=re(57975).inherits;const lt=re(84136);const Pt=re(50612);const Wt=re(62271);const Ar=45;const Er=Buffer.from("-");const Ir=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(C){if(!(this instanceof Dicer)){return new Dicer(C)}ae.call(this,C);if(!C||!C.headerFirst&&typeof C.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof C.boundary==="string"){this.setBoundary(C.boundary)}else{this._bparser=undefined}this._headerFirst=C.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:C.partHwm};this._pause=false;const q=this;this._hparser=new Wt(C);this._hparser.on("header",(function(C){q._inHeader=false;q._part.emit("header",C)}))}Ue(Dicer,ae);Dicer.prototype.emit=function(C){if(C==="finish"&&!this._realFinish){if(!this._finished){const C=this;process.nextTick((function(){C.emit("error",new Error("Unexpected end of multipart data"));if(C._part&&!C._ignoreData){const q=C._isPreamble?"Preamble":"Part";C._part.emit("error",new Error(q+" terminated early due to unexpected end of multipart data"));C._part.push(null);process.nextTick((function(){C._realFinish=true;C.emit("finish");C._realFinish=false}));return}C._realFinish=true;C.emit("finish");C._realFinish=false}))}}else{ae.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(C,q,re){if(!this._hparser&&!this._bparser){return re()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new Pt(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const q=this._hparser.push(C);if(!this._inHeader&&q!==undefined&&q{const ae=re(78474).EventEmitter;const Ue=re(57975).inherits;const lt=re(22393);const Pt=re(84136);const Wt=Buffer.from("\r\n\r\n");const Ar=/\r\n/g;const Er=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(C){ae.call(this);C=C||{};const q=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=lt(C,"maxHeaderPairs",2e3);this.maxHeaderSize=lt(C,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new Pt(Wt);this.ss.on("info",(function(C,re,ae,Ue){if(re&&!q.maxed){if(q.nread+Ue-ae>=q.maxHeaderSize){Ue=q.maxHeaderSize-q.nread+ae;q.nread=q.maxHeaderSize;q.maxed=true}else{q.nread+=Ue-ae}q.buffer+=re.toString("binary",ae,Ue)}if(C){q._finish()}}))}Ue(HeaderParser,ae);HeaderParser.prototype.push=function(C){const q=this.ss.push(C);if(this.finished){return q}};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 C=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",C)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const C=this.buffer.split(Ar);const q=C.length;let re,ae;for(var Ue=0;Ue{const ae=re(57975).inherits;const Ue=re(57075).Readable;function PartStream(C){Ue.call(this,C)}ae(PartStream,Ue);PartStream.prototype._read=function(C){};C.exports=PartStream},84136:(C,q,re)=>{const ae=re(78474).EventEmitter;const Ue=re(57975).inherits;function SBMH(C){if(typeof C==="string"){C=Buffer.from(C)}if(!Buffer.isBuffer(C)){throw new TypeError("The needle has to be a String or a Buffer.")}const q=C.length;if(q===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(q>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(q);this._lookbehind_size=0;this._needle=C;this._bufpos=0;this._lookbehind=Buffer.alloc(q);for(var re=0;re=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const re=this._lookbehind_size+lt;if(re>0){this.emit("info",false,this._lookbehind,0,re)}this._lookbehind.copy(this._lookbehind,0,re,this._lookbehind_size-re);this._lookbehind_size-=re;C.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=q;this._bufpos=q;return q}}lt+=(lt>=0)*this._bufpos;if(C.indexOf(re,lt)!==-1){lt=C.indexOf(re,lt);++this.matches;if(lt>0){this.emit("info",true,C,this._bufpos,lt)}else{this.emit("info",true)}return this._bufpos=lt+ae}else{lt=q-ae}while(lt0){this.emit("info",false,C,this._bufpos,lt{const ae=re(57075).Writable;const{inherits:Ue}=re(57975);const lt=re(27182);const Pt=re(41192);const Wt=re(80855);const Ar=re(8929);function Busboy(C){if(!(this instanceof Busboy)){return new Busboy(C)}if(typeof C!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof C.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof C.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:q,...re}=C;this.opts={autoDestroy:false,...re};ae.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(q);this._finished=false}Ue(Busboy,ae);Busboy.prototype.emit=function(C){if(C==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}ae.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(C){const q=Ar(C["content-type"]);const re={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:C,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:q,preservePath:this.opts.preservePath};if(Pt.detect.test(q[0])){return new Pt(this,re)}if(Wt.detect.test(q[0])){return new Wt(this,re)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(C,q,re){this._parser.write(C,re)};C.exports=Busboy;C.exports["default"]=Busboy;C.exports.Busboy=Busboy;C.exports.Dicer=lt},41192:(C,q,re)=>{const{Readable:ae}=re(57075);const{inherits:Ue}=re(57975);const lt=re(27182);const Pt=re(8929);const Wt=re(72747);const Ar=re(20692);const Er=re(22393);const Ir=/^boundary$/i;const Br=/^form-data$/i;const kr=/^charset$/i;const Pr=/^filename$/i;const Qr=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(C,q){let re;let ae;const Ue=this;let Fr;const Dr=q.limits;const xr=q.isPartAFile||((C,q,re)=>q==="application/octet-stream"||re!==undefined);const Mr=q.parsedConType||[];const Ur=q.defCharset||"utf8";const Nr=q.preservePath;const Lr={highWaterMark:q.fileHwm};for(re=0,ae=Mr.length;reWr){Ue.parser.removeListener("part",onPart);Ue.parser.on("part",skipPart);C.hitPartsLimit=true;C.emit("partsLimit");return skipPart(q)}if(Zr){const C=Zr;C.emit("end");C.removeAllListeners("end")}q.on("header",(function(lt){let Er;let Ir;let Fr;let Dr;let Mr;let Wr;let $r=0;if(lt["content-type"]){Fr=Pt(lt["content-type"][0]);if(Fr[0]){Er=Fr[0].toLowerCase();for(re=0,ae=Fr.length;reGr){const ae=Gr-$r+C.length;if(ae>0){re.push(C.slice(0,ae))}re.truncated=true;re.bytesRead=Gr;q.removeAllListeners("data");re.emit("limit");return}else if(!re.push(C)){Ue._pause=true}re.bytesRead=$r};en=function(){Xr=undefined;re.push(null)}}else{if(Jr===Hr){if(!C.hitFieldsLimit){C.hitFieldsLimit=true;C.emit("fieldsLimit")}return skipPart(q)}++Jr;++Yr;let re="";let ae=false;Zr=q;Kr=function(C){if(($r+=C.length)>jr){const Ue=jr-($r-C.length);re+=C.toString("binary",0,Ue);ae=true;q.removeAllListeners("data")}else{re+=C.toString("binary")}};en=function(){Zr=undefined;if(re.length){re=Wt(re,"binary",Dr)}C.emit("field",Ir,re,false,ae,Mr,Er);--Yr;checkFinished()}}q._readableState.sync=false;q.on("data",Kr);q.on("end",en)})).on("error",(function(C){if(Xr){Xr.emit("error",C)}}))})).on("error",(function(q){C.emit("error",q)})).on("finish",(function(){en=true;checkFinished()}))}Multipart.prototype.write=function(C,q){const re=this.parser.write(C);if(re&&!this._pause){q()}else{this._needDrain=!re;this._cb=q}};Multipart.prototype.end=function(){const C=this;if(C.parser.writable){C.parser.end()}else if(!C._boy._done){process.nextTick((function(){C._boy._done=true;C._boy.emit("finish")}))}};function skipPart(C){C.resume()}function FileStream(C){ae.call(this,C);this.bytesRead=0;this.truncated=false}Ue(FileStream,ae);FileStream.prototype._read=function(C){};C.exports=Multipart},80855:(C,q,re)=>{const ae=re(11496);const Ue=re(72747);const lt=re(22393);const Pt=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(C,q){const re=q.limits;const Ue=q.parsedConType;this.boy=C;this.fieldSizeLimit=lt(re,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=lt(re,"fieldNameSize",100);this.fieldsLimit=lt(re,"fields",Infinity);let Wt;for(var Ar=0,Er=Ue.length;ArPt){this._key+=this.decoder.write(C.toString("binary",Pt,re))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();Pt=re+1}else if(ae!==undefined){++this._fields;let re;const lt=this._keyTrunc;if(ae>Pt){re=this._key+=this.decoder.write(C.toString("binary",Pt,ae))}else{re=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(re.length){this.boy.emit("field",Ue(re,"binary",this.charset),"",lt,false)}Pt=ae+1;if(this._fields===this.fieldsLimit){return q()}}else if(this._hitLimit){if(lt>Pt){this._key+=this.decoder.write(C.toString("binary",Pt,lt))}Pt=lt;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(PtPt){this._val+=this.decoder.write(C.toString("binary",Pt,ae))}this.boy.emit("field",Ue(this._key,"binary",this.charset),Ue(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();Pt=ae+1;if(this._fields===this.fieldsLimit){return q()}}else if(this._hitLimit){if(lt>Pt){this._val+=this.decoder.write(C.toString("binary",Pt,lt))}Pt=lt;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(Pt0){this.boy.emit("field",Ue(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",Ue(this._key,"binary",this.charset),Ue(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};C.exports=UrlEncoded},11496:C=>{const q=/\+/g;const re=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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(C){C=C.replace(q," ");let ae="";let Ue=0;let lt=0;const Pt=C.length;for(;Uelt){ae+=C.substring(lt,Ue);lt=Ue}this.buffer="";++lt}}if(lt{C.exports=function basename(C){if(typeof C!=="string"){return""}for(var q=C.length-1;q>=0;--q){switch(C.charCodeAt(q)){case 47:case 92:C=C.slice(q+1);return C===".."||C==="."?"":C}}return C===".."||C==="."?"":C}},72747:function(C){const q=new TextDecoder("utf-8");const re=new Map([["utf-8",q],["utf8",q]]);function getDecoder(C){let q;while(true){switch(C){case"utf-8":case"utf8":return ae.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 ae.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return ae.utf16le;case"base64":return ae.base64;default:if(q===undefined){q=true;C=C.toLowerCase();continue}return ae.other.bind(C)}}}const ae={utf8:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){C=Buffer.from(C,q)}return C.utf8Slice(0,C.length)},latin1:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){return C}return C.latin1Slice(0,C.length)},utf16le:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){C=Buffer.from(C,q)}return C.ucs2Slice(0,C.length)},base64:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){C=Buffer.from(C,q)}return C.base64Slice(0,C.length)},other:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){C=Buffer.from(C,q)}if(re.has(this.toString())){try{return re.get(this).decode(C)}catch{}}return typeof C==="string"?C:C.toString()}};function decodeText(C,q,re){if(C){return getDecoder(re)(C,q)}return C}C.exports=decodeText},22393:C=>{C.exports=function getLimit(C,q,re){if(!C||C[q]===undefined||C[q]===null){return re}if(typeof C[q]!=="number"||isNaN(C[q])){throw new TypeError("Limit "+q+" is not a valid number")}return C[q]}},8929:(C,q,re)=>{const ae=re(72747);const Ue=/%[a-fA-F0-9][a-fA-F0-9]/g;const lt={"%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(C){return lt[C]}const Pt=0;const Wt=1;const Ar=2;const Er=3;function parseParams(C){const q=[];let re=Pt;let lt="";let Ir=false;let Br=false;let kr=0;let Pr="";const Qr=C.length;for(var Fr=0;Fr{Object.defineProperty(q,"__esModule",{value:true});q.installCallbackQueryMethods=void 0;const ae=re(49472);const Ue=re(65936);function installCallbackQueryMethods(C,q){if(q.message!==undefined){(0,Ue.installMessageMethods)(C,q.message)}else if(q.inline_message_id!==undefined){(0,ae.installInlineMessageMethods)(C,{inline_message_id:q.inline_message_id})}const re={answer:(re,ae)=>C.answerCallbackQuery({callback_query_id:q.id,...re},ae)};Object.assign(q,re)}q.installCallbackQueryMethods=installCallbackQueryMethods},11006:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installChatJoinRequestMethods=void 0;function installChatJoinRequestMethods(C,q){const re={approve:re=>C.approveChatJoinRequest({chat_id:q.chat.id,user_id:q.from.id},re),decline:re=>C.declineChatJoinRequest({chat_id:q.chat.id,user_id:q.from.id},re)};Object.assign(q,re)}q.installChatJoinRequestMethods=installChatJoinRequestMethods},48541:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installChatMethods=void 0;function installChatMethods(C,q){const re={setPermissions:(re,ae,Ue)=>C.setChatPermissions({chat_id:q.id,permissions:re,...ae},Ue),getMember:(re,ae,Ue)=>C.getChatMember({chat_id:q.id,user_id:re,...ae},Ue),getMembersCount:(re,ae)=>C.getChatMemberCount({chat_id:q.id,...re},ae),getAdmins:(re,ae)=>C.getChatAdministrators({chat_id:q.id,...re},ae),setStickerSet:(re,ae,Ue)=>C.setChatStickerSet({chat_id:q.id,sticker_set_name:re,...ae},Ue),deleteStickerSet:(re,ae)=>C.deleteChatStickerSet({chat_id:q.id,...re},ae),createForumTopic:(re,ae,Ue)=>C.createForumTopic({chat_id:q.id,name:re,...ae},Ue),editForumTopic:(re,ae,Ue)=>C.editForumTopic({chat_id:q.id,message_thread_id:re,...ae},Ue),closeForumTopic:(re,ae,Ue)=>C.closeForumTopic({chat_id:q.id,message_thread_id:re,...ae},Ue),reopenForumTopic:(re,ae,Ue)=>C.reopenForumTopic({chat_id:q.id,message_thread_id:re,...ae},Ue),deleteForumTopic:(re,ae,Ue)=>C.deleteForumTopic({chat_id:q.id,message_thread_id:re,...ae},Ue),unpinAllForumTopicMessages:(re,ae,Ue)=>C.unpinAllForumTopicMessages({chat_id:q.id,message_thread_id:re,...ae},Ue),editGeneralForumTopic:(re,ae,Ue)=>C.editGeneralForumTopic({chat_id:q.id,name:re,...ae},Ue),closeGeneralForumTopic:(re,ae)=>C.closeGeneralForumTopic({chat_id:q.id,...re},ae),reopenGeneralForumTopic:(re,ae)=>C.reopenGeneralForumTopic({chat_id:q.id,...re},ae),hideGeneralForumTopic:(re,ae)=>C.hideGeneralForumTopic({chat_id:q.id,...re},ae),unhideGeneralForumTopic:(re,ae)=>C.unhideGeneralForumTopic({chat_id:q.id,...re},ae),setMenuButton:(re,ae)=>C.setChatMenuButton({chat_id:q.id,...re},ae),getMenuButton:(re,ae)=>C.getChatMenuButton({chat_id:q.id,...re},ae),leave:(re,ae)=>C.leaveChat({chat_id:q.id,...re},ae),setPhoto:(re,ae,Ue)=>C.setChatPhoto({chat_id:q.id,photo:re,...ae},Ue),deletePhoto:(re,ae)=>C.deleteChatPhoto({chat_id:q.id,...re},ae),setTitle:(re,ae,Ue)=>C.setChatTitle({chat_id:q.id,title:re,...ae},Ue),setDescription:(re,ae,Ue)=>C.setChatDescription({chat_id:q.id,description:re,...ae},Ue),unpinAllMessages:(re,ae)=>C.unpinAllChatMessages({chat_id:q.id,...re},ae),revokeInviteLink:(re,ae,Ue)=>C.revokeChatInviteLink({chat_id:q.id,invite_link:re,...ae},Ue),editInviteLink:(re,ae,Ue)=>C.editChatInviteLink({chat_id:q.id,invite_link:re,...ae},Ue),createInviteLink:(re,ae)=>C.createChatInviteLink({chat_id:q.id,...re},ae),exportInviteLink:(re,ae)=>C.exportChatInviteLink({chat_id:q.id,...re},ae),unbanSenderChat:(re,ae,Ue)=>C.unbanChatSenderChat({chat_id:q.id,sender_chat_id:re,...ae},Ue),banSenderChat:(re,ae,Ue)=>C.banChatSenderChat({chat_id:q.id,sender_chat_id:re,...ae},Ue),banMember:(re,ae,Ue)=>C.banChatMember({chat_id:q.id,user_id:re,...ae},Ue),unbanMember:(re,ae,Ue)=>C.unbanChatMember({chat_id:q.id,user_id:re,...ae},Ue)};Object.assign(q,re)}q.installChatMethods=installChatMethods},80065:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.installChosenInlineResultMethods=void 0;const ae=re(49472);function installChosenInlineResultMethods(C,q){if(q.inline_message_id!==undefined){(0,ae.installInlineMessageMethods)(C,{inline_message_id:q.inline_message_id})}}q.installChosenInlineResultMethods=installChosenInlineResultMethods},49472:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installInlineMessageMethods=void 0;function installInlineMessageMethods(C,q){const re={editReplyMarkup:(re,ae)=>C.editMessageReplyMarkup({inline_message_id:q.inline_message_id,reply_markup:re},ae),editText:(re,ae,Ue)=>C.editMessageText({inline_message_id:q.inline_message_id,text:re,...ae},Ue),editLiveLocation:(re,ae,Ue,lt)=>C.editMessageLiveLocation({inline_message_id:q.inline_message_id,latitude:re,longitude:ae,...Ue},lt),stopLiveLocation:(re,ae)=>C.stopMessageLiveLocation({inline_message_id:q.inline_message_id,...re},ae),editCaption:(re,ae,Ue)=>C.editMessageCaption({inline_message_id:q.inline_message_id,caption:re,...ae},Ue),editMedia:(re,ae,Ue)=>C.editMessageMedia({inline_message_id:q.inline_message_id,media:re,...ae},Ue)};Object.assign(q,re)}q.installInlineMessageMethods=installInlineMessageMethods},39255:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installInlineQueryMethods=void 0;function installInlineQueryMethods(C,q){const re={answer:(re,ae,Ue)=>C.answerInlineQuery({inline_query_id:q.id,results:re,...ae},Ue)};Object.assign(q,re)}q.installInlineQueryMethods=installInlineQueryMethods},65936:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installMessageMethods=void 0;function installMessageMethods(C,q){const re={forward:(re,ae,Ue)=>C.forwardMessage({chat_id:re,from_chat_id:q.chat.id,message_id:q.message_id,...ae},Ue),copy:(re,ae,Ue)=>C.copyMessage({chat_id:re,from_chat_id:q.chat.id,message_id:q.message_id,...ae},Ue),delete:re=>C.deleteMessage({chat_id:q.chat.id,message_id:q.message_id},re),editReplyMarkup:(re,ae)=>C.editMessageReplyMarkup({chat_id:q.chat.id,message_id:q.message_id,reply_markup:re},ae),editText:(re,ae,Ue)=>C.editMessageText({chat_id:q.chat.id,message_id:q.message_id,text:re,...ae},Ue),editLiveLocation:(re,ae,Ue,lt)=>C.editMessageLiveLocation({chat_id:q.chat.id,message_id:q.message_id,latitude:re,longitude:ae,...Ue},lt),stopLiveLocation:(re,ae)=>C.stopMessageLiveLocation({chat_id:q.chat.id,message_id:q.message_id,...re},ae),editCaption:(re,ae,Ue)=>C.editMessageCaption({chat_id:q.chat.id,message_id:q.message_id,caption:re,...ae},Ue),editMedia:(re,ae,Ue)=>C.editMessageMedia({chat_id:q.chat.id,message_id:q.message_id,media:re,...ae},Ue),react:(re,ae,Ue)=>C.setMessageReaction({chat_id:q.chat.id,message_id:q.message_id,reaction:typeof re==="string"?[{type:"emoji",emoji:re}]:(Array.isArray(re)?re:[re]).map((C=>typeof C==="string"?{type:"emoji",emoji:C}:C)),...ae},Ue),getCustomEmojiStickers:async re=>{var ae;const Ue=(ae=q.entities)!==null&&ae!==void 0?ae:q.caption_entities;if(Ue===undefined||Ue.length===0)return[];const lt=Ue.filter((C=>C.type==="custom_emoji")).map((C=>C.custom_emoji_id));return await C.getCustomEmojiStickers({custom_emoji_ids:lt},re)}};Object.assign(q,re)}q.installMessageMethods=installMessageMethods},17746:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installPreCheckoutQueryMethods=void 0;function installPreCheckoutQueryMethods(C,q){const re={answer:(re,ae,Ue)=>C.answerPreCheckoutQuery({pre_checkout_query_id:q.id,ok:re,...ae},Ue)};Object.assign(q,re)}q.installPreCheckoutQueryMethods=installPreCheckoutQueryMethods},22972:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installShippingQueryMethods=void 0;function installShippingQueryMethods(C,q){const re={answer:(re,ae,Ue)=>C.answerShippingQuery({shipping_query_id:q.id,ok:re,...ae},Ue)};Object.assign(q,re)}q.installShippingQueryMethods=installShippingQueryMethods},49430:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.installUpdateMethods=void 0;const ae=re(27669);const Ue=re(11006);const lt=re(80065);const Pt=re(39255);const Wt=re(65936);const Ar=re(17746);const Er=re(22972);function installUpdateMethods(C,q){if(q.message!==undefined){(0,Wt.installMessageMethods)(C,q.message)}else if(q.channel_post!==undefined){(0,Wt.installMessageMethods)(C,q.channel_post)}else if(q.edited_message!==undefined){(0,Wt.installMessageMethods)(C,q.edited_message)}else if(q.edited_channel_post!==undefined){(0,Wt.installMessageMethods)(C,q.edited_channel_post)}else if(q.inline_query!==undefined){(0,Pt.installInlineQueryMethods)(C,q.inline_query)}else if(q.callback_query!==undefined){(0,ae.installCallbackQueryMethods)(C,q.callback_query)}else if(q.shipping_query!==undefined){(0,Er.installShippingQueryMethods)(C,q.shipping_query)}else if(q.pre_checkout_query!==undefined){(0,Ar.installPreCheckoutQueryMethods)(C,q.pre_checkout_query)}else if(q.chosen_inline_result!==undefined){(0,lt.installChosenInlineResultMethods)(C,q.chosen_inline_result)}else if(q.chat_join_request!==undefined){(0,Ue.installChatJoinRequestMethods)(C,q.chat_join_request)}}q.installUpdateMethods=installUpdateMethods},54228:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installUserMethods=void 0;function installUserMethods(C,q,re){const ae={getProfilePhotos:(re,ae)=>C.getUserProfilePhotos({user_id:q.id,...re},ae),ban:(ae,Ue)=>C.banChatMember({chat_id:re,user_id:q.id,...ae},Ue),promote:(ae,Ue)=>C.promoteChatMember({chat_id:re,user_id:q.id,...ae},Ue),restrict:(ae,Ue,lt)=>C.restrictChatMember({permissions:ae,chat_id:re,user_id:q.id,...Ue},lt),setCustomTitle:(ae,Ue,lt)=>C.setChatAdministratorCustomTitle({custom_title:ae,chat_id:re,user_id:q.id,...Ue},lt),unban:(ae,Ue)=>C.unbanChatMember({chat_id:re,user_id:q.id,...ae},Ue)};return Object.assign(q,ae)}q.installUserMethods=installUserMethods},79638:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.InputFile=q.GrammyError=q.Context=q.Api=void 0;var ae=re(53278);Object.defineProperty(q,"Api",{enumerable:true,get:function(){return ae.Api}});Object.defineProperty(q,"Context",{enumerable:true,get:function(){return ae.Context}});Object.defineProperty(q,"GrammyError",{enumerable:true,get:function(){return ae.GrammyError}});Object.defineProperty(q,"InputFile",{enumerable:true,get:function(){return ae.InputFile}})},2466:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(16255),q)},16255:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.hydrateApi=q.hydrateContext=q.hydrate=void 0;const ae=re(48541);const Ue=re(49472);const lt=re(65936);const Pt=re(49430);const Wt=re(54228);const Ar=re(79638);function hydrate(){const C=hydrateApi();return(q,re)=>{q.api.config.use(C);(0,Pt.installUpdateMethods)(q.api.raw,q.update);return re()}}q.hydrate=hydrate;function hydrateContext(){return(C,q)=>{(0,Pt.installUpdateMethods)(C.api.raw,C.update);return q()}}q.hydrateContext=hydrateContext;function hydrateApi(){const t=async(C,q,re,Pt)=>{const Ar=await C(q,re,Pt);if(Ar.ok){if(isMessage(Ar.result)){(0,lt.installMessageMethods)(toApi(C),Ar.result)}else if(isInlineMessage(Ar.result)){(0,Ue.installInlineMessageMethods)(toApi(C),Ar.result)}else if(isChatMember(Ar.result)&&hasChatId(re)){(0,Wt.installUserMethods)(toApi(C),Ar.result.user,re.chat_id)}else if(isChat(Ar.result)){(0,ae.installChatMethods)(toApi(C),Ar.result)}}return Ar};return t}q.hydrateApi=hydrateApi;function isMessage(C){return typeof C==="object"&&C!==null&&"message_id"in C&&"chat"in C}function isInlineMessage(C){return typeof C==="object"&&C!==null&&"inline_message_id"in C}function isChatMember(C){return typeof C==="object"&&C!==null&&"status"in C&&"user"in C}function isChat(C){return typeof C==="object"&&C!==null&&"id"in C&&"type"in C&&typeof C.type==="string"&&["private","group","supergroup","channel"].includes(C.type)}function hasChatId(C){return typeof C==="object"&&C!==null&&"chat_id"in C&&typeof C.chat_id==="number"}function toApi(C){return new Proxy({},{get(q,re){const ae=C.bind(null,re);return async(...C)=>{const q=await ae(...C);if(q.ok){return q.result}else{throw new Ar.GrammyError(`Call to '${re}' failed!`,q,re,C[0])}}}})}},56220:(C,q,re)=>{re.d(q,{Y:()=>Blob});
+/*! ws. MIT License. Einar Otto Stangvik  */lt[Ue-4]=this.maskKey[0];lt[Ue-3]=this.maskKey[1];lt[Ue-2]=this.maskKey[2];lt[Ue-1]=this.maskKey[3];lt[1]=re;if(re===126){lt.writeUInt16BE(q,2)}else if(re===127){lt[2]=lt[3]=0;lt.writeUIntBE(q,4,6)}lt[1]|=128;for(let C=0;C{const{Writable:ae}=re(2203);const Ue=re(31637);const{parserStates:lt,opcodes:Pt,states:Wt,emptyBuffer:Ar}=re(45913);const{kReadyState:Er,kSentClose:Ir,kResponse:Br,kReceivedClose:kr}=re(62933);const{isValidStatusCode:Pr,failWebsocketConnection:Qr,websocketMessageReceived:Fr}=re(3574);const{WebsocketFrameSend:Dr}=re(31237);const xr={};xr.ping=Ue.channel("undici:websocket:ping");xr.pong=Ue.channel("undici:websocket:pong");class ByteParser extends ae{#i=[];#a=0;#c=lt.INFO;#l={};#u=[];constructor(C){super();this.ws=C}_write(C,q,re){this.#i.push(C);this.#a+=C.length;this.run(re)}run(C){while(true){if(this.#c===lt.INFO){if(this.#a<2){return C()}const q=this.consume(2);this.#l.fin=(q[0]&128)!==0;this.#l.opcode=q[0]&15;this.#l.originalOpcode??=this.#l.opcode;this.#l.fragmented=!this.#l.fin&&this.#l.opcode!==Pt.CONTINUATION;if(this.#l.fragmented&&this.#l.opcode!==Pt.BINARY&&this.#l.opcode!==Pt.TEXT){Qr(this.ws,"Invalid frame type was fragmented.");return}const re=q[1]&127;if(re<=125){this.#l.payloadLength=re;this.#c=lt.READ_DATA}else if(re===126){this.#c=lt.PAYLOADLENGTH_16}else if(re===127){this.#c=lt.PAYLOADLENGTH_64}if(this.#l.fragmented&&re>125){Qr(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#l.opcode===Pt.PING||this.#l.opcode===Pt.PONG||this.#l.opcode===Pt.CLOSE)&&re>125){Qr(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#l.opcode===Pt.CLOSE){if(re===1){Qr(this.ws,"Received close frame with a 1-byte body.");return}const C=this.consume(re);this.#l.closeInfo=this.parseCloseBody(false,C);if(!this.ws[Ir]){const C=Buffer.allocUnsafe(2);C.writeUInt16BE(this.#l.closeInfo.code,0);const q=new Dr(C);this.ws[Br].socket.write(q.createFrame(Pt.CLOSE),(C=>{if(!C){this.ws[Ir]=true}}))}this.ws[Er]=Wt.CLOSING;this.ws[kr]=true;this.end();return}else if(this.#l.opcode===Pt.PING){const q=this.consume(re);if(!this.ws[kr]){const C=new Dr(q);this.ws[Br].socket.write(C.createFrame(Pt.PONG));if(xr.ping.hasSubscribers){xr.ping.publish({payload:q})}}this.#c=lt.INFO;if(this.#a>0){continue}else{C();return}}else if(this.#l.opcode===Pt.PONG){const q=this.consume(re);if(xr.pong.hasSubscribers){xr.pong.publish({payload:q})}if(this.#a>0){continue}else{C();return}}}else if(this.#c===lt.PAYLOADLENGTH_16){if(this.#a<2){return C()}const q=this.consume(2);this.#l.payloadLength=q.readUInt16BE(0);this.#c=lt.READ_DATA}else if(this.#c===lt.PAYLOADLENGTH_64){if(this.#a<8){return C()}const q=this.consume(8);const re=q.readUInt32BE(0);if(re>2**31-1){Qr(this.ws,"Received payload length > 2^31 bytes.");return}const ae=q.readUInt32BE(4);this.#l.payloadLength=(re<<8)+ae;this.#c=lt.READ_DATA}else if(this.#c===lt.READ_DATA){if(this.#a=this.#l.payloadLength){const C=this.consume(this.#l.payloadLength);this.#u.push(C);if(!this.#l.fragmented||this.#l.fin&&this.#l.opcode===Pt.CONTINUATION){const C=Buffer.concat(this.#u);Fr(this.ws,this.#l.originalOpcode,C);this.#l={};this.#u.length=0}this.#c=lt.INFO}}if(this.#a>0){continue}else{C();break}}}consume(C){if(C>this.#a){return null}else if(C===0){return Ar}if(this.#i[0].length===C){this.#a-=this.#i[0].length;return this.#i.shift()}const q=Buffer.allocUnsafe(C);let re=0;while(re!==C){const ae=this.#i[0];const{length:Ue}=ae;if(Ue+re===C){q.set(this.#i.shift(),re);break}else if(Ue+re>C){q.set(ae.subarray(0,C-re),re);this.#i[0]=ae.subarray(C-re);break}else{q.set(this.#i.shift(),re);re+=ae.length}}this.#a-=C;return q}parseCloseBody(C,q){let re;if(q.length>=2){re=q.readUInt16BE(0)}if(C){if(!Pr(re)){return null}return{code:re}}let ae=q.subarray(2);if(ae[0]===239&&ae[1]===187&&ae[2]===191){ae=ae.subarray(3)}if(re!==undefined&&!Pr(re)){return null}try{ae=new TextDecoder("utf-8",{fatal:true}).decode(ae)}catch{return null}return{code:re,reason:ae}}get closingInfo(){return this.#l.closeInfo}}C.exports={ByteParser:ByteParser}},62933:C=>{C.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:(C,q,re)=>{const{kReadyState:ae,kController:Ue,kResponse:lt,kBinaryType:Pt,kWebSocketURL:Wt}=re(62933);const{states:Ar,opcodes:Er}=re(45913);const{MessageEvent:Ir,ErrorEvent:Br}=re(46255);function isEstablished(C){return C[ae]===Ar.OPEN}function isClosing(C){return C[ae]===Ar.CLOSING}function isClosed(C){return C[ae]===Ar.CLOSED}function fireEvent(C,q,re=Event,ae){const Ue=new re(C,ae);q.dispatchEvent(Ue)}function websocketMessageReceived(C,q,re){if(C[ae]!==Ar.OPEN){return}let Ue;if(q===Er.TEXT){try{Ue=new TextDecoder("utf-8",{fatal:true}).decode(re)}catch{failWebsocketConnection(C,"Received invalid UTF-8 in text frame.");return}}else if(q===Er.BINARY){if(C[Pt]==="blob"){Ue=new Blob([re])}else{Ue=new Uint8Array(re).buffer}}fireEvent("message",C,Ir,{origin:C[Wt].origin,data:Ue})}function isValidSubprotocol(C){if(C.length===0){return false}for(const q of C){const C=q.charCodeAt(0);if(C<33||C>126||q==="("||q===")"||q==="<"||q===">"||q==="@"||q===","||q===";"||q===":"||q==="\\"||q==='"'||q==="/"||q==="["||q==="]"||q==="?"||q==="="||q==="{"||q==="}"||C===32||C===9){return false}}return true}function isValidStatusCode(C){if(C>=1e3&&C<1015){return C!==1004&&C!==1005&&C!==1006}return C>=3e3&&C<=4999}function failWebsocketConnection(C,q){const{[Ue]:re,[lt]:ae}=C;re.abort();if(ae?.socket&&!ae.socket.destroyed){ae.socket.destroy()}if(q){fireEvent("error",C,Br,{error:new Error(q)})}}C.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(C,q,re)=>{const{webidl:ae}=re(74222);const{DOMException:Ue}=re(87326);const{URLSerializer:lt}=re(94322);const{getGlobalOrigin:Pt}=re(75628);const{staticPropertyDescriptors:Wt,states:Ar,opcodes:Er,emptyBuffer:Ir}=re(45913);const{kWebSocketURL:Br,kReadyState:kr,kController:Pr,kBinaryType:Qr,kResponse:Fr,kSentClose:Dr,kByteParser:xr}=re(62933);const{isEstablished:Mr,isClosing:Ur,isValidSubprotocol:Nr,failWebsocketConnection:Lr,fireEvent:jr}=re(3574);const{establishWebSocketConnection:Gr}=re(68550);const{WebsocketFrameSend:Vr}=re(31237);const{ByteParser:Hr}=re(43171);const{kEnumerableProperty:Wr,isBlobLike:$r}=re(3440);const{getGlobalDispatcher:Kr}=re(32581);const{types:zr}=re(39023);let Jr=false;class WebSocket extends EventTarget{#d={open:null,error:null,close:null,message:null};#p=0;#f="";#h="";constructor(C,q=[]){super();ae.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!Jr){Jr=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const re=ae.converters["DOMString or sequence or WebSocketInit"](q);C=ae.converters.USVString(C);q=re.protocols;const lt=Pt();let Wt;try{Wt=new URL(C,lt)}catch(C){throw new Ue(C,"SyntaxError")}if(Wt.protocol==="http:"){Wt.protocol="ws:"}else if(Wt.protocol==="https:"){Wt.protocol="wss:"}if(Wt.protocol!=="ws:"&&Wt.protocol!=="wss:"){throw new Ue(`Expected a ws: or wss: protocol, got ${Wt.protocol}`,"SyntaxError")}if(Wt.hash||Wt.href.endsWith("#")){throw new Ue("Got fragment","SyntaxError")}if(typeof q==="string"){q=[q]}if(q.length!==new Set(q.map((C=>C.toLowerCase()))).size){throw new Ue("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(q.length>0&&!q.every((C=>Nr(C)))){throw new Ue("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[Br]=new URL(Wt.href);this[Pr]=Gr(Wt,q,this,(C=>this.#g(C)),re);this[kr]=WebSocket.CONNECTING;this[Qr]="blob"}close(C=undefined,q=undefined){ae.brandCheck(this,WebSocket);if(C!==undefined){C=ae.converters["unsigned short"](C,{clamp:true})}if(q!==undefined){q=ae.converters.USVString(q)}if(C!==undefined){if(C!==1e3&&(C<3e3||C>4999)){throw new Ue("invalid code","InvalidAccessError")}}let re=0;if(q!==undefined){re=Buffer.byteLength(q);if(re>123){throw new Ue(`Reason must be less than 123 bytes; received ${re}`,"SyntaxError")}}if(this[kr]===WebSocket.CLOSING||this[kr]===WebSocket.CLOSED){}else if(!Mr(this)){Lr(this,"Connection was closed before it was established.");this[kr]=WebSocket.CLOSING}else if(!Ur(this)){const ae=new Vr;if(C!==undefined&&q===undefined){ae.frameData=Buffer.allocUnsafe(2);ae.frameData.writeUInt16BE(C,0)}else if(C!==undefined&&q!==undefined){ae.frameData=Buffer.allocUnsafe(2+re);ae.frameData.writeUInt16BE(C,0);ae.frameData.write(q,2,"utf-8")}else{ae.frameData=Ir}const Ue=this[Fr].socket;Ue.write(ae.createFrame(Er.CLOSE),(C=>{if(!C){this[Dr]=true}}));this[kr]=Ar.CLOSING}else{this[kr]=WebSocket.CLOSING}}send(C){ae.brandCheck(this,WebSocket);ae.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});C=ae.converters.WebSocketSendData(C);if(this[kr]===WebSocket.CONNECTING){throw new Ue("Sent before connected.","InvalidStateError")}if(!Mr(this)||Ur(this)){return}const q=this[Fr].socket;if(typeof C==="string"){const re=Buffer.from(C);const ae=new Vr(re);const Ue=ae.createFrame(Er.TEXT);this.#p+=re.byteLength;q.write(Ue,(()=>{this.#p-=re.byteLength}))}else if(zr.isArrayBuffer(C)){const re=Buffer.from(C);const ae=new Vr(re);const Ue=ae.createFrame(Er.BINARY);this.#p+=re.byteLength;q.write(Ue,(()=>{this.#p-=re.byteLength}))}else if(ArrayBuffer.isView(C)){const re=Buffer.from(C,C.byteOffset,C.byteLength);const ae=new Vr(re);const Ue=ae.createFrame(Er.BINARY);this.#p+=re.byteLength;q.write(Ue,(()=>{this.#p-=re.byteLength}))}else if($r(C)){const re=new Vr;C.arrayBuffer().then((C=>{const ae=Buffer.from(C);re.frameData=ae;const Ue=re.createFrame(Er.BINARY);this.#p+=ae.byteLength;q.write(Ue,(()=>{this.#p-=ae.byteLength}))}))}}get readyState(){ae.brandCheck(this,WebSocket);return this[kr]}get bufferedAmount(){ae.brandCheck(this,WebSocket);return this.#p}get url(){ae.brandCheck(this,WebSocket);return lt(this[Br])}get extensions(){ae.brandCheck(this,WebSocket);return this.#h}get protocol(){ae.brandCheck(this,WebSocket);return this.#f}get onopen(){ae.brandCheck(this,WebSocket);return this.#d.open}set onopen(C){ae.brandCheck(this,WebSocket);if(this.#d.open){this.removeEventListener("open",this.#d.open)}if(typeof C==="function"){this.#d.open=C;this.addEventListener("open",C)}else{this.#d.open=null}}get onerror(){ae.brandCheck(this,WebSocket);return this.#d.error}set onerror(C){ae.brandCheck(this,WebSocket);if(this.#d.error){this.removeEventListener("error",this.#d.error)}if(typeof C==="function"){this.#d.error=C;this.addEventListener("error",C)}else{this.#d.error=null}}get onclose(){ae.brandCheck(this,WebSocket);return this.#d.close}set onclose(C){ae.brandCheck(this,WebSocket);if(this.#d.close){this.removeEventListener("close",this.#d.close)}if(typeof C==="function"){this.#d.close=C;this.addEventListener("close",C)}else{this.#d.close=null}}get onmessage(){ae.brandCheck(this,WebSocket);return this.#d.message}set onmessage(C){ae.brandCheck(this,WebSocket);if(this.#d.message){this.removeEventListener("message",this.#d.message)}if(typeof C==="function"){this.#d.message=C;this.addEventListener("message",C)}else{this.#d.message=null}}get binaryType(){ae.brandCheck(this,WebSocket);return this[Qr]}set binaryType(C){ae.brandCheck(this,WebSocket);if(C!=="blob"&&C!=="arraybuffer"){this[Qr]="blob"}else{this[Qr]=C}}#g(C){this[Fr]=C;const q=new Hr(this);q.on("drain",(function onParserDrain(){this.ws[Fr].socket.resume()}));C.socket.ws=this;this[xr]=q;this[kr]=Ar.OPEN;const re=C.headersList.get("sec-websocket-extensions");if(re!==null){this.#h=re}const ae=C.headersList.get("sec-websocket-protocol");if(ae!==null){this.#f=ae}jr("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=Ar.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=Ar.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=Ar.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=Ar.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:Wt,OPEN:Wt,CLOSING:Wt,CLOSED:Wt,url:Wr,readyState:Wr,bufferedAmount:Wr,onopen:Wr,onerror:Wr,onclose:Wr,close:Wr,onmessage:Wr,binaryType:Wr,send:Wr,extensions:Wr,protocol:Wr,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:Wt,OPEN:Wt,CLOSING:Wt,CLOSED:Wt});ae.converters["sequence"]=ae.sequenceConverter(ae.converters.DOMString);ae.converters["DOMString or sequence"]=function(C){if(ae.util.Type(C)==="Object"&&Symbol.iterator in C){return ae.converters["sequence"](C)}return ae.converters.DOMString(C)};ae.converters.WebSocketInit=ae.dictionaryConverter([{key:"protocols",converter:ae.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:C=>C,get defaultValue(){return Kr()}},{key:"headers",converter:ae.nullableConverter(ae.converters.HeadersInit)}]);ae.converters["DOMString or sequence or WebSocketInit"]=function(C){if(ae.util.Type(C)==="Object"&&!(Symbol.iterator in C)){return ae.converters.WebSocketInit(C)}return{protocols:ae.converters["DOMString or sequence"](C)}};ae.converters.WebSocketSendData=function(C){if(ae.util.Type(C)==="Object"){if($r(C)){return ae.converters.Blob(C,{strict:false})}if(ArrayBuffer.isView(C)||zr.isAnyArrayBuffer(C)){return ae.converters.BufferSource(C)}}return ae.converters.USVString(C)};C.exports={WebSocket:WebSocket}},33843:(C,q)=>{Object.defineProperty(q,"__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""}q.getUserAgent=getUserAgent},74106:function(C){(function(q,re,ae){if(true&&C.exports)C.exports=ae();else if(typeof define==="function"&&define.amd)define(ae);else re[q]=ae()})("urljoin",this,(function(){function normalize(C){var q=[];if(C.length===0){return""}if(typeof C[0]!=="string"){throw new TypeError("Url must be a string. Received "+C[0])}if(C[0].match(/^[^/:]+:\/*$/)&&C.length>1){var re=C.shift();C[0]=re+C[0]}if(C[0].match(/^file:\/\/\//)){C[0]=C[0].replace(/^([^/:]+):\/*/,"$1:///")}else{C[0]=C[0].replace(/^([^/:]+):\/*/,"$1://")}for(var ae=0;ae0){Ue=Ue.replace(/^[\/]+/,"")}if(ae0?"?":"")+Pt.join("&");return lt}return function(){var C;if(typeof arguments[0]==="object"){C=arguments[0]}else{C=[].slice.call(arguments)}return normalize(C)}}))},37531:C=>{function isValidUTF8(C){const q=C.length;let re=0;while(re=q||(C[re+1]&192)!==128||(C[re+2]&192)!==128||C[re]===224&&(C[re+1]&224)===128||C[re]===237&&(C[re+1]&224)===160){return false}re+=3}else if((C[re]&248)===240){if(re+3>=q||(C[re+1]&192)!==128||(C[re+2]&192)!==128||(C[re+3]&192)!==128||C[re]===240&&(C[re+1]&240)===128||C[re]===244&&C[re+1]>143||C[re]>244){return false}re+=4}else{return false}}return true}C.exports=isValidUTF8},40397:(C,q,re)=>{try{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)(re.ab+"prebuilds/linux-x64/node.napi1.node")}catch(q){C.exports=re(37531)}},12048:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});Object.defineProperty(q,"v1",{enumerable:true,get:function(){return ae.default}});Object.defineProperty(q,"v3",{enumerable:true,get:function(){return Ue.default}});Object.defineProperty(q,"v4",{enumerable:true,get:function(){return lt.default}});Object.defineProperty(q,"v5",{enumerable:true,get:function(){return Pt.default}});Object.defineProperty(q,"NIL",{enumerable:true,get:function(){return Wt.default}});Object.defineProperty(q,"version",{enumerable:true,get:function(){return Ar.default}});Object.defineProperty(q,"validate",{enumerable:true,get:function(){return Er.default}});Object.defineProperty(q,"stringify",{enumerable:true,get:function(){return Ir.default}});Object.defineProperty(q,"parse",{enumerable:true,get:function(){return Br.default}});var ae=_interopRequireDefault(re(6415));var Ue=_interopRequireDefault(re(51697));var lt=_interopRequireDefault(re(4676));var Pt=_interopRequireDefault(re(69771));var Wt=_interopRequireDefault(re(37723));var Ar=_interopRequireDefault(re(15868));var Er=_interopRequireDefault(re(36200));var Ir=_interopRequireDefault(re(37597));var Br=_interopRequireDefault(re(17267));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}},10216:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(76982));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function md5(C){if(Array.isArray(C)){C=Buffer.from(C)}else if(typeof C==="string"){C=Buffer.from(C,"utf8")}return ae.default.createHash("md5").update(C).digest()}var Ue=md5;q["default"]=Ue},37723:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var re="00000000-0000-0000-0000-000000000000";q["default"]=re},17267:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(36200));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function parse(C){if(!(0,ae.default)(C)){throw TypeError("Invalid UUID")}let q;const re=new Uint8Array(16);re[0]=(q=parseInt(C.slice(0,8),16))>>>24;re[1]=q>>>16&255;re[2]=q>>>8&255;re[3]=q&255;re[4]=(q=parseInt(C.slice(9,13),16))>>>8;re[5]=q&255;re[6]=(q=parseInt(C.slice(14,18),16))>>>8;re[7]=q&255;re[8]=(q=parseInt(C.slice(19,23),16))>>>8;re[9]=q&255;re[10]=(q=parseInt(C.slice(24,36),16))/1099511627776&255;re[11]=q/4294967296&255;re[12]=q>>>24&255;re[13]=q>>>16&255;re[14]=q>>>8&255;re[15]=q&255;return re}var Ue=parse;q["default"]=Ue},67879:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var re=/^(?:[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;q["default"]=re},12973:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=rng;var ae=_interopRequireDefault(re(76982));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}const Ue=new Uint8Array(256);let lt=Ue.length;function rng(){if(lt>Ue.length-16){ae.default.randomFillSync(Ue);lt=0}return Ue.slice(lt,lt+=16)}},507:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(76982));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function sha1(C){if(Array.isArray(C)){C=Buffer.from(C)}else if(typeof C==="string"){C=Buffer.from(C,"utf8")}return ae.default.createHash("sha1").update(C).digest()}var Ue=sha1;q["default"]=Ue},37597:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(36200));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}const Ue=[];for(let C=0;C<256;++C){Ue.push((C+256).toString(16).substr(1))}function stringify(C,q=0){const re=(Ue[C[q+0]]+Ue[C[q+1]]+Ue[C[q+2]]+Ue[C[q+3]]+"-"+Ue[C[q+4]]+Ue[C[q+5]]+"-"+Ue[C[q+6]]+Ue[C[q+7]]+"-"+Ue[C[q+8]]+Ue[C[q+9]]+"-"+Ue[C[q+10]]+Ue[C[q+11]]+Ue[C[q+12]]+Ue[C[q+13]]+Ue[C[q+14]]+Ue[C[q+15]]).toLowerCase();if(!(0,ae.default)(re)){throw TypeError("Stringified UUID is invalid")}return re}var lt=stringify;q["default"]=lt},6415:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(12973));var Ue=_interopRequireDefault(re(37597));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}let lt;let Pt;let Wt=0;let Ar=0;function v1(C,q,re){let Er=q&&re||0;const Ir=q||new Array(16);C=C||{};let Br=C.node||lt;let kr=C.clockseq!==undefined?C.clockseq:Pt;if(Br==null||kr==null){const q=C.random||(C.rng||ae.default)();if(Br==null){Br=lt=[q[0]|1,q[1],q[2],q[3],q[4],q[5]]}if(kr==null){kr=Pt=(q[6]<<8|q[7])&16383}}let Pr=C.msecs!==undefined?C.msecs:Date.now();let Qr=C.nsecs!==undefined?C.nsecs:Ar+1;const Fr=Pr-Wt+(Qr-Ar)/1e4;if(Fr<0&&C.clockseq===undefined){kr=kr+1&16383}if((Fr<0||Pr>Wt)&&C.nsecs===undefined){Qr=0}if(Qr>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}Wt=Pr;Ar=Qr;Pt=kr;Pr+=122192928e5;const Dr=((Pr&268435455)*1e4+Qr)%4294967296;Ir[Er++]=Dr>>>24&255;Ir[Er++]=Dr>>>16&255;Ir[Er++]=Dr>>>8&255;Ir[Er++]=Dr&255;const xr=Pr/4294967296*1e4&268435455;Ir[Er++]=xr>>>8&255;Ir[Er++]=xr&255;Ir[Er++]=xr>>>24&15|16;Ir[Er++]=xr>>>16&255;Ir[Er++]=kr>>>8|128;Ir[Er++]=kr&255;for(let C=0;C<6;++C){Ir[Er+C]=Br[C]}return q||(0,Ue.default)(Ir)}var Er=v1;q["default"]=Er},51697:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(92930));var Ue=_interopRequireDefault(re(10216));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}const lt=(0,ae.default)("v3",48,Ue.default);var Pt=lt;q["default"]=Pt},92930:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=_default;q.URL=q.DNS=void 0;var ae=_interopRequireDefault(re(37597));var Ue=_interopRequireDefault(re(17267));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function stringToBytes(C){C=unescape(encodeURIComponent(C));const q=[];for(let re=0;re{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(12973));var Ue=_interopRequireDefault(re(37597));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function v4(C,q,re){C=C||{};const lt=C.random||(C.rng||ae.default)();lt[6]=lt[6]&15|64;lt[8]=lt[8]&63|128;if(q){re=re||0;for(let C=0;C<16;++C){q[re+C]=lt[C]}return q}return(0,Ue.default)(lt)}var lt=v4;q["default"]=lt},69771:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(92930));var Ue=_interopRequireDefault(re(507));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}const lt=(0,ae.default)("v5",80,Ue.default);var Pt=lt;q["default"]=Pt},36200:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(67879));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function validate(C){return typeof C==="string"&&ae.default.test(C)}var Ue=validate;q["default"]=Ue},15868:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q["default"]=void 0;var ae=_interopRequireDefault(re(36200));function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function version(C){if(!(0,ae.default)(C)){throw TypeError("Invalid UUID")}return parseInt(C.substr(14,1),16)}var Ue=version;q["default"]=Ue},68296:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};var Wt=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.VoyageAIClient=void 0;const Ar=lt(re(67149));const Er=lt(re(70015));const Ir=lt(re(19528));const Br=Wt(re(74106));const kr=lt(re(49727));class VoyageAIClient{constructor(C={}){this._options=C}embed(C,q){var re,ae;return Pt(this,void 0,void 0,(function*(){const Ue=yield((re=this._options.fetcher)!==null&&re!==void 0?re:Er.fetcher)({url:(0,Br.default)((ae=yield Er.Supplier.get(this._options.environment))!==null&&ae!==void 0?ae:Ar.VoyageAIEnvironment.Default,"embeddings"),method:"POST",headers:{Authorization:yield this._getAuthorizationHeader(),"X-Fern-Language":"JavaScript","X-Fern-SDK-Name":"voyageai","X-Fern-SDK-Version":"0.0.1-5","User-Agent":"voyageai/0.0.1-5","X-Fern-Runtime":Er.RUNTIME.type,"X-Fern-Runtime-Version":Er.RUNTIME.version},contentType:"application/json",requestType:"json",body:Ir.EmbedRequest.jsonOrThrow(C,{unrecognizedObjectKeys:"strip"}),timeoutMs:(q===null||q===void 0?void 0:q.timeoutInSeconds)!=null?q.timeoutInSeconds*1e3:6e4,maxRetries:q===null||q===void 0?void 0:q.maxRetries,abortSignal:q===null||q===void 0?void 0:q.abortSignal});if(Ue.ok){return Ir.EmbedResponse.parseOrThrow(Ue.body,{unrecognizedObjectKeys:"passthrough",allowUnrecognizedUnionMembers:true,allowUnrecognizedEnumValues:true,skipValidation:true,breadcrumbsPrefix:["response"]})}if(Ue.error.reason==="status-code"){throw new kr.VoyageAIError({statusCode:Ue.error.statusCode,body:Ue.error.body})}switch(Ue.error.reason){case"non-json":throw new kr.VoyageAIError({statusCode:Ue.error.statusCode,body:Ue.error.rawBody});case"timeout":throw new kr.VoyageAITimeoutError;case"unknown":throw new kr.VoyageAIError({message:Ue.error.errorMessage})}}))}rerank(C,q){var re,ae;return Pt(this,void 0,void 0,(function*(){const Ue=yield((re=this._options.fetcher)!==null&&re!==void 0?re:Er.fetcher)({url:(0,Br.default)((ae=yield Er.Supplier.get(this._options.environment))!==null&&ae!==void 0?ae:Ar.VoyageAIEnvironment.Default,"rerank"),method:"POST",headers:{Authorization:yield this._getAuthorizationHeader(),"X-Fern-Language":"JavaScript","X-Fern-SDK-Name":"voyageai","X-Fern-SDK-Version":"0.0.1-5","User-Agent":"voyageai/0.0.1-5","X-Fern-Runtime":Er.RUNTIME.type,"X-Fern-Runtime-Version":Er.RUNTIME.version},contentType:"application/json",requestType:"json",body:Ir.RerankRequest.jsonOrThrow(C,{unrecognizedObjectKeys:"strip"}),timeoutMs:(q===null||q===void 0?void 0:q.timeoutInSeconds)!=null?q.timeoutInSeconds*1e3:6e4,maxRetries:q===null||q===void 0?void 0:q.maxRetries,abortSignal:q===null||q===void 0?void 0:q.abortSignal});if(Ue.ok){return Ir.RerankResponse.parseOrThrow(Ue.body,{unrecognizedObjectKeys:"passthrough",allowUnrecognizedUnionMembers:true,allowUnrecognizedEnumValues:true,skipValidation:true,breadcrumbsPrefix:["response"]})}if(Ue.error.reason==="status-code"){throw new kr.VoyageAIError({statusCode:Ue.error.statusCode,body:Ue.error.body})}switch(Ue.error.reason){case"non-json":throw new kr.VoyageAIError({statusCode:Ue.error.statusCode,body:Ue.error.rawBody});case"timeout":throw new kr.VoyageAITimeoutError;case"unknown":throw new kr.VoyageAIError({message:Ue.error.errorMessage})}}))}_getAuthorizationHeader(){var C;return Pt(this,void 0,void 0,(function*(){const q=(C=yield Er.Supplier.get(this._options.apiKey))!==null&&C!==void 0?C:process===null||process===void 0?void 0:process.env["VOYAGE_API_KEY"];if(q==null){throw new kr.VoyageAIError({message:"Please specify VOYAGE_API_KEY when instantiating the client."})}return`Bearer ${q}`}))}}q.VoyageAIClient=VoyageAIClient},61542:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(70257),q)},70257:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},52983:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(5562),q);Ue(re(61542),q)},74560:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},39288:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.EmbedRequestInputType=void 0;q.EmbedRequestInputType={Query:"query",Document:"document"}},84552:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},21627:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},67429:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},68800:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},5331:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},45453:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true})},5562:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(74560),q);Ue(re(39288),q);Ue(re(21627),q);Ue(re(67429),q);Ue(re(84552),q);Ue(re(5331),q);Ue(re(45453),q);Ue(re(68800),q)},64250:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.BasicAuth=void 0;const ae=re(45810);const Ue=/^Basic /i;q.BasicAuth={toAuthorizationHeader:C=>{if(C==null){return undefined}const q=ae.Base64.encode(`${C.username}:${C.password}`);return`Basic ${q}`},fromAuthorizationHeader:C=>{const q=C.replace(Ue,"");const re=ae.Base64.decode(q);const[lt,Pt]=re.split(":",2);if(lt==null||Pt==null){throw new Error("Invalid basic auth")}return{username:lt,password:Pt}}}},87816:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.BearerToken=void 0;const re=/^Bearer /i;q.BearerToken={toAuthorizationHeader:C=>{if(C==null){return undefined}return`Bearer ${C}`},fromAuthorizationHeader:C=>C.replace(re,"").trim()}},34782:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.BearerToken=q.BasicAuth=void 0;var ae=re(64250);Object.defineProperty(q,"BasicAuth",{enumerable:true,get:function(){return ae.BasicAuth}});var Ue=re(87816);Object.defineProperty(q,"BearerToken",{enumerable:true,get:function(){return Ue.BearerToken}})},65768:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.fetcher=q.fetcherImpl=void 0;const Ue=re(12909);const lt=re(41123);const Pt=re(46370);const Wt=re(37124);const Ar=re(64432);const Er=re(7186);function fetcherImpl(C){return ae(this,void 0,void 0,(function*(){const q={};if(C.body!==undefined&&C.contentType!=null){q["Content-Type"]=C.contentType}if(C.headers!=null){for(const[re,ae]of Object.entries(C.headers)){if(ae!=null){q[re]=ae}}}const re=(0,Ue.createRequestUrl)(C.url,C.queryParameters);let Ir=yield(0,Pt.getRequestBody)({body:C.body,type:C.requestType==="json"?"json":"other"});const Br=yield(0,lt.getFetchFn)();try{const Ue=yield(0,Er.requestWithRetries)((()=>ae(this,void 0,void 0,(function*(){return(0,Ar.makeRequest)(Br,re,C.method,q,Ir,C.timeoutMs,C.abortSignal,C.withCredentials,C.duplex)}))),C.maxRetries);let lt=yield(0,Wt.getResponseBody)(Ue,C.responseType);if(Ue.status>=200&&Ue.status<400){return{ok:true,body:lt,headers:Ue.headers}}else{return{ok:false,error:{reason:"status-code",statusCode:Ue.status,body:lt}}}}catch(q){if(C.abortSignal!=null&&C.abortSignal.aborted){return{ok:false,error:{reason:"unknown",errorMessage:"The user aborted a request"}}}else if(q instanceof Error&&q.name==="AbortError"){return{ok:false,error:{reason:"timeout"}}}else if(q instanceof Error){return{ok:false,error:{reason:"unknown",errorMessage:q.message}}}return{ok:false,error:{reason:"unknown",errorMessage:JSON.stringify(q)}}}}))}q.fetcherImpl=fetcherImpl;q.fetcher=fetcherImpl},29323:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.Supplier=void 0;q.Supplier={get:C=>re(void 0,void 0,void 0,(function*(){if(typeof C==="function"){return C()}else{return C}}))}},12909:function(C,q,re){var ae=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(q,"__esModule",{value:true});q.createRequestUrl=void 0;const Ue=ae(re(40240));function createRequestUrl(C,q){return Object.keys(q!==null&&q!==void 0?q:{}).length>0?`${C}?${Ue.default.stringify(q,{arrayFormat:"repeat"})}`:C}q.createRequestUrl=createRequestUrl},41123:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getFetchFn=void 0;const Wt=re(66544);function getFetchFn(){return Pt(this,void 0,void 0,(function*(){if(Wt.RUNTIME.type==="node"&&Wt.RUNTIME.parsedVersion!=null&&Wt.RUNTIME.parsedVersion>=18){return fetch}if(Wt.RUNTIME.type==="node"){return(yield Promise.resolve().then((()=>lt(re(49086))))).default}if(typeof fetch=="function"){return fetch}return(yield Promise.resolve().then((()=>lt(re(49086))))).default}))}q.getFetchFn=getFetchFn},57230:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.getHeader=void 0;function getHeader(C,q){for(const[re,ae]of Object.entries(C)){if(re.toLowerCase()===q.toLowerCase()){return ae}}return undefined}q.getHeader=getHeader},46370:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getRequestBody=void 0;function getRequestBody({body:C,type:q}){return re(this,void 0,void 0,(function*(){if(q.includes("json")){return JSON.stringify(C)}else{return C}}))}q.getRequestBody=getRequestBody},37124:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.getResponseBody=void 0;const Ue=re(73819);function getResponseBody(C,q){return ae(this,void 0,void 0,(function*(){if(C.body!=null&&q==="blob"){return yield C.blob()}else if(C.body!=null&&q==="sse"){return C.body}else if(C.body!=null&&q==="streaming"){return(0,Ue.chooseStreamWrapper)(C.body)}else if(C.body!=null&&q==="text"){return yield C.text()}else{const q=yield C.text();if(q.length>0){try{let C=JSON.parse(q);return C}catch(re){return{ok:false,error:{reason:"non-json",statusCode:C.status,rawBody:q}}}}else{return undefined}}}))}q.getResponseBody=getResponseBody},28175:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.Supplier=q.getHeader=q.fetcher=void 0;var ae=re(65768);Object.defineProperty(q,"fetcher",{enumerable:true,get:function(){return ae.fetcher}});var Ue=re(57230);Object.defineProperty(q,"getHeader",{enumerable:true,get:function(){return Ue.getHeader}});var lt=re(29323);Object.defineProperty(q,"Supplier",{enumerable:true,get:function(){return lt.Supplier}})},64432:function(C,q,re){var ae=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.makeRequest=void 0;const Ue=re(24530);const makeRequest=(C,q,re,lt,Pt,Wt,Ar,Er,Ir)=>ae(void 0,void 0,void 0,(function*(){const ae=[];let Br=undefined;if(Wt!=null){const{signal:C,abortId:q}=(0,Ue.getTimeoutSignal)(Wt);Br=q;ae.push(C)}if(Ar!=null){ae.push(Ar)}let kr=(0,Ue.anySignal)(ae);const Pr=yield C(q,{method:re,headers:lt,body:Pt,signal:kr,credentials:Er?"include":undefined,duplex:Ir});if(Br!=null){clearTimeout(Br)}return Pr}));q.makeRequest=makeRequest},7186:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.requestWithRetries=void 0;const ae=1;const Ue=60;const lt=2;function requestWithRetries(C,q=lt){return re(this,void 0,void 0,(function*(){let re=yield C();for(let lt=0;lt=500){const q=Math.min(ae*Math.pow(2,lt),Ue);yield new Promise((C=>setTimeout(C,q)));re=yield C()}else{break}}return re}))}q.requestWithRetries=requestWithRetries},24530:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.anySignal=q.getTimeoutSignal=void 0;const re="timeout";function getTimeoutSignal(C){const q=new AbortController;const ae=setTimeout((()=>q.abort(re)),C);return{signal:q.signal,abortId:ae}}q.getTimeoutSignal=getTimeoutSignal;function anySignal(...C){const q=C.length===1&&Array.isArray(C[0])?C[0]:C;const re=new AbortController;for(const C of q){if(C.aborted){re.abort(C===null||C===void 0?void 0:C.reason);break}C.addEventListener("abort",(()=>re.abort(C===null||C===void 0?void 0:C.reason)),{signal:re.signal})}return re.signal}q.anySignal=anySignal},75810:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.Node18UniversalStreamWrapper=void 0;class Node18UniversalStreamWrapper{constructor(C){this.readableStream=C;this.reader=this.readableStream.getReader();this.events={data:[],end:[],error:[],readable:[],close:[],pause:[],resume:[]};this.paused=false;this.resumeCallback=null;this.encoding=null}on(C,q){var re;(re=this.events[C])===null||re===void 0?void 0:re.push(q)}off(C,q){var re;this.events[C]=(re=this.events[C])===null||re===void 0?void 0:re.filter((C=>C!==q))}pipe(C){this.on("data",(q=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._write(q)}else if(C instanceof WritableStream){const re=C.getWriter();re.write(q).then((()=>re.releaseLock()))}else{C.write(q)}}))));this.on("end",(()=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._end()}else if(C instanceof WritableStream){const q=C.getWriter();q.close()}else{C.end()}}))));this.on("error",(q=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._error(q)}else if(C instanceof WritableStream){const re=C.getWriter();re.abort(q)}else{C.destroy(q)}}))));this._startReading();return C}pipeTo(C){return this.pipe(C)}unpipe(C){this.off("data",(q=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._write(q)}else if(C instanceof WritableStream){const re=C.getWriter();re.write(q).then((()=>re.releaseLock()))}else{C.write(q)}}))));this.off("end",(()=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._end()}else if(C instanceof WritableStream){const q=C.getWriter();q.close()}else{C.end()}}))));this.off("error",(q=>re(this,void 0,void 0,(function*(){if(C instanceof Node18UniversalStreamWrapper){C._error(q)}else if(C instanceof WritableStream){const re=C.getWriter();re.abort(q)}else{C.destroy(q)}}))))}destroy(C){this.reader.cancel(C).then((()=>{this._emit("close")})).catch((C=>{this._emit("error",C)}))}pause(){this.paused=true;this._emit("pause")}resume(){if(this.paused){this.paused=false;this._emit("resume");if(this.resumeCallback){this.resumeCallback();this.resumeCallback=null}}}get isPaused(){return this.paused}read(){return re(this,void 0,void 0,(function*(){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){return undefined}return q}))}setEncoding(C){this.encoding=C}text(){return re(this,void 0,void 0,(function*(){const C=[];while(true){const{done:q,value:re}=yield this.reader.read();if(q){break}if(re){C.push(re)}}const q=new TextDecoder(this.encoding||"utf-8");return q.decode(yield new Blob(C).arrayBuffer())}))}json(){return re(this,void 0,void 0,(function*(){const C=yield this.text();return JSON.parse(C)}))}_write(C){this._emit("data",C)}_end(){this._emit("end")}_error(C){this._emit("error",C)}_emit(C,q){if(this.events[C]){for(const re of this.events[C]||[]){re(q)}}}_startReading(){return re(this,void 0,void 0,(function*(){try{this._emit("readable");while(true){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){this._emit("end");this._emit("close");break}if(q){this._emit("data",q)}}}catch(C){this._emit("error",C)}}))}[Symbol.asyncIterator](){return{next:()=>re(this,void 0,void 0,(function*(){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){return{done:true,value:undefined}}return{done:false,value:q}})),[Symbol.asyncIterator](){return this}}}}q.Node18UniversalStreamWrapper=Node18UniversalStreamWrapper},3480:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};var ae=this&&this.__asyncValues||function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q=C[Symbol.asyncIterator],re;return q?q.call(C):(C=typeof __values==="function"?__values(C):C[Symbol.iterator](),re={},verb("next"),verb("throw"),verb("return"),re[Symbol.asyncIterator]=function(){return this},re);function verb(q){re[q]=C[q]&&function(re){return new Promise((function(ae,Ue){re=C[q](re),settle(ae,Ue,re.done,re.value)}))}}function settle(C,q,re,ae){Promise.resolve(ae).then((function(q){C({value:q,done:re})}),q)}};Object.defineProperty(q,"__esModule",{value:true});q.NodePre18StreamWrapper=void 0;class NodePre18StreamWrapper{constructor(C){this.readableStream=C}on(C,q){this.readableStream.on(C,q)}off(C,q){this.readableStream.off(C,q)}pipe(C){this.readableStream.pipe(C);return C}pipeTo(C){return this.pipe(C)}unpipe(C){if(C){this.readableStream.unpipe(C)}else{this.readableStream.unpipe()}}destroy(C){this.readableStream.destroy(C)}pause(){this.readableStream.pause()}resume(){this.readableStream.resume()}get isPaused(){return this.readableStream.isPaused()}read(){return re(this,void 0,void 0,(function*(){return new Promise(((C,q)=>{const re=this.readableStream.read();if(re){C(re)}else{this.readableStream.once("readable",(()=>{const q=this.readableStream.read();C(q)}));this.readableStream.once("error",q)}}))}))}setEncoding(C){this.readableStream.setEncoding(C);this.encoding=C}text(){var C,q;return re(this,void 0,void 0,(function*(){const re=[];const Ue=new TextEncoder;this.readableStream.setEncoding(this.encoding||"utf-8");try{for(var lt=ae(this.readableStream),Pt;Pt=yield lt.next(),!Pt.done;){const C=Pt.value;re.push(Ue.encode(C))}}catch(q){C={error:q}}finally{try{if(Pt&&!Pt.done&&(q=lt.return))yield q.call(lt)}finally{if(C)throw C.error}}const Wt=new TextDecoder(this.encoding||"utf-8");return Wt.decode(Buffer.concat(re))}))}json(){return re(this,void 0,void 0,(function*(){const C=yield this.text();return JSON.parse(C)}))}[Symbol.asyncIterator](){const C=this.readableStream;const q=C[Symbol.asyncIterator]();return{next(){return re(this,void 0,void 0,(function*(){const{value:C,done:re}=yield q.next();return{value:C,done:re}}))},[Symbol.asyncIterator](){return this}}}}q.NodePre18StreamWrapper=NodePre18StreamWrapper},50176:function(C,q){var re=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.UndiciStreamWrapper=void 0;class UndiciStreamWrapper{constructor(C){this.readableStream=C;this.reader=this.readableStream.getReader();this.events={data:[],end:[],error:[],readable:[],close:[],pause:[],resume:[]};this.paused=false;this.resumeCallback=null;this.encoding=null}on(C,q){var re;(re=this.events[C])===null||re===void 0?void 0:re.push(q)}off(C,q){var re;this.events[C]=(re=this.events[C])===null||re===void 0?void 0:re.filter((C=>C!==q))}pipe(C){this.on("data",(q=>{if(C instanceof UndiciStreamWrapper){C._write(q)}else{const re=C.getWriter();re.write(q).then((()=>re.releaseLock()))}}));this.on("end",(()=>{if(C instanceof UndiciStreamWrapper){C._end()}else{const q=C.getWriter();q.close()}}));this.on("error",(q=>{if(C instanceof UndiciStreamWrapper){C._error(q)}else{const re=C.getWriter();re.abort(q)}}));this._startReading();return C}pipeTo(C){return this.pipe(C)}unpipe(C){this.off("data",(q=>{if(C instanceof UndiciStreamWrapper){C._write(q)}else{const re=C.getWriter();re.write(q).then((()=>re.releaseLock()))}}));this.off("end",(()=>{if(C instanceof UndiciStreamWrapper){C._end()}else{const q=C.getWriter();q.close()}}));this.off("error",(q=>{if(C instanceof UndiciStreamWrapper){C._error(q)}else{const re=C.getWriter();re.abort(q)}}))}destroy(C){this.reader.cancel(C).then((()=>{this._emit("close")})).catch((C=>{this._emit("error",C)}))}pause(){this.paused=true;this._emit("pause")}resume(){if(this.paused){this.paused=false;this._emit("resume");if(this.resumeCallback){this.resumeCallback();this.resumeCallback=null}}}get isPaused(){return this.paused}read(){return re(this,void 0,void 0,(function*(){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){return undefined}return q}))}setEncoding(C){this.encoding=C}text(){return re(this,void 0,void 0,(function*(){const C=[];while(true){const{done:q,value:re}=yield this.reader.read();if(q){break}if(re){C.push(re)}}const q=new TextDecoder(this.encoding||"utf-8");return q.decode(yield new Blob(C).arrayBuffer())}))}json(){return re(this,void 0,void 0,(function*(){const C=yield this.text();return JSON.parse(C)}))}_write(C){this._emit("data",C)}_end(){this._emit("end")}_error(C){this._emit("error",C)}_emit(C,q){if(this.events[C]){for(const re of this.events[C]||[]){re(q)}}}_startReading(){return re(this,void 0,void 0,(function*(){try{this._emit("readable");while(true){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){this._emit("end");this._emit("close");break}if(q){this._emit("data",q)}}}catch(C){this._emit("error",C)}}))}[Symbol.asyncIterator](){return{next:()=>re(this,void 0,void 0,(function*(){if(this.paused){yield new Promise((C=>{this.resumeCallback=C}))}const{done:C,value:q}=yield this.reader.read();if(C){return{done:true,value:undefined}}return{done:false,value:q}})),[Symbol.asyncIterator](){return this}}}}q.UndiciStreamWrapper=UndiciStreamWrapper},73819:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};var Pt=this&&this.__awaiter||function(C,q,re,ae){function adopt(C){return C instanceof re?C:new re((function(q){q(C)}))}return new(re||(re=Promise))((function(re,Ue){function fulfilled(C){try{step(ae.next(C))}catch(C){Ue(C)}}function rejected(C){try{step(ae["throw"](C))}catch(C){Ue(C)}}function step(C){C.done?re(C.value):adopt(C.value).then(fulfilled,rejected)}step((ae=ae.apply(C,q||[])).next())}))};Object.defineProperty(q,"__esModule",{value:true});q.chooseStreamWrapper=void 0;const Wt=re(66544);function chooseStreamWrapper(C){return Pt(this,void 0,void 0,(function*(){if(Wt.RUNTIME.type==="node"&&Wt.RUNTIME.parsedVersion!=null&&Wt.RUNTIME.parsedVersion>=18){return new((yield Promise.resolve().then((()=>lt(re(75810))))).Node18UniversalStreamWrapper)(C)}else if(Wt.RUNTIME.type!=="node"&&typeof fetch==="function"){return new((yield Promise.resolve().then((()=>lt(re(50176))))).UndiciStreamWrapper)(C)}else{return new((yield Promise.resolve().then((()=>lt(re(3480))))).NodePre18StreamWrapper)(C)}}))}q.chooseStreamWrapper=chooseStreamWrapper},70015:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};var Pt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.serialization=void 0;lt(re(28175),q);lt(re(34782),q);lt(re(66544),q);q.serialization=Pt(re(68716))},66544:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.RUNTIME=void 0;var ae=re(38496);Object.defineProperty(q,"RUNTIME",{enumerable:true,get:function(){return ae.RUNTIME}})},38496:(C,q)=>{var re,ae,Ue,lt,Pt;Object.defineProperty(q,"__esModule",{value:true});q.RUNTIME=void 0;const Wt=typeof window!=="undefined"&&typeof window.document!=="undefined";const Ar=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((re=self.constructor)===null||re===void 0?void 0:re.name)==="DedicatedWorkerGlobalScope"||((ae=self.constructor)===null||ae===void 0?void 0:ae.name)==="ServiceWorkerGlobalScope"||((Ue=self.constructor)===null||Ue===void 0?void 0:Ue.name)==="SharedWorkerGlobalScope");const Er=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const Ir=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Br=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((lt=process.versions)===null||lt===void 0?void 0:lt.node)&&!Er&&!Ir;const kr=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative";const Pr=typeof globalThis!=="undefined"&&((Pt=globalThis===null||globalThis===void 0?void 0:globalThis.navigator)===null||Pt===void 0?void 0:Pt.userAgent)==="Cloudflare-Workers";q.RUNTIME=evaluateRuntime();function evaluateRuntime(){if(Wt){return{type:"browser",version:window.navigator.userAgent}}if(Pr){return{type:"workerd"}}if(Ar){return{type:"web-worker"}}if(Er){return{type:"deno",version:Deno.version.deno}}if(Ir){return{type:"bun",version:Bun.version}}if(Br){return{type:"node",version:process.versions.node,parsedVersion:Number(process.versions.node.split(".")[0])}}if(kr){return{type:"react-native"}}return{type:"unknown"}}},87757:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.SchemaType=void 0;q.SchemaType={DATE:"date",ENUM:"enum",LIST:"list",STRING_LITERAL:"stringLiteral",BOOLEAN_LITERAL:"booleanLiteral",OBJECT:"object",ANY:"any",BOOLEAN:"boolean",NUMBER:"number",STRING:"string",UNKNOWN:"unknown",RECORD:"record",SET:"set",UNION:"union",UNDISCRIMINATED_UNION:"undiscriminatedUnion",OPTIONAL:"optional"}},12472:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.date=void 0;const ae=re(87757);const Ue=re(34849);const lt=re(98618);const Pt=re(93753);const Wt=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;function date(){const C={parse:(C,{breadcrumbsPrefix:q=[]}={})=>{if(typeof C!=="string"){return{ok:false,errors:[{path:q,message:(0,Ue.getErrorMessageForIncorrectType)(C,"string")}]}}if(!Wt.test(C)){return{ok:false,errors:[{path:q,message:(0,Ue.getErrorMessageForIncorrectType)(C,"ISO 8601 date string")}]}}return{ok:true,value:new Date(C)}},json:(C,{breadcrumbsPrefix:q=[]}={})=>{if(C instanceof Date){return{ok:true,value:C.toISOString()}}else{return{ok:false,errors:[{path:q,message:(0,Ue.getErrorMessageForIncorrectType)(C,"Date object")}]}}},getType:()=>ae.SchemaType.DATE};return Object.assign(Object.assign({},(0,lt.maybeSkipValidation)(C)),(0,Pt.getSchemaUtils)(C))}q.date=date},92118:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.date=void 0;var ae=re(12472);Object.defineProperty(q,"date",{enumerable:true,get:function(){return ae.date}})},21990:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.enum_=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);function enum_(C){const q=new Set(C);const re=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.ENUM,((C,{allowUnrecognizedEnumValues:re,breadcrumbsPrefix:ae=[]}={})=>{if(typeof C!=="string"){return{ok:false,errors:[{path:ae,message:(0,lt.getErrorMessageForIncorrectType)(C,"string")}]}}if(!q.has(C)&&!re){return{ok:false,errors:[{path:ae,message:(0,lt.getErrorMessageForIncorrectType)(C,"enum")}]}}return{ok:true,value:C}}));return re()}q.enum_=enum_},45563:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.enum_=void 0;var ae=re(21990);Object.defineProperty(q,"enum_",{enumerable:true,get:function(){return ae.enum_}})},2557:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(92118),q);Ue(re(45563),q);Ue(re(46028),q);Ue(re(79950),q);Ue(re(82758),q);Ue(re(23005),q);Ue(re(90463),q);Ue(re(11264),q);Ue(re(44567),q);Ue(re(93753),q);Ue(re(99914),q);Ue(re(26949),q);Ue(re(11397),q)},46028:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.lazyObject=q.lazy=void 0;var ae=re(83512);Object.defineProperty(q,"lazy",{enumerable:true,get:function(){return ae.lazy}});var Ue=re(60447);Object.defineProperty(q,"lazyObject",{enumerable:true,get:function(){return Ue.lazyObject}})},83512:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.getMemoizedSchema=q.constructLazyBaseSchema=q.lazy=void 0;const ae=re(93753);function lazy(C){const q=constructLazyBaseSchema(C);return Object.assign(Object.assign({},q),(0,ae.getSchemaUtils)(q))}q.lazy=lazy;function constructLazyBaseSchema(C){return{parse:(q,re)=>getMemoizedSchema(C).parse(q,re),json:(q,re)=>getMemoizedSchema(C).json(q,re),getType:()=>getMemoizedSchema(C).getType()}}q.constructLazyBaseSchema=constructLazyBaseSchema;function getMemoizedSchema(C){const q=C;if(q.__zurg_memoized==null){q.__zurg_memoized=C()}return q.__zurg_memoized}q.getMemoizedSchema=getMemoizedSchema},60447:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.lazyObject=void 0;const ae=re(23005);const Ue=re(90463);const lt=re(93753);const Pt=re(83512);function lazyObject(C){const q=Object.assign(Object.assign({},(0,Pt.constructLazyBaseSchema)(C)),{_getRawProperties:()=>(0,Pt.getMemoizedSchema)(C)._getRawProperties(),_getParsedProperties:()=>(0,Pt.getMemoizedSchema)(C)._getParsedProperties()});return Object.assign(Object.assign(Object.assign(Object.assign({},q),(0,lt.getSchemaUtils)(q)),(0,Ue.getObjectLikeUtils)(q)),(0,ae.getObjectUtils)(q))}q.lazyObject=lazyObject},79950:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.list=void 0;var ae=re(59932);Object.defineProperty(q,"list",{enumerable:true,get:function(){return ae.list}})},59932:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.list=void 0;const ae=re(87757);const Ue=re(34849);const lt=re(98618);const Pt=re(93753);function list(C){const q={parse:(q,re)=>validateAndTransformArray(q,((q,ae)=>{var Ue;return C.parse(q,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],`[${ae}]`]}))})),json:(q,re)=>validateAndTransformArray(q,((q,ae)=>{var Ue;return C.json(q,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],`[${ae}]`]}))})),getType:()=>ae.SchemaType.LIST};return Object.assign(Object.assign({},(0,lt.maybeSkipValidation)(q)),(0,Pt.getSchemaUtils)(q))}q.list=list;function validateAndTransformArray(C,q){if(!Array.isArray(C)){return{ok:false,errors:[{message:(0,Ue.getErrorMessageForIncorrectType)(C,"list"),path:[]}]}}const re=C.map(((C,re)=>q(C,re)));return re.reduce(((C,q)=>{if(C.ok&&q.ok){return{ok:true,value:[...C.value,q.value]}}const re=[];if(!C.ok){re.push(...C.errors)}if(!q.ok){re.push(...q.errors)}return{ok:false,errors:re}}),{ok:true,value:[]})}},51739:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.booleanLiteral=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);function booleanLiteral(C){const q=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.BOOLEAN_LITERAL,((q,{breadcrumbsPrefix:re=[]}={})=>{if(q===C){return{ok:true,value:C}}else{return{ok:false,errors:[{path:re,message:(0,lt.getErrorMessageForIncorrectType)(q,`${C.toString()}`)}]}}}));return q()}q.booleanLiteral=booleanLiteral},82758:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.booleanLiteral=q.stringLiteral=void 0;var ae=re(57170);Object.defineProperty(q,"stringLiteral",{enumerable:true,get:function(){return ae.stringLiteral}});var Ue=re(51739);Object.defineProperty(q,"booleanLiteral",{enumerable:true,get:function(){return Ue.booleanLiteral}})},57170:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.stringLiteral=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);function stringLiteral(C){const q=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.STRING_LITERAL,((q,{breadcrumbsPrefix:re=[]}={})=>{if(q===C){return{ok:true,value:C}}else{return{ok:false,errors:[{path:re,message:(0,lt.getErrorMessageForIncorrectType)(q,`"${C}"`)}]}}}));return q()}q.stringLiteral=stringLiteral},61810:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.withParsedProperties=q.getObjectLikeUtils=void 0;const ae=re(69057);const Ue=re(34849);const lt=re(82437);const Pt=re(93753);function getObjectLikeUtils(C){return{withParsedProperties:q=>withParsedProperties(C,q)}}q.getObjectLikeUtils=getObjectLikeUtils;function withParsedProperties(C,q){const re={parse:(re,ae)=>{const Ue=C.parse(re,ae);if(!Ue.ok){return Ue}const lt=Object.entries(q).reduce(((C,[q,re])=>Object.assign(Object.assign({},C),{[q]:typeof re==="function"?re(Ue.value):re})),{});return{ok:true,value:Object.assign(Object.assign({},Ue.value),lt)}},json:(re,Pt)=>{var Wt;if(!(0,lt.isPlainObject)(re)){return{ok:false,errors:[{path:(Wt=Pt===null||Pt===void 0?void 0:Pt.breadcrumbsPrefix)!==null&&Wt!==void 0?Wt:[],message:(0,Ue.getErrorMessageForIncorrectType)(re,"object")}]}}const Ar=new Set(Object.keys(q));const Er=(0,ae.filterObject)(re,Object.keys(re).filter((C=>!Ar.has(C))));return C.json(Er,Pt)},getType:()=>C.getType()};return Object.assign(Object.assign(Object.assign({},re),(0,Pt.getSchemaUtils)(re)),getObjectLikeUtils(re))}q.withParsedProperties=withParsedProperties},90463:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.withParsedProperties=q.getObjectLikeUtils=void 0;var ae=re(61810);Object.defineProperty(q,"getObjectLikeUtils",{enumerable:true,get:function(){return ae.getObjectLikeUtils}});Object.defineProperty(q,"withParsedProperties",{enumerable:true,get:function(){return ae.withParsedProperties}})},23005:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.property=q.isProperty=q.objectWithoutOptionalProperties=q.object=q.getObjectUtils=void 0;var ae=re(59502);Object.defineProperty(q,"getObjectUtils",{enumerable:true,get:function(){return ae.getObjectUtils}});Object.defineProperty(q,"object",{enumerable:true,get:function(){return ae.object}});var Ue=re(78845);Object.defineProperty(q,"objectWithoutOptionalProperties",{enumerable:true,get:function(){return Ue.objectWithoutOptionalProperties}});var lt=re(78064);Object.defineProperty(q,"isProperty",{enumerable:true,get:function(){return lt.isProperty}});Object.defineProperty(q,"property",{enumerable:true,get:function(){return lt.property}})},59502:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.getObjectUtils=q.object=void 0;const ae=re(87757);const Ue=re(68038);const lt=re(69057);const Pt=re(34849);const Wt=re(82437);const Ar=re(19516);const Er=re(98618);const Ir=re(73408);const Br=re(90463);const kr=re(93753);const Pr=re(78064);function object(C){const q={_getRawProperties:()=>Object.entries(C).map((([C,q])=>(0,Pr.isProperty)(q)?q.rawKey:C)),_getParsedProperties:()=>(0,Ar.keys)(C),parse:(q,re)=>{const ae={};const lt=[];for(const[q,re]of(0,Ue.entries)(C)){const C=(0,Pr.isProperty)(re)?re.rawKey:q;const Ue=(0,Pr.isProperty)(re)?re.valueSchema:re;const Pt={rawKey:C,parsedKey:q,valueSchema:Ue};ae[C]=Pt;if(isSchemaRequired(Ue)){lt.push(C)}}return validateAndTransformObject({value:q,requiredKeys:lt,getProperty:C=>{const q=ae[C];if(q==null){return undefined}return{transformedKey:q.parsedKey,transform:ae=>{var Ue;return q.valueSchema.parse(ae,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],C]}))}}},unrecognizedObjectKeys:re===null||re===void 0?void 0:re.unrecognizedObjectKeys,skipValidation:re===null||re===void 0?void 0:re.skipValidation,breadcrumbsPrefix:re===null||re===void 0?void 0:re.breadcrumbsPrefix,omitUndefined:re===null||re===void 0?void 0:re.omitUndefined})},json:(q,re)=>{const ae=[];for(const[q,re]of(0,Ue.entries)(C)){const C=(0,Pr.isProperty)(re)?re.valueSchema:re;if(isSchemaRequired(C)){ae.push(q)}}return validateAndTransformObject({value:q,requiredKeys:ae,getProperty:q=>{const ae=C[q];if(ae==null){return undefined}if((0,Pr.isProperty)(ae)){return{transformedKey:ae.rawKey,transform:C=>{var Ue;return ae.valueSchema.json(C,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],q]}))}}}else{return{transformedKey:q,transform:C=>{var Ue;return ae.json(C,Object.assign(Object.assign({},re),{breadcrumbsPrefix:[...(Ue=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&Ue!==void 0?Ue:[],q]}))}}}},unrecognizedObjectKeys:re===null||re===void 0?void 0:re.unrecognizedObjectKeys,skipValidation:re===null||re===void 0?void 0:re.skipValidation,breadcrumbsPrefix:re===null||re===void 0?void 0:re.breadcrumbsPrefix,omitUndefined:re===null||re===void 0?void 0:re.omitUndefined})},getType:()=>ae.SchemaType.OBJECT};return Object.assign(Object.assign(Object.assign(Object.assign({},(0,Er.maybeSkipValidation)(q)),(0,kr.getSchemaUtils)(q)),(0,Br.getObjectLikeUtils)(q)),getObjectUtils(q))}q.object=object;function validateAndTransformObject({value:C,requiredKeys:q,getProperty:re,unrecognizedObjectKeys:ae="fail",skipValidation:Ue=false,breadcrumbsPrefix:lt=[]}){if(!(0,Wt.isPlainObject)(C)){return{ok:false,errors:[{path:lt,message:(0,Pt.getErrorMessageForIncorrectType)(C,"object")}]}}const Ar=new Set(q);const Er=[];const Ir={};for(const[q,Ue]of Object.entries(C)){const C=re(q);if(C!=null){Ar.delete(q);const re=C.transform(Ue);if(re.ok){Ir[C.transformedKey]=re.value}else{Ir[q]=Ue;Er.push(...re.errors)}}else{switch(ae){case"fail":Er.push({path:[...lt,q],message:`Unexpected key "${q}"`});break;case"strip":break;case"passthrough":Ir[q]=Ue;break}}}Er.push(...q.filter((C=>Ar.has(C))).map((C=>({path:lt,message:`Missing required key "${C}"`}))));if(Er.length===0||Ue){return{ok:true,value:Ir}}else{return{ok:false,errors:Er}}}function getObjectUtils(C){return{extend:q=>{const re={_getParsedProperties:()=>[...C._getParsedProperties(),...q._getParsedProperties()],_getRawProperties:()=>[...C._getRawProperties(),...q._getRawProperties()],parse:(re,ae)=>validateAndTransformExtendedObject({extensionKeys:q._getRawProperties(),value:re,transformBase:q=>C.parse(q,ae),transformExtension:C=>q.parse(C,ae)}),json:(re,ae)=>validateAndTransformExtendedObject({extensionKeys:q._getParsedProperties(),value:re,transformBase:q=>C.json(q,ae),transformExtension:C=>q.json(C,ae)}),getType:()=>ae.SchemaType.OBJECT};return Object.assign(Object.assign(Object.assign(Object.assign({},re),(0,kr.getSchemaUtils)(re)),(0,Br.getObjectLikeUtils)(re)),getObjectUtils(re))}}}q.getObjectUtils=getObjectUtils;function validateAndTransformExtendedObject({extensionKeys:C,value:q,transformBase:re,transformExtension:ae}){const Ue=new Set(C);const[Pt,Wt]=(0,Ir.partition)((0,Ar.keys)(q),(C=>Ue.has(C)));const Er=re((0,lt.filterObject)(q,Wt));const Br=ae((0,lt.filterObject)(q,Pt));if(Er.ok&&Br.ok){return{ok:true,value:Object.assign(Object.assign({},Er.value),Br.value)}}else{return{ok:false,errors:[...Er.ok?[]:Er.errors,...Br.ok?[]:Br.errors]}}}function isSchemaRequired(C){return!isSchemaOptional(C)}function isSchemaOptional(C){switch(C.getType()){case ae.SchemaType.ANY:case ae.SchemaType.UNKNOWN:case ae.SchemaType.OPTIONAL:return true;default:return false}}},78845:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.objectWithoutOptionalProperties=void 0;const ae=re(59502);function objectWithoutOptionalProperties(C){return(0,ae.object)(C)}q.objectWithoutOptionalProperties=objectWithoutOptionalProperties},78064:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.isProperty=q.property=void 0;function property(C,q){return{rawKey:C,valueSchema:q,isProperty:true}}q.property=property;function isProperty(C){return C.isProperty}q.isProperty=isProperty},36206:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.any=void 0;const ae=re(87757);const Ue=re(76697);q.any=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.ANY,(C=>({ok:true,value:C})))},29564:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.boolean=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);q.boolean=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.BOOLEAN,((C,{breadcrumbsPrefix:q=[]}={})=>{if(typeof C==="boolean"){return{ok:true,value:C}}else{return{ok:false,errors:[{path:q,message:(0,lt.getErrorMessageForIncorrectType)(C,"boolean")}]}}}))},11264:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.unknown=q.string=q.number=q.boolean=q.any=void 0;var ae=re(36206);Object.defineProperty(q,"any",{enumerable:true,get:function(){return ae.any}});var Ue=re(29564);Object.defineProperty(q,"boolean",{enumerable:true,get:function(){return Ue.boolean}});var lt=re(5663);Object.defineProperty(q,"number",{enumerable:true,get:function(){return lt.number}});var Pt=re(6863);Object.defineProperty(q,"string",{enumerable:true,get:function(){return Pt.string}});var Wt=re(5226);Object.defineProperty(q,"unknown",{enumerable:true,get:function(){return Wt.unknown}})},5663:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.number=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);q.number=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.NUMBER,((C,{breadcrumbsPrefix:q=[]}={})=>{if(typeof C==="number"){return{ok:true,value:C}}else{return{ok:false,errors:[{path:q,message:(0,lt.getErrorMessageForIncorrectType)(C,"number")}]}}}))},6863:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.string=void 0;const ae=re(87757);const Ue=re(76697);const lt=re(34849);q.string=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.STRING,((C,{breadcrumbsPrefix:q=[]}={})=>{if(typeof C==="string"){return{ok:true,value:C}}else{return{ok:false,errors:[{path:q,message:(0,lt.getErrorMessageForIncorrectType)(C,"string")}]}}}))},5226:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.unknown=void 0;const ae=re(87757);const Ue=re(76697);q.unknown=(0,Ue.createIdentitySchemaCreator)(ae.SchemaType.UNKNOWN,(C=>({ok:true,value:C})))},44567:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.record=void 0;var ae=re(26282);Object.defineProperty(q,"record",{enumerable:true,get:function(){return ae.record}})},26282:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.record=void 0;const ae=re(87757);const Ue=re(68038);const lt=re(34849);const Pt=re(82437);const Wt=re(98618);const Ar=re(93753);function record(C,q){const re={parse:(re,Ue)=>validateAndTransformRecord({value:re,isKeyNumeric:C.getType()===ae.SchemaType.NUMBER,transformKey:q=>{var re;return C.parse(q,Object.assign(Object.assign({},Ue),{breadcrumbsPrefix:[...(re=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&re!==void 0?re:[],`${q} (key)`]}))},transformValue:(C,re)=>{var ae;return q.parse(C,Object.assign(Object.assign({},Ue),{breadcrumbsPrefix:[...(ae=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&ae!==void 0?ae:[],`${re}`]}))},breadcrumbsPrefix:Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix}),json:(re,Ue)=>validateAndTransformRecord({value:re,isKeyNumeric:C.getType()===ae.SchemaType.NUMBER,transformKey:q=>{var re;return C.json(q,Object.assign(Object.assign({},Ue),{breadcrumbsPrefix:[...(re=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&re!==void 0?re:[],`${q} (key)`]}))},transformValue:(C,re)=>{var ae;return q.json(C,Object.assign(Object.assign({},Ue),{breadcrumbsPrefix:[...(ae=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&ae!==void 0?ae:[],`${re}`]}))},breadcrumbsPrefix:Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix}),getType:()=>ae.SchemaType.RECORD};return Object.assign(Object.assign({},(0,Wt.maybeSkipValidation)(re)),(0,Ar.getSchemaUtils)(re))}q.record=record;function validateAndTransformRecord({value:C,isKeyNumeric:q,transformKey:re,transformValue:ae,breadcrumbsPrefix:Wt=[]}){if(!(0,Pt.isPlainObject)(C)){return{ok:false,errors:[{path:Wt,message:(0,lt.getErrorMessageForIncorrectType)(C,"object")}]}}return(0,Ue.entries)(C).reduce(((C,[Ue,lt])=>{if(lt==null){return C}const Pt=C;let Wt=Ue;if(q){const C=Ue.length>0?Number(Ue):NaN;if(!isNaN(C)){Wt=C}}const Ar=re(Wt);const Er=ae(lt,Wt);if(Pt.ok&&Ar.ok&&Er.ok){return{ok:true,value:Object.assign(Object.assign({},Pt.value),{[Ar.value]:Er.value})}}const Ir=[];if(!Pt.ok){Ir.push(...Pt.errors)}if(!Ar.ok){Ir.push(...Ar.errors)}if(!Er.ok){Ir.push(...Er.errors)}return{ok:false,errors:Ir}}),{ok:true,value:{}})}},53981:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.JsonError=void 0;const ae=re(50768);class JsonError extends Error{constructor(C){super(C.map(ae.stringifyValidationError).join("; "));this.errors=C;Object.setPrototypeOf(this,JsonError.prototype)}}q.JsonError=JsonError},11946:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ParseError=void 0;const ae=re(50768);class ParseError extends Error{constructor(C){super(C.map(ae.stringifyValidationError).join("; "));this.errors=C;Object.setPrototypeOf(this,ParseError.prototype)}}q.ParseError=ParseError},30397:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.transform=q.optional=q.getSchemaUtils=void 0;const ae=re(87757);const Ue=re(53981);const lt=re(11946);function getSchemaUtils(C){return{optional:()=>optional(C),transform:q=>transform(C,q),parseOrThrow:(q,re)=>{const ae=C.parse(q,re);if(ae.ok){return ae.value}throw new lt.ParseError(ae.errors)},jsonOrThrow:(q,re)=>{const ae=C.json(q,re);if(ae.ok){return ae.value}throw new Ue.JsonError(ae.errors)}}}q.getSchemaUtils=getSchemaUtils;function optional(C){const q={parse:(q,re)=>{if(q==null){return{ok:true,value:undefined}}return C.parse(q,re)},json:(q,re)=>{if((re===null||re===void 0?void 0:re.omitUndefined)&&q===undefined){return{ok:true,value:undefined}}if(q==null){return{ok:true,value:null}}return C.json(q,re)},getType:()=>ae.SchemaType.OPTIONAL};return Object.assign(Object.assign({},q),getSchemaUtils(q))}q.optional=optional;function transform(C,q){const re={parse:(re,ae)=>{const Ue=C.parse(re,ae);if(!Ue.ok){return Ue}return{ok:true,value:q.transform(Ue.value)}},json:(re,ae)=>{const Ue=q.untransform(re);return C.json(Ue,ae)},getType:()=>C.getType()};return Object.assign(Object.assign({},re),getSchemaUtils(re))}q.transform=transform},93753:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.ParseError=q.JsonError=q.transform=q.optional=q.getSchemaUtils=void 0;var ae=re(30397);Object.defineProperty(q,"getSchemaUtils",{enumerable:true,get:function(){return ae.getSchemaUtils}});Object.defineProperty(q,"optional",{enumerable:true,get:function(){return ae.optional}});Object.defineProperty(q,"transform",{enumerable:true,get:function(){return ae.transform}});var Ue=re(53981);Object.defineProperty(q,"JsonError",{enumerable:true,get:function(){return Ue.JsonError}});var lt=re(11946);Object.defineProperty(q,"ParseError",{enumerable:true,get:function(){return lt.ParseError}})},50768:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.stringifyValidationError=void 0;function stringifyValidationError(C){if(C.path.length===0){return C.message}return`${C.path.join(" -> ")}: ${C.message}`}q.stringifyValidationError=stringifyValidationError},99914:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.set=void 0;var ae=re(14426);Object.defineProperty(q,"set",{enumerable:true,get:function(){return ae.set}})},14426:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.set=void 0;const ae=re(87757);const Ue=re(34849);const lt=re(98618);const Pt=re(79950);const Wt=re(93753);function set(C){const q=(0,Pt.list)(C);const re={parse:(C,re)=>{const ae=q.parse(C,re);if(ae.ok){return{ok:true,value:new Set(ae.value)}}else{return ae}},json:(C,re)=>{var ae;if(!(C instanceof Set)){return{ok:false,errors:[{path:(ae=re===null||re===void 0?void 0:re.breadcrumbsPrefix)!==null&&ae!==void 0?ae:[],message:(0,Ue.getErrorMessageForIncorrectType)(C,"Set")}]}}const lt=q.json([...C],re);return lt},getType:()=>ae.SchemaType.SET};return Object.assign(Object.assign({},(0,lt.maybeSkipValidation)(re)),(0,Wt.getSchemaUtils)(re))}q.set=set},26949:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.undiscriminatedUnion=void 0;var ae=re(13153);Object.defineProperty(q,"undiscriminatedUnion",{enumerable:true,get:function(){return ae.undiscriminatedUnion}})},13153:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.undiscriminatedUnion=void 0;const ae=re(87757);const Ue=re(98618);const lt=re(93753);function undiscriminatedUnion(C){const q={parse:(q,re)=>validateAndTransformUndiscriminatedUnion(((C,re)=>C.parse(q,re)),C,re),json:(q,re)=>validateAndTransformUndiscriminatedUnion(((C,re)=>C.json(q,re)),C,re),getType:()=>ae.SchemaType.UNDISCRIMINATED_UNION};return Object.assign(Object.assign({},(0,Ue.maybeSkipValidation)(q)),(0,lt.getSchemaUtils)(q))}q.undiscriminatedUnion=undiscriminatedUnion;function validateAndTransformUndiscriminatedUnion(C,q,re){const ae=[];for(const[Ue,lt]of q.entries()){const q=C(lt,Object.assign(Object.assign({},re),{skipValidation:false}));if(q.ok){return q}else{for(const C of q.errors){ae.push({path:C.path,message:`[Variant ${Ue}] ${C.message}`})}}}return{ok:false,errors:ae}}},57240:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.discriminant=void 0;function discriminant(C,q){return{parsedDiscriminant:C,rawDiscriminant:q}}q.discriminant=discriminant},11397:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.union=q.discriminant=void 0;var ae=re(57240);Object.defineProperty(q,"discriminant",{enumerable:true,get:function(){return ae.discriminant}});var Ue=re(28558);Object.defineProperty(q,"union",{enumerable:true,get:function(){return Ue.union}})},28558:function(C,q,re){var ae=this&&this.__rest||function(C,q){var re={};for(var ae in C)if(Object.prototype.hasOwnProperty.call(C,ae)&&q.indexOf(ae)<0)re[ae]=C[ae];if(C!=null&&typeof Object.getOwnPropertySymbols==="function")for(var Ue=0,ae=Object.getOwnPropertySymbols(C);UetransformAndValidateUnion({value:C,discriminant:re,transformedDiscriminant:ae,transformDiscriminantValue:C=>{var q;return lt.parse(C,{allowUnrecognizedEnumValues:Ue===null||Ue===void 0?void 0:Ue.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...(q=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&q!==void 0?q:[],re]})},getAdditionalPropertiesSchema:C=>q[C],allowUnrecognizedUnionMembers:Ue===null||Ue===void 0?void 0:Ue.allowUnrecognizedUnionMembers,transformAdditionalProperties:(C,q)=>q.parse(C,Ue),breadcrumbsPrefix:Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix}),json:(C,Ue)=>transformAndValidateUnion({value:C,discriminant:ae,transformedDiscriminant:re,transformDiscriminantValue:C=>{var q;return lt.json(C,{allowUnrecognizedEnumValues:Ue===null||Ue===void 0?void 0:Ue.allowUnrecognizedUnionMembers,breadcrumbsPrefix:[...(q=Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix)!==null&&q!==void 0?q:[],ae]})},getAdditionalPropertiesSchema:C=>q[C],allowUnrecognizedUnionMembers:Ue===null||Ue===void 0?void 0:Ue.allowUnrecognizedUnionMembers,transformAdditionalProperties:(C,q)=>q.json(C,Ue),breadcrumbsPrefix:Ue===null||Ue===void 0?void 0:Ue.breadcrumbsPrefix}),getType:()=>Ue.SchemaType.UNION};return Object.assign(Object.assign(Object.assign({},(0,Ar.maybeSkipValidation)(Pt)),(0,Br.getSchemaUtils)(Pt)),(0,Ir.getObjectLikeUtils)(Pt))}q.union=union;function transformAndValidateUnion({value:C,discriminant:q,transformedDiscriminant:re,transformDiscriminantValue:Ue,getAdditionalPropertiesSchema:Wt,allowUnrecognizedUnionMembers:Ar=false,transformAdditionalProperties:Er,breadcrumbsPrefix:Ir=[]}){if(!(0,Pt.isPlainObject)(C)){return{ok:false,errors:[{path:Ir,message:(0,lt.getErrorMessageForIncorrectType)(C,"object")}]}}const Br=C,kr=q,Pr=Br[kr],Qr=ae(Br,[typeof kr==="symbol"?kr:kr+""]);if(Pr==null){return{ok:false,errors:[{path:Ir,message:`Missing discriminant ("${q}")`}]}}const Fr=Ue(Pr);if(!Fr.ok){return{ok:false,errors:Fr.errors}}const Dr=Wt(Fr.value);if(Dr==null){if(Ar){return{ok:true,value:Object.assign({[re]:Fr.value},Qr)}}else{return{ok:false,errors:[{path:[...Ir,q],message:"Unexpected discriminant value"}]}}}const xr=Er(Qr,Dr);if(!xr.ok){return xr}return{ok:true,value:Object.assign({[re]:Pr},xr.value)}}},68716:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(2557),q)},76697:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.createIdentitySchemaCreator=void 0;const ae=re(93753);const Ue=re(98618);function createIdentitySchemaCreator(C,q){return()=>{const re={parse:q,json:q,getType:()=>C};return Object.assign(Object.assign({},(0,Ue.maybeSkipValidation)(re)),(0,ae.getSchemaUtils)(re))}}q.createIdentitySchemaCreator=createIdentitySchemaCreator},68038:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.entries=void 0;function entries(C){return Object.entries(C)}q.entries=entries},69057:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.filterObject=void 0;function filterObject(C,q){const re=new Set(q);return Object.entries(C).reduce(((C,[q,ae])=>{if(re.has(q)){C[q]=ae}return C}),{})}q.filterObject=filterObject},34849:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.getErrorMessageForIncorrectType=void 0;function getErrorMessageForIncorrectType(C,q){return`Expected ${q}. Received ${getTypeAsString(C)}.`}q.getErrorMessageForIncorrectType=getErrorMessageForIncorrectType;function getTypeAsString(C){if(Array.isArray(C)){return"list"}if(C===null){return"null"}switch(typeof C){case"string":return`"${C}"`;case"number":case"boolean":case"undefined":return`${C}`}return typeof C}},82437:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.isPlainObject=void 0;function isPlainObject(C){if(typeof C!=="object"||C===null){return false}if(Object.getPrototypeOf(C)===null){return true}let q=C;while(Object.getPrototypeOf(q)!==null){q=Object.getPrototypeOf(q)}return Object.getPrototypeOf(C)===q}q.isPlainObject=isPlainObject},19516:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.keys=void 0;function keys(C){return Object.keys(C)}q.keys=keys},98618:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.maybeSkipValidation=void 0;function maybeSkipValidation(C){return Object.assign(Object.assign({},C),{json:transformAndMaybeSkipValidation(C.json),parse:transformAndMaybeSkipValidation(C.parse)})}q.maybeSkipValidation=maybeSkipValidation;function transformAndMaybeSkipValidation(C){return(q,re)=>{const ae=C(q,re);const{skipValidation:Ue=false}=re!==null&&re!==void 0?re:{};if(!ae.ok&&Ue){console.warn(["Failed to validate.",...ae.errors.map((C=>"  - "+(C.path.length>0?`${C.path.join(".")}: ${C.message}`:C.message)))].join("\n"));return{ok:true,value:q}}else{return ae}}}},73408:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.partition=void 0;function partition(C,q){const re=[],ae=[];for(const Ue of C){if(q(Ue)){re.push(Ue)}else{ae.push(Ue)}}return[re,ae]}q.partition=partition},67149:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.VoyageAIEnvironment=void 0;q.VoyageAIEnvironment={Default:"https://api.voyageai.com/v1"}},57544:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.VoyageAIError=void 0;class VoyageAIError extends Error{constructor({message:C,statusCode:q,body:re}){super(buildMessage({message:C,statusCode:q,body:re}));Object.setPrototypeOf(this,VoyageAIError.prototype);if(q!=null){this.statusCode=q}if(re!==undefined){this.body=re}}}q.VoyageAIError=VoyageAIError;function buildMessage({message:C,statusCode:q,body:re}){let ae=[];if(C!=null){ae.push(C)}if(q!=null){ae.push(`Status code: ${q.toString()}`)}if(re!=null){ae.push(`Body: ${JSON.stringify(re,undefined,2)}`)}return ae.join("\n")}},30647:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.VoyageAITimeoutError=void 0;class VoyageAITimeoutError extends Error{constructor(){super("Timeout");Object.setPrototypeOf(this,VoyageAITimeoutError.prototype)}}q.VoyageAITimeoutError=VoyageAITimeoutError},49727:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.VoyageAITimeoutError=q.VoyageAIError=void 0;var ae=re(57544);Object.defineProperty(q,"VoyageAIError",{enumerable:true,get:function(){return ae.VoyageAIError}});var Ue=re(30647);Object.defineProperty(q,"VoyageAITimeoutError",{enumerable:true,get:function(){return Ue.VoyageAITimeoutError}})},2975:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.VoyageAITimeoutError=q.VoyageAIError=q.VoyageAIEnvironment=q.VoyageAIClient=q.VoyageAI=void 0;q.VoyageAI=lt(re(52983));var Pt=re(68296);Object.defineProperty(q,"VoyageAIClient",{enumerable:true,get:function(){return Pt.VoyageAIClient}});var Wt=re(67149);Object.defineProperty(q,"VoyageAIEnvironment",{enumerable:true,get:function(){return Wt.VoyageAIEnvironment}});var Ar=re(49727);Object.defineProperty(q,"VoyageAIError",{enumerable:true,get:function(){return Ar.VoyageAIError}});Object.defineProperty(q,"VoyageAITimeoutError",{enumerable:true,get:function(){return Ar.VoyageAITimeoutError}})},69002:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(22741),q)},32483:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedRequest=void 0;const Pt=lt(re(70015));const Wt=re(7836);const Ar=re(33572);q.EmbedRequest=Pt.serialization.object({input:Wt.EmbedRequestInput,model:Pt.serialization.string(),inputType:Pt.serialization.property("input_type",Ar.EmbedRequestInputType.optional()),truncation:Pt.serialization.boolean().optional(),encodingFormat:Pt.serialization.property("encoding_format",Pt.serialization.stringLiteral("base64").optional())})},40113:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.RerankRequest=void 0;const Pt=lt(re(70015));q.RerankRequest=Pt.serialization.object({query:Pt.serialization.string(),documents:Pt.serialization.list(Pt.serialization.string()),model:Pt.serialization.string(),topK:Pt.serialization.property("top_k",Pt.serialization.number().optional()),returnDocuments:Pt.serialization.property("return_documents",Pt.serialization.boolean().optional()),truncation:Pt.serialization.boolean().optional()})},22741:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.RerankRequest=q.EmbedRequest=void 0;var ae=re(32483);Object.defineProperty(q,"EmbedRequest",{enumerable:true,get:function(){return ae.EmbedRequest}});var Ue=re(40113);Object.defineProperty(q,"RerankRequest",{enumerable:true,get:function(){return Ue.RerankRequest}})},19528:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(23382),q);Ue(re(69002),q)},7836:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedRequestInput=void 0;const Pt=lt(re(70015));q.EmbedRequestInput=Pt.serialization.undiscriminatedUnion([Pt.serialization.string(),Pt.serialization.list(Pt.serialization.string())])},33572:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedRequestInputType=void 0;const Pt=lt(re(70015));q.EmbedRequestInputType=Pt.serialization.enum_(["query","document"])},70716:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedResponse=void 0;const Pt=lt(re(70015));const Wt=re(29239);const Ar=re(72697);q.EmbedResponse=Pt.serialization.object({object:Pt.serialization.string().optional(),data:Pt.serialization.list(Wt.EmbedResponseDataItem).optional(),model:Pt.serialization.string().optional(),usage:Ar.EmbedResponseUsage.optional()})},29239:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedResponseDataItem=void 0;const Pt=lt(re(70015));q.EmbedResponseDataItem=Pt.serialization.object({object:Pt.serialization.string().optional(),embedding:Pt.serialization.list(Pt.serialization.number()).optional(),index:Pt.serialization.number().optional()})},72697:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.EmbedResponseUsage=void 0;const Pt=lt(re(70015));q.EmbedResponseUsage=Pt.serialization.object({totalTokens:Pt.serialization.property("total_tokens",Pt.serialization.number().optional())})},20412:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.RerankResponse=void 0;const Pt=lt(re(70015));const Wt=re(98583);const Ar=re(82841);q.RerankResponse=Pt.serialization.object({object:Pt.serialization.string().optional(),data:Pt.serialization.list(Wt.RerankResponseDataItem).optional(),model:Pt.serialization.string().optional(),usage:Ar.RerankResponseUsage.optional()})},98583:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.RerankResponseDataItem=void 0;const Pt=lt(re(70015));q.RerankResponseDataItem=Pt.serialization.object({index:Pt.serialization.number().optional(),relevanceScore:Pt.serialization.property("relevance_score",Pt.serialization.number().optional()),document:Pt.serialization.string().optional()})},82841:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__setModuleDefault||(Object.create?function(C,q){Object.defineProperty(C,"default",{enumerable:true,value:q})}:function(C,q){C["default"]=q});var lt=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var q={};if(C!=null)for(var re in C)if(re!=="default"&&Object.prototype.hasOwnProperty.call(C,re))ae(q,C,re);Ue(q,C);return q};Object.defineProperty(q,"__esModule",{value:true});q.RerankResponseUsage=void 0;const Pt=lt(re(70015));q.RerankResponseUsage=Pt.serialization.object({totalTokens:Pt.serialization.property("total_tokens",Pt.serialization.number().optional())})},23382:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(7836),q);Ue(re(33572),q);Ue(re(29239),q);Ue(re(72697),q);Ue(re(70716),q);Ue(re(98583),q);Ue(re(82841),q);Ue(re(20412),q)},37125:C=>{var q={};C.exports=q;function sign(C){return C<0?-1:1}function evenRound(C){if(C%1===.5&&(C&1)===0){return Math.floor(C)}else{return Math.round(C)}}function createNumberConversion(C,q){if(!q.unsigned){--C}const re=q.unsigned?0:-Math.pow(2,C);const ae=Math.pow(2,C)-1;const Ue=q.moduloBitLength?Math.pow(2,q.moduloBitLength):Math.pow(2,C);const lt=q.moduloBitLength?Math.pow(2,q.moduloBitLength-1):Math.pow(2,C-1);return function(C,Pt){if(!Pt)Pt={};let Wt=+C;if(Pt.enforceRange){if(!Number.isFinite(Wt)){throw new TypeError("Argument is not a finite number")}Wt=sign(Wt)*Math.floor(Math.abs(Wt));if(Wtae){throw new TypeError("Argument is not in byte range")}return Wt}if(!isNaN(Wt)&&Pt.clamp){Wt=evenRound(Wt);if(Wtae)Wt=ae;return Wt}if(!Number.isFinite(Wt)||Wt===0){return 0}Wt=sign(Wt)*Math.floor(Math.abs(Wt));Wt=Wt%Ue;if(!q.unsigned&&Wt>=lt){return Wt-Ue}else if(q.unsigned){if(Wt<0){Wt+=Ue}else if(Wt===-0){return 0}}return Wt}}q["void"]=function(){return undefined};q["boolean"]=function(C){return!!C};q["byte"]=createNumberConversion(8,{unsigned:false});q["octet"]=createNumberConversion(8,{unsigned:true});q["short"]=createNumberConversion(16,{unsigned:false});q["unsigned short"]=createNumberConversion(16,{unsigned:true});q["long"]=createNumberConversion(32,{unsigned:false});q["unsigned long"]=createNumberConversion(32,{unsigned:true});q["long long"]=createNumberConversion(32,{unsigned:false,moduloBitLength:64});q["unsigned long long"]=createNumberConversion(32,{unsigned:true,moduloBitLength:64});q["double"]=function(C){const q=+C;if(!Number.isFinite(q)){throw new TypeError("Argument is not a finite floating-point value")}return q};q["unrestricted double"]=function(C){const q=+C;if(isNaN(q)){throw new TypeError("Argument is NaN")}return q};q["float"]=q["double"];q["unrestricted float"]=q["unrestricted double"];q["DOMString"]=function(C,q){if(!q)q={};if(q.treatNullAsEmptyString&&C===null){return""}return String(C)};q["ByteString"]=function(C,q){const re=String(C);let ae=undefined;for(let C=0;(ae=re.codePointAt(C))!==undefined;++C){if(ae>255){throw new TypeError("Argument is not a valid bytestring")}}return re};q["USVString"]=function(C){const q=String(C);const re=q.length;const ae=[];for(let C=0;C57343){ae.push(String.fromCodePoint(Ue))}else if(56320<=Ue&&Ue<=57343){ae.push(String.fromCodePoint(65533))}else{if(C===re-1){ae.push(String.fromCodePoint(65533))}else{const re=q.charCodeAt(C+1);if(56320<=re&&re<=57343){const q=Ue&1023;const lt=re&1023;ae.push(String.fromCodePoint((2<<15)+(2<<9)*q+lt));++C}else{ae.push(String.fromCodePoint(65533))}}}}return ae.join("")};q["Date"]=function(C,q){if(!(C instanceof Date)){throw new TypeError("Argument is not a Date object")}if(isNaN(C)){return undefined}return C};q["RegExp"]=function(C,q){if(!(C instanceof RegExp)){C=new RegExp(C)}return C}},29751:(C,q,re)=>{C.exports=re(65064)},80893:C=>{var q={disableWarnings:false,deprecationWarningMap:{},warn:function(C){if(!this.disableWarnings&&this.deprecationWarningMap[C]){console.warn("DEPRECATION WARNING: "+this.deprecationWarningMap[C]);this.deprecationWarningMap[C]=false}}};C.exports=q},85601:(C,q,re)=>{var ae=re(57643);var Ue=re(4618);var lt=re(73546);const Pt=0;const Wt=1;const Ar=2;const Er=3;C.exports=W3CWebSocket;function W3CWebSocket(C,q,re,Ue,Wt,Ar){lt.EventTarget.call(this);Ar=Ar||{};Ar.assembleFragments=true;var Er=this;this._url=C;this._readyState=Pt;this._protocol=undefined;this._extensions="";this._bufferedAmount=0;this._binaryType="arraybuffer";this._connection=undefined;this._client=new ae(Ar);this._client.on("connect",(function(C){onConnect.call(Er,C)}));this._client.on("connectFailed",(function(){onConnectFailed.call(Er)}));this._client.connect(C,q,re,Ue,Wt)}Object.defineProperties(W3CWebSocket.prototype,{url:{get:function(){return this._url}},readyState:{get:function(){return this._readyState}},protocol:{get:function(){return this._protocol}},extensions:{get:function(){return this._extensions}},bufferedAmount:{get:function(){return this._bufferedAmount}}});Object.defineProperties(W3CWebSocket.prototype,{binaryType:{get:function(){return this._binaryType},set:function(C){if(C!=="arraybuffer"){throw new SyntaxError('just "arraybuffer" type allowed for "binaryType" attribute')}this._binaryType=C}}});[["CONNECTING",Pt],["OPEN",Wt],["CLOSING",Ar],["CLOSED",Er]].forEach((function(C){Object.defineProperty(W3CWebSocket.prototype,C[0],{get:function(){return C[1]}})}));[["CONNECTING",Pt],["OPEN",Wt],["CLOSING",Ar],["CLOSED",Er]].forEach((function(C){Object.defineProperty(W3CWebSocket,C[0],{get:function(){return C[1]}})}));W3CWebSocket.prototype.send=function(C){if(this._readyState!==Wt){throw new Error("cannot call send() while not connected")}if(typeof C==="string"||C instanceof String){this._connection.sendUTF(C)}else{if(C instanceof Buffer){this._connection.sendBytes(C)}else if(C.byteLength||C.byteLength===0){C=Ue(C);this._connection.sendBytes(C)}else{throw new Error("unknown binary data:",C)}}};W3CWebSocket.prototype.close=function(C,q){switch(this._readyState){case Pt:onConnectFailed.call(this);this._client.on("connect",(function(re){if(C){re.close(C,q)}else{re.close()}}));break;case Wt:this._readyState=Ar;if(C){this._connection.close(C,q)}else{this._connection.close()}break;case Ar:case Er:break}};function createCloseEvent(C,q){var re=new lt.Event("close");re.code=C;re.reason=q;re.wasClean=typeof C==="undefined"||C===1e3;return re}function createMessageEvent(C){var q=new lt.Event("message");q.data=C;return q}function onConnect(C){var q=this;this._readyState=Wt;this._connection=C;this._protocol=C.protocol;this._extensions=C.extensions;this._connection.on("close",(function(C,re){onClose.call(q,C,re)}));this._connection.on("message",(function(C){onMessage.call(q,C)}));this.dispatchEvent(new lt.Event("open"))}function onConnectFailed(){destroy.call(this);this._readyState=Er;try{this.dispatchEvent(new lt.Event("error"))}finally{this.dispatchEvent(createCloseEvent(1006,"connection failed"))}}function onClose(C,q){destroy.call(this);this._readyState=Er;this.dispatchEvent(createCloseEvent(C,q||""))}function onMessage(C){if(C.utf8Data){this.dispatchEvent(createMessageEvent(C.utf8Data))}else if(C.binaryData){if(this.binaryType==="arraybuffer"){var q=C.binaryData;var re=new ArrayBuffer(q.length);var ae=new Uint8Array(re);for(var Ue=0,lt=q.length;Ue{var ae=re(4402);var Ue=ae.extend;var lt=re(39023);var Pt=re(24434).EventEmitter;var Wt=re(58611);var Ar=re(65692);var Er=re(87016);var Ir=re(76982);var Br=re(86304);var kr=ae.bufferAllocUnsafe;var Pr=["(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"," ",String.fromCharCode(9)];var Qr=["hostname","port","method","path","headers"];function WebSocketClient(C){Pt.call(this);this.config={maxReceivedFrameSize:1048576,maxReceivedMessageSize:8388608,fragmentOutgoingMessages:true,fragmentationThreshold:16384,webSocketVersion:13,assembleFragments:true,disableNagleAlgorithm:true,closeTimeout:5e3,tlsOptions:{}};if(C){var q;if(C.tlsOptions){q=C.tlsOptions;delete C.tlsOptions}else{q={}}Ue(this.config,C);Ue(this.config.tlsOptions,q)}this._req=null;switch(this.config.webSocketVersion){case 8:case 13:break;default:throw new Error("Requested webSocketVersion is not supported. Allowed values are 8 and 13.")}}lt.inherits(WebSocketClient,Pt);WebSocketClient.prototype.connect=function(C,q,re,lt,Pt){var Ir=this;if(typeof q==="string"){if(q.length>0){q=[q]}else{q=[]}}if(!(q instanceof Array)){q=[]}this.protocols=q;this.origin=re;if(typeof C==="string"){this.url=Er.parse(C)}else{this.url=C}if(!this.url.protocol){throw new Error("You must specify a full WebSocket URL, including protocol.")}if(!this.url.host){throw new Error("You must specify a full WebSocket URL, including hostname. Relative URLs are not supported.")}this.secure=this.url.protocol==="wss:";this.protocols.forEach((function(C){for(var q=0;q126||Pr.indexOf(ae)!==-1){throw new Error('Protocol list contains invalid character "'+String.fromCharCode(re)+'"')}}}));var Br={"ws:":"80","wss:":"443"};if(!this.url.port){this.url.port=Br[this.url.protocol]}var Fr=kr(16);for(var Dr=0;Dr<16;Dr++){Fr[Dr]=Math.round(Math.random()*255)}this.base64nonce=Fr.toString("base64");var xr=this.url.hostname;if(this.url.protocol==="ws:"&&this.url.port!=="80"||this.url.protocol==="wss:"&&this.url.port!=="443"){xr+=":"+this.url.port}var Mr={};if(this.secure&&this.config.tlsOptions.hasOwnProperty("headers")){Ue(Mr,this.config.tlsOptions.headers)}if(lt){Ue(Mr,lt)}Ue(Mr,{Upgrade:"websocket",Connection:"Upgrade","Sec-WebSocket-Version":this.config.webSocketVersion.toString(10),"Sec-WebSocket-Key":this.base64nonce,Host:Mr.Host||xr});if(this.protocols.length>0){Mr["Sec-WebSocket-Protocol"]=this.protocols.join(", ")}if(this.origin){if(this.config.webSocketVersion===13){Mr["Origin"]=this.origin}else if(this.config.webSocketVersion===8){Mr["Sec-WebSocket-Origin"]=this.origin}}var Ur;if(this.url.pathname){Ur=this.url.path}else if(this.url.path){Ur="/"+this.url.path}else{Ur="/"}function handleRequestError(C){Ir._req=null;Ir.emit("connectFailed",C)}var Nr={agent:false};if(Pt){Ue(Nr,Pt)}Ue(Nr,{hostname:this.url.hostname,port:this.url.port,method:"GET",path:Ur,headers:Mr});if(this.secure){var Lr=this.config.tlsOptions;for(var jr in Lr){if(Lr.hasOwnProperty(jr)&&Qr.indexOf(jr)===-1){Nr[jr]=Lr[jr]}}}var Gr=this._req=(this.secure?Ar:Wt).request(Nr);Gr.on("upgrade",(function handleRequestUpgrade(C,q,re){Ir._req=null;Gr.removeListener("error",handleRequestError);Ir.socket=q;Ir.response=C;Ir.firstDataChunk=re;Ir.validateHandshake()}));Gr.on("error",handleRequestError);Gr.on("response",(function(C){Ir._req=null;if(ae.eventEmitterListenerCount(Ir,"httpResponse")>0){Ir.emit("httpResponse",C,Ir);if(C.socket){C.socket.end()}}else{var q=[];for(var re in C.headers){q.push(re+": "+C.headers[re])}Ir.failHandshake("Server responded with a non-101 status: "+C.statusCode+" "+C.statusMessage+"\nResponse Headers Follow:\n"+q.join("\n")+"\n")}}));Gr.end()};WebSocketClient.prototype.validateHandshake=function(){var C=this.response.headers;if(this.protocols.length>0){this.protocol=C["sec-websocket-protocol"];if(this.protocol){if(this.protocols.indexOf(this.protocol)===-1){this.failHandshake("Server did not respond with a requested protocol.");return}}else{this.failHandshake("Expected a Sec-WebSocket-Protocol header.");return}}if(!(C["connection"]&&C["connection"].toLocaleLowerCase()==="upgrade")){this.failHandshake("Expected a Connection: Upgrade header from the server");return}if(!(C["upgrade"]&&C["upgrade"].toLocaleLowerCase()==="websocket")){this.failHandshake("Expected an Upgrade: websocket header from the server");return}var q=Ir.createHash("sha1");q.update(this.base64nonce+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");var re=q.digest("base64");if(!C["sec-websocket-accept"]){this.failHandshake("Expected Sec-WebSocket-Accept header from server");return}if(C["sec-websocket-accept"]!==re){this.failHandshake("Sec-WebSocket-Accept header from server didn't match expected value of "+re);return}this.succeedHandshake()};WebSocketClient.prototype.failHandshake=function(C){if(this.socket&&this.socket.writable){this.socket.end()}this.emit("connectFailed",new Error(C))};WebSocketClient.prototype.succeedHandshake=function(){var C=new Br(this.socket,[],this.protocol,true,this.config);C.webSocketVersion=this.config.webSocketVersion;C._addSocketEventListeners();this.emit("connect",C);if(this.firstDataChunk.length>0){C.handleSocketData(this.firstDataChunk)}this.firstDataChunk=null};WebSocketClient.prototype.abort=function(){if(this._req){this._req.abort()}};C.exports=WebSocketClient},86304:(C,q,re)=>{var ae=re(39023);var Ue=re(4402);var lt=re(24434).EventEmitter;var Pt=re(84087);var Wt=re(91308);var Ar=re(40397);var Er=Ue.bufferAllocUnsafe;var Ir=Ue.bufferFromString;const Br="open";const kr="peer_requested_close";const Pr="ending";const Qr="closed";var Fr="setImmediate"in global?global.setImmediate.bind(global):process.nextTick.bind(process);var Dr=0;function WebSocketConnection(C,q,re,ae,Ar){this._debug=Ue.BufferingLogger("websocket:connection",++Dr);this._debug("constructor");if(this._debug.enabled){instrumentSocketForDebugging(this,C)}lt.call(this);this._pingListenerCount=0;this.on("newListener",(function(C){if(C==="ping"){this._pingListenerCount++}})).on("removeListener",(function(C){if(C==="ping"){this._pingListenerCount--}}));this.config=Ar;this.socket=C;this.protocol=re;this.extensions=q;this.remoteAddress=C.remoteAddress;this.closeReasonCode=-1;this.closeDescription=null;this.closeEventEmitted=false;this.maskOutgoingPackets=ae;this.maskBytes=Er(4);this.frameHeader=Er(10);this.bufferList=new Wt;this.currentFrame=new Pt(this.maskBytes,this.frameHeader,this.config);this.fragmentationSize=0;this.frameQueue=[];this.connected=true;this.state=Br;this.waitingForCloseResponse=false;this.receivedEnd=false;this.closeTimeout=this.config.closeTimeout;this.assembleFragments=this.config.assembleFragments;this.maxReceivedMessageSize=this.config.maxReceivedMessageSize;this.outputBufferFull=false;this.inputPaused=false;this.receivedDataHandler=this.processReceivedData.bind(this);this._closeTimerHandler=this.handleCloseTimer.bind(this);this.socket.setNoDelay(this.config.disableNagleAlgorithm);this.socket.setTimeout(0);if(this.config.keepalive&&!this.config.useNativeKeepalive){if(typeof this.config.keepaliveInterval!=="number"){throw new Error("keepaliveInterval must be specified and numeric "+"if keepalive is true.")}this._keepaliveTimerHandler=this.handleKeepaliveTimer.bind(this);this.setKeepaliveTimer();if(this.config.dropConnectionOnKeepaliveTimeout){if(typeof this.config.keepaliveGracePeriod!=="number"){throw new Error("keepaliveGracePeriod  must be specified and "+"numeric if dropConnectionOnKeepaliveTimeout "+"is true.")}this._gracePeriodTimerHandler=this.handleGracePeriodTimer.bind(this)}}else if(this.config.keepalive&&this.config.useNativeKeepalive){if(!("setKeepAlive"in this.socket)){throw new Error("Unable to use native keepalive: unsupported by "+"this version of Node.")}this.socket.setKeepAlive(true,this.config.keepaliveInterval)}this.socket.removeAllListeners("error")}WebSocketConnection.CLOSE_REASON_NORMAL=1e3;WebSocketConnection.CLOSE_REASON_GOING_AWAY=1001;WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR=1002;WebSocketConnection.CLOSE_REASON_UNPROCESSABLE_INPUT=1003;WebSocketConnection.CLOSE_REASON_RESERVED=1004;WebSocketConnection.CLOSE_REASON_NOT_PROVIDED=1005;WebSocketConnection.CLOSE_REASON_ABNORMAL=1006;WebSocketConnection.CLOSE_REASON_INVALID_DATA=1007;WebSocketConnection.CLOSE_REASON_POLICY_VIOLATION=1008;WebSocketConnection.CLOSE_REASON_MESSAGE_TOO_BIG=1009;WebSocketConnection.CLOSE_REASON_EXTENSION_REQUIRED=1010;WebSocketConnection.CLOSE_REASON_INTERNAL_SERVER_ERROR=1011;WebSocketConnection.CLOSE_REASON_TLS_HANDSHAKE_FAILED=1015;WebSocketConnection.CLOSE_DESCRIPTIONS={1e3:"Normal connection closure",1001:"Remote peer is going away",1002:"Protocol error",1003:"Unprocessable input",1004:"Reserved",1005:"Reason not provided",1006:"Abnormal closure, no further detail available",1007:"Invalid data received",1008:"Policy violation",1009:"Message too big",1010:"Extension requested by client is required",1011:"Internal Server Error",1015:"TLS Handshake Failed"};function validateCloseReason(C){if(C<1e3){return false}if(C>=1e3&&C<=2999){return[1e3,1001,1002,1003,1007,1008,1009,1010,1011,1012,1013,1014,1015].indexOf(C)!==-1}if(C>=3e3&&C<=3999){return true}if(C>=4e3&&C<=4999){return true}if(C>=5e3){return false}}ae.inherits(WebSocketConnection,lt);WebSocketConnection.prototype._addSocketEventListeners=function(){this.socket.on("error",this.handleSocketError.bind(this));this.socket.on("end",this.handleSocketEnd.bind(this));this.socket.on("close",this.handleSocketClose.bind(this));this.socket.on("drain",this.handleSocketDrain.bind(this));this.socket.on("pause",this.handleSocketPause.bind(this));this.socket.on("resume",this.handleSocketResume.bind(this));this.socket.on("data",this.handleSocketData.bind(this))};WebSocketConnection.prototype.setKeepaliveTimer=function(){this._debug("setKeepaliveTimer");if(!this.config.keepalive||this.config.useNativeKeepalive){return}this.clearKeepaliveTimer();this.clearGracePeriodTimer();this._keepaliveTimeoutID=setTimeout(this._keepaliveTimerHandler,this.config.keepaliveInterval)};WebSocketConnection.prototype.clearKeepaliveTimer=function(){if(this._keepaliveTimeoutID){clearTimeout(this._keepaliveTimeoutID)}};WebSocketConnection.prototype.handleKeepaliveTimer=function(){this._debug("handleKeepaliveTimer");this._keepaliveTimeoutID=null;this.ping();if(this.config.dropConnectionOnKeepaliveTimeout){this.setGracePeriodTimer()}else{this.setKeepaliveTimer()}};WebSocketConnection.prototype.setGracePeriodTimer=function(){this._debug("setGracePeriodTimer");this.clearGracePeriodTimer();this._gracePeriodTimeoutID=setTimeout(this._gracePeriodTimerHandler,this.config.keepaliveGracePeriod)};WebSocketConnection.prototype.clearGracePeriodTimer=function(){if(this._gracePeriodTimeoutID){clearTimeout(this._gracePeriodTimeoutID)}};WebSocketConnection.prototype.handleGracePeriodTimer=function(){this._debug("handleGracePeriodTimer");this._gracePeriodTimeoutID=null;this.drop(WebSocketConnection.CLOSE_REASON_ABNORMAL,"Peer not responding.",true)};WebSocketConnection.prototype.handleSocketData=function(C){this._debug("handleSocketData");this.setKeepaliveTimer();this.bufferList.write(C);this.processReceivedData()};WebSocketConnection.prototype.processReceivedData=function(){this._debug("processReceivedData");if(!this.connected){return}if(this.inputPaused){return}var C=this.currentFrame;if(!C.addData(this.bufferList)){this._debug("-- insufficient data for frame");return}var q=this;if(C.protocolError){this._debug("-- protocol error");process.nextTick((function(){q.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,C.dropReason)}));return}else if(C.frameTooLarge){this._debug("-- frame too large");process.nextTick((function(){q.drop(WebSocketConnection.CLOSE_REASON_MESSAGE_TOO_BIG,C.dropReason)}));return}if(C.rsv1||C.rsv2||C.rsv3){this._debug("-- illegal rsv flag");process.nextTick((function(){q.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Unsupported usage of rsv bits without negotiated extension.")}));return}if(!this.assembleFragments){this._debug("-- emitting frame");process.nextTick((function(){q.emit("frame",C)}))}process.nextTick((function(){q.processFrame(C)}));this.currentFrame=new Pt(this.maskBytes,this.frameHeader,this.config);if(this.bufferList.length>0){Fr(this.receivedDataHandler)}};WebSocketConnection.prototype.handleSocketError=function(C){this._debug("handleSocketError: %j",C);if(this.state===Qr){this._debug("  --- Socket 'error' after 'close'");return}this.closeReasonCode=WebSocketConnection.CLOSE_REASON_ABNORMAL;this.closeDescription="Socket Error: "+C.syscall+" "+C.code;this.connected=false;this.state=Qr;this.fragmentationSize=0;if(Ue.eventEmitterListenerCount(this,"error")>0){this.emit("error",C)}this.socket.destroy();this._debug.printOutput()};WebSocketConnection.prototype.handleSocketEnd=function(){this._debug("handleSocketEnd: received socket end.  state = %s",this.state);this.receivedEnd=true;if(this.state===Qr){this._debug("  --- Socket 'end' after 'close'");return}if(this.state!==kr&&this.state!==Pr){this._debug("  --- UNEXPECTED socket end.");this.socket.end()}};WebSocketConnection.prototype.handleSocketClose=function(C){this._debug("handleSocketClose: received socket close");this.socketHadError=C;this.connected=false;this.state=Qr;if(this.closeReasonCode===-1){this.closeReasonCode=WebSocketConnection.CLOSE_REASON_ABNORMAL;this.closeDescription="Connection dropped by remote peer."}this.clearCloseTimer();this.clearKeepaliveTimer();this.clearGracePeriodTimer();if(!this.closeEventEmitted){this.closeEventEmitted=true;this._debug("-- Emitting WebSocketConnection close event");this.emit("close",this.closeReasonCode,this.closeDescription)}};WebSocketConnection.prototype.handleSocketDrain=function(){this._debug("handleSocketDrain: socket drain event");this.outputBufferFull=false;this.emit("drain")};WebSocketConnection.prototype.handleSocketPause=function(){this._debug("handleSocketPause: socket pause event");this.inputPaused=true;this.emit("pause")};WebSocketConnection.prototype.handleSocketResume=function(){this._debug("handleSocketResume: socket resume event");this.inputPaused=false;this.emit("resume");this.processReceivedData()};WebSocketConnection.prototype.pause=function(){this._debug("pause: pause requested");this.socket.pause()};WebSocketConnection.prototype.resume=function(){this._debug("resume: resume requested");this.socket.resume()};WebSocketConnection.prototype.close=function(C,q){if(this.connected){this._debug("close: Initating clean WebSocket close sequence.");if("number"!==typeof C){C=WebSocketConnection.CLOSE_REASON_NORMAL}if(!validateCloseReason(C)){throw new Error("Close code "+C+" is not valid.")}if("string"!==typeof q){q=WebSocketConnection.CLOSE_DESCRIPTIONS[C]}this.closeReasonCode=C;this.closeDescription=q;this.setCloseTimer();this.sendCloseFrame(this.closeReasonCode,this.closeDescription);this.state=Pr;this.connected=false}};WebSocketConnection.prototype.drop=function(C,q,re){this._debug("drop");if(typeof C!=="number"){C=WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR}if(typeof q!=="string"){q=WebSocketConnection.CLOSE_DESCRIPTIONS[C]}this._debug("Forcefully dropping connection. skipCloseFrame: %s, code: %d, description: %s",re,C,q);this.closeReasonCode=C;this.closeDescription=q;this.frameQueue=[];this.fragmentationSize=0;if(!re){this.sendCloseFrame(C,q)}this.connected=false;this.state=Qr;this.clearCloseTimer();this.clearKeepaliveTimer();this.clearGracePeriodTimer();if(!this.closeEventEmitted){this.closeEventEmitted=true;this._debug("Emitting WebSocketConnection close event");this.emit("close",this.closeReasonCode,this.closeDescription)}this._debug("Drop: destroying socket");this.socket.destroy()};WebSocketConnection.prototype.setCloseTimer=function(){this._debug("setCloseTimer");this.clearCloseTimer();this._debug("Setting close timer");this.waitingForCloseResponse=true;this.closeTimer=setTimeout(this._closeTimerHandler,this.closeTimeout)};WebSocketConnection.prototype.clearCloseTimer=function(){this._debug("clearCloseTimer");if(this.closeTimer){this._debug("Clearing close timer");clearTimeout(this.closeTimer);this.waitingForCloseResponse=false;this.closeTimer=null}};WebSocketConnection.prototype.handleCloseTimer=function(){this._debug("handleCloseTimer");this.closeTimer=null;if(this.waitingForCloseResponse){this._debug("Close response not received from client.  Forcing socket end.");this.waitingForCloseResponse=false;this.state=Qr;this.socket.end()}};WebSocketConnection.prototype.processFrame=function(C){this._debug("processFrame");this._debug(" -- frame: %s",C);if(this.frameQueue.length!==0&&(C.opcode>0&&C.opcode<8)){this.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Illegal frame opcode 0x"+C.opcode.toString(16)+" "+"received in middle of fragmented message.");return}switch(C.opcode){case 2:this._debug("-- Binary Frame");if(this.assembleFragments){if(C.fin){this._debug("---- Emitting 'message' event");this.emit("message",{type:"binary",binaryData:C.binaryPayload})}else{this.frameQueue.push(C);this.fragmentationSize=C.length}}break;case 1:this._debug("-- Text Frame");if(this.assembleFragments){if(C.fin){if(!Ar(C.binaryPayload)){this.drop(WebSocketConnection.CLOSE_REASON_INVALID_DATA,"Invalid UTF-8 Data Received");return}this._debug("---- Emitting 'message' event");this.emit("message",{type:"utf8",utf8Data:C.binaryPayload.toString("utf8")})}else{this.frameQueue.push(C);this.fragmentationSize=C.length}}break;case 0:this._debug("-- Continuation Frame");if(this.assembleFragments){if(this.frameQueue.length===0){this.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Unexpected Continuation Frame");return}this.fragmentationSize+=C.length;if(this.fragmentationSize>this.maxReceivedMessageSize){this.drop(WebSocketConnection.CLOSE_REASON_MESSAGE_TOO_BIG,"Maximum message size exceeded.");return}this.frameQueue.push(C);if(C.fin){var q=0;var re=Er(this.fragmentationSize);var ae=this.frameQueue[0].opcode;this.frameQueue.forEach((function(C){C.binaryPayload.copy(re,q);q+=C.binaryPayload.length}));this.frameQueue=[];this.fragmentationSize=0;switch(ae){case 2:this.emit("message",{type:"binary",binaryData:re});break;case 1:if(!Ar(re)){this.drop(WebSocketConnection.CLOSE_REASON_INVALID_DATA,"Invalid UTF-8 Data Received");return}this.emit("message",{type:"utf8",utf8Data:re.toString("utf8")});break;default:this.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Unexpected first opcode in fragmentation sequence: 0x"+ae.toString(16));return}}}break;case 9:this._debug("-- Ping Frame");if(this._pingListenerCount>0){var Ue=false;var cancel=function(){Ue=true};this.emit("ping",cancel,C.binaryPayload);if(!Ue){this.pong(C.binaryPayload)}}else{this.pong(C.binaryPayload)}break;case 10:this._debug("-- Pong Frame");this.emit("pong",C.binaryPayload);break;case 8:this._debug("-- Close Frame");if(this.waitingForCloseResponse){this._debug("---- Got close response from peer.  Completing closing handshake.");this.clearCloseTimer();this.waitingForCloseResponse=false;this.state=Qr;this.socket.end();return}this._debug("---- Closing handshake initiated by peer.");this.state=kr;var lt;if(C.invalidCloseFrameLength){this.closeReasonCode=1005;lt=WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR}else if(C.closeStatus===-1||validateCloseReason(C.closeStatus)){this.closeReasonCode=C.closeStatus;lt=WebSocketConnection.CLOSE_REASON_NORMAL}else{this.closeReasonCode=C.closeStatus;lt=WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR}if(C.binaryPayload.length>1){if(!Ar(C.binaryPayload)){this.drop(WebSocketConnection.CLOSE_REASON_INVALID_DATA,"Invalid UTF-8 Data Received");return}this.closeDescription=C.binaryPayload.toString("utf8")}else{this.closeDescription=WebSocketConnection.CLOSE_DESCRIPTIONS[this.closeReasonCode]}this._debug("------ Remote peer %s - code: %d - %s - close frame payload length: %d",this.remoteAddress,this.closeReasonCode,this.closeDescription,C.length);this._debug("------ responding to remote peer's close request.");this.sendCloseFrame(lt,null);this.connected=false;break;default:this._debug("-- Unrecognized Opcode %d",C.opcode);this.drop(WebSocketConnection.CLOSE_REASON_PROTOCOL_ERROR,"Unrecognized Opcode: 0x"+C.opcode.toString(16));break}};WebSocketConnection.prototype.send=function(C,q){this._debug("send");if(Buffer.isBuffer(C)){this.sendBytes(C,q)}else if(typeof C["toString"]==="function"){this.sendUTF(C,q)}else{throw new Error("Data provided must either be a Node Buffer or implement toString()")}};WebSocketConnection.prototype.sendUTF=function(C,q){C=Ir(C.toString(),"utf8");this._debug("sendUTF: %d bytes",C.length);var re=new Pt(this.maskBytes,this.frameHeader,this.config);re.opcode=1;re.binaryPayload=C;this.fragmentAndSend(re,q)};WebSocketConnection.prototype.sendBytes=function(C,q){this._debug("sendBytes");if(!Buffer.isBuffer(C)){throw new Error("You must pass a Node Buffer object to WebSocketConnection.prototype.sendBytes()")}var re=new Pt(this.maskBytes,this.frameHeader,this.config);re.opcode=2;re.binaryPayload=C;this.fragmentAndSend(re,q)};WebSocketConnection.prototype.ping=function(C){this._debug("ping");var q=new Pt(this.maskBytes,this.frameHeader,this.config);q.opcode=9;q.fin=true;if(C){if(!Buffer.isBuffer(C)){C=Ir(C.toString(),"utf8")}if(C.length>125){this._debug("WebSocket: Data for ping is longer than 125 bytes.  Truncating.");C=C.slice(0,124)}q.binaryPayload=C}this.sendFrame(q)};WebSocketConnection.prototype.pong=function(C){this._debug("pong");var q=new Pt(this.maskBytes,this.frameHeader,this.config);q.opcode=10;if(Buffer.isBuffer(C)&&C.length>125){this._debug("WebSocket: Data for pong is longer than 125 bytes.  Truncating.");C=C.slice(0,124)}q.binaryPayload=C;q.fin=true;this.sendFrame(q)};WebSocketConnection.prototype.fragmentAndSend=function(C,q){this._debug("fragmentAndSend");if(C.opcode>7){throw new Error("You cannot fragment control frames.")}var re=this.config.fragmentationThreshold;var ae=C.binaryPayload.length;if(!this.config.fragmentOutgoingMessages||C.binaryPayload&&ae<=re){C.fin=true;this.sendFrame(C,q);return}var Ue=Math.ceil(ae/re);var lt=0;var Wt=function fragmentSentCallback(C){if(C){if(typeof q==="function"){q(C);q=null}return}++lt;if(lt===Ue&&typeof q==="function"){q()}};for(var Ar=1;Ar<=Ue;Ar++){var Er=new Pt(this.maskBytes,this.frameHeader,this.config);Er.opcode=Ar===1?C.opcode:0;Er.fin=Ar===Ue;var Ir=Ar===Ue?ae-re*(Ar-1):re;var Br=re*(Ar-1);Er.binaryPayload=C.binaryPayload.slice(Br,Br+Ir);this.sendFrame(Er,Wt)}};WebSocketConnection.prototype.sendCloseFrame=function(C,q,re){if(typeof C!=="number"){C=WebSocketConnection.CLOSE_REASON_NORMAL}this._debug("sendCloseFrame state: %s, reasonCode: %d, description: %s",this.state,C,q);if(this.state!==Br&&this.state!==kr){return}var ae=new Pt(this.maskBytes,this.frameHeader,this.config);ae.fin=true;ae.opcode=8;ae.closeStatus=C;if(typeof q==="string"){ae.binaryPayload=Ir(q,"utf8")}this.sendFrame(ae,re);this.socket.end()};WebSocketConnection.prototype.sendFrame=function(C,q){this._debug("sendFrame");C.mask=this.maskOutgoingPackets;var re=this.socket.write(C.toBuffer(),q);this.outputBufferFull=!re;return re};C.exports=WebSocketConnection;function instrumentSocketForDebugging(C,q){if(!C._debug.enabled){return}var re=q.emit;q.emit=function(q){C._debug("||| Socket Event  '%s'",q);re.apply(this,arguments)};for(var ae in q){if("function"!==typeof q[ae]){continue}if(["emit"].indexOf(ae)!==-1){continue}(function(re){var ae=q[re];if(re==="on"){q[re]=function proxyMethod__EventEmitter__On(){C._debug("||| Socket method called:  %s (%s)",re,arguments[0]);return ae.apply(this,arguments)};return}q[re]=function proxyMethod(){C._debug("||| Socket method called:  %s",re);return ae.apply(this,arguments)}})(ae)}}},84087:(C,q,re)=>{var ae=re(11486);var Ue=re(4402).bufferAllocUnsafe;const lt=1;const Pt=2;const Wt=3;const Ar=4;const Er=5;const Ir=6;function WebSocketFrame(C,q,re){this.maskBytes=C;this.frameHeader=q;this.config=re;this.maxReceivedFrameSize=re.maxReceivedFrameSize;this.protocolError=false;this.frameTooLarge=false;this.invalidCloseFrameLength=false;this.parseState=lt;this.closeStatus=-1}WebSocketFrame.prototype.addData=function(C){if(this.parseState===lt){if(C.length>=2){C.joinInto(this.frameHeader,0,0,2);C.advance(2);var q=this.frameHeader[0];var re=this.frameHeader[1];this.fin=Boolean(q&128);this.rsv1=Boolean(q&64);this.rsv2=Boolean(q&32);this.rsv3=Boolean(q&16);this.mask=Boolean(re&128);this.opcode=q&15;this.length=re&127;if(this.opcode>=8){if(this.length>125){this.protocolError=true;this.dropReason="Illegal control frame longer than 125 bytes.";return true}if(!this.fin){this.protocolError=true;this.dropReason="Control frames must not be fragmented.";return true}}if(this.length===126){this.parseState=Pt}else if(this.length===127){this.parseState=Wt}else{this.parseState=Ar}}}if(this.parseState===Pt){if(C.length>=2){C.joinInto(this.frameHeader,2,0,2);C.advance(2);this.length=this.frameHeader.readUInt16BE(2);this.parseState=Ar}}else if(this.parseState===Wt){if(C.length>=8){C.joinInto(this.frameHeader,2,0,8);C.advance(8);var Br=[this.frameHeader.readUInt32BE(2),this.frameHeader.readUInt32BE(2+4)];if(Br[0]!==0){this.protocolError=true;this.dropReason="Unsupported 64-bit length frame received";return true}this.length=Br[1];this.parseState=Ar}}if(this.parseState===Ar){if(this.mask){if(C.length>=4){C.joinInto(this.maskBytes,0,0,4);C.advance(4);this.parseState=Er}}else{this.parseState=Er}}if(this.parseState===Er){if(this.length>this.maxReceivedFrameSize){this.frameTooLarge=true;this.dropReason="Frame size of "+this.length.toString(10)+" bytes exceeds maximum accepted frame size";return true}if(this.length===0){this.binaryPayload=Ue(0);this.parseState=Ir;return true}if(C.length>=this.length){this.binaryPayload=C.take(this.length);C.advance(this.length);if(this.mask){ae.unmask(this.binaryPayload,this.maskBytes)}if(this.opcode===8){if(this.length===1){this.binaryPayload=Ue(0);this.invalidCloseFrameLength=true}if(this.length>=2){this.closeStatus=this.binaryPayload.readUInt16BE(0);this.binaryPayload=this.binaryPayload.slice(2)}}this.parseState=Ir;return true}}return false};WebSocketFrame.prototype.throwAwayPayload=function(C){if(C.length>=this.length){C.advance(this.length);this.parseState=Ir;return true}return false};WebSocketFrame.prototype.toBuffer=function(C){var q;var re=2;var lt;var Pt;var Wt=0;var Ar=0;if(this.fin){Wt|=128}if(this.rsv1){Wt|=64}if(this.rsv2){Wt|=32}if(this.rsv3){Wt|=16}if(this.mask){Ar|=128}Wt|=this.opcode&15;if(this.opcode===8){this.length=2;if(this.binaryPayload){this.length+=this.binaryPayload.length}lt=Ue(this.length);lt.writeUInt16BE(this.closeStatus,0);if(this.length>2){this.binaryPayload.copy(lt,2)}}else if(this.binaryPayload){lt=this.binaryPayload;this.length=lt.length}else{this.length=0}if(this.length<=125){Ar|=this.length&127}else if(this.length>125&&this.length<=65535){Ar|=126;re+=2}else if(this.length>65535){Ar|=127;re+=8}var Er=Ue(this.length+re+(this.mask?4:0));Er[0]=Wt;Er[1]=Ar;Pt=2;if(this.length>125&&this.length<=65535){Er.writeUInt16BE(this.length,Pt);Pt+=2}else if(this.length>65535){Er.writeUInt32BE(0,Pt);Er.writeUInt32BE(this.length,Pt+4);Pt+=8}if(this.mask){q=C?0:Math.random()*4294967295>>>0;this.maskBytes.writeUInt32BE(q,0);this.maskBytes.copy(Er,Pt);Pt+=4;if(lt){ae.mask(lt,this.maskBytes,Er,Pt,this.length)}}else if(lt){lt.copy(Er,Pt)}return Er};WebSocketFrame.prototype.toString=function(){return"Opcode: "+this.opcode+", fin: "+this.fin+", length: "+this.length+", hasPayload: "+Boolean(this.binaryPayload)+", masked: "+this.mask};C.exports=WebSocketFrame},9371:(C,q,re)=>{var ae=re(76982);var Ue=re(39023);var lt=re(87016);var Pt=re(24434).EventEmitter;var Wt=re(86304);var Ar=/,\s*/;var Er=/;\s*/;var Ir=/[\r\n]/g;var Br=/,\s*/;var kr=["(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"," ",String.fromCharCode(9)];var Pr=[String.fromCharCode(127)];for(var Qr=0;Qr<31;Qr++){Pr.push(String.fromCharCode(Qr))}var Fr=/([\x00-\x20\x22\x28\x29\x2c\x2f\x3a-\x3f\x40\x5b-\x5e\x7b\x7d\x7f])/;var Dr=/[^\x21\x23-\x2b\x2d-\x3a\x3c-\x5b\x5d-\x7e]/;var xr=/^"[^"]*"$/;var Mr=/[\x00-\x20\x3b]/g;var Ur=/[;,] */;var Nr={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",406:"Not Acceptable",407:"Proxy Authorization Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Long",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",426:"Upgrade Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function WebSocketRequest(C,q,re){Pt.call(this);this.socket=C;this.httpRequest=q;this.resource=q.url;this.remoteAddress=C.remoteAddress;this.remoteAddresses=[this.remoteAddress];this.serverConfig=re;this._socketIsClosing=false;this._socketCloseHandler=this._handleSocketCloseBeforeAccept.bind(this);this.socket.on("end",this._socketCloseHandler);this.socket.on("close",this._socketCloseHandler);this._resolved=false}Ue.inherits(WebSocketRequest,Pt);WebSocketRequest.prototype.readHandshake=function(){var C=this;var q=this.httpRequest;this.resourceURL=lt.parse(this.resource,true);this.host=q.headers["host"];if(!this.host){throw new Error("Client must provide a Host header.")}this.key=q.headers["sec-websocket-key"];if(!this.key){throw new Error("Client must provide a value for Sec-WebSocket-Key.")}this.webSocketVersion=parseInt(q.headers["sec-websocket-version"],10);if(!this.webSocketVersion||isNaN(this.webSocketVersion)){throw new Error("Client must provide a value for Sec-WebSocket-Version.")}switch(this.webSocketVersion){case 8:case 13:break;default:var re=new Error("Unsupported websocket client version: "+this.webSocketVersion+"Only versions 8 and 13 are supported.");re.httpCode=426;re.headers={"Sec-WebSocket-Version":"13"};throw re}if(this.webSocketVersion===13){this.origin=q.headers["origin"]}else if(this.webSocketVersion===8){this.origin=q.headers["sec-websocket-origin"]}var ae=q.headers["sec-websocket-protocol"];this.protocolFullCaseMap={};this.requestedProtocols=[];if(ae){var Ue=ae.split(Ar);Ue.forEach((function(q){var re=q.toLocaleLowerCase();C.requestedProtocols.push(re);C.protocolFullCaseMap[re]=q}))}if(!this.serverConfig.ignoreXForwardedFor&&q.headers["x-forwarded-for"]){var Pt=this.remoteAddress;this.remoteAddresses=q.headers["x-forwarded-for"].split(Br);this.remoteAddresses.push(Pt);this.remoteAddress=this.remoteAddresses[0]}if(this.serverConfig.parseExtensions){var Wt=q.headers["sec-websocket-extensions"];this.requestedExtensions=this.parseExtensions(Wt)}else{this.requestedExtensions=[]}if(this.serverConfig.parseCookies){var Er=q.headers["cookie"];this.cookies=this.parseCookies(Er)}else{this.cookies=[]}};WebSocketRequest.prototype.parseExtensions=function(C){if(!C||C.length===0){return[]}var q=C.toLocaleLowerCase().split(Ar);q.forEach((function(C,q,re){var ae=C.split(Er);var Ue=ae[0];var lt=ae.slice(1);lt.forEach((function(C,q,re){var ae=C.split("=");var Ue={name:ae[0],value:ae[1]};re.splice(q,1,Ue)}));var Pt={name:Ue,params:lt};re.splice(q,1,Pt)}));return q};WebSocketRequest.prototype.parseCookies=function(C){if(!C||typeof C!=="string"){return[]}var q=[];var re=C.split(Ur);re.forEach((function(C){var re=C.indexOf("=");if(re===-1){q.push({name:C,value:null});return}var ae=C.substr(0,re).trim();var Ue=C.substr(++re,C.length).trim();if('"'===Ue[0]){Ue=Ue.slice(1,-1)}q.push({name:ae,value:decodeURIComponent(Ue)})}));return q};WebSocketRequest.prototype.accept=function(C,q,re){this._verifyResolution();var Ue;if(C){Ue=this.protocolFullCaseMap[C.toLocaleLowerCase()];if(typeof Ue==="undefined"){Ue=C}}else{Ue=C}this.protocolFullCaseMap=null;var lt=ae.createHash("sha1");lt.update(this.key+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");var Pt=lt.digest("base64");var Ar="HTTP/1.1 101 Switching Protocols\r\n"+"Upgrade: websocket\r\n"+"Connection: Upgrade\r\n"+"Sec-WebSocket-Accept: "+Pt+"\r\n";if(Ue){for(var Er=0;Er126||kr.indexOf(Pr)!==-1){this.reject(500);throw new Error('Illegal character "'+String.fromCharCode(Pr)+'" in subprotocol.')}}if(this.requestedProtocols.indexOf(C)===-1){this.reject(500);throw new Error("Specified protocol was not requested by the client.")}Ue=Ue.replace(Ir,"");Ar+="Sec-WebSocket-Protocol: "+Ue+"\r\n"}this.requestedProtocols=null;if(q){q=q.replace(Ir,"");if(this.webSocketVersion===13){Ar+="Origin: "+q+"\r\n"}else if(this.webSocketVersion===8){Ar+="Sec-WebSocket-Origin: "+q+"\r\n"}}if(re){if(!Array.isArray(re)){this.reject(500);throw new Error('Value supplied for "cookies" argument must be an array.')}var Qr={};re.forEach(function(C){if(!C.name||!C.value){this.reject(500);throw new Error('Each cookie to set must at least provide a "name" and "value"')}C.name=C.name.replace(Mr,"");C.value=C.value.replace(Mr,"");if(Qr[C.name]){this.reject(500);throw new Error("You may not specify the same cookie name twice.")}Qr[C.name]=true;var q=C.name.match(Fr);if(q){this.reject(500);throw new Error("Illegal character "+q[0]+" in cookie name")}if(C.value.match(xr)){q=C.value.slice(1,-1).match(Dr)}else{q=C.value.match(Dr)}if(q){this.reject(500);throw new Error("Illegal character "+q[0]+" in cookie value")}var re=[C.name+"="+C.value];if(C.path){q=C.path.match(Mr);if(q){this.reject(500);throw new Error("Illegal character "+q[0]+" in cookie path")}re.push("Path="+C.path)}if(C.domain){if(typeof C.domain!=="string"){this.reject(500);throw new Error("Domain must be specified and must be a string.")}q=C.domain.match(Mr);if(q){this.reject(500);throw new Error("Illegal character "+q[0]+" in cookie domain")}re.push("Domain="+C.domain.toLowerCase())}if(C.expires){if(!(C.expires instanceof Date)){this.reject(500);throw new Error('Value supplied for cookie "expires" must be a vaild date object')}re.push("Expires="+C.expires.toGMTString())}if(C.maxage){var ae=C.maxage;if(typeof ae==="string"){ae=parseInt(ae,10)}if(isNaN(ae)||ae<=0){this.reject(500);throw new Error('Value supplied for cookie "maxage" must be a non-zero number')}ae=Math.round(ae);re.push("Max-Age="+ae.toString(10))}if(C.secure){if(typeof C.secure!=="boolean"){this.reject(500);throw new Error('Value supplied for cookie "secure" must be of type boolean')}re.push("Secure")}if(C.httponly){if(typeof C.httponly!=="boolean"){this.reject(500);throw new Error('Value supplied for cookie "httponly" must be of type boolean')}re.push("HttpOnly")}Ar+="Set-Cookie: "+re.join(";")+"\r\n"}.bind(this))}this._resolved=true;this.emit("requestResolved",this);Ar+="\r\n";var Ur=new Wt(this.socket,[],C,false,this.serverConfig);Ur.webSocketVersion=this.webSocketVersion;Ur.remoteAddress=this.remoteAddress;Ur.remoteAddresses=this.remoteAddresses;var Nr=this;if(this._socketIsClosing){cleanupFailedConnection(Ur)}else{this.socket.write(Ar,"ascii",(function(C){if(C){cleanupFailedConnection(Ur);return}Nr._removeSocketCloseListeners();Ur._addSocketEventListeners()}))}this.emit("requestAccepted",Ur);return Ur};WebSocketRequest.prototype.reject=function(C,q,re){this._verifyResolution();this._resolved=true;this.emit("requestResolved",this);if(typeof C!=="number"){C=403}var ae="HTTP/1.1 "+C+" "+Nr[C]+"\r\n"+"Connection: close\r\n";if(q){q=q.replace(Ir,"");ae+="X-WebSocket-Reject-Reason: "+q+"\r\n"}if(re){for(var Ue in re){var lt=re[Ue].toString().replace(Ir,"");var Pt=Ue.replace(Ir,"");ae+=Pt+": "+lt+"\r\n"}}ae+="\r\n";this.socket.end(ae,"ascii");this.emit("requestRejected",this)};WebSocketRequest.prototype._handleSocketCloseBeforeAccept=function(){this._socketIsClosing=true;this._removeSocketCloseListeners()};WebSocketRequest.prototype._removeSocketCloseListeners=function(){this.socket.removeListener("end",this._socketCloseHandler);this.socket.removeListener("close",this._socketCloseHandler)};WebSocketRequest.prototype._verifyResolution=function(){if(this._resolved){throw new Error("WebSocketRequest may only be accepted or rejected one time.")}};function cleanupFailedConnection(C){process.nextTick((function(){C.drop(1006,"TCP connection lost before handshake completed.",true)}))}C.exports=WebSocketRequest},12401:(C,q,re)=>{var ae=re(4402).extend;var Ue=re(39023);var lt=re(24434).EventEmitter;var Pt=re(13144);function WebSocketRouter(C){lt.call(this);this.config={server:null};if(C){ae(this.config,C)}this.handlers=[];this._requestHandler=this.handleRequest.bind(this);if(this.config.server){this.attachServer(this.config.server)}}Ue.inherits(WebSocketRouter,lt);WebSocketRouter.prototype.attachServer=function(C){if(C){this.server=C;this.server.on("request",this._requestHandler)}else{throw new Error("You must specify a WebSocketServer instance to attach to.")}};WebSocketRouter.prototype.detachServer=function(){if(this.server){this.server.removeListener("request",this._requestHandler);this.server=null}else{throw new Error("Cannot detach from server: not attached.")}};WebSocketRouter.prototype.mount=function(C,q,re){if(!C){throw new Error("You must specify a path for this handler.")}if(!q){q="____no_protocol____"}if(!re){throw new Error("You must specify a callback for this handler.")}C=this.pathToRegExp(C);if(!(C instanceof RegExp)){throw new Error("Path must be specified as either a string or a RegExp.")}var ae=C.toString();q=q.toLocaleLowerCase();if(this.findHandlerIndex(ae,q)!==-1){throw new Error("You may only mount one handler per path/protocol combination.")}this.handlers.push({path:C,pathString:ae,protocol:q,callback:re})};WebSocketRouter.prototype.unmount=function(C,q){var re=this.findHandlerIndex(this.pathToRegExp(C).toString(),q);if(re!==-1){this.handlers.splice(re,1)}else{throw new Error("Unable to find a route matching the specified path and protocol.")}};WebSocketRouter.prototype.findHandlerIndex=function(C,q){q=q.toLocaleLowerCase();for(var re=0,ae=this.handlers.length;re{var ae=re(39023);var Ue=re(24434).EventEmitter;function WebSocketRouterRequest(C,q){Ue.call(this);this.webSocketRequest=C;if(q==="____no_protocol____"){this.protocol=null}else{this.protocol=q}this.origin=C.origin;this.resource=C.resource;this.resourceURL=C.resourceURL;this.httpRequest=C.httpRequest;this.remoteAddress=C.remoteAddress;this.webSocketVersion=C.webSocketVersion;this.requestedExtensions=C.requestedExtensions;this.cookies=C.cookies}ae.inherits(WebSocketRouterRequest,Ue);WebSocketRouterRequest.prototype.accept=function(C,q){var re=this.webSocketRequest.accept(this.protocol,C,q);this.emit("requestAccepted",re);return re};WebSocketRouterRequest.prototype.reject=function(C,q,re){this.webSocketRequest.reject(C,q,re);this.emit("requestRejected",this)};C.exports=WebSocketRouterRequest},55143:(C,q,re)=>{var ae=re(4402).extend;var Ue=re(4402);var lt=re(39023);var Pt=re(72859)("websocket:server");var Wt=re(24434).EventEmitter;var Ar=re(9371);var Er=function WebSocketServer(C){Wt.call(this);this._handlers={upgrade:this.handleUpgrade.bind(this),requestAccepted:this.handleRequestAccepted.bind(this),requestResolved:this.handleRequestResolved.bind(this)};this.connections=[];this.pendingRequests=[];if(C){this.mount(C)}};lt.inherits(Er,Wt);Er.prototype.mount=function(C){this.config={httpServer:null,maxReceivedFrameSize:65536,maxReceivedMessageSize:1048576,fragmentOutgoingMessages:true,fragmentationThreshold:16384,keepalive:true,keepaliveInterval:2e4,dropConnectionOnKeepaliveTimeout:true,keepaliveGracePeriod:1e4,useNativeKeepalive:false,assembleFragments:true,autoAcceptConnections:false,ignoreXForwardedFor:false,parseCookies:true,parseExtensions:true,disableNagleAlgorithm:true,closeTimeout:5e3};ae(this.config,C);if(this.config.httpServer){if(!Array.isArray(this.config.httpServer)){this.config.httpServer=[this.config.httpServer]}var q=this._handlers.upgrade;this.config.httpServer.forEach((function(C){C.on("upgrade",q)}))}else{throw new Error("You must specify an httpServer on which to mount the WebSocket server.")}};Er.prototype.unmount=function(){var C=this._handlers.upgrade;this.config.httpServer.forEach((function(q){q.removeListener("upgrade",C)}))};Er.prototype.closeAllConnections=function(){this.connections.forEach((function(C){C.close()}));this.pendingRequests.forEach((function(C){process.nextTick((function(){C.reject(503)}))}))};Er.prototype.broadcast=function(C){if(Buffer.isBuffer(C)){this.broadcastBytes(C)}else if(typeof C.toString==="function"){this.broadcastUTF(C)}};Er.prototype.broadcastUTF=function(C){this.connections.forEach((function(q){q.sendUTF(C)}))};Er.prototype.broadcastBytes=function(C){this.connections.forEach((function(q){q.sendBytes(C)}))};Er.prototype.shutDown=function(){this.unmount();this.closeAllConnections()};Er.prototype.handleUpgrade=function(C,q){var re=this;var ae=new Ar(q,C,this.config);try{ae.readHandshake()}catch(C){ae.reject(C.httpCode?C.httpCode:400,C.message,C.headers);Pt("Invalid handshake: %s",C.message);this.emit("upgradeError",C);return}this.pendingRequests.push(ae);ae.once("requestAccepted",this._handlers.requestAccepted);ae.once("requestResolved",this._handlers.requestResolved);q.once("close",(function(){re._handlers.requestResolved(ae)}));if(!this.config.autoAcceptConnections&&Ue.eventEmitterListenerCount(this,"request")>0){this.emit("request",ae)}else if(this.config.autoAcceptConnections){ae.accept(ae.requestedProtocols[0],ae.origin)}else{ae.reject(404,"No handler is configured to accept the connection.")}};Er.prototype.handleRequestAccepted=function(C){var q=this;C.once("close",(function(re,ae){q.handleConnectionClose(C,re,ae)}));this.connections.push(C);this.emit("connect",C)};Er.prototype.handleConnectionClose=function(C,q,re){var ae=this.connections.indexOf(C);if(ae!==-1){this.connections.splice(ae,1)}this.emit("close",C,q,re)};Er.prototype.handleRequestResolved=function(C){var q=this.pendingRequests.indexOf(C);if(q!==-1){this.pendingRequests.splice(q,1)}};C.exports=Er},4402:(C,q,re)=>{var ae=q.noop=function(){};q.extend=function extend(C,q){for(var re in q){C[re]=q[re]}};q.eventEmitterListenerCount=re(24434).EventEmitter.listenerCount||function(C,q){return C.listeners(q).length};q.bufferAllocUnsafe=Buffer.allocUnsafe?Buffer.allocUnsafe:function oldBufferAllocUnsafe(C){return new Buffer(C)};q.bufferFromString=Buffer.from?Buffer.from:function oldBufferFromString(C,q){return new Buffer(C,q)};q.BufferingLogger=function createBufferingLogger(C,q){var Ue=re(72859)(C);if(Ue.enabled){var lt=new BufferingLogger(C,q,Ue);var Pt=lt.log.bind(lt);Pt.printOutput=lt.printOutput.bind(lt);Pt.enabled=Ue.enabled;return Pt}Ue.printOutput=ae;return Ue};function BufferingLogger(C,q,re){this.logFunction=re;this.identifier=C;this.uniqueID=q;this.buffer=[]}BufferingLogger.prototype.log=function(){this.buffer.push([new Date,Array.prototype.slice.call(arguments)]);return this};BufferingLogger.prototype.clear=function(){this.buffer=[];return this};BufferingLogger.prototype.printOutput=function(C){if(!C){C=this.logFunction}var q=this.uniqueID;this.buffer.forEach((function(re){var ae=re[0].toLocaleString();var Ue=re[1].slice();var lt=Ue[0];if(lt!==void 0&<!==null){lt="%s - %s - "+lt.toString();Ue.splice(0,1,lt,ae,q);C.apply(global,Ue)}}))}},26135:(C,q,re)=>{C.exports=re(39003).version},65064:(C,q,re)=>{C.exports={server:re(55143),client:re(57643),router:re(12401),frame:re(84087),request:re(9371),connection:re(86304),w3cwebsocket:re(85601),deprecation:re(80893),version:re(26135)}},81306:C=>{var q=1e3;var re=q*60;var ae=re*60;var Ue=ae*24;var lt=Ue*365.25;C.exports=function(C,q){q=q||{};var re=typeof C;if(re==="string"&&C.length>0){return parse(C)}else if(re==="number"&&isNaN(C)===false){return q.long?fmtLong(C):fmtShort(C)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(C))};function parse(C){C=String(C);if(C.length>100){return}var Pt=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(C);if(!Pt){return}var Wt=parseFloat(Pt[1]);var Ar=(Pt[2]||"ms").toLowerCase();switch(Ar){case"years":case"year":case"yrs":case"yr":case"y":return Wt*lt;case"days":case"day":case"d":return Wt*Ue;case"hours":case"hour":case"hrs":case"hr":case"h":return Wt*ae;case"minutes":case"minute":case"mins":case"min":case"m":return Wt*re;case"seconds":case"second":case"secs":case"sec":case"s":return Wt*q;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Wt;default:return undefined}}function fmtShort(C){if(C>=Ue){return Math.round(C/Ue)+"d"}if(C>=ae){return Math.round(C/ae)+"h"}if(C>=re){return Math.round(C/re)+"m"}if(C>=q){return Math.round(C/q)+"s"}return C+"ms"}function fmtLong(C){return plural(C,Ue,"day")||plural(C,ae,"hour")||plural(C,re,"minute")||plural(C,q,"second")||C+" ms"}function plural(C,q,re){if(C{q=C.exports=re(17508);q.log=log;q.formatArgs=formatArgs;q.save=save;q.load=load;q.useColors=useColors;q.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();q.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}q.formatters.j=function(C){try{return JSON.stringify(C)}catch(C){return"[UnexpectedJSONParseError]: "+C.message}};function formatArgs(C){var re=this.useColors;C[0]=(re?"%c":"")+this.namespace+(re?" %c":" ")+C[0]+(re?"%c ":" ")+"+"+q.humanize(this.diff);if(!re)return;var ae="color: "+this.color;C.splice(1,0,ae,"color: inherit");var Ue=0;var lt=0;C[0].replace(/%[a-zA-Z%]/g,(function(C){if("%%"===C)return;Ue++;if("%c"===C){lt=Ue}}));C.splice(lt,0,ae)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(C){try{if(null==C){q.storage.removeItem("debug")}else{q.storage.debug=C}}catch(C){}}function load(){var C;try{C=q.storage.debug}catch(C){}if(!C&&typeof process!=="undefined"&&"env"in process){C=process.env.DEBUG}return C}q.enable(load());function localstorage(){try{return window.localStorage}catch(C){}}},17508:(C,q,re)=>{q=C.exports=createDebug.debug=createDebug["default"]=createDebug;q.coerce=coerce;q.disable=disable;q.enable=enable;q.enabled=enabled;q.humanize=re(81306);q.names=[];q.skips=[];q.formatters={};var ae;function selectColor(C){var re=0,ae;for(ae in C){re=(re<<5)-re+C.charCodeAt(ae);re|=0}return q.colors[Math.abs(re)%q.colors.length]}function createDebug(C){function debug(){if(!debug.enabled)return;var C=debug;var re=+new Date;var Ue=re-(ae||re);C.diff=Ue;C.prev=ae;C.curr=re;ae=re;var lt=new Array(arguments.length);for(var Pt=0;Pt{if(typeof process!=="undefined"&&process.type==="renderer"){C.exports=re(87071)}else{C.exports=re(19771)}},19771:(C,q,re)=>{var ae=re(52018);var Ue=re(39023);q=C.exports=re(17508);q.init=init;q.log=log;q.formatArgs=formatArgs;q.save=save;q.load=load;q.useColors=useColors;q.colors=[6,2,3,4,5,1];q.inspectOpts=Object.keys(process.env).filter((function(C){return/^debug_/i.test(C)})).reduce((function(C,q){var re=q.substring(6).toLowerCase().replace(/_([a-z])/g,(function(C,q){return q.toUpperCase()}));var ae=process.env[q];if(/^(yes|on|true|enabled)$/i.test(ae))ae=true;else if(/^(no|off|false|disabled)$/i.test(ae))ae=false;else if(ae==="null")ae=null;else ae=Number(ae);C[re]=ae;return C}),{});var lt=parseInt(process.env.DEBUG_FD,10)||2;if(1!==lt&&2!==lt){Ue.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")()}var Pt=1===lt?process.stdout:2===lt?process.stderr:createWritableStdioStream(lt);function useColors(){return"colors"in q.inspectOpts?Boolean(q.inspectOpts.colors):ae.isatty(lt)}q.formatters.o=function(C){this.inspectOpts.colors=this.useColors;return Ue.inspect(C,this.inspectOpts).split("\n").map((function(C){return C.trim()})).join(" ")};q.formatters.O=function(C){this.inspectOpts.colors=this.useColors;return Ue.inspect(C,this.inspectOpts)};function formatArgs(C){var re=this.namespace;var ae=this.useColors;if(ae){var Ue=this.color;var lt="  [3"+Ue+";1m"+re+" "+"";C[0]=lt+C[0].split("\n").join("\n"+lt);C.push("[3"+Ue+"m+"+q.humanize(this.diff)+"")}else{C[0]=(new Date).toUTCString()+" "+re+" "+C[0]}}function log(){return Pt.write(Ue.format.apply(Ue,arguments)+"\n")}function save(C){if(null==C){delete process.env.DEBUG}else{process.env.DEBUG=C}}function load(){return process.env.DEBUG}function createWritableStdioStream(C){var q;var Ue=process.binding("tty_wrap");switch(Ue.guessHandleType(C)){case"TTY":q=new ae.WriteStream(C);q._type="tty";if(q._handle&&q._handle.unref){q._handle.unref()}break;case"FILE":var lt=re(79896);q=new lt.SyncWriteStream(C,{autoClose:false});q._type="fs";break;case"PIPE":case"TCP":var Pt=re(69278);q=new Pt.Socket({fd:C,readable:false,writable:true});q.readable=false;q.read=null;q._type="pipe";if(q._handle&&q._handle.unref){q._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}q.fd=C;q._isStdio=true;return q}function init(C){C.inspectOpts={};var re=Object.keys(q.inspectOpts);for(var ae=0;ae{var ae=re(20181).Buffer;var Ue=re(24434).EventEmitter;var lt=re(4402).bufferAllocUnsafe;C.exports=BufferList;C.exports.BufferList=BufferList;function BufferList(C){if(!(this instanceof BufferList))return new BufferList(C);Ue.call(this);var q=this;if(typeof C=="undefined")C={};q.encoding=C.encoding;var re={next:null,buffer:null};var Pt={next:null,buffer:null};var Wt=0;q.__defineGetter__("length",(function(){return Wt}));var Ar=0;q.write=function(C){if(!re.buffer){re.buffer=C;Pt=re}else{Pt.next={next:null,buffer:C};Pt=Pt.next}Wt+=C.length;q.emit("write",C);return true};q.end=function(C){if(ae.isBuffer(C))q.write(C)};q.push=function(){var C=[].concat.apply([],arguments);C.forEach(q.write);return q};q.forEach=function(C){if(!re.buffer)return lt(0);if(re.buffer.length-Ar<=0)return q;var ae=re.buffer.slice(Ar);var Ue={buffer:ae,next:re.next};while(Ue&&Ue.buffer){var Pt=C(Ue.buffer);if(Pt)break;Ue=Ue.next}return q};q.join=function(C,ae){if(!re.buffer)return lt(0);if(C==undefined)C=0;if(ae==undefined)ae=q.length;var Ue=lt(ae-C);var Pt=0;q.forEach((function(q){if(Cae)return true}));return Ue};q.joinInto=function(C,ae,Ue,Pt){if(!re.buffer)return new lt(0);if(Ue==undefined)Ue=0;if(Pt==undefined)Pt=q.length;var Wt=C;if(Wt.length-aePt)return true}));return Wt};q.advance=function(C){Ar+=C;Wt-=C;while(re.buffer&&Ar>=re.buffer.length){Ar-=re.buffer.length;re=re.next?re.next:{buffer:null,next:null}}if(re.buffer===null)Pt={next:null,buffer:null};q.emit("advance",C);return q};q.take=function(C,ae){if(C==undefined)C=q.length;else if(typeof C!=="number"){ae=C;C=q.length}var Ue=re;if(!ae)ae=q.encoding;if(ae){var lt="";q.forEach((function(q){if(C<=0)return true;lt+=q.toString(ae,0,Math.min(C,q.length));C-=q.length}));return lt}else{return q.join(0,C)}};q.toString=function(){return q.take("binary")}}re(39023).inherits(BufferList,Ue)},23184:(C,q,re)=>{const ae=re(20905);q.implementation=class URLImpl{constructor(C){const q=C[0];const re=C[1];let Ue=null;if(re!==undefined){Ue=ae.basicURLParse(re);if(Ue==="failure"){throw new TypeError("Invalid base URL")}}const lt=ae.basicURLParse(q,{baseURL:Ue});if(lt==="failure"){throw new TypeError("Invalid URL")}this._url=lt}get href(){return ae.serializeURL(this._url)}set href(C){const q=ae.basicURLParse(C);if(q==="failure"){throw new TypeError("Invalid URL")}this._url=q}get origin(){return ae.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(C){ae.basicURLParse(C+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(C){if(ae.cannotHaveAUsernamePasswordPort(this._url)){return}ae.setTheUsername(this._url,C)}get password(){return this._url.password}set password(C){if(ae.cannotHaveAUsernamePasswordPort(this._url)){return}ae.setThePassword(this._url,C)}get host(){const C=this._url;if(C.host===null){return""}if(C.port===null){return ae.serializeHost(C.host)}return ae.serializeHost(C.host)+":"+ae.serializeInteger(C.port)}set host(C){if(this._url.cannotBeABaseURL){return}ae.basicURLParse(C,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null){return""}return ae.serializeHost(this._url.host)}set hostname(C){if(this._url.cannotBeABaseURL){return}ae.basicURLParse(C,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null){return""}return ae.serializeInteger(this._url.port)}set port(C){if(ae.cannotHaveAUsernamePasswordPort(this._url)){return}if(C===""){this._url.port=null}else{ae.basicURLParse(C,{url:this._url,stateOverride:"port"})}}get pathname(){if(this._url.cannotBeABaseURL){return this._url.path[0]}if(this._url.path.length===0){return""}return"/"+this._url.path.join("/")}set pathname(C){if(this._url.cannotBeABaseURL){return}this._url.path=[];ae.basicURLParse(C,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query===""){return""}return"?"+this._url.query}set search(C){const q=this._url;if(C===""){q.query=null;return}const re=C[0]==="?"?C.substring(1):C;q.query="";ae.basicURLParse(re,{url:q,stateOverride:"query"})}get hash(){if(this._url.fragment===null||this._url.fragment===""){return""}return"#"+this._url.fragment}set hash(C){if(C===""){this._url.fragment=null;return}const q=C[0]==="#"?C.substring(1):C;this._url.fragment="";ae.basicURLParse(q,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},66633:(C,q,re)=>{const ae=re(37125);const Ue=re(39857);const lt=re(23184);const Pt=Ue.implSymbol;function URL(q){if(!this||this[Pt]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const re=[];for(let C=0;C{q.URL=re(66633)["interface"];q.serializeURL=re(20905).serializeURL;q.serializeURLOrigin=re(20905).serializeURLOrigin;q.basicURLParse=re(20905).basicURLParse;q.setTheUsername=re(20905).setTheUsername;q.setThePassword=re(20905).setThePassword;q.serializeHost=re(20905).serializeHost;q.serializeInteger=re(20905).serializeInteger;q.parseURL=re(20905).parseURL},20905:(C,q,re)=>{const ae=re(24876);const Ue=re(1552);const lt={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const Pt=Symbol("failure");function countSymbols(C){return ae.ucs2.decode(C).length}function at(C,q){const re=C[q];return isNaN(re)?undefined:String.fromCodePoint(re)}function isASCIIDigit(C){return C>=48&&C<=57}function isASCIIAlpha(C){return C>=65&&C<=90||C>=97&&C<=122}function isASCIIAlphanumeric(C){return isASCIIAlpha(C)||isASCIIDigit(C)}function isASCIIHex(C){return isASCIIDigit(C)||C>=65&&C<=70||C>=97&&C<=102}function isSingleDot(C){return C==="."||C.toLowerCase()==="%2e"}function isDoubleDot(C){C=C.toLowerCase();return C===".."||C==="%2e."||C===".%2e"||C==="%2e%2e"}function isWindowsDriveLetterCodePoints(C,q){return isASCIIAlpha(C)&&(q===58||q===124)}function isWindowsDriveLetterString(C){return C.length===2&&isASCIIAlpha(C.codePointAt(0))&&(C[1]===":"||C[1]==="|")}function isNormalizedWindowsDriveLetterString(C){return C.length===2&&isASCIIAlpha(C.codePointAt(0))&&C[1]===":"}function containsForbiddenHostCodePoint(C){return C.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(C){return C.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(C){return lt[C]!==undefined}function isSpecial(C){return isSpecialScheme(C.scheme)}function defaultPort(C){return lt[C]}function percentEncode(C){let q=C.toString(16).toUpperCase();if(q.length===1){q="0"+q}return"%"+q}function utf8PercentEncode(C){const q=new Buffer(C);let re="";for(let C=0;C126}const Wt=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(C){return isC0ControlPercentEncode(C)||Wt.has(C)}const Ar=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(C){return isPathPercentEncode(C)||Ar.has(C)}function percentEncodeChar(C,q){const re=String.fromCodePoint(C);if(q(C)){return utf8PercentEncode(re)}return re}function parseIPv4Number(C){let q=10;if(C.length>=2&&C.charAt(0)==="0"&&C.charAt(1).toLowerCase()==="x"){C=C.substring(2);q=16}else if(C.length>=2&&C.charAt(0)==="0"){C=C.substring(1);q=8}if(C===""){return 0}const re=q===10?/[^0-9]/:q===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(re.test(C)){return Pt}return parseInt(C,q)}function parseIPv4(C){const q=C.split(".");if(q[q.length-1]===""){if(q.length>1){q.pop()}}if(q.length>4){return C}const re=[];for(const ae of q){if(ae===""){return C}const q=parseIPv4Number(ae);if(q===Pt){return C}re.push(q)}for(let C=0;C255){return Pt}}if(re[re.length-1]>=Math.pow(256,5-re.length)){return Pt}let ae=re.pop();let Ue=0;for(const C of re){ae+=C*Math.pow(256,3-Ue);++Ue}return ae}function serializeIPv4(C){let q="";let re=C;for(let C=1;C<=4;++C){q=String(re%256)+q;if(C!==4){q="."+q}re=Math.floor(re/256)}return q}function parseIPv6(C){const q=[0,0,0,0,0,0,0,0];let re=0;let Ue=null;let lt=0;C=ae.ucs2.decode(C);if(C[lt]===58){if(C[lt+1]!==58){return Pt}lt+=2;++re;Ue=re}while(lt6){return Pt}let ae=0;while(C[lt]!==undefined){let Ue=null;if(ae>0){if(C[lt]===46&&ae<4){++lt}else{return Pt}}if(!isASCIIDigit(C[lt])){return Pt}while(isASCIIDigit(C[lt])){const q=parseInt(at(C,lt));if(Ue===null){Ue=q}else if(Ue===0){return Pt}else{Ue=Ue*10+q}if(Ue>255){return Pt}++lt}q[re]=q[re]*256+Ue;++ae;if(ae===2||ae===4){++re}}if(ae!==4){return Pt}break}else if(C[lt]===58){++lt;if(C[lt]===undefined){return Pt}}else if(C[lt]!==undefined){return Pt}q[re]=ae;++re}if(Ue!==null){let C=re-Ue;re=7;while(re!==0&&C>0){const ae=q[Ue+C-1];q[Ue+C-1]=q[re];q[re]=ae;--re;--C}}else if(Ue===null&&re!==8){return Pt}return q}function serializeIPv6(C){let q="";const re=findLongestZeroSequence(C);const ae=re.idx;let Ue=false;for(let re=0;re<=7;++re){if(Ue&&C[re]===0){continue}else if(Ue){Ue=false}if(ae===re){const C=re===0?"::":":";q+=C;Ue=true;continue}q+=C[re].toString(16);if(re!==7){q+=":"}}return q}function parseHost(C,q){if(C[0]==="["){if(C[C.length-1]!=="]"){return Pt}return parseIPv6(C.substring(1,C.length-1))}if(!q){return parseOpaqueHost(C)}const re=utf8PercentDecode(C);const ae=Ue.toASCII(re,false,Ue.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(ae===null){return Pt}if(containsForbiddenHostCodePoint(ae)){return Pt}const lt=parseIPv4(ae);if(typeof lt==="number"||lt===Pt){return lt}return ae}function parseOpaqueHost(C){if(containsForbiddenHostCodePointExcludingPercent(C)){return Pt}let q="";const re=ae.ucs2.decode(C);for(let C=0;Cre){q=ae;re=Ue}ae=null;Ue=0}else{if(ae===null){ae=lt}++Ue}}if(Ue>re){q=ae;re=Ue}return{idx:q,len:re}}function serializeHost(C){if(typeof C==="number"){return serializeIPv4(C)}if(C instanceof Array){return"["+serializeIPv6(C)+"]"}return C}function trimControlChars(C){return C.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(C){return C.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(C){const q=C.path;if(q.length===0){return}if(C.scheme==="file"&&q.length===1&&isNormalizedWindowsDriveLetter(q[0])){return}q.pop()}function includesCredentials(C){return C.username!==""||C.password!==""}function cannotHaveAUsernamePasswordPort(C){return C.host===null||C.host===""||C.cannotBeABaseURL||C.scheme==="file"}function isNormalizedWindowsDriveLetter(C){return/^[A-Za-z]:$/.test(C)}function URLStateMachine(C,q,re,Ue,lt){this.pointer=0;this.input=C;this.base=q||null;this.encodingOverride=re||"utf-8";this.stateOverride=lt;this.url=Ue;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const C=trimControlChars(this.input);if(C!==this.input){this.parseError=true}this.input=C}const Wt=trimTabAndNewline(this.input);if(Wt!==this.input){this.parseError=true}this.input=Wt;this.state=lt||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=ae.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const C=this.input[this.pointer];const q=isNaN(C)?undefined:String.fromCodePoint(C);const re=this["parse "+this.state](C,q);if(!re){break}else if(re===Pt){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(C,q){if(isASCIIAlpha(C)){this.buffer+=q.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return Pt}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(C,q){if(isASCIIAlphanumeric(C)||C===43||C===45||C===46){this.buffer+=q.toLowerCase()}else if(C===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return Pt}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(C){if(this.base===null||this.base.cannotBeABaseURL&&C!==35){return Pt}else if(this.base.cannotBeABaseURL&&C===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(C){if(C===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(C){if(C===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(C){this.url.scheme=this.base.scheme;if(isNaN(C)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(C===47){this.state="relative slash"}else if(C===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(C===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&C===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(C){if(isSpecial(this.url)&&(C===47||C===92)){if(C===92){this.parseError=true}this.state="special authority ignore slashes"}else if(C===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(C){if(C===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(C){if(C!==47&&C!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(C,q){if(C===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const C=countSymbols(this.buffer);for(let q=0;qMath.pow(2,16)-1){this.parseError=true;return Pt}this.url.port=C===defaultPort(this.url.scheme)?null:C;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return Pt}return true};const Er=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(C){this.url.scheme="file";if(C===47||C===92){if(C===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(C)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(C===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(C===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(C,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!Er.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(C){if(C===47||C===92){if(C===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(C,q){if(isNaN(C)||C===47||C===92||C===63||C===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let C=parseHost(this.buffer,isSpecial(this.url));if(C===Pt){return Pt}if(C==="localhost"){C=""}this.url.host=C;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=q}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(C){if(isSpecial(this.url)){if(C===92){this.parseError=true}this.state="path";if(C!==47&&C!==92){--this.pointer}}else if(!this.stateOverride&&C===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&C===35){this.url.fragment="";this.state="fragment"}else if(C!==undefined){this.state="path";if(C!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(C){if(isNaN(C)||C===47||isSpecial(this.url)&&C===92||!this.stateOverride&&(C===63||C===35)){if(isSpecial(this.url)&&C===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(C!==47&&!(isSpecial(this.url)&&C===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&C!==47&&!(isSpecial(this.url)&&C===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(C===undefined||C===63||C===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(C===63){this.url.query="";this.state="query"}if(C===35){this.url.fragment="";this.state="fragment"}}else{if(C===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(C,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(C){if(C===63){this.url.query="";this.state="query"}else if(C===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(C)&&C!==37){this.parseError=true}if(C===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(C)){this.url.path[0]=this.url.path[0]+percentEncodeChar(C,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(C,q){if(isNaN(C)||!this.stateOverride&&C===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const q=new Buffer(this.buffer);for(let C=0;C126||q[C]===34||q[C]===35||q[C]===60||q[C]===62){this.url.query+=percentEncode(q[C])}else{this.url.query+=String.fromCodePoint(q[C])}}this.buffer="";if(C===35){this.url.fragment="";this.state="fragment"}}else{if(C===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=q}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(C){if(isNaN(C)){}else if(C===0){this.parseError=true}else{if(C===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(C,isC0ControlPercentEncode)}return true};function serializeURL(C,q){let re=C.scheme+":";if(C.host!==null){re+="//";if(C.username!==""||C.password!==""){re+=C.username;if(C.password!==""){re+=":"+C.password}re+="@"}re+=serializeHost(C.host);if(C.port!==null){re+=":"+C.port}}else if(C.host===null&&C.scheme==="file"){re+="//"}if(C.cannotBeABaseURL){re+=C.path[0]}else{for(const q of C.path){re+="/"+q}}if(C.query!==null){re+="?"+C.query}if(!q&&C.fragment!==null){re+="#"+C.fragment}return re}function serializeOrigin(C){let q=C.scheme+"://";q+=serializeHost(C.host);if(C.port!==null){q+=":"+C.port}return q}C.exports.serializeURL=serializeURL;C.exports.serializeURLOrigin=function(q){switch(q.scheme){case"blob":try{return C.exports.serializeURLOrigin(C.exports.parseURL(q.path[0]))}catch(C){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:q.scheme,host:q.host,port:q.port});case"file":return"file://";default:return"null"}};C.exports.basicURLParse=function(C,q){if(q===undefined){q={}}const re=new URLStateMachine(C,q.baseURL,q.encodingOverride,q.url,q.stateOverride);if(re.failure){return"failure"}return re.url};C.exports.setTheUsername=function(C,q){C.username="";const re=ae.ucs2.decode(q);for(let q=0;q{C.exports.mixin=function mixin(C,q){const re=Object.getOwnPropertyNames(q);for(let ae=0;ae{C.exports=wrappy;function wrappy(C,q){if(C&&q)return wrappy(C)(q);if(typeof C!=="function")throw new TypeError("need wrapper function");Object.keys(C).forEach((function(q){wrapper[q]=C[q]}));return wrapper;function wrapper(){var q=new Array(arguments.length);for(var re=0;re{C.exports=writeFile;C.exports.sync=writeFileSync;C.exports._getTmpname=getTmpname;var ae=re(35744);var Ue=re(67324).chain;var lt=re(72024);var Pt=Object.assign||re(39023)._extend;var Wt=0;function getTmpname(C){return C+"."+lt(__filename).hash(String(process.pid)).hash(String(++Wt)).result()}function writeFile(C,q,re,Ue){if(re instanceof Function){Ue=re;re=null}if(!re)re={};ae.realpath(C,(function(ae,lt){_writeFile(lt||C,q,re,Ue)}))}function _writeFile(C,q,re,lt){var Wt=getTmpname(C);if(re.mode&&re.chown){return thenWriteFile()}else{return ae.stat(C,(function(C,q){if(C||!q)return thenWriteFile();re=Pt({},re);if(!re.mode){re.mode=q.mode}if(!re.chown&&process.getuid){re.chown={uid:q.uid,gid:q.gid}}return thenWriteFile()}))}function thenWriteFile(){Ue([[writeFileAsync,Wt,q,re.mode,re.encoding||"utf8"],re.chown&&[ae,ae.chown,Wt,re.chown.uid,re.chown.gid],re.mode&&[ae,ae.chmod,Wt,re.mode],[ae,ae.rename,Wt,C]],(function(C){C?ae.unlink(Wt,(function(){lt(C)})):lt()}))}function writeFileAsync(C,q,Ue,lt,Pt){ae.open(C,"w",re.mode,(function(C,re){if(C)return Pt(C);if(Buffer.isBuffer(q)){return ae.write(re,q,0,q.length,0,syncAndClose)}else if(q!=null){return ae.write(re,String(q),0,String(lt),syncAndClose)}else{return syncAndClose()}function syncAndClose(C){if(C)return Pt(C);ae.fsync(re,(function(C){if(C)return Pt(C);ae.close(re,Pt)}))}}))}}function writeFileSync(C,q,re){if(!re)re={};try{C=ae.realpathSync(C)}catch(C){}var Ue=getTmpname(C);try{if(!re.mode||!re.chown){try{var lt=ae.statSync(C);re=Pt({},re);if(!re.mode){re.mode=lt.mode}if(!re.chown&&process.getuid){re.chown={uid:lt.uid,gid:lt.gid}}}catch(C){}}var Wt=ae.openSync(Ue,"w",re.mode);if(Buffer.isBuffer(q)){ae.writeSync(Wt,q,0,q.length,0)}else if(q!=null){ae.writeSync(Wt,String(q),0,String(re.encoding||"utf8"))}ae.fsyncSync(Wt);ae.closeSync(Wt);if(re.chown)ae.chownSync(Ue,re.chown.uid,re.chown.gid);if(re.mode)ae.chmodSync(Ue,re.mode);ae.renameSync(Ue,C)}catch(C){try{ae.unlinkSync(Ue)}catch(C){}throw C}}},11354:(C,q,re)=>{const ae=re(56681);ae.createWebSocketStream=re(86412);ae.Server=re(70129);ae.Receiver=re(20893);ae.Sender=re(7389);ae.WebSocket=ae;ae.WebSocketServer=ae.Server;C.exports=ae},95803:(C,q,re)=>{const{EMPTY_BUFFER:ae}=re(71791);const Ue=Buffer[Symbol.species];function concat(C,q){if(C.length===0)return ae;if(C.length===1)return C[0];const re=Buffer.allocUnsafe(q);let lt=0;for(let q=0;q{const q=["nodebuffer","arraybuffer","fragments"];const re=typeof Blob!=="undefined";if(re)q.push("blob");C.exports={BINARY_TYPES:q,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:re,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},34634:(C,q,re)=>{const{kForOnEventAttribute:ae,kListener:Ue}=re(71791);const lt=Symbol("kCode");const Pt=Symbol("kData");const Wt=Symbol("kError");const Ar=Symbol("kMessage");const Er=Symbol("kReason");const Ir=Symbol("kTarget");const Br=Symbol("kType");const kr=Symbol("kWasClean");class Event{constructor(C){this[Ir]=null;this[Br]=C}get target(){return this[Ir]}get type(){return this[Br]}}Object.defineProperty(Event.prototype,"target",{enumerable:true});Object.defineProperty(Event.prototype,"type",{enumerable:true});class CloseEvent extends Event{constructor(C,q={}){super(C);this[lt]=q.code===undefined?0:q.code;this[Er]=q.reason===undefined?"":q.reason;this[kr]=q.wasClean===undefined?false:q.wasClean}get code(){return this[lt]}get reason(){return this[Er]}get wasClean(){return this[kr]}}Object.defineProperty(CloseEvent.prototype,"code",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"reason",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"wasClean",{enumerable:true});class ErrorEvent extends Event{constructor(C,q={}){super(C);this[Wt]=q.error===undefined?null:q.error;this[Ar]=q.message===undefined?"":q.message}get error(){return this[Wt]}get message(){return this[Ar]}}Object.defineProperty(ErrorEvent.prototype,"error",{enumerable:true});Object.defineProperty(ErrorEvent.prototype,"message",{enumerable:true});class MessageEvent extends Event{constructor(C,q={}){super(C);this[Pt]=q.data===undefined?null:q.data}get data(){return this[Pt]}}Object.defineProperty(MessageEvent.prototype,"data",{enumerable:true});const Pr={addEventListener(C,q,re={}){for(const lt of this.listeners(C)){if(!re[ae]&<[Ue]===q&&!lt[ae]){return}}let lt;if(C==="message"){lt=function onMessage(C,re){const ae=new MessageEvent("message",{data:re?C:C.toString()});ae[Ir]=this;callListener(q,this,ae)}}else if(C==="close"){lt=function onClose(C,re){const ae=new CloseEvent("close",{code:C,reason:re.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});ae[Ir]=this;callListener(q,this,ae)}}else if(C==="error"){lt=function onError(C){const re=new ErrorEvent("error",{error:C,message:C.message});re[Ir]=this;callListener(q,this,re)}}else if(C==="open"){lt=function onOpen(){const C=new Event("open");C[Ir]=this;callListener(q,this,C)}}else{return}lt[ae]=!!re[ae];lt[Ue]=q;if(re.once){this.once(C,lt)}else{this.on(C,lt)}},removeEventListener(C,q){for(const re of this.listeners(C)){if(re[Ue]===q&&!re[ae]){this.removeListener(C,re);break}}}};C.exports={CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,Event:Event,EventTarget:Pr,MessageEvent:MessageEvent};function callListener(C,q,re){if(typeof C==="object"&&C.handleEvent){C.handleEvent.call(C,re)}else{C.call(q,re)}}},61335:(C,q,re)=>{const{tokenChars:ae}=re(26615);function push(C,q,re){if(C[q]===undefined)C[q]=[re];else C[q].push(re)}function parse(C){const q=Object.create(null);let re=Object.create(null);let Ue=false;let lt=false;let Pt=false;let Wt;let Ar;let Er=-1;let Ir=-1;let Br=-1;let kr=0;for(;kr{let re=C[q];if(!Array.isArray(re))re=[re];return re.map((C=>[q].concat(Object.keys(C).map((q=>{let re=C[q];if(!Array.isArray(re))re=[re];return re.map((C=>C===true?q:`${q}=${C}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")}C.exports={format:format,parse:parse}},10958:C=>{const q=Symbol("kDone");const re=Symbol("kRun");class Limiter{constructor(C){this[q]=()=>{this.pending--;this[re]()};this.concurrency=C||Infinity;this.jobs=[];this.pending=0}add(C){this.jobs.push(C);this[re]()}[re](){if(this.pending===this.concurrency)return;if(this.jobs.length){const C=this.jobs.shift();this.pending++;C(this[q])}}}C.exports=Limiter},4376:(C,q,re)=>{const ae=re(43106);const Ue=re(95803);const lt=re(10958);const{kStatusCode:Pt}=re(71791);const Wt=Buffer[Symbol.species];const Ar=Buffer.from([0,0,255,255]);const Er=Symbol("permessage-deflate");const Ir=Symbol("total-length");const Br=Symbol("callback");const kr=Symbol("buffers");const Pr=Symbol("error");let Qr;class PerMessageDeflate{constructor(C,q,re){this._maxPayload=re|0;this._options=C||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!q;this._deflate=null;this._inflate=null;this.params=null;if(!Qr){const C=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;Qr=new lt(C)}}static get extensionName(){return"permessage-deflate"}offer(){const C={};if(this._options.serverNoContextTakeover){C.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){C.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){C.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){C.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){C.client_max_window_bits=true}return C}accept(C){C=this.normalizeParams(C);this.params=this._isServer?this.acceptAsServer(C):this.acceptAsClient(C);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const C=this._deflate[Br];this._deflate.close();this._deflate=null;if(C){C(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(C){const q=this._options;const re=C.find((C=>{if(q.serverNoContextTakeover===false&&C.server_no_context_takeover||C.server_max_window_bits&&(q.serverMaxWindowBits===false||typeof q.serverMaxWindowBits==="number"&&q.serverMaxWindowBits>C.server_max_window_bits)||typeof q.clientMaxWindowBits==="number"&&!C.client_max_window_bits){return false}return true}));if(!re){throw new Error("None of the extension offers can be accepted")}if(q.serverNoContextTakeover){re.server_no_context_takeover=true}if(q.clientNoContextTakeover){re.client_no_context_takeover=true}if(typeof q.serverMaxWindowBits==="number"){re.server_max_window_bits=q.serverMaxWindowBits}if(typeof q.clientMaxWindowBits==="number"){re.client_max_window_bits=q.clientMaxWindowBits}else if(re.client_max_window_bits===true||q.clientMaxWindowBits===false){delete re.client_max_window_bits}return re}acceptAsClient(C){const q=C[0];if(this._options.clientNoContextTakeover===false&&q.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!q.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){q.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&q.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return q}normalizeParams(C){C.forEach((C=>{Object.keys(C).forEach((q=>{let re=C[q];if(re.length>1){throw new Error(`Parameter "${q}" must have only a single value`)}re=re[0];if(q==="client_max_window_bits"){if(re!==true){const C=+re;if(!Number.isInteger(C)||C<8||C>15){throw new TypeError(`Invalid value for parameter "${q}": ${re}`)}re=C}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${q}": ${re}`)}}else if(q==="server_max_window_bits"){const C=+re;if(!Number.isInteger(C)||C<8||C>15){throw new TypeError(`Invalid value for parameter "${q}": ${re}`)}re=C}else if(q==="client_no_context_takeover"||q==="server_no_context_takeover"){if(re!==true){throw new TypeError(`Invalid value for parameter "${q}": ${re}`)}}else{throw new Error(`Unknown parameter "${q}"`)}C[q]=re}))}));return C}decompress(C,q,re){Qr.add((ae=>{this._decompress(C,q,((C,q)=>{ae();re(C,q)}))}))}compress(C,q,re){Qr.add((ae=>{this._compress(C,q,((C,q)=>{ae();re(C,q)}))}))}_decompress(C,q,re){const lt=this._isServer?"client":"server";if(!this._inflate){const C=`${lt}_max_window_bits`;const q=typeof this.params[C]!=="number"?ae.Z_DEFAULT_WINDOWBITS:this.params[C];this._inflate=ae.createInflateRaw({...this._options.zlibInflateOptions,windowBits:q});this._inflate[Er]=this;this._inflate[Ir]=0;this._inflate[kr]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[Br]=re;this._inflate.write(C);if(q)this._inflate.write(Ar);this._inflate.flush((()=>{const C=this._inflate[Pr];if(C){this._inflate.close();this._inflate=null;re(C);return}const ae=Ue.concat(this._inflate[kr],this._inflate[Ir]);if(this._inflate._readableState.endEmitted){this._inflate.close();this._inflate=null}else{this._inflate[Ir]=0;this._inflate[kr]=[];if(q&&this.params[`${lt}_no_context_takeover`]){this._inflate.reset()}}re(null,ae)}))}_compress(C,q,re){const lt=this._isServer?"server":"client";if(!this._deflate){const C=`${lt}_max_window_bits`;const q=typeof this.params[C]!=="number"?ae.Z_DEFAULT_WINDOWBITS:this.params[C];this._deflate=ae.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:q});this._deflate[Ir]=0;this._deflate[kr]=[];this._deflate.on("data",deflateOnData)}this._deflate[Br]=re;this._deflate.write(C);this._deflate.flush(ae.Z_SYNC_FLUSH,(()=>{if(!this._deflate){return}let C=Ue.concat(this._deflate[kr],this._deflate[Ir]);if(q){C=new Wt(C.buffer,C.byteOffset,C.length-4)}this._deflate[Br]=null;this._deflate[Ir]=0;this._deflate[kr]=[];if(q&&this.params[`${lt}_no_context_takeover`]){this._deflate.reset()}re(null,C)}))}}C.exports=PerMessageDeflate;function deflateOnData(C){this[kr].push(C);this[Ir]+=C.length}function inflateOnData(C){this[Ir]+=C.length;if(this[Er]._maxPayload<1||this[Ir]<=this[Er]._maxPayload){this[kr].push(C);return}this[Pr]=new RangeError("Max payload size exceeded");this[Pr].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";this[Pr][Pt]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(C){this[Er]._inflate=null;C[Pt]=1007;this[Br](C)}},20893:(C,q,re)=>{const{Writable:ae}=re(2203);const Ue=re(4376);const{BINARY_TYPES:lt,EMPTY_BUFFER:Pt,kStatusCode:Wt,kWebSocket:Ar}=re(71791);const{concat:Er,toArrayBuffer:Ir,unmask:Br}=re(95803);const{isValidStatusCode:kr,isValidUTF8:Pr}=re(26615);const Qr=Buffer[Symbol.species];const Fr=0;const Dr=1;const xr=2;const Mr=3;const Ur=4;const Nr=5;const Lr=6;class Receiver extends ae{constructor(C={}){super();this._allowSynchronousEvents=C.allowSynchronousEvents!==undefined?C.allowSynchronousEvents:true;this._binaryType=C.binaryType||lt[0];this._extensions=C.extensions||{};this._isServer=!!C.isServer;this._maxPayload=C.maxPayload|0;this._skipUTF8Validation=!!C.skipUTF8Validation;this[Ar]=undefined;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._errored=false;this._loop=false;this._state=Fr}_write(C,q,re){if(this._opcode===8&&this._state==Fr)return re();this._bufferedBytes+=C.length;this._buffers.push(C);this.startLoop(re)}consume(C){this._bufferedBytes-=C;if(C===this._buffers[0].length)return this._buffers.shift();if(C=re.length){q.set(this._buffers.shift(),ae)}else{q.set(new Uint8Array(re.buffer,re.byteOffset,C),ae);this._buffers[0]=new Qr(re.buffer,re.byteOffset+C,re.length-C)}C-=re.length}while(C>0);return q}startLoop(C){this._loop=true;do{switch(this._state){case Fr:this.getInfo(C);break;case Dr:this.getPayloadLength16(C);break;case xr:this.getPayloadLength64(C);break;case Mr:this.getMask();break;case Ur:this.getData(C);break;case Nr:case Lr:this._loop=false;return}}while(this._loop);if(!this._errored)C()}getInfo(C){if(this._bufferedBytes<2){this._loop=false;return}const q=this.consume(2);if((q[0]&48)!==0){const q=this.createError(RangeError,"RSV2 and RSV3 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_2_3");C(q);return}const re=(q[0]&64)===64;if(re&&!this._extensions[Ue.extensionName]){const q=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");C(q);return}this._fin=(q[0]&128)===128;this._opcode=q[0]&15;this._payloadLength=q[1]&127;if(this._opcode===0){if(re){const q=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");C(q);return}if(!this._fragmented){const q=this.createError(RangeError,"invalid opcode 0",true,1002,"WS_ERR_INVALID_OPCODE");C(q);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){const q=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");C(q);return}this._compressed=re}else if(this._opcode>7&&this._opcode<11){if(!this._fin){const q=this.createError(RangeError,"FIN must be set",true,1002,"WS_ERR_EXPECTED_FIN");C(q);return}if(re){const q=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");C(q);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){const q=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,true,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");C(q);return}}else{const q=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");C(q);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(q[1]&128)===128;if(this._isServer){if(!this._masked){const q=this.createError(RangeError,"MASK must be set",true,1002,"WS_ERR_EXPECTED_MASK");C(q);return}}else if(this._masked){const q=this.createError(RangeError,"MASK must be clear",true,1002,"WS_ERR_UNEXPECTED_MASK");C(q);return}if(this._payloadLength===126)this._state=Dr;else if(this._payloadLength===127)this._state=xr;else this.haveLength(C)}getPayloadLength16(C){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);this.haveLength(C)}getPayloadLength64(C){if(this._bufferedBytes<8){this._loop=false;return}const q=this.consume(8);const re=q.readUInt32BE(0);if(re>Math.pow(2,53-32)-1){const q=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");C(q);return}this._payloadLength=re*Math.pow(2,32)+q.readUInt32BE(4);this.haveLength(C)}haveLength(C){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){const q=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");C(q);return}}if(this._masked)this._state=Mr;else this._state=Ur}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=Ur}getData(C){let q=Pt;if(this._payloadLength){if(this._bufferedBytes7){this.controlMessage(q,C);return}if(this._compressed){this._state=Nr;this.decompress(q,C);return}if(q.length){this._messageLength=this._totalPayloadLength;this._fragments.push(q)}this.dataMessage(C)}decompress(C,q){const re=this._extensions[Ue.extensionName];re.decompress(C,this._fin,((C,re)=>{if(C)return q(C);if(re.length){this._messageLength+=re.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){const C=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");q(C);return}this._fragments.push(re)}this.dataMessage(q);if(this._state===Fr)this.startLoop(q)}))}dataMessage(C){if(!this._fin){this._state=Fr;return}const q=this._messageLength;const re=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let ae;if(this._binaryType==="nodebuffer"){ae=Er(re,q)}else if(this._binaryType==="arraybuffer"){ae=Ir(Er(re,q))}else if(this._binaryType==="blob"){ae=new Blob(re)}else{ae=re}if(this._allowSynchronousEvents){this.emit("message",ae,true);this._state=Fr}else{this._state=Lr;setImmediate((()=>{this.emit("message",ae,true);this._state=Fr;this.startLoop(C)}))}}else{const ae=Er(re,q);if(!this._skipUTF8Validation&&!Pr(ae)){const q=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");C(q);return}if(this._state===Nr||this._allowSynchronousEvents){this.emit("message",ae,false);this._state=Fr}else{this._state=Lr;setImmediate((()=>{this.emit("message",ae,false);this._state=Fr;this.startLoop(C)}))}}}controlMessage(C,q){if(this._opcode===8){if(C.length===0){this._loop=false;this.emit("conclude",1005,Pt);this.end()}else{const re=C.readUInt16BE(0);if(!kr(re)){const C=this.createError(RangeError,`invalid status code ${re}`,true,1002,"WS_ERR_INVALID_CLOSE_CODE");q(C);return}const ae=new Qr(C.buffer,C.byteOffset+2,C.length-2);if(!this._skipUTF8Validation&&!Pr(ae)){const C=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");q(C);return}this._loop=false;this.emit("conclude",re,ae);this.end()}this._state=Fr;return}if(this._allowSynchronousEvents){this.emit(this._opcode===9?"ping":"pong",C);this._state=Fr}else{this._state=Lr;setImmediate((()=>{this.emit(this._opcode===9?"ping":"pong",C);this._state=Fr;this.startLoop(q)}))}}createError(C,q,re,ae,Ue){this._loop=false;this._errored=true;const lt=new C(re?`Invalid WebSocket frame: ${q}`:q);Error.captureStackTrace(lt,this.createError);lt.code=Ue;lt[Wt]=ae;return lt}}C.exports=Receiver},7389:(C,q,re)=>{const{Duplex:ae}=re(2203);const{randomFillSync:Ue}=re(76982);const lt=re(4376);const{EMPTY_BUFFER:Pt,kWebSocket:Wt,NOOP:Ar}=re(71791);const{isBlob:Er,isValidStatusCode:Ir}=re(26615);const{mask:Br,toBuffer:kr}=re(95803);const Pr=Symbol("kByteLength");const Qr=Buffer.alloc(4);const Fr=8*1024;let Dr;let xr=Fr;const Mr=0;const Ur=1;const Nr=2;class Sender{constructor(C,q,re){this._extensions=q||{};if(re){this._generateMask=re;this._maskBuffer=Buffer.alloc(4)}this._socket=C;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._queue=[];this._state=Mr;this.onerror=Ar;this[Wt]=undefined}static frame(C,q){let re;let ae=false;let lt=2;let Pt=false;if(q.mask){re=q.maskBuffer||Qr;if(q.generateMask){q.generateMask(re)}else{if(xr===Fr){if(Dr===undefined){Dr=Buffer.alloc(Fr)}Ue(Dr,0,Fr);xr=0}re[0]=Dr[xr++];re[1]=Dr[xr++];re[2]=Dr[xr++];re[3]=Dr[xr++]}Pt=(re[0]|re[1]|re[2]|re[3])===0;lt=6}let Wt;if(typeof C==="string"){if((!q.mask||Pt)&&q[Pr]!==undefined){Wt=q[Pr]}else{C=Buffer.from(C);Wt=C.length}}else{Wt=C.length;ae=q.mask&&q.readOnly&&!Pt}let Ar=Wt;if(Wt>=65536){lt+=8;Ar=127}else if(Wt>125){lt+=2;Ar=126}const Er=Buffer.allocUnsafe(ae?Wt+lt:lt);Er[0]=q.fin?q.opcode|128:q.opcode;if(q.rsv1)Er[0]|=64;Er[1]=Ar;if(Ar===126){Er.writeUInt16BE(Wt,2)}else if(Ar===127){Er[2]=Er[3]=0;Er.writeUIntBE(Wt,4,6)}if(!q.mask)return[Er,C];Er[1]|=128;Er[lt-4]=re[0];Er[lt-3]=re[1];Er[lt-2]=re[2];Er[lt-1]=re[3];if(Pt)return[Er,C];if(ae){Br(C,re,Er,lt,Wt);return[Er]}Br(C,re,C,0,Wt);return[Er,C]}close(C,q,re,ae){let Ue;if(C===undefined){Ue=Pt}else if(typeof C!=="number"||!Ir(C)){throw new TypeError("First argument must be a valid error code number")}else if(q===undefined||!q.length){Ue=Buffer.allocUnsafe(2);Ue.writeUInt16BE(C,0)}else{const re=Buffer.byteLength(q);if(re>123){throw new RangeError("The message must not be greater than 123 bytes")}Ue=Buffer.allocUnsafe(2+re);Ue.writeUInt16BE(C,0);if(typeof q==="string"){Ue.write(q,2)}else{Ue.set(q,2)}}const lt={[Pr]:Ue.length,fin:true,generateMask:this._generateMask,mask:re,maskBuffer:this._maskBuffer,opcode:8,readOnly:false,rsv1:false};if(this._state!==Mr){this.enqueue([this.dispatch,Ue,false,lt,ae])}else{this.sendFrame(Sender.frame(Ue,lt),ae)}}ping(C,q,re){let ae;let Ue;if(typeof C==="string"){ae=Buffer.byteLength(C);Ue=false}else if(Er(C)){ae=C.size;Ue=false}else{C=kr(C);ae=C.length;Ue=kr.readOnly}if(ae>125){throw new RangeError("The data size must not be greater than 125 bytes")}const lt={[Pr]:ae,fin:true,generateMask:this._generateMask,mask:q,maskBuffer:this._maskBuffer,opcode:9,readOnly:Ue,rsv1:false};if(Er(C)){if(this._state!==Mr){this.enqueue([this.getBlobData,C,false,lt,re])}else{this.getBlobData(C,false,lt,re)}}else if(this._state!==Mr){this.enqueue([this.dispatch,C,false,lt,re])}else{this.sendFrame(Sender.frame(C,lt),re)}}pong(C,q,re){let ae;let Ue;if(typeof C==="string"){ae=Buffer.byteLength(C);Ue=false}else if(Er(C)){ae=C.size;Ue=false}else{C=kr(C);ae=C.length;Ue=kr.readOnly}if(ae>125){throw new RangeError("The data size must not be greater than 125 bytes")}const lt={[Pr]:ae,fin:true,generateMask:this._generateMask,mask:q,maskBuffer:this._maskBuffer,opcode:10,readOnly:Ue,rsv1:false};if(Er(C)){if(this._state!==Mr){this.enqueue([this.getBlobData,C,false,lt,re])}else{this.getBlobData(C,false,lt,re)}}else if(this._state!==Mr){this.enqueue([this.dispatch,C,false,lt,re])}else{this.sendFrame(Sender.frame(C,lt),re)}}send(C,q,re){const ae=this._extensions[lt.extensionName];let Ue=q.binary?2:1;let Pt=q.compress;let Wt;let Ar;if(typeof C==="string"){Wt=Buffer.byteLength(C);Ar=false}else if(Er(C)){Wt=C.size;Ar=false}else{C=kr(C);Wt=C.length;Ar=kr.readOnly}if(this._firstFragment){this._firstFragment=false;if(Pt&&ae&&ae.params[ae._isServer?"server_no_context_takeover":"client_no_context_takeover"]){Pt=Wt>=ae._threshold}this._compress=Pt}else{Pt=false;Ue=0}if(q.fin)this._firstFragment=true;const Ir={[Pr]:Wt,fin:q.fin,generateMask:this._generateMask,mask:q.mask,maskBuffer:this._maskBuffer,opcode:Ue,readOnly:Ar,rsv1:Pt};if(Er(C)){if(this._state!==Mr){this.enqueue([this.getBlobData,C,this._compress,Ir,re])}else{this.getBlobData(C,this._compress,Ir,re)}}else if(this._state!==Mr){this.enqueue([this.dispatch,C,this._compress,Ir,re])}else{this.dispatch(C,this._compress,Ir,re)}}getBlobData(C,q,re,ae){this._bufferedBytes+=re[Pr];this._state=Nr;C.arrayBuffer().then((C=>{if(this._socket.destroyed){const C=new Error("The socket was closed while the blob was being read");process.nextTick(callCallbacks,this,C,ae);return}this._bufferedBytes-=re[Pr];const Ue=kr(C);if(!q){this._state=Mr;this.sendFrame(Sender.frame(Ue,re),ae);this.dequeue()}else{this.dispatch(Ue,q,re,ae)}})).catch((C=>{process.nextTick(onError,this,C,ae)}))}dispatch(C,q,re,ae){if(!q){this.sendFrame(Sender.frame(C,re),ae);return}const Ue=this._extensions[lt.extensionName];this._bufferedBytes+=re[Pr];this._state=Ur;Ue.compress(C,re.fin,((C,q)=>{if(this._socket.destroyed){const C=new Error("The socket was closed while data was being compressed");callCallbacks(this,C,ae);return}this._bufferedBytes-=re[Pr];this._state=Mr;re.readOnly=false;this.sendFrame(Sender.frame(q,re),ae);this.dequeue()}))}dequeue(){while(this._state===Mr&&this._queue.length){const C=this._queue.shift();this._bufferedBytes-=C[3][Pr];Reflect.apply(C[0],this,C.slice(1))}}enqueue(C){this._bufferedBytes+=C[3][Pr];this._queue.push(C)}sendFrame(C,q){if(C.length===2){this._socket.cork();this._socket.write(C[0]);this._socket.write(C[1],q);this._socket.uncork()}else{this._socket.write(C[0],q)}}}C.exports=Sender;function callCallbacks(C,q,re){if(typeof re==="function")re(q);for(let re=0;re{const{Duplex:ae}=re(2203);function emitClose(C){C.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(C){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",C)}}function createWebSocketStream(C,q){let re=true;const Ue=new ae({...q,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});C.on("message",(function message(q,re){const ae=!re&&Ue._readableState.objectMode?q.toString():q;if(!Ue.push(ae))C.pause()}));C.once("error",(function error(C){if(Ue.destroyed)return;re=false;Ue.destroy(C)}));C.once("close",(function close(){if(Ue.destroyed)return;Ue.push(null)}));Ue._destroy=function(q,ae){if(C.readyState===C.CLOSED){ae(q);process.nextTick(emitClose,Ue);return}let lt=false;C.once("error",(function error(C){lt=true;ae(C)}));C.once("close",(function close(){if(!lt)ae(q);process.nextTick(emitClose,Ue)}));if(re)C.terminate()};Ue._final=function(q){if(C.readyState===C.CONNECTING){C.once("open",(function open(){Ue._final(q)}));return}if(C._socket===null)return;if(C._socket._writableState.finished){q();if(Ue._readableState.endEmitted)Ue.destroy()}else{C._socket.once("finish",(function finish(){q()}));C.close()}};Ue._read=function(){if(C.isPaused)C.resume()};Ue._write=function(q,re,ae){if(C.readyState===C.CONNECTING){C.once("open",(function open(){Ue._write(q,re,ae)}));return}C.send(q,ae)};Ue.on("end",duplexOnEnd);Ue.on("error",duplexOnError);return Ue}C.exports=createWebSocketStream},43332:(C,q,re)=>{const{tokenChars:ae}=re(26615);function parse(C){const q=new Set;let re=-1;let Ue=-1;let lt=0;for(lt;lt{const{isUtf8:ae}=re(20181);const{hasBlob:Ue}=re(71791);const lt=[0,0,0,0,0,0,0,0,0,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,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function isValidStatusCode(C){return C>=1e3&&C<=1014&&C!==1004&&C!==1005&&C!==1006||C>=3e3&&C<=4999}function _isValidUTF8(C){const q=C.length;let re=0;while(re=q||(C[re+1]&192)!==128||(C[re+2]&192)!==128||C[re]===224&&(C[re+1]&224)===128||C[re]===237&&(C[re+1]&224)===160){return false}re+=3}else if((C[re]&248)===240){if(re+3>=q||(C[re+1]&192)!==128||(C[re+2]&192)!==128||(C[re+3]&192)!==128||C[re]===240&&(C[re+1]&240)===128||C[re]===244&&C[re+1]>143||C[re]>244){return false}re+=4}else{return false}}return true}function isBlob(C){return Ue&&typeof C==="object"&&typeof C.arrayBuffer==="function"&&typeof C.type==="string"&&typeof C.stream==="function"&&(C[Symbol.toStringTag]==="Blob"||C[Symbol.toStringTag]==="File")}C.exports={isBlob:isBlob,isValidStatusCode:isValidStatusCode,isValidUTF8:_isValidUTF8,tokenChars:lt};if(ae){C.exports.isValidUTF8=function(C){return C.length<24?_isValidUTF8(C):ae(C)}}else if(!process.env.WS_NO_UTF_8_VALIDATE){try{const q=re(40397);C.exports.isValidUTF8=function(C){return C.length<32?_isValidUTF8(C):q(C)}}catch(C){}}},70129:(C,q,re)=>{const ae=re(24434);const Ue=re(58611);const{Duplex:lt}=re(2203);const{createHash:Pt}=re(76982);const Wt=re(61335);const Ar=re(4376);const Er=re(43332);const Ir=re(56681);const{GUID:Br,kWebSocket:kr}=re(71791);const Pr=/^[+/0-9A-Za-z]{22}==$/;const Qr=0;const Fr=1;const Dr=2;class WebSocketServer extends ae{constructor(C,q){super();C={allowSynchronousEvents:true,autoPong:true,maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,WebSocket:Ir,...C};if(C.port==null&&!C.server&&!C.noServer||C.port!=null&&(C.server||C.noServer)||C.server&&C.noServer){throw new TypeError('One and only one of the "port", "server", or "noServer" options '+"must be specified")}if(C.port!=null){this._server=Ue.createServer(((C,q)=>{const re=Ue.STATUS_CODES[426];q.writeHead(426,{"Content-Length":re.length,"Content-Type":"text/plain"});q.end(re)}));this._server.listen(C.port,C.host,C.backlog,q)}else if(C.server){this._server=C.server}if(this._server){const C=this.emit.bind(this,"connection");this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(q,re,ae)=>{this.handleUpgrade(q,re,ae,C)}})}if(C.perMessageDeflate===true)C.perMessageDeflate={};if(C.clientTracking){this.clients=new Set;this._shouldEmitClose=false}this.options=C;this._state=Qr}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(C){if(this._state===Dr){if(C){this.once("close",(()=>{C(new Error("The server is not running"))}))}process.nextTick(emitClose,this);return}if(C)this.once("close",C);if(this._state===Fr)return;this._state=Fr;if(this.options.noServer||this.options.server){if(this._server){this._removeListeners();this._removeListeners=this._server=null}if(this.clients){if(!this.clients.size){process.nextTick(emitClose,this)}else{this._shouldEmitClose=true}}else{process.nextTick(emitClose,this)}}else{const C=this._server;this._removeListeners();this._removeListeners=this._server=null;C.close((()=>{emitClose(this)}))}}shouldHandle(C){if(this.options.path){const q=C.url.indexOf("?");const re=q!==-1?C.url.slice(0,q):C.url;if(re!==this.options.path)return false}return true}handleUpgrade(C,q,re,ae){q.on("error",socketOnError);const Ue=C.headers["sec-websocket-key"];const lt=C.headers.upgrade;const Pt=+C.headers["sec-websocket-version"];if(C.method!=="GET"){const re="Invalid HTTP method";abortHandshakeOrEmitwsClientError(this,C,q,405,re);return}if(lt===undefined||lt.toLowerCase()!=="websocket"){const re="Invalid Upgrade header";abortHandshakeOrEmitwsClientError(this,C,q,400,re);return}if(Ue===undefined||!Pr.test(Ue)){const re="Missing or invalid Sec-WebSocket-Key header";abortHandshakeOrEmitwsClientError(this,C,q,400,re);return}if(Pt!==8&&Pt!==13){const re="Missing or invalid Sec-WebSocket-Version header";abortHandshakeOrEmitwsClientError(this,C,q,400,re);return}if(!this.shouldHandle(C)){abortHandshake(q,400);return}const Ir=C.headers["sec-websocket-protocol"];let Br=new Set;if(Ir!==undefined){try{Br=Er.parse(Ir)}catch(re){const ae="Invalid Sec-WebSocket-Protocol header";abortHandshakeOrEmitwsClientError(this,C,q,400,ae);return}}const kr=C.headers["sec-websocket-extensions"];const Qr={};if(this.options.perMessageDeflate&&kr!==undefined){const re=new Ar(this.options.perMessageDeflate,true,this.options.maxPayload);try{const C=Wt.parse(kr);if(C[Ar.extensionName]){re.accept(C[Ar.extensionName]);Qr[Ar.extensionName]=re}}catch(re){const ae="Invalid or unacceptable Sec-WebSocket-Extensions header";abortHandshakeOrEmitwsClientError(this,C,q,400,ae);return}}if(this.options.verifyClient){const lt={origin:C.headers[`${Pt===8?"sec-websocket-origin":"origin"}`],secure:!!(C.socket.authorized||C.socket.encrypted),req:C};if(this.options.verifyClient.length===2){this.options.verifyClient(lt,((lt,Pt,Wt,Ar)=>{if(!lt){return abortHandshake(q,Pt||401,Wt,Ar)}this.completeUpgrade(Qr,Ue,Br,C,q,re,ae)}));return}if(!this.options.verifyClient(lt))return abortHandshake(q,401)}this.completeUpgrade(Qr,Ue,Br,C,q,re,ae)}completeUpgrade(C,q,re,ae,Ue,lt,Er){if(!Ue.readable||!Ue.writable)return Ue.destroy();if(Ue[kr]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}if(this._state>Qr)return abortHandshake(Ue,503);const Ir=Pt("sha1").update(q+Br).digest("base64");const Pr=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Ir}`];const Fr=new this.options.WebSocket(null,undefined,this.options);if(re.size){const C=this.options.handleProtocols?this.options.handleProtocols(re,ae):re.values().next().value;if(C){Pr.push(`Sec-WebSocket-Protocol: ${C}`);Fr._protocol=C}}if(C[Ar.extensionName]){const q=C[Ar.extensionName].params;const re=Wt.format({[Ar.extensionName]:[q]});Pr.push(`Sec-WebSocket-Extensions: ${re}`);Fr._extensions=C}this.emit("headers",Pr,ae);Ue.write(Pr.concat("\r\n").join("\r\n"));Ue.removeListener("error",socketOnError);Fr.setSocket(Ue,lt,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation});if(this.clients){this.clients.add(Fr);Fr.on("close",(()=>{this.clients.delete(Fr);if(this._shouldEmitClose&&!this.clients.size){process.nextTick(emitClose,this)}}))}Er(Fr,ae)}}C.exports=WebSocketServer;function addListeners(C,q){for(const re of Object.keys(q))C.on(re,q[re]);return function removeListeners(){for(const re of Object.keys(q)){C.removeListener(re,q[re])}}}function emitClose(C){C._state=Dr;C.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(C,q,re,ae){re=re||Ue.STATUS_CODES[q];ae={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(re),...ae};C.once("finish",C.destroy);C.end(`HTTP/1.1 ${q} ${Ue.STATUS_CODES[q]}\r\n`+Object.keys(ae).map((C=>`${C}: ${ae[C]}`)).join("\r\n")+"\r\n\r\n"+re)}function abortHandshakeOrEmitwsClientError(C,q,re,ae,Ue){if(C.listenerCount("wsClientError")){const ae=new Error(Ue);Error.captureStackTrace(ae,abortHandshakeOrEmitwsClientError);C.emit("wsClientError",ae,re,q)}else{abortHandshake(re,ae,Ue)}}},56681:(C,q,re)=>{const ae=re(24434);const Ue=re(65692);const lt=re(58611);const Pt=re(69278);const Wt=re(64756);const{randomBytes:Ar,createHash:Er}=re(76982);const{Duplex:Ir,Readable:Br}=re(2203);const{URL:kr}=re(87016);const Pr=re(4376);const Qr=re(20893);const Fr=re(7389);const{isBlob:Dr}=re(26615);const{BINARY_TYPES:xr,EMPTY_BUFFER:Mr,GUID:Ur,kForOnEventAttribute:Nr,kListener:Lr,kStatusCode:jr,kWebSocket:Gr,NOOP:Vr}=re(71791);const{EventTarget:{addEventListener:Hr,removeEventListener:Wr}}=re(34634);const{format:$r,parse:Kr}=re(61335);const{toBuffer:zr}=re(95803);const Jr=30*1e3;const Yr=Symbol("kAborted");const Xr=[8,13];const Zr=["CONNECTING","OPEN","CLOSING","CLOSED"];const en=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class WebSocket extends ae{constructor(C,q,re){super();this._binaryType=xr[0];this._closeCode=1006;this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage=Mr;this._closeTimer=null;this._errorEmitted=false;this._extensions={};this._paused=false;this._protocol="";this._readyState=WebSocket.CONNECTING;this._receiver=null;this._sender=null;this._socket=null;if(C!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(q===undefined){q=[]}else if(!Array.isArray(q)){if(typeof q==="object"&&q!==null){re=q;q=[]}else{q=[q]}}initAsClient(this,C,q,re)}else{this._autoPong=re.autoPong;this._isServer=true}}get binaryType(){return this._binaryType}set binaryType(C){if(!xr.includes(C))return;this._binaryType=C;if(this._receiver)this._receiver._binaryType=C}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(C,q,re){const ae=new Qr({allowSynchronousEvents:re.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:re.maxPayload,skipUTF8Validation:re.skipUTF8Validation});const Ue=new Fr(C,this._extensions,re.generateMask);this._receiver=ae;this._sender=Ue;this._socket=C;ae[Gr]=this;Ue[Gr]=this;C[Gr]=this;ae.on("conclude",receiverOnConclude);ae.on("drain",receiverOnDrain);ae.on("error",receiverOnError);ae.on("message",receiverOnMessage);ae.on("ping",receiverOnPing);ae.on("pong",receiverOnPong);Ue.onerror=senderOnError;if(C.setTimeout)C.setTimeout(0);if(C.setNoDelay)C.setNoDelay();if(q.length>0)C.unshift(q);C.on("close",socketOnClose);C.on("data",socketOnData);C.on("end",socketOnEnd);C.on("error",socketOnError);this._readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[Pr.extensionName]){this._extensions[Pr.extensionName].cleanup()}this._receiver.removeAllListeners();this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(C,q){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const C="WebSocket was closed before the connection was established";abortHandshake(this,this._req,C);return}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)){this._socket.end()}return}this._readyState=WebSocket.CLOSING;this._sender.close(C,q,!this._isServer,(C=>{if(C)return;this._closeFrameSent=true;if(this._closeFrameReceived||this._receiver._writableState.errorEmitted){this._socket.end()}}));setCloseTimer(this)}pause(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=true;this._socket.pause()}ping(C,q,re){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof C==="function"){re=C;C=q=undefined}else if(typeof q==="function"){re=q;q=undefined}if(typeof C==="number")C=C.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,C,re);return}if(q===undefined)q=!this._isServer;this._sender.ping(C||Mr,q,re)}pong(C,q,re){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof C==="function"){re=C;C=q=undefined}else if(typeof q==="function"){re=q;q=undefined}if(typeof C==="number")C=C.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,C,re);return}if(q===undefined)q=!this._isServer;this._sender.pong(C||Mr,q,re)}resume(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=false;if(!this._receiver._writableState.needDrain)this._socket.resume()}send(C,q,re){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof q==="function"){re=q;q={}}if(typeof C==="number")C=C.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,C,re);return}const ae={binary:typeof C!=="string",mask:!this._isServer,compress:true,fin:true,...q};if(!this._extensions[Pr.extensionName]){ae.compress=false}this._sender.send(C||Mr,ae,re)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const C="WebSocket was closed before the connection was established";abortHandshake(this,this._req,C);return}if(this._socket){this._readyState=WebSocket.CLOSING;this._socket.destroy()}}}Object.defineProperty(WebSocket,"CONNECTING",{enumerable:true,value:Zr.indexOf("CONNECTING")});Object.defineProperty(WebSocket.prototype,"CONNECTING",{enumerable:true,value:Zr.indexOf("CONNECTING")});Object.defineProperty(WebSocket,"OPEN",{enumerable:true,value:Zr.indexOf("OPEN")});Object.defineProperty(WebSocket.prototype,"OPEN",{enumerable:true,value:Zr.indexOf("OPEN")});Object.defineProperty(WebSocket,"CLOSING",{enumerable:true,value:Zr.indexOf("CLOSING")});Object.defineProperty(WebSocket.prototype,"CLOSING",{enumerable:true,value:Zr.indexOf("CLOSING")});Object.defineProperty(WebSocket,"CLOSED",{enumerable:true,value:Zr.indexOf("CLOSED")});Object.defineProperty(WebSocket.prototype,"CLOSED",{enumerable:true,value:Zr.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((C=>{Object.defineProperty(WebSocket.prototype,C,{enumerable:true})}));["open","error","close","message"].forEach((C=>{Object.defineProperty(WebSocket.prototype,`on${C}`,{enumerable:true,get(){for(const q of this.listeners(C)){if(q[Nr])return q[Lr]}return null},set(q){for(const q of this.listeners(C)){if(q[Nr]){this.removeListener(C,q);break}}if(typeof q!=="function")return;this.addEventListener(C,q,{[Nr]:true})}})}));WebSocket.prototype.addEventListener=Hr;WebSocket.prototype.removeEventListener=Wr;C.exports=WebSocket;function initAsClient(C,q,re,ae){const Pt={allowSynchronousEvents:true,autoPong:true,protocolVersion:Xr[1],maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:true,followRedirects:false,maxRedirects:10,...ae,socketPath:undefined,hostname:undefined,protocol:undefined,timeout:undefined,method:"GET",host:undefined,path:undefined,port:undefined};C._autoPong=Pt.autoPong;if(!Xr.includes(Pt.protocolVersion)){throw new RangeError(`Unsupported protocol version: ${Pt.protocolVersion} `+`(supported versions: ${Xr.join(", ")})`)}let Wt;if(q instanceof kr){Wt=q}else{try{Wt=new kr(q)}catch(C){throw new SyntaxError(`Invalid URL: ${q}`)}}if(Wt.protocol==="http:"){Wt.protocol="ws:"}else if(Wt.protocol==="https:"){Wt.protocol="wss:"}C._url=Wt.href;const Ir=Wt.protocol==="wss:";const Br=Wt.protocol==="ws+unix:";let Qr;if(Wt.protocol!=="ws:"&&!Ir&&!Br){Qr='The URL\'s protocol must be one of "ws:", "wss:", '+'"http:", "https", or "ws+unix:"'}else if(Br&&!Wt.pathname){Qr="The URL's pathname is empty"}else if(Wt.hash){Qr="The URL contains a fragment identifier"}if(Qr){const q=new SyntaxError(Qr);if(C._redirects===0){throw q}else{emitErrorAndClose(C,q);return}}const Fr=Ir?443:80;const Dr=Ar(16).toString("base64");const xr=Ir?Ue.request:lt.request;const Mr=new Set;let Nr;Pt.createConnection=Pt.createConnection||(Ir?tlsConnect:netConnect);Pt.defaultPort=Pt.defaultPort||Fr;Pt.port=Wt.port||Fr;Pt.host=Wt.hostname.startsWith("[")?Wt.hostname.slice(1,-1):Wt.hostname;Pt.headers={...Pt.headers,"Sec-WebSocket-Version":Pt.protocolVersion,"Sec-WebSocket-Key":Dr,Connection:"Upgrade",Upgrade:"websocket"};Pt.path=Wt.pathname+Wt.search;Pt.timeout=Pt.handshakeTimeout;if(Pt.perMessageDeflate){Nr=new Pr(Pt.perMessageDeflate!==true?Pt.perMessageDeflate:{},false,Pt.maxPayload);Pt.headers["Sec-WebSocket-Extensions"]=$r({[Pr.extensionName]:Nr.offer()})}if(re.length){for(const C of re){if(typeof C!=="string"||!en.test(C)||Mr.has(C)){throw new SyntaxError("An invalid or duplicated subprotocol was specified")}Mr.add(C)}Pt.headers["Sec-WebSocket-Protocol"]=re.join(",")}if(Pt.origin){if(Pt.protocolVersion<13){Pt.headers["Sec-WebSocket-Origin"]=Pt.origin}else{Pt.headers.Origin=Pt.origin}}if(Wt.username||Wt.password){Pt.auth=`${Wt.username}:${Wt.password}`}if(Br){const C=Pt.path.split(":");Pt.socketPath=C[0];Pt.path=C[1]}let Lr;if(Pt.followRedirects){if(C._redirects===0){C._originalIpc=Br;C._originalSecure=Ir;C._originalHostOrSocketPath=Br?Pt.socketPath:Wt.host;const q=ae&&ae.headers;ae={...ae,headers:{}};if(q){for(const[C,re]of Object.entries(q)){ae.headers[C.toLowerCase()]=re}}}else if(C.listenerCount("redirect")===0){const q=Br?C._originalIpc?Pt.socketPath===C._originalHostOrSocketPath:false:C._originalIpc?false:Wt.host===C._originalHostOrSocketPath;if(!q||C._originalSecure&&!Ir){delete Pt.headers.authorization;delete Pt.headers.cookie;if(!q)delete Pt.headers.host;Pt.auth=undefined}}if(Pt.auth&&!ae.headers.authorization){ae.headers.authorization="Basic "+Buffer.from(Pt.auth).toString("base64")}Lr=C._req=xr(Pt);if(C._redirects){C.emit("redirect",C.url,Lr)}}else{Lr=C._req=xr(Pt)}if(Pt.timeout){Lr.on("timeout",(()=>{abortHandshake(C,Lr,"Opening handshake has timed out")}))}Lr.on("error",(q=>{if(Lr===null||Lr[Yr])return;Lr=C._req=null;emitErrorAndClose(C,q)}));Lr.on("response",(Ue=>{const lt=Ue.headers.location;const Wt=Ue.statusCode;if(lt&&Pt.followRedirects&&Wt>=300&&Wt<400){if(++C._redirects>Pt.maxRedirects){abortHandshake(C,Lr,"Maximum redirects exceeded");return}Lr.abort();let Ue;try{Ue=new kr(lt,q)}catch(q){const re=new SyntaxError(`Invalid URL: ${lt}`);emitErrorAndClose(C,re);return}initAsClient(C,Ue,re,ae)}else if(!C.emit("unexpected-response",Lr,Ue)){abortHandshake(C,Lr,`Unexpected server response: ${Ue.statusCode}`)}}));Lr.on("upgrade",((q,re,ae)=>{C.emit("upgrade",q);if(C.readyState!==WebSocket.CONNECTING)return;Lr=C._req=null;const Ue=q.headers.upgrade;if(Ue===undefined||Ue.toLowerCase()!=="websocket"){abortHandshake(C,re,"Invalid Upgrade header");return}const lt=Er("sha1").update(Dr+Ur).digest("base64");if(q.headers["sec-websocket-accept"]!==lt){abortHandshake(C,re,"Invalid Sec-WebSocket-Accept header");return}const Wt=q.headers["sec-websocket-protocol"];let Ar;if(Wt!==undefined){if(!Mr.size){Ar="Server sent a subprotocol but none was requested"}else if(!Mr.has(Wt)){Ar="Server sent an invalid subprotocol"}}else if(Mr.size){Ar="Server sent no subprotocol"}if(Ar){abortHandshake(C,re,Ar);return}if(Wt)C._protocol=Wt;const Ir=q.headers["sec-websocket-extensions"];if(Ir!==undefined){if(!Nr){const q="Server sent a Sec-WebSocket-Extensions header but no extension "+"was requested";abortHandshake(C,re,q);return}let q;try{q=Kr(Ir)}catch(q){const ae="Invalid Sec-WebSocket-Extensions header";abortHandshake(C,re,ae);return}const ae=Object.keys(q);if(ae.length!==1||ae[0]!==Pr.extensionName){const q="Server indicated an extension that was not requested";abortHandshake(C,re,q);return}try{Nr.accept(q[Pr.extensionName])}catch(q){const ae="Invalid Sec-WebSocket-Extensions header";abortHandshake(C,re,ae);return}C._extensions[Pr.extensionName]=Nr}C.setSocket(re,ae,{allowSynchronousEvents:Pt.allowSynchronousEvents,generateMask:Pt.generateMask,maxPayload:Pt.maxPayload,skipUTF8Validation:Pt.skipUTF8Validation})}));if(Pt.finishRequest){Pt.finishRequest(Lr,C)}else{Lr.end()}}function emitErrorAndClose(C,q){C._readyState=WebSocket.CLOSING;C._errorEmitted=true;C.emit("error",q);C.emitClose()}function netConnect(C){C.path=C.socketPath;return Pt.connect(C)}function tlsConnect(C){C.path=undefined;if(!C.servername&&C.servername!==""){C.servername=Pt.isIP(C.host)?"":C.host}return Wt.connect(C)}function abortHandshake(C,q,re){C._readyState=WebSocket.CLOSING;const ae=new Error(re);Error.captureStackTrace(ae,abortHandshake);if(q.setHeader){q[Yr]=true;q.abort();if(q.socket&&!q.socket.destroyed){q.socket.destroy()}process.nextTick(emitErrorAndClose,C,ae)}else{q.destroy(ae);q.once("error",C.emit.bind(C,"error"));q.once("close",C.emitClose.bind(C))}}function sendAfterClose(C,q,re){if(q){const re=Dr(q)?q.size:zr(q).length;if(C._socket)C._sender._bufferedBytes+=re;else C._bufferedAmount+=re}if(re){const q=new Error(`WebSocket is not open: readyState ${C.readyState} `+`(${Zr[C.readyState]})`);process.nextTick(re,q)}}function receiverOnConclude(C,q){const re=this[Gr];re._closeFrameReceived=true;re._closeMessage=q;re._closeCode=C;if(re._socket[Gr]===undefined)return;re._socket.removeListener("data",socketOnData);process.nextTick(resume,re._socket);if(C===1005)re.close();else re.close(C,q)}function receiverOnDrain(){const C=this[Gr];if(!C.isPaused)C._socket.resume()}function receiverOnError(C){const q=this[Gr];if(q._socket[Gr]!==undefined){q._socket.removeListener("data",socketOnData);process.nextTick(resume,q._socket);q.close(C[jr])}if(!q._errorEmitted){q._errorEmitted=true;q.emit("error",C)}}function receiverOnFinish(){this[Gr].emitClose()}function receiverOnMessage(C,q){this[Gr].emit("message",C,q)}function receiverOnPing(C){const q=this[Gr];if(q._autoPong)q.pong(C,!this._isServer,Vr);q.emit("ping",C)}function receiverOnPong(C){this[Gr].emit("pong",C)}function resume(C){C.resume()}function senderOnError(C){const q=this[Gr];if(q.readyState===WebSocket.CLOSED)return;if(q.readyState===WebSocket.OPEN){q._readyState=WebSocket.CLOSING;setCloseTimer(q)}this._socket.end();if(!q._errorEmitted){q._errorEmitted=true;q.emit("error",C)}}function setCloseTimer(C){C._closeTimer=setTimeout(C._socket.destroy.bind(C._socket),Jr)}function socketOnClose(){const C=this[Gr];this.removeListener("close",socketOnClose);this.removeListener("data",socketOnData);this.removeListener("end",socketOnEnd);C._readyState=WebSocket.CLOSING;let q;if(!this._readableState.endEmitted&&!C._closeFrameReceived&&!C._receiver._writableState.errorEmitted&&(q=C._socket.read())!==null){C._receiver.write(q)}C._receiver.end();this[Gr]=undefined;clearTimeout(C._closeTimer);if(C._receiver._writableState.finished||C._receiver._writableState.errorEmitted){C.emitClose()}else{C._receiver.on("error",receiverOnFinish);C._receiver.on("finish",receiverOnFinish)}}function socketOnData(C){if(!this[Gr]._receiver.write(C)){this.pause()}}function socketOnEnd(){const C=this[Gr];C._readyState=WebSocket.CLOSING;C._receiver.end();this.end()}function socketOnError(){const C=this[Gr];this.removeListener("error",socketOnError);this.on("error",Vr);if(C){C._readyState=WebSocket.CLOSING;this.destroy()}}},73546:(C,q,re)=>{C.exports={EventTarget:re(80839),Event:re(21126)}},21126:C=>{C.exports=_Event;function _Event(C){this.type=C;this.isTrusted=false;this._yaeti=true}},80839:C=>{C.exports=_EventTarget;function _EventTarget(){if(typeof this.addEventListener==="function"){return}this._listeners={};this.addEventListener=_addEventListener;this.removeEventListener=_removeEventListener;this.dispatchEvent=_dispatchEvent}Object.defineProperties(_EventTarget.prototype,{listeners:{get:function(){return this._listeners}}});function _addEventListener(C,q){var re,ae,Ue;if(!C||!q){return}re=this._listeners[C];if(re===undefined){this._listeners[C]=re=[]}for(ae=0;!!(Ue=re[ae]);ae++){if(Ue===q){return}}re.push(q)}function _removeEventListener(C,q){var re,ae,Ue;if(!C||!q){return}re=this._listeners[C];if(re===undefined){return}for(ae=0;!!(Ue=re[ae]);ae++){if(Ue===q){re.splice(ae,1);break}}if(re.length===0){delete this._listeners[C]}}function _dispatchEvent(C){var q,re,ae,Ue=false,lt,Pt;if(!C||typeof C.type!=="string"){throw new Error("`event` must have a valid `type` property")}if(C._yaeti){C.target=this;C.cancelable=true}try{C.stopImmediatePropagation=function(){Ue=true}}catch(C){}q=C.type;re=this._listeners[q]||[];ae=this["on"+q];if(typeof ae==="function"){ae.call(this,C)}for(lt=0;!!(Pt=re[lt]);lt++){if(Ue){break}Pt.call(this,C)}return!C.defaultPrevented}},42078:module=>{module.exports=eval("require")("encoding")},42613:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert")},90290:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("async_hooks")},20181:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer")},64236:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("console")},49140:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("constants")},76982:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto")},31637:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("diagnostics_channel")},24434:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("events")},79896:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs")},58611:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http")},85675:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http2")},65692:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("https")},69278:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("net")},78474:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events")},57075:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream")},57975:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util")},70857:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("os")},16928:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("path")},82987:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("perf_hooks")},24876:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("punycode")},83480:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("querystring")},2203:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream")},63774:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream/web")},13193:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("string_decoder")},64756:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls")},52018:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tty")},87016:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("url")},39023:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util")},98253:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util/types")},28167:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("worker_threads")},43106:C=>{C.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib")},27182:(C,q,re)=>{const ae=re(57075).Writable;const Ue=re(57975).inherits;const lt=re(84136);const Pt=re(50612);const Wt=re(62271);const Ar=45;const Er=Buffer.from("-");const Ir=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(C){if(!(this instanceof Dicer)){return new Dicer(C)}ae.call(this,C);if(!C||!C.headerFirst&&typeof C.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof C.boundary==="string"){this.setBoundary(C.boundary)}else{this._bparser=undefined}this._headerFirst=C.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:C.partHwm};this._pause=false;const q=this;this._hparser=new Wt(C);this._hparser.on("header",(function(C){q._inHeader=false;q._part.emit("header",C)}))}Ue(Dicer,ae);Dicer.prototype.emit=function(C){if(C==="finish"&&!this._realFinish){if(!this._finished){const C=this;process.nextTick((function(){C.emit("error",new Error("Unexpected end of multipart data"));if(C._part&&!C._ignoreData){const q=C._isPreamble?"Preamble":"Part";C._part.emit("error",new Error(q+" terminated early due to unexpected end of multipart data"));C._part.push(null);process.nextTick((function(){C._realFinish=true;C.emit("finish");C._realFinish=false}));return}C._realFinish=true;C.emit("finish");C._realFinish=false}))}}else{ae.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(C,q,re){if(!this._hparser&&!this._bparser){return re()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new Pt(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const q=this._hparser.push(C);if(!this._inHeader&&q!==undefined&&q{const ae=re(78474).EventEmitter;const Ue=re(57975).inherits;const lt=re(22393);const Pt=re(84136);const Wt=Buffer.from("\r\n\r\n");const Ar=/\r\n/g;const Er=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(C){ae.call(this);C=C||{};const q=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=lt(C,"maxHeaderPairs",2e3);this.maxHeaderSize=lt(C,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new Pt(Wt);this.ss.on("info",(function(C,re,ae,Ue){if(re&&!q.maxed){if(q.nread+Ue-ae>=q.maxHeaderSize){Ue=q.maxHeaderSize-q.nread+ae;q.nread=q.maxHeaderSize;q.maxed=true}else{q.nread+=Ue-ae}q.buffer+=re.toString("binary",ae,Ue)}if(C){q._finish()}}))}Ue(HeaderParser,ae);HeaderParser.prototype.push=function(C){const q=this.ss.push(C);if(this.finished){return q}};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 C=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",C)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const C=this.buffer.split(Ar);const q=C.length;let re,ae;for(var Ue=0;Ue{const ae=re(57975).inherits;const Ue=re(57075).Readable;function PartStream(C){Ue.call(this,C)}ae(PartStream,Ue);PartStream.prototype._read=function(C){};C.exports=PartStream},84136:(C,q,re)=>{const ae=re(78474).EventEmitter;const Ue=re(57975).inherits;function SBMH(C){if(typeof C==="string"){C=Buffer.from(C)}if(!Buffer.isBuffer(C)){throw new TypeError("The needle has to be a String or a Buffer.")}const q=C.length;if(q===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(q>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(q);this._lookbehind_size=0;this._needle=C;this._bufpos=0;this._lookbehind=Buffer.alloc(q);for(var re=0;re=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const re=this._lookbehind_size+lt;if(re>0){this.emit("info",false,this._lookbehind,0,re)}this._lookbehind.copy(this._lookbehind,0,re,this._lookbehind_size-re);this._lookbehind_size-=re;C.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=q;this._bufpos=q;return q}}lt+=(lt>=0)*this._bufpos;if(C.indexOf(re,lt)!==-1){lt=C.indexOf(re,lt);++this.matches;if(lt>0){this.emit("info",true,C,this._bufpos,lt)}else{this.emit("info",true)}return this._bufpos=lt+ae}else{lt=q-ae}while(lt0){this.emit("info",false,C,this._bufpos,lt{const ae=re(57075).Writable;const{inherits:Ue}=re(57975);const lt=re(27182);const Pt=re(41192);const Wt=re(80855);const Ar=re(8929);function Busboy(C){if(!(this instanceof Busboy)){return new Busboy(C)}if(typeof C!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof C.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof C.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:q,...re}=C;this.opts={autoDestroy:false,...re};ae.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(q);this._finished=false}Ue(Busboy,ae);Busboy.prototype.emit=function(C){if(C==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}ae.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(C){const q=Ar(C["content-type"]);const re={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:C,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:q,preservePath:this.opts.preservePath};if(Pt.detect.test(q[0])){return new Pt(this,re)}if(Wt.detect.test(q[0])){return new Wt(this,re)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(C,q,re){this._parser.write(C,re)};C.exports=Busboy;C.exports["default"]=Busboy;C.exports.Busboy=Busboy;C.exports.Dicer=lt},41192:(C,q,re)=>{const{Readable:ae}=re(57075);const{inherits:Ue}=re(57975);const lt=re(27182);const Pt=re(8929);const Wt=re(72747);const Ar=re(20692);const Er=re(22393);const Ir=/^boundary$/i;const Br=/^form-data$/i;const kr=/^charset$/i;const Pr=/^filename$/i;const Qr=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(C,q){let re;let ae;const Ue=this;let Fr;const Dr=q.limits;const xr=q.isPartAFile||((C,q,re)=>q==="application/octet-stream"||re!==undefined);const Mr=q.parsedConType||[];const Ur=q.defCharset||"utf8";const Nr=q.preservePath;const Lr={highWaterMark:q.fileHwm};for(re=0,ae=Mr.length;reWr){Ue.parser.removeListener("part",onPart);Ue.parser.on("part",skipPart);C.hitPartsLimit=true;C.emit("partsLimit");return skipPart(q)}if(Zr){const C=Zr;C.emit("end");C.removeAllListeners("end")}q.on("header",(function(lt){let Er;let Ir;let Fr;let Dr;let Mr;let Wr;let $r=0;if(lt["content-type"]){Fr=Pt(lt["content-type"][0]);if(Fr[0]){Er=Fr[0].toLowerCase();for(re=0,ae=Fr.length;reGr){const ae=Gr-$r+C.length;if(ae>0){re.push(C.slice(0,ae))}re.truncated=true;re.bytesRead=Gr;q.removeAllListeners("data");re.emit("limit");return}else if(!re.push(C)){Ue._pause=true}re.bytesRead=$r};en=function(){Xr=undefined;re.push(null)}}else{if(Jr===Hr){if(!C.hitFieldsLimit){C.hitFieldsLimit=true;C.emit("fieldsLimit")}return skipPart(q)}++Jr;++Yr;let re="";let ae=false;Zr=q;Kr=function(C){if(($r+=C.length)>jr){const Ue=jr-($r-C.length);re+=C.toString("binary",0,Ue);ae=true;q.removeAllListeners("data")}else{re+=C.toString("binary")}};en=function(){Zr=undefined;if(re.length){re=Wt(re,"binary",Dr)}C.emit("field",Ir,re,false,ae,Mr,Er);--Yr;checkFinished()}}q._readableState.sync=false;q.on("data",Kr);q.on("end",en)})).on("error",(function(C){if(Xr){Xr.emit("error",C)}}))})).on("error",(function(q){C.emit("error",q)})).on("finish",(function(){en=true;checkFinished()}))}Multipart.prototype.write=function(C,q){const re=this.parser.write(C);if(re&&!this._pause){q()}else{this._needDrain=!re;this._cb=q}};Multipart.prototype.end=function(){const C=this;if(C.parser.writable){C.parser.end()}else if(!C._boy._done){process.nextTick((function(){C._boy._done=true;C._boy.emit("finish")}))}};function skipPart(C){C.resume()}function FileStream(C){ae.call(this,C);this.bytesRead=0;this.truncated=false}Ue(FileStream,ae);FileStream.prototype._read=function(C){};C.exports=Multipart},80855:(C,q,re)=>{const ae=re(11496);const Ue=re(72747);const lt=re(22393);const Pt=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(C,q){const re=q.limits;const Ue=q.parsedConType;this.boy=C;this.fieldSizeLimit=lt(re,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=lt(re,"fieldNameSize",100);this.fieldsLimit=lt(re,"fields",Infinity);let Wt;for(var Ar=0,Er=Ue.length;ArPt){this._key+=this.decoder.write(C.toString("binary",Pt,re))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();Pt=re+1}else if(ae!==undefined){++this._fields;let re;const lt=this._keyTrunc;if(ae>Pt){re=this._key+=this.decoder.write(C.toString("binary",Pt,ae))}else{re=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(re.length){this.boy.emit("field",Ue(re,"binary",this.charset),"",lt,false)}Pt=ae+1;if(this._fields===this.fieldsLimit){return q()}}else if(this._hitLimit){if(lt>Pt){this._key+=this.decoder.write(C.toString("binary",Pt,lt))}Pt=lt;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(PtPt){this._val+=this.decoder.write(C.toString("binary",Pt,ae))}this.boy.emit("field",Ue(this._key,"binary",this.charset),Ue(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();Pt=ae+1;if(this._fields===this.fieldsLimit){return q()}}else if(this._hitLimit){if(lt>Pt){this._val+=this.decoder.write(C.toString("binary",Pt,lt))}Pt=lt;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(Pt0){this.boy.emit("field",Ue(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",Ue(this._key,"binary",this.charset),Ue(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};C.exports=UrlEncoded},11496:C=>{const q=/\+/g;const re=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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(C){C=C.replace(q," ");let ae="";let Ue=0;let lt=0;const Pt=C.length;for(;Uelt){ae+=C.substring(lt,Ue);lt=Ue}this.buffer="";++lt}}if(lt{C.exports=function basename(C){if(typeof C!=="string"){return""}for(var q=C.length-1;q>=0;--q){switch(C.charCodeAt(q)){case 47:case 92:C=C.slice(q+1);return C===".."||C==="."?"":C}}return C===".."||C==="."?"":C}},72747:function(C){const q=new TextDecoder("utf-8");const re=new Map([["utf-8",q],["utf8",q]]);function getDecoder(C){let q;while(true){switch(C){case"utf-8":case"utf8":return ae.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 ae.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return ae.utf16le;case"base64":return ae.base64;default:if(q===undefined){q=true;C=C.toLowerCase();continue}return ae.other.bind(C)}}}const ae={utf8:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){C=Buffer.from(C,q)}return C.utf8Slice(0,C.length)},latin1:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){return C}return C.latin1Slice(0,C.length)},utf16le:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){C=Buffer.from(C,q)}return C.ucs2Slice(0,C.length)},base64:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){C=Buffer.from(C,q)}return C.base64Slice(0,C.length)},other:(C,q)=>{if(C.length===0){return""}if(typeof C==="string"){C=Buffer.from(C,q)}if(re.has(this.toString())){try{return re.get(this).decode(C)}catch{}}return typeof C==="string"?C:C.toString()}};function decodeText(C,q,re){if(C){return getDecoder(re)(C,q)}return C}C.exports=decodeText},22393:C=>{C.exports=function getLimit(C,q,re){if(!C||C[q]===undefined||C[q]===null){return re}if(typeof C[q]!=="number"||isNaN(C[q])){throw new TypeError("Limit "+q+" is not a valid number")}return C[q]}},8929:(C,q,re)=>{const ae=re(72747);const Ue=/%[a-fA-F0-9][a-fA-F0-9]/g;const lt={"%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(C){return lt[C]}const Pt=0;const Wt=1;const Ar=2;const Er=3;function parseParams(C){const q=[];let re=Pt;let lt="";let Ir=false;let Br=false;let kr=0;let Pr="";const Qr=C.length;for(var Fr=0;Fr{Object.defineProperty(q,"__esModule",{value:true});q.installCallbackQueryMethods=void 0;const ae=re(49472);const Ue=re(65936);function installCallbackQueryMethods(C,q){if(q.message!==undefined){(0,Ue.installMessageMethods)(C,q.message)}else if(q.inline_message_id!==undefined){(0,ae.installInlineMessageMethods)(C,{inline_message_id:q.inline_message_id})}const re={answer:(re,ae)=>C.answerCallbackQuery({callback_query_id:q.id,...re},ae)};Object.assign(q,re)}q.installCallbackQueryMethods=installCallbackQueryMethods},11006:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installChatJoinRequestMethods=void 0;function installChatJoinRequestMethods(C,q){const re={approve:re=>C.approveChatJoinRequest({chat_id:q.chat.id,user_id:q.from.id},re),decline:re=>C.declineChatJoinRequest({chat_id:q.chat.id,user_id:q.from.id},re)};Object.assign(q,re)}q.installChatJoinRequestMethods=installChatJoinRequestMethods},48541:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installChatMethods=void 0;function installChatMethods(C,q){const re={setPermissions:(re,ae,Ue)=>C.setChatPermissions({chat_id:q.id,permissions:re,...ae},Ue),getMember:(re,ae,Ue)=>C.getChatMember({chat_id:q.id,user_id:re,...ae},Ue),getMembersCount:(re,ae)=>C.getChatMemberCount({chat_id:q.id,...re},ae),getAdmins:(re,ae)=>C.getChatAdministrators({chat_id:q.id,...re},ae),setStickerSet:(re,ae,Ue)=>C.setChatStickerSet({chat_id:q.id,sticker_set_name:re,...ae},Ue),deleteStickerSet:(re,ae)=>C.deleteChatStickerSet({chat_id:q.id,...re},ae),createForumTopic:(re,ae,Ue)=>C.createForumTopic({chat_id:q.id,name:re,...ae},Ue),editForumTopic:(re,ae,Ue)=>C.editForumTopic({chat_id:q.id,message_thread_id:re,...ae},Ue),closeForumTopic:(re,ae,Ue)=>C.closeForumTopic({chat_id:q.id,message_thread_id:re,...ae},Ue),reopenForumTopic:(re,ae,Ue)=>C.reopenForumTopic({chat_id:q.id,message_thread_id:re,...ae},Ue),deleteForumTopic:(re,ae,Ue)=>C.deleteForumTopic({chat_id:q.id,message_thread_id:re,...ae},Ue),unpinAllForumTopicMessages:(re,ae,Ue)=>C.unpinAllForumTopicMessages({chat_id:q.id,message_thread_id:re,...ae},Ue),editGeneralForumTopic:(re,ae,Ue)=>C.editGeneralForumTopic({chat_id:q.id,name:re,...ae},Ue),closeGeneralForumTopic:(re,ae)=>C.closeGeneralForumTopic({chat_id:q.id,...re},ae),reopenGeneralForumTopic:(re,ae)=>C.reopenGeneralForumTopic({chat_id:q.id,...re},ae),hideGeneralForumTopic:(re,ae)=>C.hideGeneralForumTopic({chat_id:q.id,...re},ae),unhideGeneralForumTopic:(re,ae)=>C.unhideGeneralForumTopic({chat_id:q.id,...re},ae),setMenuButton:(re,ae)=>C.setChatMenuButton({chat_id:q.id,...re},ae),getMenuButton:(re,ae)=>C.getChatMenuButton({chat_id:q.id,...re},ae),leave:(re,ae)=>C.leaveChat({chat_id:q.id,...re},ae),setPhoto:(re,ae,Ue)=>C.setChatPhoto({chat_id:q.id,photo:re,...ae},Ue),deletePhoto:(re,ae)=>C.deleteChatPhoto({chat_id:q.id,...re},ae),setTitle:(re,ae,Ue)=>C.setChatTitle({chat_id:q.id,title:re,...ae},Ue),setDescription:(re,ae,Ue)=>C.setChatDescription({chat_id:q.id,description:re,...ae},Ue),unpinAllMessages:(re,ae)=>C.unpinAllChatMessages({chat_id:q.id,...re},ae),revokeInviteLink:(re,ae,Ue)=>C.revokeChatInviteLink({chat_id:q.id,invite_link:re,...ae},Ue),editInviteLink:(re,ae,Ue)=>C.editChatInviteLink({chat_id:q.id,invite_link:re,...ae},Ue),createInviteLink:(re,ae)=>C.createChatInviteLink({chat_id:q.id,...re},ae),exportInviteLink:(re,ae)=>C.exportChatInviteLink({chat_id:q.id,...re},ae),unbanSenderChat:(re,ae,Ue)=>C.unbanChatSenderChat({chat_id:q.id,sender_chat_id:re,...ae},Ue),banSenderChat:(re,ae,Ue)=>C.banChatSenderChat({chat_id:q.id,sender_chat_id:re,...ae},Ue),banMember:(re,ae,Ue)=>C.banChatMember({chat_id:q.id,user_id:re,...ae},Ue),unbanMember:(re,ae,Ue)=>C.unbanChatMember({chat_id:q.id,user_id:re,...ae},Ue)};Object.assign(q,re)}q.installChatMethods=installChatMethods},80065:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.installChosenInlineResultMethods=void 0;const ae=re(49472);function installChosenInlineResultMethods(C,q){if(q.inline_message_id!==undefined){(0,ae.installInlineMessageMethods)(C,{inline_message_id:q.inline_message_id})}}q.installChosenInlineResultMethods=installChosenInlineResultMethods},49472:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installInlineMessageMethods=void 0;function installInlineMessageMethods(C,q){const re={editReplyMarkup:(re,ae)=>C.editMessageReplyMarkup({inline_message_id:q.inline_message_id,reply_markup:re},ae),editText:(re,ae,Ue)=>C.editMessageText({inline_message_id:q.inline_message_id,text:re,...ae},Ue),editLiveLocation:(re,ae,Ue,lt)=>C.editMessageLiveLocation({inline_message_id:q.inline_message_id,latitude:re,longitude:ae,...Ue},lt),stopLiveLocation:(re,ae)=>C.stopMessageLiveLocation({inline_message_id:q.inline_message_id,...re},ae),editCaption:(re,ae,Ue)=>C.editMessageCaption({inline_message_id:q.inline_message_id,caption:re,...ae},Ue),editMedia:(re,ae,Ue)=>C.editMessageMedia({inline_message_id:q.inline_message_id,media:re,...ae},Ue)};Object.assign(q,re)}q.installInlineMessageMethods=installInlineMessageMethods},39255:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installInlineQueryMethods=void 0;function installInlineQueryMethods(C,q){const re={answer:(re,ae,Ue)=>C.answerInlineQuery({inline_query_id:q.id,results:re,...ae},Ue)};Object.assign(q,re)}q.installInlineQueryMethods=installInlineQueryMethods},65936:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installMessageMethods=void 0;function installMessageMethods(C,q){const re={forward:(re,ae,Ue)=>C.forwardMessage({chat_id:re,from_chat_id:q.chat.id,message_id:q.message_id,...ae},Ue),copy:(re,ae,Ue)=>C.copyMessage({chat_id:re,from_chat_id:q.chat.id,message_id:q.message_id,...ae},Ue),delete:re=>C.deleteMessage({chat_id:q.chat.id,message_id:q.message_id},re),editReplyMarkup:(re,ae)=>C.editMessageReplyMarkup({chat_id:q.chat.id,message_id:q.message_id,reply_markup:re},ae),editText:(re,ae,Ue)=>C.editMessageText({chat_id:q.chat.id,message_id:q.message_id,text:re,...ae},Ue),editLiveLocation:(re,ae,Ue,lt)=>C.editMessageLiveLocation({chat_id:q.chat.id,message_id:q.message_id,latitude:re,longitude:ae,...Ue},lt),stopLiveLocation:(re,ae)=>C.stopMessageLiveLocation({chat_id:q.chat.id,message_id:q.message_id,...re},ae),editCaption:(re,ae,Ue)=>C.editMessageCaption({chat_id:q.chat.id,message_id:q.message_id,caption:re,...ae},Ue),editMedia:(re,ae,Ue)=>C.editMessageMedia({chat_id:q.chat.id,message_id:q.message_id,media:re,...ae},Ue),react:(re,ae,Ue)=>C.setMessageReaction({chat_id:q.chat.id,message_id:q.message_id,reaction:typeof re==="string"?[{type:"emoji",emoji:re}]:(Array.isArray(re)?re:[re]).map((C=>typeof C==="string"?{type:"emoji",emoji:C}:C)),...ae},Ue),getCustomEmojiStickers:async re=>{var ae;const Ue=(ae=q.entities)!==null&&ae!==void 0?ae:q.caption_entities;if(Ue===undefined||Ue.length===0)return[];const lt=Ue.filter((C=>C.type==="custom_emoji")).map((C=>C.custom_emoji_id));return await C.getCustomEmojiStickers({custom_emoji_ids:lt},re)}};Object.assign(q,re)}q.installMessageMethods=installMessageMethods},17746:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installPreCheckoutQueryMethods=void 0;function installPreCheckoutQueryMethods(C,q){const re={answer:(re,ae,Ue)=>C.answerPreCheckoutQuery({pre_checkout_query_id:q.id,ok:re,...ae},Ue)};Object.assign(q,re)}q.installPreCheckoutQueryMethods=installPreCheckoutQueryMethods},22972:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installShippingQueryMethods=void 0;function installShippingQueryMethods(C,q){const re={answer:(re,ae,Ue)=>C.answerShippingQuery({shipping_query_id:q.id,ok:re,...ae},Ue)};Object.assign(q,re)}q.installShippingQueryMethods=installShippingQueryMethods},49430:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.installUpdateMethods=void 0;const ae=re(27669);const Ue=re(11006);const lt=re(80065);const Pt=re(39255);const Wt=re(65936);const Ar=re(17746);const Er=re(22972);function installUpdateMethods(C,q){if(q.message!==undefined){(0,Wt.installMessageMethods)(C,q.message)}else if(q.channel_post!==undefined){(0,Wt.installMessageMethods)(C,q.channel_post)}else if(q.edited_message!==undefined){(0,Wt.installMessageMethods)(C,q.edited_message)}else if(q.edited_channel_post!==undefined){(0,Wt.installMessageMethods)(C,q.edited_channel_post)}else if(q.inline_query!==undefined){(0,Pt.installInlineQueryMethods)(C,q.inline_query)}else if(q.callback_query!==undefined){(0,ae.installCallbackQueryMethods)(C,q.callback_query)}else if(q.shipping_query!==undefined){(0,Er.installShippingQueryMethods)(C,q.shipping_query)}else if(q.pre_checkout_query!==undefined){(0,Ar.installPreCheckoutQueryMethods)(C,q.pre_checkout_query)}else if(q.chosen_inline_result!==undefined){(0,lt.installChosenInlineResultMethods)(C,q.chosen_inline_result)}else if(q.chat_join_request!==undefined){(0,Ue.installChatJoinRequestMethods)(C,q.chat_join_request)}}q.installUpdateMethods=installUpdateMethods},54228:(C,q)=>{Object.defineProperty(q,"__esModule",{value:true});q.installUserMethods=void 0;function installUserMethods(C,q,re){const ae={getProfilePhotos:(re,ae)=>C.getUserProfilePhotos({user_id:q.id,...re},ae),ban:(ae,Ue)=>C.banChatMember({chat_id:re,user_id:q.id,...ae},Ue),promote:(ae,Ue)=>C.promoteChatMember({chat_id:re,user_id:q.id,...ae},Ue),restrict:(ae,Ue,lt)=>C.restrictChatMember({permissions:ae,chat_id:re,user_id:q.id,...Ue},lt),setCustomTitle:(ae,Ue,lt)=>C.setChatAdministratorCustomTitle({custom_title:ae,chat_id:re,user_id:q.id,...Ue},lt),unban:(ae,Ue)=>C.unbanChatMember({chat_id:re,user_id:q.id,...ae},Ue)};return Object.assign(q,ae)}q.installUserMethods=installUserMethods},79638:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.InputFile=q.GrammyError=q.Context=q.Api=void 0;var ae=re(53278);Object.defineProperty(q,"Api",{enumerable:true,get:function(){return ae.Api}});Object.defineProperty(q,"Context",{enumerable:true,get:function(){return ae.Context}});Object.defineProperty(q,"GrammyError",{enumerable:true,get:function(){return ae.GrammyError}});Object.defineProperty(q,"InputFile",{enumerable:true,get:function(){return ae.InputFile}})},2466:function(C,q,re){var ae=this&&this.__createBinding||(Object.create?function(C,q,re,ae){if(ae===undefined)ae=re;var Ue=Object.getOwnPropertyDescriptor(q,re);if(!Ue||("get"in Ue?!q.__esModule:Ue.writable||Ue.configurable)){Ue={enumerable:true,get:function(){return q[re]}}}Object.defineProperty(C,ae,Ue)}:function(C,q,re,ae){if(ae===undefined)ae=re;C[ae]=q[re]});var Ue=this&&this.__exportStar||function(C,q){for(var re in C)if(re!=="default"&&!Object.prototype.hasOwnProperty.call(q,re))ae(q,C,re)};Object.defineProperty(q,"__esModule",{value:true});Ue(re(16255),q)},16255:(C,q,re)=>{Object.defineProperty(q,"__esModule",{value:true});q.hydrateApi=q.hydrateContext=q.hydrate=void 0;const ae=re(48541);const Ue=re(49472);const lt=re(65936);const Pt=re(49430);const Wt=re(54228);const Ar=re(79638);function hydrate(){const C=hydrateApi();return(q,re)=>{q.api.config.use(C);(0,Pt.installUpdateMethods)(q.api.raw,q.update);return re()}}q.hydrate=hydrate;function hydrateContext(){return(C,q)=>{(0,Pt.installUpdateMethods)(C.api.raw,C.update);return q()}}q.hydrateContext=hydrateContext;function hydrateApi(){const t=async(C,q,re,Pt)=>{const Ar=await C(q,re,Pt);if(Ar.ok){if(isMessage(Ar.result)){(0,lt.installMessageMethods)(toApi(C),Ar.result)}else if(isInlineMessage(Ar.result)){(0,Ue.installInlineMessageMethods)(toApi(C),Ar.result)}else if(isChatMember(Ar.result)&&hasChatId(re)){(0,Wt.installUserMethods)(toApi(C),Ar.result.user,re.chat_id)}else if(isChat(Ar.result)){(0,ae.installChatMethods)(toApi(C),Ar.result)}}return Ar};return t}q.hydrateApi=hydrateApi;function isMessage(C){return typeof C==="object"&&C!==null&&"message_id"in C&&"chat"in C}function isInlineMessage(C){return typeof C==="object"&&C!==null&&"inline_message_id"in C}function isChatMember(C){return typeof C==="object"&&C!==null&&"status"in C&&"user"in C}function isChat(C){return typeof C==="object"&&C!==null&&"id"in C&&"type"in C&&typeof C.type==="string"&&["private","group","supergroup","channel"].includes(C.type)}function hasChatId(C){return typeof C==="object"&&C!==null&&"chat_id"in C&&typeof C.chat_id==="number"}function toApi(C){return new Proxy({},{get(q,re){const ae=C.bind(null,re);return async(...C)=>{const q=await ae(...C);if(q.ok){return q.result}else{throw new Ar.GrammyError(`Call to '${re}' failed!`,q,re,C[0])}}}})}},56220:(C,q,re)=>{re.d(q,{Y:()=>Blob});
 /**
  * @license
  * web-streams-polyfill v4.0.0-beta.3